From 958b94b20d4ea1f95a9066188a4431733b801b0d Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 13 Jun 2019 00:38:06 +0000 Subject: [PATCH] Autogenerated update (2019-06-13) Update: - androidmanagement_v1 - androidpublisher_v2 - androidpublisher_v3 - cloudsearch_v1 - compute_alpha - compute_beta - compute_v1 - container_v1 - container_v1beta1 - content_v2 - content_v2_1 - dialogflow_v2 - dialogflow_v2beta1 - healthcare_v1alpha2 - healthcare_v1beta1 - spanner_v1 - videointelligence_v1beta2 - videointelligence_v1p3beta1 --- generated/google/apis/androidmanagement_v1.rb | 2 +- .../apis/androidmanagement_v1/classes.rb | 72 +- generated/google/apis/androidpublisher_v2.rb | 2 +- .../apis/androidpublisher_v2/classes.rb | 4 +- generated/google/apis/androidpublisher_v3.rb | 2 +- .../apis/androidpublisher_v3/classes.rb | 4 +- generated/google/apis/cloudsearch_v1.rb | 2 +- .../google/apis/cloudsearch_v1/classes.rb | 82 +- generated/google/apis/compute_alpha.rb | 2 +- .../google/apis/compute_alpha/classes.rb | 2136 ++++++++++++++--- .../apis/compute_alpha/representations.rb | 634 ++++- .../google/apis/compute_alpha/service.rb | 557 ++++- generated/google/apis/compute_beta.rb | 2 +- generated/google/apis/compute_beta/classes.rb | 586 +++-- .../apis/compute_beta/representations.rb | 2 + generated/google/apis/compute_beta/service.rb | 12 +- generated/google/apis/compute_v1.rb | 2 +- generated/google/apis/compute_v1/classes.rb | 1404 +++++++++-- .../google/apis/compute_v1/representations.rb | 414 ++++ generated/google/apis/compute_v1/service.rb | 604 ++++- generated/google/apis/container_v1.rb | 2 +- generated/google/apis/container_v1/classes.rb | 104 + .../apis/container_v1/representations.rb | 48 + generated/google/apis/container_v1beta1.rb | 2 +- .../google/apis/container_v1beta1/classes.rb | 69 +- .../apis/container_v1beta1/representations.rb | 31 + generated/google/apis/content_v2.rb | 2 +- generated/google/apis/content_v2/classes.rb | 4 + generated/google/apis/content_v2_1.rb | 2 +- generated/google/apis/content_v2_1/classes.rb | 41 + .../apis/content_v2_1/representations.rb | 19 + generated/google/apis/dialogflow_v2.rb | 2 +- .../google/apis/dialogflow_v2/classes.rb | 15 + .../apis/dialogflow_v2/representations.rb | 2 + .../google/apis/dialogflow_v2/service.rb | 68 + generated/google/apis/dialogflow_v2beta1.rb | 2 +- .../google/apis/dialogflow_v2beta1/classes.rb | 15 + .../dialogflow_v2beta1/representations.rb | 2 + .../google/apis/dialogflow_v2beta1/service.rb | 68 + generated/google/apis/healthcare_v1alpha2.rb | 2 +- .../apis/healthcare_v1alpha2/service.rb | 98 +- generated/google/apis/healthcare_v1beta1.rb | 2 +- .../google/apis/healthcare_v1beta1/service.rb | 98 +- generated/google/apis/spanner_v1.rb | 2 +- .../google/apis/videointelligence_v1beta2.rb | 2 +- .../apis/videointelligence_v1beta2/classes.rb | 576 +++-- .../representations.rb | 102 + .../apis/videointelligence_v1p3beta1.rb | 2 +- .../videointelligence_v1p3beta1/classes.rb | 576 +++-- .../representations.rb | 102 + 50 files changed, 6816 insertions(+), 1769 deletions(-) diff --git a/generated/google/apis/androidmanagement_v1.rb b/generated/google/apis/androidmanagement_v1.rb index f7ff8ac0c..a072fd3af 100644 --- a/generated/google/apis/androidmanagement_v1.rb +++ b/generated/google/apis/androidmanagement_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/android/management module AndroidmanagementV1 VERSION = 'V1' - REVISION = '20190514' + REVISION = '20190605' # Manage Android devices and apps for your customers AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement' diff --git a/generated/google/apis/androidmanagement_v1/classes.rb b/generated/google/apis/androidmanagement_v1/classes.rb index 809753d8e..f5c14e2b4 100644 --- a/generated/google/apis/androidmanagement_v1/classes.rb +++ b/generated/google/apis/androidmanagement_v1/classes.rb @@ -1749,38 +1749,10 @@ module Google # The Status type defines a logical error model that is suitable for different # programming environments, including REST APIs and RPC APIs. It is used by gRPC - # (https://github.com/grpc). The error model is designed to be: - # Simple to use and understand for most users - # Flexible enough to meet unexpected needsOverviewThe Status message contains - # three pieces of data: error code, error message, and error details. The error - # code should be an enum value of google.rpc.Code, but it may accept additional - # error codes if needed. The error message should be a developer-facing English - # message that helps developers understand and resolve the error. If a localized - # user-facing error message is needed, put the localized message in the error - # details or localize it in the client. The optional error details may contain - # arbitrary information about the error. There is a predefined set of error - # detail types in the package google.rpc that can be used for common error - # conditions.Language mappingThe Status message is the logical representation of - # the error model, but it is not necessarily the actual wire format. When the - # Status message is exposed in different client libraries and different wire - # protocols, it can be mapped differently. For example, it will likely be mapped - # to some exceptions in Java, but more likely mapped to some error codes in C. - # Other usesThe error model and the Status message can be used in a variety of - # environments, either with or without APIs, to provide a consistent developer - # experience across different environments.Example uses of this error model - # include: - # Partial errors. If a service needs to return partial errors to the client, it - # may embed the Status in the normal response to indicate the partial errors. - # Workflow errors. A typical workflow has multiple steps. Each step may have a - # Status message for error reporting. - # Batch operations. If a client uses batch request and batch response, the - # Status message should be used directly inside batch response, one for each - # error sub-response. - # Asynchronous operations. If an API call embeds asynchronous operation results - # in its response, the status of those operations should be represented directly - # using the Status message. - # Logging. If some API errors are stored in logs, the message Status could be - # used directly after any stripping needed for security/privacy reasons. + # (https://github.com/grpc). Each Status message contains three pieces of data: + # error code, error message, and error details.You can find out more about this + # error model and how to work with it in the API Design Guide (https://cloud. + # google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::AndroidmanagementV1::Status] attr_accessor :error @@ -2861,38 +2833,10 @@ module Google # The Status type defines a logical error model that is suitable for different # programming environments, including REST APIs and RPC APIs. It is used by gRPC - # (https://github.com/grpc). The error model is designed to be: - # Simple to use and understand for most users - # Flexible enough to meet unexpected needsOverviewThe Status message contains - # three pieces of data: error code, error message, and error details. The error - # code should be an enum value of google.rpc.Code, but it may accept additional - # error codes if needed. The error message should be a developer-facing English - # message that helps developers understand and resolve the error. If a localized - # user-facing error message is needed, put the localized message in the error - # details or localize it in the client. The optional error details may contain - # arbitrary information about the error. There is a predefined set of error - # detail types in the package google.rpc that can be used for common error - # conditions.Language mappingThe Status message is the logical representation of - # the error model, but it is not necessarily the actual wire format. When the - # Status message is exposed in different client libraries and different wire - # protocols, it can be mapped differently. For example, it will likely be mapped - # to some exceptions in Java, but more likely mapped to some error codes in C. - # Other usesThe error model and the Status message can be used in a variety of - # environments, either with or without APIs, to provide a consistent developer - # experience across different environments.Example uses of this error model - # include: - # Partial errors. If a service needs to return partial errors to the client, it - # may embed the Status in the normal response to indicate the partial errors. - # Workflow errors. A typical workflow has multiple steps. Each step may have a - # Status message for error reporting. - # Batch operations. If a client uses batch request and batch response, the - # Status message should be used directly inside batch response, one for each - # error sub-response. - # Asynchronous operations. If an API call embeds asynchronous operation results - # in its response, the status of those operations should be represented directly - # using the Status message. - # Logging. If some API errors are stored in logs, the message Status could be - # used directly after any stripping needed for security/privacy reasons. + # (https://github.com/grpc). Each Status message contains three pieces of data: + # error code, error message, and error details.You can find out more about this + # error model and how to work with it in the API Design Guide (https://cloud. + # google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable diff --git a/generated/google/apis/androidpublisher_v2.rb b/generated/google/apis/androidpublisher_v2.rb index 27ba73c40..c3787d562 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 = '20190414' + REVISION = '20190611' # 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 f9f57c64a..3a520a4d6 100644 --- a/generated/google/apis/androidpublisher_v2/classes.rb +++ b/generated/google/apis/androidpublisher_v2/classes.rb @@ -1536,8 +1536,8 @@ module Google # @return [String] attr_accessor :price_currency_code - # The profile id of the user when the subscription was purchased. Only present - # for purchases made with 'Subscribe with Google'. + # The Google profile id of the user when the subscription was purchased. Only + # present for purchases made with 'Subscribe with Google'. # Corresponds to the JSON property `profileId` # @return [String] attr_accessor :profile_id diff --git a/generated/google/apis/androidpublisher_v3.rb b/generated/google/apis/androidpublisher_v3.rb index b8501af26..241cb919c 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 = '20190604' + REVISION = '20190611' # 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 d4e7844af..abd38d7ee 100644 --- a/generated/google/apis/androidpublisher_v3/classes.rb +++ b/generated/google/apis/androidpublisher_v3/classes.rb @@ -1612,8 +1612,8 @@ module Google # @return [String] attr_accessor :price_currency_code - # The profile id of the user when the subscription was purchased. Only present - # for purchases made with 'Subscribe with Google'. + # The Google profile id of the user when the subscription was purchased. Only + # present for purchases made with 'Subscribe with Google'. # Corresponds to the JSON property `profileId` # @return [String] attr_accessor :profile_id diff --git a/generated/google/apis/cloudsearch_v1.rb b/generated/google/apis/cloudsearch_v1.rb index a76790432..252bb3e9a 100644 --- a/generated/google/apis/cloudsearch_v1.rb +++ b/generated/google/apis/cloudsearch_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://gsuite.google.com/products/cloud-search/ module CloudsearchV1 VERSION = 'V1' - REVISION = '20190522' + REVISION = '20190606' # Index and serve your organization's data with Cloud Search AUTH_CLOUD_SEARCH = 'https://www.googleapis.com/auth/cloud_search' diff --git a/generated/google/apis/cloudsearch_v1/classes.rb b/generated/google/apis/cloudsearch_v1/classes.rb index fb1a44414..636c4b8f7 100644 --- a/generated/google/apis/cloudsearch_v1/classes.rb +++ b/generated/google/apis/cloudsearch_v1/classes.rb @@ -2533,43 +2533,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::CloudsearchV1::Status] attr_accessor :error @@ -4346,43 +4313,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable diff --git a/generated/google/apis/compute_alpha.rb b/generated/google/apis/compute_alpha.rb index 5cd9cd385..360f2e297 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 = '20190528' + REVISION = '20190530' # 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 ec40eb99e..86cb90635 100644 --- a/generated/google/apis/compute_alpha/classes.rb +++ b/generated/google/apis/compute_alpha/classes.rb @@ -52,8 +52,12 @@ module Google end end - # An Accelerator Type resource. (== resource_for beta.acceleratorTypes ==) (== - # resource_for v1.acceleratorTypes ==) + # Represents an Accelerator Type resource. + # 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 = + # =) class AcceleratorType include Google::Apis::Core::Hashable @@ -469,8 +473,8 @@ module Google attr_accessor :kind # The name of this access configuration. The default and recommended name is - # External NAT but you can use any arbitrary string you would like. For example, - # My external IP or Network Access. + # External NAT, but you can use any arbitrary string, such as My external IP or + # Network Access. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -500,8 +504,8 @@ module Google # @return [String] attr_accessor :public_dns_name - # The DNS domain name for the public PTR record. This field can only be set when - # the set_public_ptr field is enabled. + # The DNS domain name for the public PTR record. You can set this field only if + # the `setPublicPtr` field is enabled. # Corresponds to the JSON property `publicPtrDomainName` # @return [String] attr_accessor :public_ptr_domain_name @@ -513,7 +517,7 @@ module Google attr_accessor :set_public_dns alias_method :set_public_dns?, :set_public_dns - # Specifies whether a public DNS ?PTR? record should be created to map the + # Specifies whether a public DNS 'PTR' record should be created to map the # external IP address of the instance to a DNS domain name. # Corresponds to the JSON property `setPublicPtr` # @return [Boolean] @@ -543,9 +547,21 @@ module Google end end - # A reserved address resource. (== resource_for beta.addresses ==) (== - # resource_for v1.addresses ==) (== resource_for beta.globalAddresses ==) (== - # resource_for v1.globalAddresses ==) + # 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 ==) class Address include Google::Apis::Core::Hashable @@ -565,8 +581,8 @@ module Google # @return [String] attr_accessor :creation_timestamp - # An optional description of this resource. Provide this property when you - # create the resource. + # An optional description of this resource. Provide this field when you create + # the resource. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description @@ -577,7 +593,7 @@ module Google # @return [Fixnum] attr_accessor :id - # The IP Version that will be used by this address. Valid options are IPV4 or + # The IP version that will be used by this address. Valid options are IPV4 or # IPV6. This can only be specified for a global address. # Corresponds to the JSON property `ipVersion` # @return [String] @@ -610,25 +626,25 @@ module Google # 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. + # z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all + # following characters (except for the last character) must be a dash, lowercase + # letter, or digit. The last character must be a lowercase letter or digit. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # The URL of the network in which to reserve the address. This field can only be - # used with INTERNAL type with VPC_PEERING purpose. + # used with INTERNAL type with the VPC_PEERING purpose. # Corresponds to the JSON property `network` # @return [String] attr_accessor :network - # This signifies the networking tier used for configuring this Address and can - # only take the following values: PREMIUM, STANDARD. Global forwarding rules can - # only be Premium Tier. Regional forwarding rules can be either Premium or + # This signifies the networking tier used for configuring this address and can + # only take the following values: PREMIUM or STANDARD. Global forwarding rules + # can only be Premium Tier. Regional forwarding rules can be either Premium or # Standard Tier. Standard Tier addresses applied to regional forwarding rules # can be used with any external load balancer. Regional forwarding rules in - # Premium Tier can only be used with a Network load balancer. + # Premium Tier can only be used with a network load balancer. # If this field is not specified, it is assumed to be PREMIUM. # Corresponds to the JSON property `networkTier` # @return [String] @@ -639,14 +655,20 @@ module Google # @return [Fixnum] attr_accessor :prefix_length - # The purpose of resource, only used with INTERNAL type. + # The purpose of this resource, which can be one of the following values: + # - `GCE_ENDPOINT` for addresses that are used by VM instances, alias IP ranges, + # internal load balancers, and similar resources. + # - `DNS_RESOLVER` for a DNS resolver address in a subnetwork + # - `VPC_PEERING` for addresses that are reserved for VPC peer networks. + # - `NAT_AUTO` for addresses that are external IP addresses automatically + # reserved for Cloud NAT. # Corresponds to the JSON property `purpose` # @return [String] attr_accessor :purpose - # [Output Only] URL of the region where the regional address resides. This field - # is not applicable to global addresses. You must specify this field as part of - # the HTTP request URL. You cannot set this field in the request body. + # [Output Only] The URL of the region where the regional address resides. This + # field is not applicable to global addresses. You must specify this field as + # part of the HTTP request URL. # Corresponds to the JSON property `region` # @return [String] attr_accessor :region @@ -672,7 +694,7 @@ module Google # The URL of the subnetwork in which to reserve the address. If an IP address is # specified, it must be within the subnetwork's IP range. This field can only be - # used with INTERNAL type with GCE_ENDPOINT/DNS_RESOLVER purposes. + # used with INTERNAL type with a GCE_ENDPOINT or DNS_RESOLVER purpose. # Corresponds to the JSON property `subnetwork` # @return [String] attr_accessor :subnetwork @@ -1042,18 +1064,17 @@ module Google class AliasIpRange include Google::Apis::Core::Hashable - # The IP CIDR range represented by this alias IP range. This IP CIDR range must + # The IP alias ranges to allocate for this interface. This IP CIDR range must # belong to the specified subnetwork and cannot contain IP addresses reserved by # system or used by other network interfaces. This range may be a single IP - # address (e.g. 10.2.3.4), a netmask (e.g. /24) or a CIDR format string (e.g. 10. - # 1.2.0/24). + # address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string + # (such as 10.1.2.0/24). # Corresponds to the JSON property `ipCidrRange` # @return [String] attr_accessor :ip_cidr_range - # Optional subnetwork secondary range name specifying the secondary range from - # which to allocate the IP CIDR range for this alias IP range. If left - # unspecified, the primary range of the subnetwork will be used. + # The name of a subnetwork secondary IP range from which to allocate an IP alias + # range. If not specified, the primary range of the subnetwork is used. # Corresponds to the JSON property `subnetworkRangeName` # @return [String] attr_accessor :subnetwork_range_name @@ -1234,7 +1255,8 @@ module Google # SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and # the request will fail if you attempt to attach a persistent disk in any other # format than SCSI. Local SSDs can use either NVME or SCSI. For performance - # characteristics of SCSI over NVMe, see Local SSD performance. + # characteristics of SCSI over NVMe, see Local SSD performance. TODO(b/131765817) + # : Update documentation when NVME is supported. # Corresponds to the JSON property `interface` # @return [String] attr_accessor :interface @@ -1612,12 +1634,15 @@ module Google end end - # Represents an Autoscaler resource. Autoscalers allow you to automatically - # scale virtual machine instances in managed instance groups according to an - # autoscaling policy that you define. For more information, read Autoscaling - # Groups of Instances. (== resource_for beta.autoscalers ==) (== resource_for v1. - # autoscalers ==) (== resource_for beta.regionAutoscalers ==) (== resource_for - # v1.regionAutoscalers ==) + # Represents an Autoscaler resource. + # 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 = + # =) class Autoscaler include Google::Apis::Core::Hashable @@ -2136,6 +2161,13 @@ module Google # @return [Google::Apis::ComputeAlpha::AutoscalingPolicyQueueBasedScaling] attr_accessor :queue_based_scaling + # 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::ComputeAlpha::AutoscalingPolicyScaleDownControl] + attr_accessor :scale_down_control + def initialize(**args) update!(**args) end @@ -2150,6 +2182,7 @@ module Google @min_num_replicas = args[:min_num_replicas] if args.key?(:min_num_replicas) @mode = args[:mode] if args.key?(:mode) @queue_based_scaling = args[:queue_based_scaling] if args.key?(:queue_based_scaling) + @scale_down_control = args[:scale_down_control] if args.key?(:scale_down_control) end end @@ -2355,6 +2388,34 @@ 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::ComputeAlpha::FixedOrPercent] + attr_accessor :max_scaled_down_replicas + + # 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` + # @return [Fixnum] + attr_accessor :time_window_sec + + 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_sec = args[:time_window_sec] if args.key?(:time_window_sec) + end + end + # Message containing information of one individual backend. class Backend include Google::Apis::Core::Hashable @@ -2731,11 +2792,6 @@ module Google # @return [Fixnum] attr_accessor :affinity_cookie_ttl_sec - # Configuration of a App Engine backend. - # Corresponds to the JSON property `appEngineBackend` - # @return [Google::Apis::ComputeAlpha::BackendServiceAppEngineBackend] - attr_accessor :app_engine_backend - # The list of backends that serve this BackendService. # Corresponds to the JSON property `backends` # @return [Array] @@ -2751,11 +2807,6 @@ module Google # @return [Google::Apis::ComputeAlpha::CircuitBreakers] attr_accessor :circuit_breakers - # Configuration of a Cloud Function backend. - # Corresponds to the JSON property `cloudFunctionBackend` - # @return [Google::Apis::ComputeAlpha::BackendServiceCloudFunctionBackend] - attr_accessor :cloud_function_backend - # Message containing connection draining configuration. # Corresponds to the JSON property `connectionDraining` # @return [Google::Apis::ComputeAlpha::ConnectionDraining] @@ -2884,6 +2935,12 @@ module Google # @return [String] attr_accessor :name + # The URL of the network to which this backend service belongs. This field can + # only be spcified when the load balancing scheme is set to INTERNAL. + # Corresponds to the JSON property `network` + # @return [String] + attr_accessor :network + # Settings controlling eviction of unhealthy hosts from the load balancing pool. # Corresponds to the JSON property `outlierDetection` # @return [Google::Apis::ComputeAlpha::OutlierDetection] @@ -2964,11 +3021,9 @@ module Google # Update properties of this object def update!(**args) @affinity_cookie_ttl_sec = args[:affinity_cookie_ttl_sec] if args.key?(:affinity_cookie_ttl_sec) - @app_engine_backend = args[:app_engine_backend] if args.key?(:app_engine_backend) @backends = args[:backends] if args.key?(:backends) @cdn_policy = args[:cdn_policy] if args.key?(:cdn_policy) @circuit_breakers = args[:circuit_breakers] if args.key?(:circuit_breakers) - @cloud_function_backend = args[:cloud_function_backend] if args.key?(:cloud_function_backend) @connection_draining = args[:connection_draining] if args.key?(:connection_draining) @consistent_hash = args[:consistent_hash] if args.key?(:consistent_hash) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @@ -2985,6 +3040,7 @@ module Google @locality_lb_policy = args[:locality_lb_policy] if args.key?(:locality_lb_policy) @log_config = args[:log_config] if args.key?(:log_config) @name = args[:name] if args.key?(:name) + @network = args[:network] if args.key?(:network) @outlier_detection = args[:outlier_detection] if args.key?(:outlier_detection) @port = args[:port] if args.key?(:port) @port_name = args[:port_name] if args.key?(:port_name) @@ -3116,39 +3172,6 @@ module Google end end - # Configuration of a App Engine backend. - class BackendServiceAppEngineBackend - include Google::Apis::Core::Hashable - - # Optional. App Engine app service name. - # Corresponds to the JSON property `appEngineService` - # @return [String] - attr_accessor :app_engine_service - - # Required. Project ID of the project hosting the app. This is the project ID of - # this project. Reference to another project is not allowed. - # Corresponds to the JSON property `targetProject` - # @return [String] - attr_accessor :target_project - - # Optional. Version of App Engine app service. When empty, App Engine will do - # its normal traffic split. - # Corresponds to the JSON property `version` - # @return [String] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @app_engine_service = args[:app_engine_service] if args.key?(:app_engine_service) - @target_project = args[:target_project] if args.key?(:target_project) - @version = args[:version] if args.key?(:version) - end - end - # Message containing Cloud CDN configuration for a backend service. class BackendServiceCdnPolicy include Google::Apis::Core::Hashable @@ -3187,32 +3210,6 @@ module Google end end - # Configuration of a Cloud Function backend. - class BackendServiceCloudFunctionBackend - include Google::Apis::Core::Hashable - - # Required. A cloud function name. Special value ?*? represents all cloud - # functions in the project. - # Corresponds to the JSON property `functionName` - # @return [String] - attr_accessor :function_name - - # Required. Project ID of the project hosting the cloud function. - # Corresponds to the JSON property `targetProject` - # @return [String] - attr_accessor :target_project - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @function_name = args[:function_name] if args.key?(:function_name) - @target_project = args[:target_project] if args.key?(:target_project) - end - end - # class BackendServiceFailoverPolicy include Google::Apis::Core::Hashable @@ -3632,6 +3629,281 @@ module Google end end + # + class BfdPacket + include Google::Apis::Core::Hashable + + # The Authentication Present bit of the BFD packet. This is specified in section + # 4.1 of RFC5880 + # Corresponds to the JSON property `authenticationPresent` + # @return [Boolean] + attr_accessor :authentication_present + alias_method :authentication_present?, :authentication_present + + # The Control Plane Independent bit of the BFD packet. This is specified in + # section 4.1 of RFC5880 + # Corresponds to the JSON property `controlPlaneIndependent` + # @return [Boolean] + attr_accessor :control_plane_independent + alias_method :control_plane_independent?, :control_plane_independent + + # The demand bit of the BFD packet. This is specified in section 4.1 of RFC5880 + # Corresponds to the JSON property `demand` + # @return [Boolean] + attr_accessor :demand + alias_method :demand?, :demand + + # The diagnostic code specifies the local system's reason for the last change in + # session state. This allows remote systems to determine the reason that the + # previous session failed, for example. These diagnostic codes are specified in + # section 4.1 of RFC5880 + # Corresponds to the JSON property `diagnostic` + # @return [String] + attr_accessor :diagnostic + + # The Final bit of the BFD packet. This is specified in section 4.1 of RFC5880 + # Corresponds to the JSON property `final` + # @return [Boolean] + attr_accessor :final + alias_method :final?, :final + + # The length of the BFD Control packet in bytes. This is specified in section 4. + # 1 of RFC5880 + # Corresponds to the JSON property `length` + # @return [Fixnum] + attr_accessor :length + + # The Required Min Echo RX Interval value in the BFD packet. This is specified + # in section 4.1 of RFC5880 + # Corresponds to the JSON property `minEchoRxIntervalMs` + # @return [Fixnum] + attr_accessor :min_echo_rx_interval_ms + + # The Required Min RX Interval value in the BFD packet. This is specified in + # section 4.1 of RFC5880 + # Corresponds to the JSON property `minRxIntervalMs` + # @return [Fixnum] + attr_accessor :min_rx_interval_ms + + # The Desired Min TX Interval value in the BFD packet. This is specified in + # section 4.1 of RFC5880 + # Corresponds to the JSON property `minTxIntervalMs` + # @return [Fixnum] + attr_accessor :min_tx_interval_ms + + # The detection time multiplier of the BFD packet. This is specified in section + # 4.1 of RFC5880 + # Corresponds to the JSON property `multiplier` + # @return [Fixnum] + attr_accessor :multiplier + + # The multipoint bit of the BFD packet. This is specified in section 4.1 of + # RFC5880 + # Corresponds to the JSON property `multipoint` + # @return [Boolean] + attr_accessor :multipoint + alias_method :multipoint?, :multipoint + + # The My Discriminator value in the BFD packet. This is specified in section 4.1 + # of RFC5880 + # Corresponds to the JSON property `myDiscriminator` + # @return [Fixnum] + attr_accessor :my_discriminator + + # The Poll bit of the BFD packet. This is specified in section 4.1 of RFC5880 + # Corresponds to the JSON property `poll` + # @return [Boolean] + attr_accessor :poll + alias_method :poll?, :poll + + # The current BFD session state as seen by the transmitting system. These states + # are specified in section 4.1 of RFC5880 + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # The version number of the BFD protocol, as specified in section 4.1 of RFC5880. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + # The Your Discriminator value in the BFD packet. This is specified in section 4. + # 1 of RFC5880 + # Corresponds to the JSON property `yourDiscriminator` + # @return [Fixnum] + attr_accessor :your_discriminator + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @authentication_present = args[:authentication_present] if args.key?(:authentication_present) + @control_plane_independent = args[:control_plane_independent] if args.key?(:control_plane_independent) + @demand = args[:demand] if args.key?(:demand) + @diagnostic = args[:diagnostic] if args.key?(:diagnostic) + @final = args[:final] if args.key?(:final) + @length = args[:length] if args.key?(:length) + @min_echo_rx_interval_ms = args[:min_echo_rx_interval_ms] if args.key?(:min_echo_rx_interval_ms) + @min_rx_interval_ms = args[:min_rx_interval_ms] if args.key?(:min_rx_interval_ms) + @min_tx_interval_ms = args[:min_tx_interval_ms] if args.key?(:min_tx_interval_ms) + @multiplier = args[:multiplier] if args.key?(:multiplier) + @multipoint = args[:multipoint] if args.key?(:multipoint) + @my_discriminator = args[:my_discriminator] if args.key?(:my_discriminator) + @poll = args[:poll] if args.key?(:poll) + @state = args[:state] if args.key?(:state) + @version = args[:version] if args.key?(:version) + @your_discriminator = args[:your_discriminator] if args.key?(:your_discriminator) + end + end + + # Next free: 15 + class BfdStatus + include Google::Apis::Core::Hashable + + # The BFD session initialization mode for this BGP peer. If set to ACTIVE, the + # Cloud Router will initiate the BFD session for this BGP peer. If set to + # PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD + # session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP + # peer. + # Corresponds to the JSON property `bfdSessionInitializationMode` + # @return [String] + attr_accessor :bfd_session_initialization_mode + + # Unix timestamp of the most recent config update. + # Corresponds to the JSON property `configUpdateTimestampMicros` + # @return [Fixnum] + attr_accessor :config_update_timestamp_micros + + # Control packet counts for the current BFD session. + # Corresponds to the JSON property `controlPacketCounts` + # @return [Google::Apis::ComputeAlpha::BfdStatusPacketCounts] + attr_accessor :control_packet_counts + + # Inter-packet time interval statistics for control packets. + # Corresponds to the JSON property `controlPacketIntervals` + # @return [Array] + attr_accessor :control_packet_intervals + + # Echo packet counts for the current BFD session. + # Corresponds to the JSON property `echoPacketCounts` + # @return [Google::Apis::ComputeAlpha::BfdStatusPacketCounts] + attr_accessor :echo_packet_counts + + # Inter-packet time interval statistics for echo packets. + # Corresponds to the JSON property `echoPacketIntervals` + # @return [Array] + attr_accessor :echo_packet_intervals + + # The diagnostic code specifies the local system's reason for the last change in + # session state. This allows remote systems to determine the reason that the + # previous session failed, for example. These diagnostic codes are specified in + # section 4.1 of RFC5880 + # Corresponds to the JSON property `localDiagnostic` + # @return [String] + attr_accessor :local_diagnostic + + # The current BFD session state as seen by the transmitting system. These states + # are specified in section 4.1 of RFC5880 + # Corresponds to the JSON property `localState` + # @return [String] + attr_accessor :local_state + + # Negotiated transmit interval for control packets. When echo mode is enabled + # this will reflect the negotiated slow timer interval. + # Corresponds to the JSON property `negotiatedLocalControlTxIntervalMs` + # @return [Fixnum] + attr_accessor :negotiated_local_control_tx_interval_ms + + # Negotiated transmit interval for echo packets. + # Corresponds to the JSON property `negotiatedLocalEchoTxIntervalMs` + # @return [Fixnum] + attr_accessor :negotiated_local_echo_tx_interval_ms + + # + # Corresponds to the JSON property `rxPacket` + # @return [Google::Apis::ComputeAlpha::BfdPacket] + attr_accessor :rx_packet + + # + # Corresponds to the JSON property `txPacket` + # @return [Google::Apis::ComputeAlpha::BfdPacket] + attr_accessor :tx_packet + + # Session uptime in milliseconds. Value will be 0 if session is not up. + # Corresponds to the JSON property `uptimeMs` + # @return [Fixnum] + attr_accessor :uptime_ms + + # Indicates if echo mode is currently being used. + # Corresponds to the JSON property `usingEchoMode` + # @return [Boolean] + attr_accessor :using_echo_mode + alias_method :using_echo_mode?, :using_echo_mode + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bfd_session_initialization_mode = args[:bfd_session_initialization_mode] if args.key?(:bfd_session_initialization_mode) + @config_update_timestamp_micros = args[:config_update_timestamp_micros] if args.key?(:config_update_timestamp_micros) + @control_packet_counts = args[:control_packet_counts] if args.key?(:control_packet_counts) + @control_packet_intervals = args[:control_packet_intervals] if args.key?(:control_packet_intervals) + @echo_packet_counts = args[:echo_packet_counts] if args.key?(:echo_packet_counts) + @echo_packet_intervals = args[:echo_packet_intervals] if args.key?(:echo_packet_intervals) + @local_diagnostic = args[:local_diagnostic] if args.key?(:local_diagnostic) + @local_state = args[:local_state] if args.key?(:local_state) + @negotiated_local_control_tx_interval_ms = args[:negotiated_local_control_tx_interval_ms] if args.key?(:negotiated_local_control_tx_interval_ms) + @negotiated_local_echo_tx_interval_ms = args[:negotiated_local_echo_tx_interval_ms] if args.key?(:negotiated_local_echo_tx_interval_ms) + @rx_packet = args[:rx_packet] if args.key?(:rx_packet) + @tx_packet = args[:tx_packet] if args.key?(:tx_packet) + @uptime_ms = args[:uptime_ms] if args.key?(:uptime_ms) + @using_echo_mode = args[:using_echo_mode] if args.key?(:using_echo_mode) + end + end + + # + class BfdStatusPacketCounts + include Google::Apis::Core::Hashable + + # Number of packets received since the beginning of the current BFD session. + # Corresponds to the JSON property `numRx` + # @return [Fixnum] + attr_accessor :num_rx + + # Number of packets received that were rejected because of errors since the + # beginning of the current BFD session. + # Corresponds to the JSON property `numRxRejected` + # @return [Fixnum] + attr_accessor :num_rx_rejected + + # Number of packets received that were successfully processed since the + # beginning of the current BFD session. + # Corresponds to the JSON property `numRxSuccessful` + # @return [Fixnum] + attr_accessor :num_rx_successful + + # Number of packets transmitted since the beginning of the current BFD session. + # Corresponds to the JSON property `numTx` + # @return [Fixnum] + attr_accessor :num_tx + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @num_rx = args[:num_rx] if args.key?(:num_rx) + @num_rx_rejected = args[:num_rx_rejected] if args.key?(:num_rx_rejected) + @num_rx_successful = args[:num_rx_successful] if args.key?(:num_rx_successful) + @num_tx = args[:num_tx] if args.key?(:num_tx) + end + end + # Associates `members` with a `role`. class Binding include Google::Apis::Core::Hashable @@ -3765,12 +4037,6 @@ module Google class CallCredentials include Google::Apis::Core::Hashable - # The access token that is used as call credential for the SDS server. This - # field is used only if callCredentialType is ACCESS_TOKEN. - # Corresponds to the JSON property `accessToken` - # @return [String] - attr_accessor :access_token - # The type of call credentials to use for GRPC requests to the SDS server. This # field can be set to one of the following: ACCESS_TOKEN: An access token is # used as call credentials for the SDS server. GCE_VM: The local GCE VM service @@ -3787,21 +4053,14 @@ module Google # @return [Google::Apis::ComputeAlpha::MetadataCredentialsFromPlugin] attr_accessor :from_plugin - # JWT credentials for a service account. - # Corresponds to the JSON property `jwtServiceAccount` - # @return [Google::Apis::ComputeAlpha::ServiceAccountJwtAccessCredentials] - attr_accessor :jwt_service_account - def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @access_token = args[:access_token] if args.key?(:access_token) @call_credential_type = args[:call_credential_type] if args.key?(:call_credential_type) @from_plugin = args[:from_plugin] if args.key?(:from_plugin) - @jwt_service_account = args[:jwt_service_account] if args.key?(:jwt_service_account) end end @@ -3937,16 +4196,12 @@ module Google end end - # Represents a Commitment resource. Creating a Commitment resource means that - # you are purchasing a committed use contract with an explicit start and end - # time. You can create commitments based on vCPUs and memory usage and receive - # discounted rates. For full details, read Signing Up for Committed Use - # Discounts. - # Committed use discounts are subject to Google Cloud Platform's Service - # Specific Terms. By purchasing a committed use discount, you agree to these - # terms. Committed use discounts will not renew, so you must purchase a new - # commitment to continue receiving discounts. (== resource_for beta.commitments = - # =) (== resource_for v1.commitments ==) + # Represents a regional Commitment resource. + # Creating a commitment resource means that you are purchasing a committed use + # contract with an explicit start and end time. You can create commitments based + # on vCPUs and memory usage and receive discounted rates. For full details, read + # Signing Up for Committed Use Discounts. (== resource_for beta. + # regionCommitments ==) (== resource_for v1.regionCommitments ==) class Commitment include Google::Apis::Core::Hashable @@ -4738,7 +4993,16 @@ module Google end end - # A Disk resource. (== resource_for beta.disks ==) (== resource_for v1.disks ==) + # Represents a Persistent Disk resource. + # 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 ==) class Disk include Google::Apis::Core::Hashable @@ -4758,6 +5022,13 @@ module Google # @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey] attr_accessor :disk_encryption_key + # Specifies whether the disk restored from a source snapshot should erase + # Windows specific VSS signature. + # Corresponds to the JSON property `eraseWindowsVssSignature` + # @return [Boolean] + attr_accessor :erase_windows_vss_signature + alias_method :erase_windows_vss_signature?, :erase_windows_vss_signature + # 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. @@ -4867,6 +5138,11 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource's resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # Size of the persistent disk, specified in GB. You can specify this field when # creating a persistent disk using the sourceImage or sourceSnapshot parameter, # or specify it alone to create an empty persistent disk. @@ -4992,6 +5268,7 @@ module Google @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) @disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key) + @erase_windows_vss_signature = args[:erase_windows_vss_signature] if args.key?(:erase_windows_vss_signature) @guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @@ -5009,6 +5286,7 @@ module Google @replica_zones = args[:replica_zones] if args.key?(:replica_zones) @resource_policies = args[:resource_policies] if args.key?(:resource_policies) @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) @size_gb = args[:size_gb] if args.key?(:size_gb) @source_disk = args[:source_disk] if args.key?(:source_disk) @source_disk_id = args[:source_disk_id] if args.key?(:source_disk_id) @@ -5347,8 +5625,15 @@ module Google end end - # A DiskType resource. (== resource_for beta.diskTypes ==) (== resource_for v1. - # diskTypes ==) + # Represents a Disk Type resource. + # 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 ==) class DiskType include Google::Apis::Core::Hashable @@ -6013,7 +6298,10 @@ module Google # @return [String] attr_accessor :dest_range - # If the peering route is imported if there is no confliction. + # True if the peering route has been imported from a peer. The actual import + # happens if the field networkPeering.importCustomRoutes is true for this + # network, and networkPeering.exportCustomRoutes is true for the peer network, + # and the import does not result in a route conflict. # Corresponds to the JSON property `imported` # @return [Boolean] attr_accessor :imported @@ -6487,7 +6775,9 @@ module Google end end - # Represents a Firewall resource. + # Represents a Firewall Rule resource. + # Firewall rules allow or deny ingress traffic to, and egress traffic from your + # instances. For more information, read Firewall rules. class Firewall include Google::Apis::Core::Hashable @@ -6508,30 +6798,30 @@ module Google # @return [Array] attr_accessor :denied - # An optional description of this resource. Provide this property when you - # create the resource. + # An optional description of this resource. Provide this field when you create + # the resource. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # If destination ranges are specified, the firewall will apply only to traffic + # If destination ranges are specified, the firewall rule applies only to traffic # that has destination IP address in these ranges. These ranges must be # expressed in CIDR format. Only IPv4 is supported. # Corresponds to the JSON property `destinationRanges` # @return [Array] attr_accessor :destination_ranges - # Direction of traffic to which this firewall applies; default is INGRESS. Note: - # For INGRESS traffic, it is NOT supported to specify destinationRanges; For - # EGRESS traffic, it is NOT supported to specify sourceRanges OR sourceTags. + # Direction of traffic to which this firewall applies, either `INGRESS` or ` + # EGRESS`. The default is `INGRESS`. For `INGRESS` traffic, you cannot specify + # the destinationRanges field, and for `EGRESS` traffic, you cannot specify the + # sourceRanges or sourceTags fields. # Corresponds to the JSON property `direction` # @return [String] attr_accessor :direction - # Denotes whether the firewall rule is disabled, i.e not applied to the network - # it is associated with. When set to true, the firewall rule is not enforced and - # the network behaves as if it did not exist. If this is unspecified, the - # firewall rule will be enabled. + # Denotes whether the firewall rule is disabled. When set to true, the firewall + # rule is not enforced and the network behaves as if it did not exist. If this + # is unspecified, the firewall rule will be enabled. # Corresponds to the JSON property `disabled` # @return [Boolean] attr_accessor :disabled @@ -6564,9 +6854,9 @@ module Google # 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. + # z0-9]*[a-z0-9])?. The first character must be a lowercase letter, and all + # following characters (except for the last character) must be a dash, lowercase + # letter, or digit. The last character must be a lowercase letter or digit. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -6574,8 +6864,8 @@ module Google # URL of the network resource for this firewall rule. If not specified when # creating a firewall rule, the default network is used: # global/networks/default - # If you choose to specify this property, you can specify the network as a full - # or partial URL. For example, the following are all valid URLs: + # If you choose to specify this field, you can specify the network as a full or + # partial URL. For example, the following are all valid URLs: # - https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my- # network # - projects/myproject/global/networks/my-network @@ -6584,11 +6874,14 @@ module Google # @return [String] attr_accessor :network - # Priority for this rule. This is an integer between 0 and 65535, both inclusive. - # When not specified, the value assumed is 1000. Relative priorities determine - # precedence of conflicting rules. Lower value of priority implies higher - # precedence (eg, a rule with priority 0 has higher precedence than a rule with - # priority 1). DENY rules take precedence over ALLOW rules having equal priority. + # Priority for this rule. This is an integer between `0` and `65535`, both + # inclusive. The default value is `1000`. Relative priorities determine which + # rule takes effect if multiple rules apply. Lower values indicate higher + # priority. For example, a rule with priority `0` has higher precedence than a + # rule with priority `1`. DENY rules take precedence over ALLOW rules if they + # have equal priority. Note that VPC networks have implied rules with a priority + # of `65535`. To avoid conflicts with the implied rules, use a priority number + # less than `65535`. # Corresponds to the JSON property `priority` # @return [Fixnum] attr_accessor :priority @@ -6603,26 +6896,26 @@ module Google # @return [String] attr_accessor :self_link_with_id - # If source ranges are specified, the firewall will apply only to traffic that - # has source IP address in these ranges. These ranges must be expressed in CIDR - # format. One or both of sourceRanges and sourceTags may be set. If both - # properties are set, the firewall will apply to traffic that has source IP - # address within sourceRanges OR the source IP that belongs to a tag listed in - # the sourceTags property. The connection does not need to match both properties - # for the firewall to apply. Only IPv4 is supported. + # If source ranges are specified, the firewall rule applies only to traffic that + # has a source IP address in these ranges. These ranges must be expressed in + # CIDR format. One or both of sourceRanges and sourceTags may be set. If both + # fields are set, the rule applies to traffic that has a source IP address + # within sourceRanges OR a source IP from a resource with a matching tag listed + # in the sourceTags field. The connection does not need to match both fields for + # the rule to apply. Only IPv4 is supported. # Corresponds to the JSON property `sourceRanges` # @return [Array] attr_accessor :source_ranges - # If source service accounts are specified, the firewall will apply only to + # If source service accounts are specified, the firewall rules apply only to # traffic originating from an instance with a service account in this list. # Source service accounts cannot be used to control traffic to an instance's # external IP address because service accounts are associated with an instance, # not an IP address. sourceRanges can be set at the same time as - # sourceServiceAccounts. If both are set, the firewall will apply to traffic - # that has source IP address within sourceRanges OR the source IP belongs to an - # instance with service account listed in sourceServiceAccount. The connection - # does not need to match both properties for the firewall to apply. + # sourceServiceAccounts. If both are set, the firewall applies to traffic that + # has a source IP address within the sourceRanges OR a source IP that belongs to + # an instance with service account listed in sourceServiceAccount. The + # connection does not need to match both fields for the firewall to apply. # sourceServiceAccounts cannot be used at the same time as sourceTags or # targetTags. # Corresponds to the JSON property `sourceServiceAccounts` @@ -6635,10 +6928,10 @@ module Google # traffic to an instance's external IP address, it only applies to traffic # between instances in the same virtual network. Because tags are associated # with instances, not IP addresses. One or both of sourceRanges and sourceTags - # may be set. If both properties are set, the firewall will apply to traffic - # that has source IP address within sourceRanges OR the source IP that belongs - # to a tag listed in the sourceTags property. The connection does not need to - # match both properties for the firewall to apply. + # may be set. If both fields are set, the firewall applies to traffic that has a + # source IP address within sourceRanges OR a source IP from a resource with a + # matching tag listed in the sourceTags field. The connection does not need to + # match both fields for the firewall to apply. # Corresponds to the JSON property `sourceTags` # @return [Array] attr_accessor :source_tags @@ -6695,15 +6988,16 @@ module Google # The IP protocol to which this rule applies. The protocol type is required when # creating a firewall rule. This value can either be one of the following well - # known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP + # known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP # protocol number. # Corresponds to the JSON property `IPProtocol` # @return [String] attr_accessor :ip_protocol # An optional list of ports to which this rule applies. This field is only - # applicable for UDP or TCP protocol. Each entry must be either an integer or a - # range. If not specified, this rule applies to connections through any port. + # applicable for the UDP or TCP protocol. Each entry must be either an integer + # or a range. If not specified, this rule applies to connections through any + # port. # Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. # Corresponds to the JSON property `ports` # @return [Array] @@ -6726,15 +7020,16 @@ module Google # The IP protocol to which this rule applies. The protocol type is required when # creating a firewall rule. This value can either be one of the following well - # known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP + # known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP # protocol number. # Corresponds to the JSON property `IPProtocol` # @return [String] attr_accessor :ip_protocol # An optional list of ports to which this rule applies. This field is only - # applicable for UDP or TCP protocol. Each entry must be either an integer or a - # range. If not specified, this rule applies to connections through any port. + # applicable for the UDP or TCP protocol. Each entry must be either an integer + # or a range. If not specified, this rule applies to connections through any + # port. # Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. # Corresponds to the JSON property `ports` # @return [Array] @@ -7049,6 +7344,16 @@ 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` @@ -7231,6 +7536,7 @@ module Google @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) @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) @labels = args[:labels] if args.key?(:labels) @@ -8158,6 +8464,12 @@ module Google # @return [String] attr_accessor :kind + # Configuration of logging on a health check. If logging is enabled, logs will + # be exported to Stackdriver. + # Corresponds to the JSON property `logConfig` + # @return [Google::Apis::ComputeAlpha::HealthCheckLogConfig] + attr_accessor :log_config + # 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- @@ -8234,6 +8546,7 @@ module Google @https_health_check = args[:https_health_check] if args.key?(:https_health_check) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) + @log_config = args[:log_config] if args.key?(:log_config) @name = args[:name] if args.key?(:name) @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) @@ -8364,6 +8677,35 @@ module Google end end + # Configuration of logging on a health check. If logging is enabled, logs will + # be exported to Stackdriver. + class HealthCheckLogConfig + include Google::Apis::Core::Hashable + + # Indicates whether or not to export logs. This is false by default, which means + # no health check logging will be done. + # Corresponds to the JSON property `enable` + # @return [Boolean] + attr_accessor :enable + alias_method :enable?, :enable + + # Specifies the desired filtering of logs on this health check. If this is + # unspecified and enable is true, logs are exported with LOG_TRANSITION filter. + # Corresponds to the JSON property `filter` + # @return [String] + attr_accessor :filter + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enable = args[:enable] if args.key?(:enable) + @filter = args[:filter] if args.key?(:filter) + end + end + # A full or valid partial URL to a health check. For example, the following are # valid URLs: # - https://www.googleapis.com/compute/beta/projects/project-id/global/ @@ -8504,6 +8846,31 @@ module Google end end + # A full or valid partial URL to a health check service. For example, the + # following are valid URLs: + # - https://www.googleapis.com/compute/beta/projects/project-id/regions/us-west1/ + # healthCheckServices/health-check-service + # - projects/project-id/regions/us-west1/healthCheckServices/health-check- + # service + # - regions/us-west1/healthCheckServices/health-check-service + class HealthCheckServiceReference + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `healthCheckService` + # @return [String] + attr_accessor :health_check_service + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @health_check_service = args[:health_check_service] if args.key?(:health_check_service) + end + end + # class HealthCheckServicesList include Google::Apis::Core::Hashable @@ -8899,6 +9266,17 @@ module Google # @return [Google::Apis::ComputeAlpha::HealthCheckReference] attr_accessor :health_check + # A full or valid partial URL to a health check service. For example, the + # following are valid URLs: + # - https://www.googleapis.com/compute/beta/projects/project-id/regions/us-west1/ + # healthCheckServices/health-check-service + # - projects/project-id/regions/us-west1/healthCheckServices/health-check- + # service + # - regions/us-west1/healthCheckServices/health-check-service + # Corresponds to the JSON property `healthCheckService` + # @return [Google::Apis::ComputeAlpha::HealthCheckServiceReference] + attr_accessor :health_check_service + # Health state of the network endpoint determined based on the health checks # configured. # Corresponds to the JSON property `healthState` @@ -8914,6 +9292,7 @@ module Google @backend_service = args[:backend_service] if args.key?(:backend_service) @forwarding_rule = args[:forwarding_rule] if args.key?(:forwarding_rule) @health_check = args[:health_check] if args.key?(:health_check) + @health_check_service = args[:health_check_service] if args.key?(:health_check_service) @health_state = args[:health_state] if args.key?(:health_state) end end @@ -10058,8 +10437,10 @@ module Google end end - # An Image resource. (== resource_for beta.images ==) (== resource_for v1.images - # ==) + # 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 ==) class Image include Google::Apis::Core::Hashable @@ -10494,8 +10875,10 @@ module Google end end - # An Instance resource. (== resource_for beta.instances ==) (== resource_for v1. - # instances ==) + # 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 ==) class Instance include Google::Apis::Core::Hashable @@ -10540,6 +10923,13 @@ module Google # @return [Google::Apis::ComputeAlpha::DisplayDevice] attr_accessor :display_device + # Specifies whether the disks restored from source snapshots or source machine + # image should erase Windows specific VSS signature. + # Corresponds to the JSON property `eraseWindowsVssSignature` + # @return [Boolean] + attr_accessor :erase_windows_vss_signature + alias_method :erase_windows_vss_signature?, :erase_windows_vss_signature + # A list of the type and count of accelerator cards attached to the instance. # Corresponds to the JSON property `guestAccelerators` # @return [Array] @@ -10646,7 +11036,7 @@ module Google # @return [Array] attr_accessor :resource_policies - # Sets the scheduling options for an Instance. + # Sets the scheduling options for an Instance. NextID: 9 # Corresponds to the JSON property `scheduling` # @return [Google::Apis::ComputeAlpha::Scheduling] attr_accessor :scheduling @@ -10746,6 +11136,7 @@ module Google @description = args[:description] if args.key?(:description) @disks = args[:disks] if args.key?(:disks) @display_device = args[:display_device] if args.key?(:display_device) + @erase_windows_vss_signature = args[:erase_windows_vss_signature] if args.key?(:erase_windows_vss_signature) @guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators) @hostname = args[:hostname] if args.key?(:hostname) @id = args[:id] if args.key?(:id) @@ -10897,9 +11288,15 @@ module Google end end - # InstanceGroups (== resource_for beta.instanceGroups ==) (== resource_for v1. - # instanceGroups ==) (== resource_for beta.regionInstanceGroups ==) (== - # resource_for v1.regionInstanceGroups ==) + # Represents an unmanaged Instance Group resource. + # Use unmanaged instance groups if you need to apply load balancing to groups of + # heterogeneous instances or if you need to manage the instances yourself. For + # more information, read Instance groups. + # For zonal unmanaged Instance Group, use instanceGroups resource. + # For regional unmanaged Instance Group, use regionInstanceGroups resource. (== + # resource_for beta.instanceGroups ==) (== resource_for v1.instanceGroups ==) (== + # resource_for beta.regionInstanceGroups ==) (== resource_for v1. + # regionInstanceGroups ==) class InstanceGroup include Google::Apis::Core::Hashable @@ -11247,10 +11644,14 @@ module Google end end - # An Instance Group Manager resource. (== resource_for beta. - # instanceGroupManagers ==) (== resource_for v1.instanceGroupManagers ==) (== - # resource_for beta.regionInstanceGroupManagers ==) (== resource_for v1. - # regionInstanceGroupManagers ==) + # Represents a Managed Instance Group resource. + # An instance group is a collection of VM instances that you can manage as a + # 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 ==) class InstanceGroupManager include Google::Apis::Core::Hashable @@ -11994,7 +12395,11 @@ module Google # @return [String] attr_accessor :replacement_method - # + # The type of update process. You can specify either PROACTIVE so that the + # instance group manager proactively executes actions in order to bring + # instances to their target versions or OPPORTUNISTIC so that no action is + # proactively executed but the update will be performed as part of other actions + # (for example, resizes or recreateInstances calls). # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -12080,9 +12485,9 @@ module Google class InstanceGroupManagersApplyUpdatesRequest include Google::Apis::Core::Hashable - # The list of URLs of one or more instances for which we want to apply updates - # on this managed instance group. This can be a full URL or a partial URL, such - # as zones/[ZONE]/instances/[INSTANCE_NAME]. + # The list of URLs of one or more instances for which you want to apply updates. + # Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[ + # INSTANCE_NAME]. # Corresponds to the JSON property `instances` # @return [Array] attr_accessor :instances @@ -12093,13 +12498,26 @@ module Google # @return [String] attr_accessor :maximal_action - # The minimal action that should be perfomed on the instances. By default NONE. + # The minimal action that you want to perform on each instance during the update: + # + # - REPLACE: At minimum, delete the instance and create it again. + # - RESTART: Stop the instance and start it again. + # - REFRESH: Do not stop the instance. + # - NONE: Do not disrupt the instance at all. By default, the minimum action is + # NONE. If your update requires a more disruptive action than you set with this + # flag, the necessary action is performed to execute the update. # Corresponds to the JSON property `minimalAction` # @return [String] attr_accessor :minimal_action - # The most disruptive action that allowed to be performed on the instances. By - # default REPLACE. + # The most disruptive action that you want to perform on each instance during + # the update: + # - REPLACE: Delete the instance and create it again. + # - RESTART: Stop the instance and start it again. + # - REFRESH: Do not stop the instance. + # - NONE: Do not disrupt the instance at all. By default, the most disruptive + # allowed action is REPLACE. If your update requires a more disruptive action + # than you set with this flag, the update request will fail. # Corresponds to the JSON property `mostDisruptiveAllowedAction` # @return [String] attr_accessor :most_disruptive_allowed_action @@ -12183,6 +12601,35 @@ module Google end end + # + class InstanceGroupManagersListErrorsResponse + include Google::Apis::Core::Hashable + + # [Output Only] The list of errors of the managed instance group. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @items = args[:items] if args.key?(:items) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # class InstanceGroupManagersListManagedInstancesResponse include Google::Apis::Core::Hashable @@ -13116,6 +13563,101 @@ module Google end end + # + class InstanceManagedByIgmError + include Google::Apis::Core::Hashable + + # [Output Only] Contents of the error. + # Corresponds to the JSON property `error` + # @return [Google::Apis::ComputeAlpha::InstanceManagedByIgmErrorManagedInstanceError] + attr_accessor :error + + # [Output Only] Details of the instance action that triggered this error. May be + # null, if the error was not caused by an action on an instance. This field is + # optional. + # Corresponds to the JSON property `instanceActionDetails` + # @return [Google::Apis::ComputeAlpha::InstanceManagedByIgmErrorInstanceActionDetails] + attr_accessor :instance_action_details + + # [Output Only] The time that this error occurred. This value is in RFC3339 text + # format. + # Corresponds to the JSON property `timestamp` + # @return [String] + attr_accessor :timestamp + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @error = args[:error] if args.key?(:error) + @instance_action_details = args[:instance_action_details] if args.key?(:instance_action_details) + @timestamp = args[:timestamp] if args.key?(:timestamp) + end + end + + # + class InstanceManagedByIgmErrorInstanceActionDetails + include Google::Apis::Core::Hashable + + # [Output Only] Action that managed instance group was executing on the instance + # when the error occurred. Possible values: + # Corresponds to the JSON property `action` + # @return [String] + attr_accessor :action + + # [Output Only] The URL of the instance. The URL can be set even if the instance + # has not yet been created. + # Corresponds to the JSON property `instance` + # @return [String] + attr_accessor :instance + + # [Output Only] Version this instance was created from, or was being created + # from, but the creation failed. Corresponds to one of the versions that were + # set on the Instance Group Manager resource at the time this instance was being + # created. + # Corresponds to the JSON property `version` + # @return [Google::Apis::ComputeAlpha::ManagedInstanceVersion] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action = args[:action] if args.key?(:action) + @instance = args[:instance] if args.key?(:instance) + @version = args[:version] if args.key?(:version) + end + end + + # + class InstanceManagedByIgmErrorManagedInstanceError + include Google::Apis::Core::Hashable + + # [Output Only] Error code. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Error message. + # 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) + @message = args[:message] if args.key?(:message) + end + end + # class InstanceMoveRequest include Google::Apis::Core::Hashable @@ -13223,7 +13765,7 @@ module Google # @return [Google::Apis::ComputeAlpha::ReservationAffinity] attr_accessor :reservation_affinity - # Sets the scheduling options for an Instance. + # Sets the scheduling options for an Instance. NextID: 9 # Corresponds to the JSON property `scheduling` # @return [Google::Apis::ComputeAlpha::Scheduling] attr_accessor :scheduling @@ -13294,8 +13836,10 @@ module Google end end - # An Instance Template resource. (== resource_for beta.instanceTemplates ==) (== - # resource_for v1.instanceTemplates ==) + # 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 ==) class InstanceTemplate include Google::Apis::Core::Hashable @@ -13829,6 +14373,32 @@ module Google end end + # + class InstancesSetNameRequest + include Google::Apis::Core::Hashable + + # The current name of this resource, used to prevent conflicts. Provide the + # latest name when making a request to change name. + # Corresponds to the JSON property `currentName` + # @return [String] + attr_accessor :current_name + + # The name to be applied to the instance. Needs to be RFC 1035 compliant. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @current_name = args[:current_name] if args.key?(:current_name) + @name = args[:name] if args.key?(:name) + end + end + # class InstancesSetServiceAccountRequest include Google::Apis::Core::Hashable @@ -13910,10 +14480,11 @@ module Google end end - # Represents an Interconnects resource. The Interconnects resource is a - # dedicated connection between Google's network and your on-premises network. - # For more information, see the Dedicated overview page. (== resource_for v1. - # interconnects ==) (== resource_for beta.interconnects ==) + # 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 ==) class Interconnect include Google::Apis::Core::Hashable @@ -14132,8 +14703,10 @@ module Google end end - # Represents an InterconnectAttachment (VLAN attachment) resource. For more - # information, see Creating VLAN Attachments. (== resource_for beta. + # 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 ==) class InterconnectAttachment include Google::Apis::Core::Hashable @@ -14211,7 +14784,8 @@ module Google attr_accessor :edge_availability_domain # [Output Only] Google reference ID, to be used when raising support tickets - # with Google or otherwise to debug backend connectivity issues. + # with Google or otherwise to debug backend connectivity issues. [Deprecated] + # This field is not used. # Corresponds to the JSON property `googleReferenceId` # @return [String] attr_accessor :google_reference_id @@ -15120,9 +15694,10 @@ module Google end end - # Represents an InterconnectLocations resource. The InterconnectLocations - # resource describes the locations where you can connect to Google's networks. - # For more information, see Colocation Facilities. + # Represents an Interconnect Attachment (VLAN) Location resource. + # You can use this resource to find location details about an Interconnect + # attachment (VLAN). For more information about interconnect attachments, read + # Creating VLAN Attachments. class InterconnectLocation include Google::Apis::Core::Hashable @@ -16397,6 +16972,14 @@ module Google # @return [String] attr_accessor :description + # [Input Only] Specifies to create an application consistent machine image by + # informing the OS to prepare for the snapshot process. Currently only supported + # on Windows instances using the Volume Shadow Copy Service (VSS). + # Corresponds to the JSON property `guestFlush` + # @return [Boolean] + attr_accessor :guest_flush + alias_method :guest_flush?, :guest_flush + # [Output Only] A unique identifier for this machine image. The server defines # this identifier. # Corresponds to the JSON property `id` @@ -16434,6 +17017,13 @@ module Google # @return [String] attr_accessor :self_link_with_id + # [Input Only] The customer-supplied encryption key of the disks attached to the + # source instance. Required if the source disk is protected by a customer- + # supplied encryption key. + # Corresponds to the JSON property `sourceDiskEncryptionKeys` + # @return [Array] + attr_accessor :source_disk_encryption_keys + # The source instance used to create the machine image. You can provide this as # a partial or full URL to the resource. For example, the following are valid # values: @@ -16468,12 +17058,14 @@ module Google def update!(**args) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) + @guest_flush = args[:guest_flush] if args.key?(:guest_flush) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @machine_image_encryption_key = args[:machine_image_encryption_key] if args.key?(:machine_image_encryption_key) @name = args[:name] if args.key?(:name) @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) + @source_disk_encryption_keys = args[:source_disk_encryption_keys] if args.key?(:source_disk_encryption_keys) @source_instance = args[:source_instance] if args.key?(:source_instance) @source_instance_properties = args[:source_instance_properties] if args.key?(:source_instance_properties) @status = args[:status] if args.key?(:status) @@ -16605,8 +17197,10 @@ module Google end end - # A Machine Type resource. (== resource_for v1.machineTypes ==) (== resource_for - # beta.machineTypes ==) + # 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 ==) class MachineType include Google::Apis::Core::Hashable @@ -17593,9 +18187,10 @@ module Google end end - # Represents a Network resource. Read Virtual Private Cloud (VPC) Network - # Overview for more information. (== resource_for v1.networks ==) (== - # resource_for beta.networks ==) + # 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 ==) class Network include Google::Apis::Core::Hashable @@ -17625,14 +18220,14 @@ module Google # @return [String] attr_accessor :cross_vm_encryption - # An optional description of this resource. Provide this property when you - # create the resource. + # An optional description of this resource. Provide this field when you create + # the resource. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # [Output Only] The gateway address for default routing out of the network. This - # value is read only and is selected by GCP. + # [Output Only] The gateway address for default routing out of the network, + # selected by GCP. # Corresponds to the JSON property `gatewayIPv4` # @return [String] attr_accessor :gateway_i_pv4 @@ -17669,9 +18264,9 @@ module Google # 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. + # z0-9]*[a-z0-9])?. The first character must be a lowercase letter, and all + # following characters (except for the last character) must be a dash, lowercase + # letter, or digit. The last character must be a lowercase letter or digit. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -18509,8 +19104,8 @@ module Google # @return [Array] attr_accessor :access_configs - # An array of alias IP ranges for this network interface. Can only be specified - # for network interfaces on subnet-mode networks. + # An array of alias IP ranges for this network interface. You can only specify + # this field for network interfaces in VPC networks. # Corresponds to the JSON property `aliasIpRanges` # @return [Array] attr_accessor :alias_ip_ranges @@ -18535,8 +19130,8 @@ module Google # @return [String] attr_accessor :kind - # [Output Only] The name of the network interface, generated by the server. For - # network devices, these are eth0, eth1, etc. + # [Output Only] The name of the network interface, which is generated by the + # server. For network devices, these are eth0, eth1, etc. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -18545,8 +19140,6 @@ module Google # neither the network nor the subnetwork is specified, the default network # global/networks/default is used; if the network is not specified but the # subnetwork is specified, the network is inferred. - # This field is optional when creating a firewall rule. If not specified when - # creating a firewall rule, the default network global/networks/default is used. # If you specify this property, you can specify the network as a full or partial # URL. For example, the following are all valid URLs: # - https://www.googleapis.com/compute/v1/projects/project/global/networks/ @@ -18557,7 +19150,7 @@ module Google # @return [String] attr_accessor :network - # An IPv4 internal network address to assign to the instance for this network + # An IPv4 internal IP address to assign to the instance for this network # interface. If not specified by the user, an unused internal IP is assigned by # the system. # Corresponds to the JSON property `networkIP` @@ -18565,9 +19158,9 @@ module Google attr_accessor :network_ip # The URL of the Subnetwork resource for this instance. If the network resource - # is in legacy mode, do not provide this property. If the network is in auto - # subnet mode, providing the subnetwork is optional. If the network is in custom - # subnet mode, then this field should be specified. If you specify this property, + # is in legacy mode, do not specify this field. If the network is in auto subnet + # mode, specifying the subnetwork is optional. If the network is in custom + # subnet mode, specifying the subnetwork is required. If you specify this field, # you can specify the subnetwork as a full or partial URL. For example, the # following are all valid URLs: # - https://www.googleapis.com/compute/v1/projects/project/regions/region/ @@ -18726,7 +19319,7 @@ module Google attr_accessor :advertise_peer_subnets_via_routers alias_method :advertise_peer_subnets_via_routers?, :advertise_peer_subnets_via_routers - # This field will be deprecated soon. Prefer using exchange_subnet_routes + # This field will be deprecated soon. Use the exchange_subnet_routes field # instead. Indicates whether full mesh connectivity is created and managed # automatically. When it is set to true, Google Compute Engine will # automatically create and manage the routes between two networks when the state @@ -18778,10 +19371,10 @@ module Google # Name of this peering. Provided by the client when the peering is created. The # name must comply with RFC1035. Specifically, the name must be 1-63 characters - # long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the - # first character must be a lowercase letter, and all the following characters - # must be a dash, lowercase letter, or digit, except the last character, which - # cannot be a dash. + # long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first + # character must be a lowercase letter, and all the 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 @@ -18799,7 +19392,8 @@ module Google # @return [Fixnum] attr_accessor :peer_mtu - # [Output Only] State for the peering. + # [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The + # peering is `ACTIVE` when there's a matching configuration in the peer network. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state @@ -18836,9 +19430,9 @@ module Google class NetworkRoutingConfig include Google::Apis::Core::Hashable - # The network-wide routing mode to use. If set to REGIONAL, this network's cloud - # routers will only advertise routes with subnets of this network in the same - # region as the router. If set to GLOBAL, this network's cloud routers will + # The network-wide routing mode to use. If set to REGIONAL, this network's Cloud + # Routers will only advertise routes with subnets of this network in the same + # region as the router. If set to GLOBAL, this network's Cloud Routers will # advertise routes with all subnets of this network, across regions. # Corresponds to the JSON property `routingMode` # @return [String] @@ -18858,7 +19452,7 @@ module Google class NetworksAddPeeringRequest include Google::Apis::Core::Hashable - # This field will be deprecated soon. Prefer using exchange_subnet_routes in + # This field will be deprecated soon. Use exchange_subnet_routes in # network_peering instead. Whether Google Compute Engine manages the routes # automatically. # Corresponds to the JSON property `autoCreateRoutes` @@ -18866,14 +19460,14 @@ module Google attr_accessor :auto_create_routes alias_method :auto_create_routes?, :auto_create_routes - # This field will be deprecated soon. Prefer using export_custom_routes in + # This field will be deprecated soon. Use export_custom_routes in # network_peering instead. Whether to export the custom routes to peer network. # Corresponds to the JSON property `exportCustomRoutes` # @return [Boolean] attr_accessor :export_custom_routes alias_method :export_custom_routes?, :export_custom_routes - # This field will be deprecated soon. Prefer using import_custom_routes in + # This field will be deprecated soon. Use import_custom_routes in # network_peering instead. Whether to import the custom routes from peer network. # Corresponds to the JSON property `importCustomRoutes` # @return [Boolean] @@ -19006,10 +19600,13 @@ module Google end end - # A NodeGroup resource. To create a node group, you must first create a node - # templates. To learn more about node groups and sole-tenant nodes, read the - # Sole-tenant nodes documentation. (== resource_for beta.nodeGroups ==) (== - # resource_for v1.nodeGroups ==) + # Represent a sole-tenant Node Group resource. + # A sole-tenant node is a physical server that is dedicated to hosting VM + # 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 ==) NextID: 15 class NodeGroup include Google::Apis::Core::Hashable @@ -19706,9 +20303,10 @@ module Google end end - # A Node Template resource. To learn more about node templates and sole-tenant - # nodes, read the Sole-tenant nodes documentation. (== resource_for beta. - # nodeTemplates ==) (== resource_for v1.nodeTemplates ==) + # 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 ==) NextID: 16 class NodeTemplate include Google::Apis::Core::Hashable @@ -20183,7 +20781,12 @@ module Google end end - # A Node Type resource. + # Represent a sole-tenant Node Type resource. + # Each node within a node group must have a node type. A node type specifies the + # 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 ==) class NodeType include Google::Apis::Core::Hashable @@ -20840,7 +21443,14 @@ module Google end end - # An Operation resource, used to manage asynchronous API requests. (== + # Represents an Operation resource. + # 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. + # - For global operations, use the globalOperations resource. + # - 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 @@ -20928,9 +21538,7 @@ module Google attr_accessor :progress # [Output Only] The URL of the region where the operation resides. Only - # available when performing regional operations. You must specify this field as - # part of the HTTP request URL. It is not settable as a field in the request - # body. + # applicable when performing regional operations. # Corresponds to the JSON property `region` # @return [String] attr_accessor :region @@ -20987,9 +21595,8 @@ module Google # @return [Array] attr_accessor :warnings - # [Output Only] The URL of the zone where the operation resides. Only available - # when performing per-zone operations. You must specify this field as part of - # the HTTP request URL. It is not settable as a field in the request body. + # [Output Only] The URL of the zone where the operation resides. Only applicable + # when performing per-zone operations. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -21626,6 +22233,743 @@ module Google end end + # Next free: 7 + class PacketIntervals + include Google::Apis::Core::Hashable + + # Average observed inter-packet interval in milliseconds. + # Corresponds to the JSON property `avgMs` + # @return [Fixnum] + attr_accessor :avg_ms + + # From how long ago in the past these intervals were observed. + # Corresponds to the JSON property `duration` + # @return [String] + attr_accessor :duration + + # Maximum observed inter-packet interval in milliseconds. + # Corresponds to the JSON property `maxMs` + # @return [Fixnum] + attr_accessor :max_ms + + # Minimum observed inter-packet interval in milliseconds. + # Corresponds to the JSON property `minMs` + # @return [Fixnum] + attr_accessor :min_ms + + # Number of inter-packet intervals from which these statistics were derived. + # Corresponds to the JSON property `numIntervals` + # @return [Fixnum] + attr_accessor :num_intervals + + # The type of packets for which inter-packet intervals were computed. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @avg_ms = args[:avg_ms] if args.key?(:avg_ms) + @duration = args[:duration] if args.key?(:duration) + @max_ms = args[:max_ms] if args.key?(:max_ms) + @min_ms = args[:min_ms] if args.key?(:min_ms) + @num_intervals = args[:num_intervals] if args.key?(:num_intervals) + @type = args[:type] if args.key?(:type) + 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::ComputeAlpha::PacketMirroringForwardingRuleInfo] + attr_accessor :collector_ilb + + # + # Corresponds to the JSON property `collectors` + # @return [Google::Apis::ComputeAlpha::PacketMirroringCollectorInfo] + attr_accessor :collectors + + # [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::ComputeAlpha::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. Each mirroredResourceInfo specifies a + # set of mirrored VM instances and/or a set of subnetworks for which traffic + # from/to all VM instances will be mirrored. + # Corresponds to the JSON property `mirroredResources` + # @return [Google::Apis::ComputeAlpha::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::ComputeAlpha::PacketMirroringNetworkInfo] + attr_accessor :network + + # PacketMirroring packetMatchers. Each packetMatcher specifies a CIRD filter + # that will apply to the source or destination IP in the IP header for the + # mirrored VM traffic. + # Corresponds to the JSON property `packetMatchers` + # @return [Array] + attr_accessor :packet_matchers + + # 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 + + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @collector_ilb = args[:collector_ilb] if args.key?(:collector_ilb) + @collectors = args[:collectors] if args.key?(:collectors) + @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) + @packet_matchers = args[:packet_matchers] if args.key?(:packet_matchers) + @priority = args[:priority] if args.key?(:priority) + @region = args[:region] if args.key?(:region) + @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) + 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::ComputeAlpha::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 PacketMirroringCollectorInfo + include Google::Apis::Core::Hashable + + # A set of virtual machines configured as destination of the mirrored traffic. + # They must live in zones contained in the same region as this packetMirroring. + # Corresponds to the JSON property `instances` + # @return [Array] + attr_accessor :instances + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instances = args[:instances] if args.key?(:instances) + end + end + + # + class PacketMirroringCollectorInfoInstanceInfo + include Google::Apis::Core::Hashable + + # Resource URL to the virtual machine instance 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) + @url = args[:url] if args.key?(:url) + 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 `IPProtocol` + # @return [Array] + attr_accessor :ip_protocol + + # 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_protocol = args[:ip_protocol] if args.key?(:ip_protocol) + @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::ComputeAlpha::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 zones contained 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 PacketMirroringPacketMatcher + include Google::Apis::Core::Hashable + + # IP CIDR range that applies as filter on the source or destination IP in the IP + # header. Only IPv4 is supported. + # Corresponds to the JSON property `cidrRange` + # @return [String] + attr_accessor :cidr_range + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cidr_range = args[:cidr_range] if args.key?(:cidr_range) + 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::ComputeAlpha::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. @@ -22186,8 +23530,10 @@ module Google end end - # A Project resource. For an overview of projects, see Cloud Platform Resource - # Hierarchy. (== resource_for v1.projects ==) (== resource_for beta.projects ==) + # 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 ==) class Project include Google::Apis::Core::Hashable @@ -22527,8 +23873,10 @@ module Google end end - # Region resource. (== resource_for beta.regions ==) (== resource_for v1.regions - # ==) + # 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 ==) class Region include Google::Apis::Core::Hashable @@ -23248,8 +24596,9 @@ module Google class RegionInstanceGroupManagersApplyUpdatesRequest include Google::Apis::Core::Hashable - # The list of instances for which we want to apply changes on this managed - # instance group. + # The list of URLs of one or more instances for which you want to apply updates. + # Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[ + # INSTANCE_NAME]. # Corresponds to the JSON property `instances` # @return [Array] attr_accessor :instances @@ -23260,13 +24609,26 @@ module Google # @return [String] attr_accessor :maximal_action - # The minimal action that should be perfomed on the instances. By default NONE. + # The minimal action that you want to perform on each instance during the update: + # + # - REPLACE: At minimum, delete the instance and create it again. + # - RESTART: Stop the instance and start it again. + # - REFRESH: Do not stop the instance. + # - NONE: Do not disrupt the instance at all. By default, the minimum action is + # NONE. If your update requires a more disruptive action than you set with this + # flag, the necessary action is performed to execute the update. # Corresponds to the JSON property `minimalAction` # @return [String] attr_accessor :minimal_action - # The most disruptive action that allowed to be performed on the instances. By - # default REPLACE. + # The most disruptive action that you want to perform on each instance during + # the update: + # - REPLACE: Delete the instance and create it again. + # - RESTART: Stop the instance and start it again. + # - REFRESH: Do not stop the instance. + # - NONE: Do not disrupt the instance at all. By default, the most disruptive + # allowed action is REPLACE. If your update requires a more disruptive action + # than you set with this flag, the update request will fail. # Corresponds to the JSON property `mostDisruptiveAllowedAction` # @return [String] attr_accessor :most_disruptive_allowed_action @@ -23323,6 +24685,35 @@ module Google end end + # + class RegionInstanceGroupManagersListErrorsResponse + include Google::Apis::Core::Hashable + + # [Output Only] The list of errors of the managed instance group. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @items = args[:items] if args.key?(:items) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # class RegionInstanceGroupManagersListInstanceConfigsResp include Google::Apis::Core::Hashable @@ -23976,7 +25367,7 @@ module Google end end - # Reservation resource + # Reservation resource NextID: 13 class Reservation include Google::Apis::Core::Hashable @@ -24043,6 +25434,11 @@ module Google attr_accessor :specific_reservation_required alias_method :specific_reservation_required?, :specific_reservation_required + # [Output Only] The status of the reservation. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + # Zone in which the reservation resides, must be provided if reservation is # created with commitment creation. # Corresponds to the JSON property `zone` @@ -24065,6 +25461,7 @@ module Google @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @specific_reservation = args[:specific_reservation] if args.key?(:specific_reservation) @specific_reservation_required = args[:specific_reservation_required] if args.key?(:specific_reservation_required) + @status = args[:status] if args.key?(:status) @zone = args[:zone] if args.key?(:zone) end end @@ -25263,20 +26660,11 @@ module Google end end - # Represents a Route resource. A route specifies how certain packets should be - # handled by the network. Routes are associated with instances by tags and the - # set of routes for a particular instance is called its routing table. - # For each packet leaving an instance, the system searches that instance's - # routing table for a single best matching route. Routes match packets by - # destination IP address, preferring smaller or more specific ranges over larger - # ones. If there is a tie, the system selects the route with the smallest - # priority value. If there is still a tie, it uses the layer three and four - # packet headers to select just one of the remaining matching routes. The packet - # is then forwarded as specified by the nextHop field of the winning route - - # either to another instance destination, an instance gateway, or a Google - # Compute Engine-operated gateway. - # Packets that do not match any route in the sending instance's routing table - # are dropped. (== resource_for beta.routes ==) (== resource_for v1.routes ==) + # 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 ==) class Route include Google::Apis::Core::Hashable @@ -25285,8 +26673,8 @@ module Google # @return [String] attr_accessor :creation_timestamp - # An optional description of this resource. Provide this property when you - # create the resource. + # An optional description of this resource. Provide this field when you create + # the resource. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description @@ -25311,9 +26699,9 @@ module Google # 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. + # z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all + # following characters (except for the last character) must be a dash, lowercase + # letter, or digit. The last character must be a lowercase letter or digit. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -25324,7 +26712,7 @@ module Google attr_accessor :network # The URL to a gateway that should handle matching packets. You can only specify - # the internet gateway using a full or partial valid URL: projects// + # the internet gateway using a full or partial valid URL: projects/project/ # global/gateways/default-internet-gateway # Corresponds to the JSON property `nextHopGateway` # @return [String] @@ -25378,9 +26766,10 @@ module Google attr_accessor :next_hop_vpn_tunnel # The priority of this route. Priority is used to break ties in cases where - # there is more than one matching route of equal prefix length. In the case of - # two routes with equal prefix length, the one with the lowest-numbered priority - # value wins. Default value is 1000. Valid range is 0 through 65535. + # there is more than one matching route of equal prefix length. In cases where + # multiple routes have equal prefix length, the one with the lowest-numbered + # priority value wins. The default value is `1000`. The priority value must be + # from `0` to `65535`, inclusive. # Corresponds to the JSON property `priority` # @return [Fixnum] attr_accessor :priority @@ -25616,7 +27005,8 @@ module Google end end - # Router resource. + # Represents a Cloud Router resource. + # For more information about Cloud Router, read the the Cloud Router overview. class Router include Google::Apis::Core::Hashable @@ -26042,7 +27432,7 @@ module Google # router. If BFD echo mode is enabled on this router and the peer router, this # value is used to negotiate the interval between BFD echo packets transmitted # by the peer router. Otherwise, it will be used to determine the interval - # between BFD control packets. If set, this value must be between 33 and 30000. + # between BFD control packets. If set, this value must be between 100 and 30000. # The default is 300. # Corresponds to the JSON property `minReceiveInterval` # @return [Fixnum] @@ -26054,7 +27444,7 @@ module Google # the other router. If BFD echo mode is enabled on this router and the peer # router, this value is used to negotiate the interval between BFD echo packets # transmitted by this router. Otherwise, it will be used to determine the - # interval between BFD control packets. If set, this value must be between 33 + # interval between BFD control packets. If set, this value must be between 100 # and 30000. The default is 300. # Corresponds to the JSON property `minTransmitInterval` # @return [Fixnum] @@ -26525,6 +27915,11 @@ module Google # @return [Array] attr_accessor :advertised_routes + # Next free: 15 + # Corresponds to the JSON property `bfdStatus` + # @return [Google::Apis::ComputeAlpha::BfdStatus] + attr_accessor :bfd_status + # IP address of the local BGP interface. # Corresponds to the JSON property `ipAddress` # @return [String] @@ -26578,6 +27973,7 @@ module Google # Update properties of this object def update!(**args) @advertised_routes = args[:advertised_routes] if args.key?(:advertised_routes) + @bfd_status = args[:bfd_status] if args.key?(:bfd_status) @ip_address = args[:ip_address] if args.key?(:ip_address) @linked_vpn_tunnel = args[:linked_vpn_tunnel] if args.key?(:linked_vpn_tunnel) @name = args[:name] if args.key?(:name) @@ -26685,7 +28081,8 @@ module Google class RoutersPreviewResponse include Google::Apis::Core::Hashable - # Router resource. + # Represents a Cloud Router resource. + # For more information about Cloud Router, read the the Cloud Router overview. # Corresponds to the JSON property `resource` # @return [Google::Apis::ComputeAlpha::Router] attr_accessor :resource @@ -27040,7 +28437,7 @@ module Google end end - # Sets the scheduling options for an Instance. + # Sets the scheduling options for an Instance. NextID: 9 class Scheduling include Google::Apis::Core::Hashable @@ -27759,13 +29156,6 @@ module Google # @return [Google::Apis::ComputeAlpha::ClientTlsSettings] attr_accessor :client_tls_settings - # A selector associated with the SecuritySettings. If the labels and port in - # this selector match the Envoy's label and port, the server side authentication - # and authorization settings are applied to the Envoy. - # Corresponds to the JSON property `serverSettingsSelector` - # @return [Google::Apis::ComputeAlpha::ServerSecuritySettingsSelector] - attr_accessor :server_settings_selector - def initialize(**args) update!(**args) end @@ -27775,7 +29165,6 @@ module Google @authentication_policy = args[:authentication_policy] if args.key?(:authentication_policy) @authorization_config = args[:authorization_config] if args.key?(:authorization_config) @client_tls_settings = args[:client_tls_settings] if args.key?(:client_tls_settings) - @server_settings_selector = args[:server_settings_selector] if args.key?(:server_settings_selector) end end @@ -27846,33 +29235,6 @@ module Google end end - # A selector associated with the SecuritySettings. If the labels and port in - # this selector match the Envoy's label and port, the server side authentication - # and authorization settings are applied to the Envoy. - class ServerSecuritySettingsSelector - include Google::Apis::Core::Hashable - - # The labels associated with the XDS client. - # Corresponds to the JSON property `labelMatches` - # @return [Array] - attr_accessor :label_matches - - # The listener port of the XDS client. - # Corresponds to the JSON property `port` - # @return [Fixnum] - attr_accessor :port - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @label_matches = args[:label_matches] if args.key?(:label_matches) - @port = args[:port] if args.key?(:port) - end - end - # The TLS settings for the server. class ServerTlsSettings include Google::Apis::Core::Hashable @@ -27935,31 +29297,6 @@ module Google end end - # JWT credentials for a service account. - class ServiceAccountJwtAccessCredentials - include Google::Apis::Core::Hashable - - # Service account key. - # Corresponds to the JSON property `jsonKey` - # @return [String] - attr_accessor :json_key - - # The token lifetime seconds. - # Corresponds to the JSON property `tokenLifetimeSeconds` - # @return [Fixnum] - attr_accessor :token_lifetime_seconds - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @json_key = args[:json_key] if args.key?(:json_key) - @token_lifetime_seconds = args[:token_lifetime_seconds] if args.key?(:token_lifetime_seconds) - end - end - # A set of Shielded Instance options. class ShieldedInstanceConfig include Google::Apis::Core::Hashable @@ -28217,8 +29554,10 @@ module Google end end - # A persistent disk snapshot resource. (== resource_for beta.snapshots ==) (== - # resource_for v1.snapshots ==) + # 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 ==) class Snapshot include Google::Apis::Core::Hashable @@ -28510,6 +29849,35 @@ module Google end end + # + class SourceDiskEncryptionKey + include Google::Apis::Core::Hashable + + # Represents a customer-supplied encryption key + # Corresponds to the JSON property `diskEncryptionKey` + # @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey] + attr_accessor :disk_encryption_key + + # URL of the disk attached to the source instance. This can be a full or valid + # partial URL. For example, the following are valid values: + # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk + # - projects/project/zones/zone/disks/disk + # - zones/zone/disks/disk + # Corresponds to the JSON property `sourceDisk` + # @return [String] + attr_accessor :source_disk + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key) + @source_disk = args[:source_disk] if args.key?(:source_disk) + end + end + # A specification of the parameters to use when creating the instance template # from a source instance. class SourceInstanceParams @@ -28602,7 +29970,7 @@ module Google # @return [Array] attr_accessor :network_interfaces - # Sets the scheduling options for an Instance. + # Sets the scheduling options for an Instance. NextID: 9 # Corresponds to the JSON property `scheduling` # @return [Google::Apis::ComputeAlpha::Scheduling] attr_accessor :scheduling @@ -29561,7 +30929,7 @@ module Google include Google::Apis::Core::Hashable # Disks created on the instances that will be preserved on instance delete, - # resize down, etc. This map is keyed with the device names of the disks. + # update, etc. This map is keyed with the device names of the disks. # Corresponds to the JSON property `disks` # @return [Hash] attr_accessor :disks @@ -29599,8 +30967,11 @@ module Google end end - # A Subnetwork resource. (== resource_for beta.subnetworks ==) (== resource_for - # v1.subnetworks ==) + # Represents a Subnetwork resource. + # 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 ==) class Subnetwork include Google::Apis::Core::Hashable @@ -29755,6 +31126,15 @@ module Google # @return [String] attr_accessor :private_ipv6_google_access + # 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 + # ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE_FOR_SERVICE_ACCOUNTS or + # ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE_FOR_SERVICE_ACCOUNTS. + # Corresponds to the JSON property `privateIpv6GoogleAccessServiceAccounts` + # @return [Array] + attr_accessor :private_ipv6_google_access_service_accounts + # The purpose of the resource. This field can be either PRIVATE_RFC_1918 or # INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to # INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for @@ -29840,6 +31220,7 @@ module Google @network = args[:network] if args.key?(:network) @private_ip_google_access = args[:private_ip_google_access] if args.key?(:private_ip_google_access) @private_ipv6_google_access = args[:private_ipv6_google_access] if args.key?(:private_ipv6_google_access) + @private_ipv6_google_access_service_accounts = args[:private_ipv6_google_access_service_accounts] if args.key?(:private_ipv6_google_access_service_accounts) @purpose = args[:purpose] if args.key?(:purpose) @range_type = args[:range_type] if args.key?(:range_type) @region = args[:region] if args.key?(:region) @@ -31318,9 +32699,12 @@ module Google end end - # A TargetInstance resource. This resource defines an endpoint instance that - # terminates traffic of certain protocols. (== resource_for beta.targetInstances - # ==) (== resource_for v1.targetInstances ==) + # Represents a Target Instance resource. + # 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 ==) class TargetInstance include Google::Apis::Core::Hashable @@ -32814,7 +34198,9 @@ module Google end end - # Represents a Target VPN gateway resource. (== resource_for beta. + # 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 ==) class TargetVpnGateway include Google::Apis::Core::Hashable @@ -35139,8 +36525,9 @@ module Google end end - # VPN tunnel resource. (== resource_for beta.vpnTunnels ==) (== resource_for v1. - # vpnTunnels ==) + # 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 ==) class VpnTunnel include Google::Apis::Core::Hashable @@ -35913,8 +37300,11 @@ module Google end end - # A Zone resource. (== resource_for beta.zones ==) (== resource_for v1.zones ==) - # Next ID: 17 + # 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 ==) 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 9d57375a5..4a104abdb 100644 --- a/generated/google/apis/compute_alpha/representations.rb +++ b/generated/google/apis/compute_alpha/representations.rb @@ -322,6 +322,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 @@ -382,24 +388,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class BackendServiceAppEngineBackend - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class BackendServiceCdnPolicy class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class BackendServiceCloudFunctionBackend - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class BackendServiceFailoverPolicy class Representation < Google::Apis::Core::JsonRepresentation; end @@ -472,6 +466,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BfdPacket + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BfdStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BfdStatusPacketCounts + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Binding class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1072,6 +1084,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class HealthCheckLogConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class HealthCheckReference class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1084,6 +1102,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class HealthCheckServiceReference + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class HealthCheckServicesList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1498,6 +1522,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InstanceGroupManagersListErrorsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InstanceGroupManagersListManagedInstancesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1678,6 +1708,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InstanceManagedByIgmError + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstanceManagedByIgmErrorInstanceActionDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstanceManagedByIgmErrorManagedInstanceError + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InstanceMoveRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1798,6 +1846,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InstancesSetNameRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InstancesSetServiceAccountRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2866,6 +2920,126 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class PacketIntervals + class Representation < Google::Apis::Core::JsonRepresentation; end + + 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 PacketMirroringCollectorInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PacketMirroringCollectorInfoInstanceInfo + class Representation < Google::Apis::Core::JsonRepresentation; 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 PacketMirroringPacketMatcher + 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 @@ -3136,6 +3310,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RegionInstanceGroupManagersListErrorsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RegionInstanceGroupManagersListInstanceConfigsResp class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3778,12 +3958,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ServerSecuritySettingsSelector - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ServerTlsSettings class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3796,12 +3970,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class ServiceAccountJwtAccessCredentials - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ShieldedInstanceConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3880,6 +4048,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SourceDiskEncryptionKey + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SourceInstanceParams class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5526,6 +5700,8 @@ module Google property :mode, as: 'mode' property :queue_based_scaling, as: 'queueBasedScaling', class: Google::Apis::ComputeAlpha::AutoscalingPolicyQueueBasedScaling, decorator: Google::Apis::ComputeAlpha::AutoscalingPolicyQueueBasedScaling::Representation + property :scale_down_control, as: 'scaleDownControl', class: Google::Apis::ComputeAlpha::AutoscalingPolicyScaleDownControl, decorator: Google::Apis::ComputeAlpha::AutoscalingPolicyScaleDownControl::Representation + end end @@ -5572,6 +5748,15 @@ module Google end end + class AutoscalingPolicyScaleDownControl + # @private + 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_sec, as: 'timeWindowSec' + end + end + class Backend # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -5651,16 +5836,12 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :affinity_cookie_ttl_sec, as: 'affinityCookieTtlSec' - property :app_engine_backend, as: 'appEngineBackend', class: Google::Apis::ComputeAlpha::BackendServiceAppEngineBackend, decorator: Google::Apis::ComputeAlpha::BackendServiceAppEngineBackend::Representation - collection :backends, as: 'backends', class: Google::Apis::ComputeAlpha::Backend, decorator: Google::Apis::ComputeAlpha::Backend::Representation property :cdn_policy, as: 'cdnPolicy', class: Google::Apis::ComputeAlpha::BackendServiceCdnPolicy, decorator: Google::Apis::ComputeAlpha::BackendServiceCdnPolicy::Representation property :circuit_breakers, as: 'circuitBreakers', class: Google::Apis::ComputeAlpha::CircuitBreakers, decorator: Google::Apis::ComputeAlpha::CircuitBreakers::Representation - property :cloud_function_backend, as: 'cloudFunctionBackend', class: Google::Apis::ComputeAlpha::BackendServiceCloudFunctionBackend, decorator: Google::Apis::ComputeAlpha::BackendServiceCloudFunctionBackend::Representation - property :connection_draining, as: 'connectionDraining', class: Google::Apis::ComputeAlpha::ConnectionDraining, decorator: Google::Apis::ComputeAlpha::ConnectionDraining::Representation property :consistent_hash, as: 'consistentHash', class: Google::Apis::ComputeAlpha::ConsistentHashLoadBalancerSettings, decorator: Google::Apis::ComputeAlpha::ConsistentHashLoadBalancerSettings::Representation @@ -5682,6 +5863,7 @@ module Google property :log_config, as: 'logConfig', class: Google::Apis::ComputeAlpha::BackendServiceLogConfig, decorator: Google::Apis::ComputeAlpha::BackendServiceLogConfig::Representation property :name, as: 'name' + property :network, as: 'network' property :outlier_detection, as: 'outlierDetection', class: Google::Apis::ComputeAlpha::OutlierDetection, decorator: Google::Apis::ComputeAlpha::OutlierDetection::Representation property :port, as: 'port' @@ -5730,15 +5912,6 @@ module Google end end - class BackendServiceAppEngineBackend - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :app_engine_service, as: 'appEngineService' - property :target_project, as: 'targetProject' - property :version, as: 'version' - end - end - class BackendServiceCdnPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -5749,14 +5922,6 @@ module Google end end - class BackendServiceCloudFunctionBackend - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :function_name, as: 'functionName' - property :target_project, as: 'targetProject' - end - end - class BackendServiceFailoverPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -5872,6 +6037,64 @@ module Google end end + class BfdPacket + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :authentication_present, as: 'authenticationPresent' + property :control_plane_independent, as: 'controlPlaneIndependent' + property :demand, as: 'demand' + property :diagnostic, as: 'diagnostic' + property :final, as: 'final' + property :length, as: 'length' + property :min_echo_rx_interval_ms, as: 'minEchoRxIntervalMs' + property :min_rx_interval_ms, as: 'minRxIntervalMs' + property :min_tx_interval_ms, as: 'minTxIntervalMs' + property :multiplier, as: 'multiplier' + property :multipoint, as: 'multipoint' + property :my_discriminator, as: 'myDiscriminator' + property :poll, as: 'poll' + property :state, as: 'state' + property :version, as: 'version' + property :your_discriminator, as: 'yourDiscriminator' + end + end + + class BfdStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bfd_session_initialization_mode, as: 'bfdSessionInitializationMode' + property :config_update_timestamp_micros, :numeric_string => true, as: 'configUpdateTimestampMicros' + property :control_packet_counts, as: 'controlPacketCounts', class: Google::Apis::ComputeAlpha::BfdStatusPacketCounts, decorator: Google::Apis::ComputeAlpha::BfdStatusPacketCounts::Representation + + collection :control_packet_intervals, as: 'controlPacketIntervals', class: Google::Apis::ComputeAlpha::PacketIntervals, decorator: Google::Apis::ComputeAlpha::PacketIntervals::Representation + + property :echo_packet_counts, as: 'echoPacketCounts', class: Google::Apis::ComputeAlpha::BfdStatusPacketCounts, decorator: Google::Apis::ComputeAlpha::BfdStatusPacketCounts::Representation + + collection :echo_packet_intervals, as: 'echoPacketIntervals', class: Google::Apis::ComputeAlpha::PacketIntervals, decorator: Google::Apis::ComputeAlpha::PacketIntervals::Representation + + property :local_diagnostic, as: 'localDiagnostic' + property :local_state, as: 'localState' + property :negotiated_local_control_tx_interval_ms, as: 'negotiatedLocalControlTxIntervalMs' + property :negotiated_local_echo_tx_interval_ms, as: 'negotiatedLocalEchoTxIntervalMs' + property :rx_packet, as: 'rxPacket', class: Google::Apis::ComputeAlpha::BfdPacket, decorator: Google::Apis::ComputeAlpha::BfdPacket::Representation + + property :tx_packet, as: 'txPacket', class: Google::Apis::ComputeAlpha::BfdPacket, decorator: Google::Apis::ComputeAlpha::BfdPacket::Representation + + property :uptime_ms, :numeric_string => true, as: 'uptimeMs' + property :using_echo_mode, as: 'usingEchoMode' + end + end + + class BfdStatusPacketCounts + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :num_rx, as: 'numRx' + property :num_rx_rejected, as: 'numRxRejected' + property :num_rx_successful, as: 'numRxSuccessful' + property :num_tx, as: 'numTx' + end + end + class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -5904,12 +6127,9 @@ module Google class CallCredentials # @private class Representation < Google::Apis::Core::JsonRepresentation - property :access_token, as: 'accessToken' property :call_credential_type, as: 'callCredentialType' property :from_plugin, as: 'fromPlugin', class: Google::Apis::ComputeAlpha::MetadataCredentialsFromPlugin, decorator: Google::Apis::ComputeAlpha::MetadataCredentialsFromPlugin::Representation - property :jwt_service_account, as: 'jwtServiceAccount', class: Google::Apis::ComputeAlpha::ServiceAccountJwtAccessCredentials, decorator: Google::Apis::ComputeAlpha::ServiceAccountJwtAccessCredentials::Representation - end end @@ -6152,6 +6372,7 @@ module Google property :description, as: 'description' property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation + property :erase_windows_vss_signature, as: 'eraseWindowsVssSignature' collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeAlpha::GuestOsFeature, decorator: Google::Apis::ComputeAlpha::GuestOsFeature::Representation property :id, :numeric_string => true, as: 'id' @@ -6170,6 +6391,7 @@ module Google collection :replica_zones, as: 'replicaZones' collection :resource_policies, as: 'resourcePolicies' property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' property :size_gb, :numeric_string => true, as: 'sizeGb' property :source_disk, as: 'sourceDisk' property :source_disk_id, as: 'sourceDiskId' @@ -6688,6 +6910,7 @@ module Google 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 :label_fingerprint, :base64 => true, as: 'labelFingerprint' hash :labels, as: 'labels' @@ -6945,6 +7168,8 @@ module Google property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' + property :log_config, as: 'logConfig', class: Google::Apis::ComputeAlpha::HealthCheckLogConfig, decorator: Google::Apis::ComputeAlpha::HealthCheckLogConfig::Representation + property :name, as: 'name' property :region, as: 'region' property :self_link, as: 'selfLink' @@ -6993,6 +7218,14 @@ module Google end end + class HealthCheckLogConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enable, as: 'enable' + property :filter, as: 'filter' + end + end + class HealthCheckReference # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -7018,6 +7251,13 @@ module Google end end + class HealthCheckServiceReference + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :health_check_service, as: 'healthCheckService' + end + end + class HealthCheckServicesList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -7130,6 +7370,8 @@ module Google property :health_check, as: 'healthCheck', class: Google::Apis::ComputeAlpha::HealthCheckReference, decorator: Google::Apis::ComputeAlpha::HealthCheckReference::Representation + property :health_check_service, as: 'healthCheckService', class: Google::Apis::ComputeAlpha::HealthCheckServiceReference, decorator: Google::Apis::ComputeAlpha::HealthCheckServiceReference::Representation + property :health_state, as: 'healthState' end end @@ -7505,6 +7747,7 @@ module Google property :display_device, as: 'displayDevice', class: Google::Apis::ComputeAlpha::DisplayDevice, decorator: Google::Apis::ComputeAlpha::DisplayDevice::Representation + property :erase_windows_vss_signature, as: 'eraseWindowsVssSignature' collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeAlpha::AcceleratorConfig, decorator: Google::Apis::ComputeAlpha::AcceleratorConfig::Representation property :hostname, as: 'hostname' @@ -7899,6 +8142,15 @@ module Google end end + class InstanceGroupManagersListErrorsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :items, as: 'items', class: Google::Apis::ComputeAlpha::InstanceManagedByIgmError, decorator: Google::Apis::ComputeAlpha::InstanceManagedByIgmError::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class InstanceGroupManagersListManagedInstancesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -8175,6 +8427,35 @@ module Google end end + class InstanceManagedByIgmError + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :error, as: 'error', class: Google::Apis::ComputeAlpha::InstanceManagedByIgmErrorManagedInstanceError, decorator: Google::Apis::ComputeAlpha::InstanceManagedByIgmErrorManagedInstanceError::Representation + + property :instance_action_details, as: 'instanceActionDetails', class: Google::Apis::ComputeAlpha::InstanceManagedByIgmErrorInstanceActionDetails, decorator: Google::Apis::ComputeAlpha::InstanceManagedByIgmErrorInstanceActionDetails::Representation + + property :timestamp, as: 'timestamp' + end + end + + class InstanceManagedByIgmErrorInstanceActionDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action, as: 'action' + property :instance, as: 'instance' + property :version, as: 'version', class: Google::Apis::ComputeAlpha::ManagedInstanceVersion, decorator: Google::Apis::ComputeAlpha::ManagedInstanceVersion::Representation + + end + end + + class InstanceManagedByIgmErrorManagedInstanceError + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :message, as: 'message' + end + end + class InstanceMoveRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -8384,6 +8665,14 @@ module Google end end + class InstancesSetNameRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :current_name, as: 'currentName' + property :name, as: 'name' + end + end + class InstancesSetServiceAccountRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -9000,6 +9289,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' + property :guest_flush, as: 'guestFlush' property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' property :machine_image_encryption_key, as: 'machineImageEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation @@ -9007,6 +9297,8 @@ module Google property :name, as: 'name' property :self_link, as: 'selfLink' property :self_link_with_id, as: 'selfLinkWithId' + collection :source_disk_encryption_keys, as: 'sourceDiskEncryptionKeys', class: Google::Apis::ComputeAlpha::SourceDiskEncryptionKey, decorator: Google::Apis::ComputeAlpha::SourceDiskEncryptionKey::Representation + property :source_instance, as: 'sourceInstance' property :source_instance_properties, as: 'sourceInstanceProperties', class: Google::Apis::ComputeAlpha::SourceInstanceProperties, decorator: Google::Apis::ComputeAlpha::SourceInstanceProperties::Representation @@ -10353,6 +10645,211 @@ module Google end end + class PacketIntervals + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :avg_ms, :numeric_string => true, as: 'avgMs' + property :duration, as: 'duration' + property :max_ms, :numeric_string => true, as: 'maxMs' + property :min_ms, :numeric_string => true, as: 'minMs' + property :num_intervals, :numeric_string => true, as: 'numIntervals' + property :type, as: 'type' + end + end + + class PacketMirroring + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :collector_ilb, as: 'collectorIlb', class: Google::Apis::ComputeAlpha::PacketMirroringForwardingRuleInfo, decorator: Google::Apis::ComputeAlpha::PacketMirroringForwardingRuleInfo::Representation + + property :collectors, as: 'collectors', class: Google::Apis::ComputeAlpha::PacketMirroringCollectorInfo, decorator: Google::Apis::ComputeAlpha::PacketMirroringCollectorInfo::Representation + + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :enable, as: 'enable' + property :filter, as: 'filter', class: Google::Apis::ComputeAlpha::PacketMirroringFilter, decorator: Google::Apis::ComputeAlpha::PacketMirroringFilter::Representation + + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :mirrored_resources, as: 'mirroredResources', class: Google::Apis::ComputeAlpha::PacketMirroringMirroredResourceInfo, decorator: Google::Apis::ComputeAlpha::PacketMirroringMirroredResourceInfo::Representation + + property :name, as: 'name' + property :network, as: 'network', class: Google::Apis::ComputeAlpha::PacketMirroringNetworkInfo, decorator: Google::Apis::ComputeAlpha::PacketMirroringNetworkInfo::Representation + + collection :packet_matchers, as: 'packetMatchers', class: Google::Apis::ComputeAlpha::PacketMirroringPacketMatcher, decorator: Google::Apis::ComputeAlpha::PacketMirroringPacketMatcher::Representation + + property :priority, as: 'priority' + property :region, as: 'region' + property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' + end + end + + class PacketMirroringAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeAlpha::PacketMirroringsScopedList, decorator: Google::Apis::ComputeAlpha::PacketMirroringsScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::PacketMirroringAggregatedList::Warning, decorator: Google::Apis::ComputeAlpha::PacketMirroringAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeAlpha::PacketMirroringAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::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 PacketMirroringCollectorInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :instances, as: 'instances', class: Google::Apis::ComputeAlpha::PacketMirroringCollectorInfoInstanceInfo, decorator: Google::Apis::ComputeAlpha::PacketMirroringCollectorInfoInstanceInfo::Representation + + end + end + + class PacketMirroringCollectorInfoInstanceInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :url, as: 'url' + end + end + + class PacketMirroringFilter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :ip_protocol, as: 'IPProtocol' + 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::ComputeAlpha::PacketMirroring, decorator: Google::Apis::ComputeAlpha::PacketMirroring::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::PacketMirroringList::Warning, decorator: Google::Apis::ComputeAlpha::PacketMirroringList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeAlpha::PacketMirroringList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::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::ComputeAlpha::PacketMirroringMirroredResourceInfoInstanceInfo, decorator: Google::Apis::ComputeAlpha::PacketMirroringMirroredResourceInfoInstanceInfo::Representation + + collection :subnetworks, as: 'subnetworks', class: Google::Apis::ComputeAlpha::PacketMirroringMirroredResourceInfoSubnetInfo, decorator: Google::Apis::ComputeAlpha::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 PacketMirroringPacketMatcher + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cidr_range, as: 'cidrRange' + end + end + + class PacketMirroringsScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :packet_mirrorings, as: 'packetMirrorings', class: Google::Apis::ComputeAlpha::PacketMirroring, decorator: Google::Apis::ComputeAlpha::PacketMirroring::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::PacketMirroringsScopedList::Warning, decorator: Google::Apis::ComputeAlpha::PacketMirroringsScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeAlpha::PacketMirroringsScopedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::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 @@ -10818,6 +11315,15 @@ module Google end end + class RegionInstanceGroupManagersListErrorsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :items, as: 'items', class: Google::Apis::ComputeAlpha::InstanceManagedByIgmError, decorator: Google::Apis::ComputeAlpha::InstanceManagedByIgmError::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class RegionInstanceGroupManagersListInstanceConfigsResp # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -11022,6 +11528,7 @@ module Google property :specific_reservation, as: 'specificReservation', class: Google::Apis::ComputeAlpha::AllocationSpecificSkuReservation, decorator: Google::Apis::ComputeAlpha::AllocationSpecificSkuReservation::Representation property :specific_reservation_required, as: 'specificReservationRequired' + property :status, as: 'status' property :zone, as: 'zone' end end @@ -11652,6 +12159,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :advertised_routes, as: 'advertisedRoutes', class: Google::Apis::ComputeAlpha::Route, decorator: Google::Apis::ComputeAlpha::Route::Representation + property :bfd_status, as: 'bfdStatus', class: Google::Apis::ComputeAlpha::BfdStatus, decorator: Google::Apis::ComputeAlpha::BfdStatus::Representation + property :ip_address, as: 'ipAddress' property :linked_vpn_tunnel, as: 'linkedVpnTunnel' property :name, as: 'name' @@ -11956,8 +12465,6 @@ module Google property :client_tls_settings, as: 'clientTlsSettings', class: Google::Apis::ComputeAlpha::ClientTlsSettings, decorator: Google::Apis::ComputeAlpha::ClientTlsSettings::Representation - property :server_settings_selector, as: 'serverSettingsSelector', class: Google::Apis::ComputeAlpha::ServerSecuritySettingsSelector, decorator: Google::Apis::ComputeAlpha::ServerSecuritySettingsSelector::Representation - end end @@ -11979,15 +12486,6 @@ module Google end end - class ServerSecuritySettingsSelector - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :label_matches, as: 'labelMatches', class: Google::Apis::ComputeAlpha::MetadataFilterLabelMatch, decorator: Google::Apis::ComputeAlpha::MetadataFilterLabelMatch::Representation - - property :port, as: 'port' - end - end - class ServerTlsSettings # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -12006,14 +12504,6 @@ module Google end end - class ServiceAccountJwtAccessCredentials - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :json_key, as: 'jsonKey' - property :token_lifetime_seconds, :numeric_string => true, as: 'tokenLifetimeSeconds' - end - end - class ShieldedInstanceConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -12155,6 +12645,15 @@ module Google end end + class SourceDiskEncryptionKey + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation + + property :source_disk, as: 'sourceDisk' + end + end + class SourceInstanceParams # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -12470,6 +12969,7 @@ module Google property :network, as: 'network' property :private_ip_google_access, as: 'privateIpGoogleAccess' property :private_ipv6_google_access, as: 'privateIpv6GoogleAccess' + collection :private_ipv6_google_access_service_accounts, as: 'privateIpv6GoogleAccessServiceAccounts' property :purpose, as: 'purpose' property :range_type, as: 'rangeType' property :region, as: 'region' diff --git a/generated/google/apis/compute_alpha/service.rb b/generated/google/apis/compute_alpha/service.rb index b96e06b29..dc8c0a9c0 100644 --- a/generated/google/apis/compute_alpha/service.rb +++ b/generated/google/apis/compute_alpha/service.rb @@ -396,8 +396,8 @@ module Google execute_or_queue_command(command, &block) end - # Creates an address resource in the specified project using the data included - # in the request. + # Creates an address resource in the specified project by using the data + # included in the request. # @param [String] project # Project ID for this request. # @param [String] region @@ -4311,8 +4311,8 @@ module Google execute_or_queue_command(command, &block) end - # Creates an address resource in the specified project using the data included - # in the request. + # Creates an address resource in the specified project by using the data + # included in the request. # @param [String] project # Project ID for this request. # @param [Google::Apis::ComputeAlpha::Address] address_object @@ -7879,6 +7879,87 @@ module Google execute_or_queue_command(command, &block) end + # Lists all errors thrown by actions on instances for a given managed instance + # group. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone where the managed instance group is located. It should + # conform to RFC1035. + # @param [String] instance_group_manager + # The name of the managed instance group. It must be a string that meets the + # requirements in RFC1035, or an unsigned long integer: must match regexp + # pattern: (?:[a-z](?:[-a-z0-9]`0,61`[a-z0-9])?)|[1-9][0-9]`0,19`. + # @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::ComputeAlpha::InstanceGroupManagersListErrorsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::InstanceGroupManagersListErrorsResponse] + # + # @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_instance_group_manager_errors(project, zone, instance_group_manager, 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}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors', options) + command.response_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersListErrorsResponse::Representation + command.response_class = Google::Apis::ComputeAlpha::InstanceGroupManagersListErrorsResponse + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.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 all of the instances in the managed instance group. Each instance in the # list has a currentAction, which indicates the action that the managed instance # group is performing on the instance. For example, if the group is still @@ -11104,6 +11185,60 @@ module Google execute_or_queue_command(command, &block) end + # Sets name of an instance. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] instance + # The instance name for this request. + # @param [Google::Apis::ComputeAlpha::InstancesSetNameRequest] instances_set_name_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::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_instance_name(project, zone, instance, instances_set_name_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/setName', options) + command.request_representation = Google::Apis::ComputeAlpha::InstancesSetNameRequest::Representation + command.request_object = instances_set_name_request_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['instance'] = instance unless instance.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Sets an instance's scheduling options. # @param [String] project # Project ID for this request. @@ -17409,6 +17544,336 @@ 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::ComputeAlpha::PacketMirroringAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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::ComputeAlpha::PacketMirroringAggregatedList::Representation + command.response_class = Google::Apis::ComputeAlpha::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::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::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::ComputeAlpha::PacketMirroring] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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::ComputeAlpha::PacketMirroring::Representation + command.response_class = Google::Apis::ComputeAlpha::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::ComputeAlpha::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::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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::ComputeAlpha::PacketMirroring::Representation + command.request_object = packet_mirroring_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::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::ComputeAlpha::PacketMirroringList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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::ComputeAlpha::PacketMirroringList::Representation + command.response_class = Google::Apis::ComputeAlpha::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 + + # 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::ComputeAlpha::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::ComputeAlpha::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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::ComputeAlpha::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeAlpha::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. @@ -17454,8 +17919,8 @@ module Google execute_or_queue_command(command, &block) end - # Disable a serivce resource (a.k.a service project) associated with this host - # project. + # Disable a service resource (also known as service project) associated with + # this host project. # @param [String] project # Project ID for this request. # @param [Google::Apis::ComputeAlpha::ProjectsDisableXpnResourceRequest] projects_disable_xpn_resource_request_object @@ -21088,6 +21553,86 @@ module Google execute_or_queue_command(command, &block) end + # Lists all errors thrown by actions on instances for a given regional managed + # instance group. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. This should conform to RFC1035. + # @param [String] instance_group_manager + # The name of the managed instance group. It must be a string that meets the + # requirements in RFC1035, or an unsigned long integer: must match regexp + # pattern: (?:[a-z](?:[-a-z0-9]`0,61`[a-z0-9])?)|[1-9][0-9]`0,19`. + # @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::ComputeAlpha::RegionInstanceGroupManagersListErrorsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersListErrorsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_region_instance_group_manager_errors(project, region, instance_group_manager, 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}/instanceGroupManagers/{instanceGroupManager}/listErrors', options) + command.response_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersListErrorsResponse::Representation + command.response_class = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersListErrorsResponse + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.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 instances in the managed instance group and instances that are # scheduled to be created. The list includes any current actions that the group # has scheduled for its instances. diff --git a/generated/google/apis/compute_beta.rb b/generated/google/apis/compute_beta.rb index ec8d342c8..e69ffd7c6 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 = '20190528' + REVISION = '20190530' # 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 ee93600ee..308495e0c 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -52,8 +52,12 @@ module Google end end - # An Accelerator Type resource. (== resource_for beta.acceleratorTypes ==) (== - # resource_for v1.acceleratorTypes ==) + # Represents an Accelerator Type resource. + # 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 = + # =) class AcceleratorType include Google::Apis::Core::Hashable @@ -463,8 +467,8 @@ module Google attr_accessor :kind # The name of this access configuration. The default and recommended name is - # External NAT but you can use any arbitrary string you would like. For example, - # My external IP or Network Access. + # External NAT, but you can use any arbitrary string, such as My external IP or + # Network Access. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -489,13 +493,13 @@ module Google # @return [String] attr_accessor :network_tier - # The DNS domain name for the public PTR record. This field can only be set when - # the set_public_ptr field is enabled. + # The DNS domain name for the public PTR record. You can set this field only if + # the `setPublicPtr` field is enabled. # Corresponds to the JSON property `publicPtrDomainName` # @return [String] attr_accessor :public_ptr_domain_name - # Specifies whether a public DNS ?PTR? record should be created to map the + # Specifies whether a public DNS 'PTR' record should be created to map the # external IP address of the instance to a DNS domain name. # Corresponds to the JSON property `setPublicPtr` # @return [Boolean] @@ -523,9 +527,21 @@ module Google end end - # A reserved address resource. (== resource_for beta.addresses ==) (== - # resource_for v1.addresses ==) (== resource_for beta.globalAddresses ==) (== - # resource_for v1.globalAddresses ==) + # 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 ==) class Address include Google::Apis::Core::Hashable @@ -545,8 +561,8 @@ module Google # @return [String] attr_accessor :creation_timestamp - # An optional description of this resource. Provide this property when you - # create the resource. + # An optional description of this resource. Provide this field when you create + # the resource. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description @@ -557,7 +573,7 @@ module Google # @return [Fixnum] attr_accessor :id - # The IP Version that will be used by this address. Valid options are IPV4 or + # The IP version that will be used by this address. Valid options are IPV4 or # IPV6. This can only be specified for a global address. # Corresponds to the JSON property `ipVersion` # @return [String] @@ -590,25 +606,25 @@ module Google # 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. + # z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all + # following characters (except for the last character) must be a dash, lowercase + # letter, or digit. The last character must be a lowercase letter or digit. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # The URL of the network in which to reserve the address. This field can only be - # used with INTERNAL type with VPC_PEERING purpose. + # used with INTERNAL type with the VPC_PEERING purpose. # Corresponds to the JSON property `network` # @return [String] attr_accessor :network - # This signifies the networking tier used for configuring this Address and can - # only take the following values: PREMIUM, STANDARD. Global forwarding rules can - # only be Premium Tier. Regional forwarding rules can be either Premium or + # This signifies the networking tier used for configuring this address and can + # only take the following values: PREMIUM or STANDARD. Global forwarding rules + # can only be Premium Tier. Regional forwarding rules can be either Premium or # Standard Tier. Standard Tier addresses applied to regional forwarding rules # can be used with any external load balancer. Regional forwarding rules in - # Premium Tier can only be used with a Network load balancer. + # Premium Tier can only be used with a network load balancer. # If this field is not specified, it is assumed to be PREMIUM. # Corresponds to the JSON property `networkTier` # @return [String] @@ -619,14 +635,20 @@ module Google # @return [Fixnum] attr_accessor :prefix_length - # The purpose of resource, only used with INTERNAL type. + # The purpose of this resource, which can be one of the following values: + # - `GCE_ENDPOINT` for addresses that are used by VM instances, alias IP ranges, + # internal load balancers, and similar resources. + # - `DNS_RESOLVER` for a DNS resolver address in a subnetwork + # - `VPC_PEERING` for addresses that are reserved for VPC peer networks. + # - `NAT_AUTO` for addresses that are external IP addresses automatically + # reserved for Cloud NAT. # Corresponds to the JSON property `purpose` # @return [String] attr_accessor :purpose - # [Output Only] URL of the region where the regional address resides. This field - # is not applicable to global addresses. You must specify this field as part of - # the HTTP request URL. You cannot set this field in the request body. + # [Output Only] The URL of the region where the regional address resides. This + # field is not applicable to global addresses. You must specify this field as + # part of the HTTP request URL. # Corresponds to the JSON property `region` # @return [String] attr_accessor :region @@ -647,7 +669,7 @@ module Google # The URL of the subnetwork in which to reserve the address. If an IP address is # specified, it must be within the subnetwork's IP range. This field can only be - # used with INTERNAL type with GCE_ENDPOINT/DNS_RESOLVER purposes. + # used with INTERNAL type with a GCE_ENDPOINT or DNS_RESOLVER purpose. # Corresponds to the JSON property `subnetwork` # @return [String] attr_accessor :subnetwork @@ -1016,18 +1038,17 @@ module Google class AliasIpRange include Google::Apis::Core::Hashable - # The IP CIDR range represented by this alias IP range. This IP CIDR range must + # The IP alias ranges to allocate for this interface. This IP CIDR range must # belong to the specified subnetwork and cannot contain IP addresses reserved by # system or used by other network interfaces. This range may be a single IP - # address (e.g. 10.2.3.4), a netmask (e.g. /24) or a CIDR format string (e.g. 10. - # 1.2.0/24). + # address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string + # (such as 10.1.2.0/24). # Corresponds to the JSON property `ipCidrRange` # @return [String] attr_accessor :ip_cidr_range - # Optional subnetwork secondary range name specifying the secondary range from - # which to allocate the IP CIDR range for this alias IP range. If left - # unspecified, the primary range of the subnetwork will be used. + # The name of a subnetwork secondary IP range from which to allocate an IP alias + # range. If not specified, the primary range of the subnetwork is used. # Corresponds to the JSON property `subnetworkRangeName` # @return [String] attr_accessor :subnetwork_range_name @@ -1202,7 +1223,8 @@ module Google # SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and # the request will fail if you attempt to attach a persistent disk in any other # format than SCSI. Local SSDs can use either NVME or SCSI. For performance - # characteristics of SCSI over NVMe, see Local SSD performance. + # characteristics of SCSI over NVMe, see Local SSD performance. TODO(b/131765817) + # : Update documentation when NVME is supported. # Corresponds to the JSON property `interface` # @return [String] attr_accessor :interface @@ -1485,12 +1507,15 @@ module Google end end - # Represents an Autoscaler resource. Autoscalers allow you to automatically - # scale virtual machine instances in managed instance groups according to an - # autoscaling policy that you define. For more information, read Autoscaling - # Groups of Instances. (== resource_for beta.autoscalers ==) (== resource_for v1. - # autoscalers ==) (== resource_for beta.regionAutoscalers ==) (== resource_for - # v1.regionAutoscalers ==) + # Represents an Autoscaler resource. + # 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 = + # =) class Autoscaler include Google::Apis::Core::Hashable @@ -3462,16 +3487,12 @@ module Google end end - # Represents a Commitment resource. Creating a Commitment resource means that - # you are purchasing a committed use contract with an explicit start and end - # time. You can create commitments based on vCPUs and memory usage and receive - # discounted rates. For full details, read Signing Up for Committed Use - # Discounts. - # Committed use discounts are subject to Google Cloud Platform's Service - # Specific Terms. By purchasing a committed use discount, you agree to these - # terms. Committed use discounts will not renew, so you must purchase a new - # commitment to continue receiving discounts. (== resource_for beta.commitments = - # =) (== resource_for v1.commitments ==) + # Represents a regional Commitment resource. + # Creating a commitment resource means that you are purchasing a committed use + # contract with an explicit start and end time. You can create commitments based + # on vCPUs and memory usage and receive discounted rates. For full details, read + # Signing Up for Committed Use Discounts. (== resource_for beta. + # regionCommitments ==) (== resource_for v1.regionCommitments ==) class Commitment include Google::Apis::Core::Hashable @@ -3557,6 +3578,13 @@ module Google # @return [String] attr_accessor :status_message + # The type of commitment, which affects the discount rate and the eligible + # resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply + # to memory optimized machines. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + def initialize(**args) update!(**args) end @@ -3577,6 +3605,7 @@ module Google @start_timestamp = args[:start_timestamp] if args.key?(:start_timestamp) @status = args[:status] if args.key?(:status) @status_message = args[:status_message] if args.key?(:status_message) + @type = args[:type] if args.key?(:type) end end @@ -4243,7 +4272,16 @@ module Google end end - # A Disk resource. (== resource_for beta.disks ==) (== resource_for v1.disks ==) + # Represents a Persistent Disk resource. + # 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 ==) class Disk include Google::Apis::Core::Hashable @@ -4824,8 +4862,15 @@ module Google end end - # A DiskType resource. (== resource_for beta.diskTypes ==) (== resource_for v1. - # diskTypes ==) + # Represents a Disk Type resource. + # 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 ==) class DiskType include Google::Apis::Core::Hashable @@ -5484,7 +5529,10 @@ module Google # @return [String] attr_accessor :dest_range - # If the peering route is imported if there is no confliction. + # True if the peering route has been imported from a peer. The actual import + # happens if the field networkPeering.importCustomRoutes is true for this + # network, and networkPeering.exportCustomRoutes is true for the peer network, + # and the import does not result in a route conflict. # Corresponds to the JSON property `imported` # @return [Boolean] attr_accessor :imported @@ -5932,7 +5980,9 @@ module Google end end - # Represents a Firewall resource. + # Represents a Firewall Rule resource. + # Firewall rules allow or deny ingress traffic to, and egress traffic from your + # instances. For more information, read Firewall rules. class Firewall include Google::Apis::Core::Hashable @@ -5953,30 +6003,30 @@ module Google # @return [Array] attr_accessor :denied - # An optional description of this resource. Provide this property when you - # create the resource. + # An optional description of this resource. Provide this field when you create + # the resource. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # If destination ranges are specified, the firewall will apply only to traffic + # If destination ranges are specified, the firewall rule applies only to traffic # that has destination IP address in these ranges. These ranges must be # expressed in CIDR format. Only IPv4 is supported. # Corresponds to the JSON property `destinationRanges` # @return [Array] attr_accessor :destination_ranges - # Direction of traffic to which this firewall applies; default is INGRESS. Note: - # For INGRESS traffic, it is NOT supported to specify destinationRanges; For - # EGRESS traffic, it is NOT supported to specify sourceRanges OR sourceTags. + # Direction of traffic to which this firewall applies, either `INGRESS` or ` + # EGRESS`. The default is `INGRESS`. For `INGRESS` traffic, you cannot specify + # the destinationRanges field, and for `EGRESS` traffic, you cannot specify the + # sourceRanges or sourceTags fields. # Corresponds to the JSON property `direction` # @return [String] attr_accessor :direction - # Denotes whether the firewall rule is disabled, i.e not applied to the network - # it is associated with. When set to true, the firewall rule is not enforced and - # the network behaves as if it did not exist. If this is unspecified, the - # firewall rule will be enabled. + # Denotes whether the firewall rule is disabled. When set to true, the firewall + # rule is not enforced and the network behaves as if it did not exist. If this + # is unspecified, the firewall rule will be enabled. # Corresponds to the JSON property `disabled` # @return [Boolean] attr_accessor :disabled @@ -6009,9 +6059,9 @@ module Google # 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. + # z0-9]*[a-z0-9])?. The first character must be a lowercase letter, and all + # following characters (except for the last character) must be a dash, lowercase + # letter, or digit. The last character must be a lowercase letter or digit. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -6019,8 +6069,8 @@ module Google # URL of the network resource for this firewall rule. If not specified when # creating a firewall rule, the default network is used: # global/networks/default - # If you choose to specify this property, you can specify the network as a full - # or partial URL. For example, the following are all valid URLs: + # If you choose to specify this field, you can specify the network as a full or + # partial URL. For example, the following are all valid URLs: # - https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my- # network # - projects/myproject/global/networks/my-network @@ -6029,11 +6079,14 @@ module Google # @return [String] attr_accessor :network - # Priority for this rule. This is an integer between 0 and 65535, both inclusive. - # When not specified, the value assumed is 1000. Relative priorities determine - # precedence of conflicting rules. Lower value of priority implies higher - # precedence (eg, a rule with priority 0 has higher precedence than a rule with - # priority 1). DENY rules take precedence over ALLOW rules having equal priority. + # Priority for this rule. This is an integer between `0` and `65535`, both + # inclusive. The default value is `1000`. Relative priorities determine which + # rule takes effect if multiple rules apply. Lower values indicate higher + # priority. For example, a rule with priority `0` has higher precedence than a + # rule with priority `1`. DENY rules take precedence over ALLOW rules if they + # have equal priority. Note that VPC networks have implied rules with a priority + # of `65535`. To avoid conflicts with the implied rules, use a priority number + # less than `65535`. # Corresponds to the JSON property `priority` # @return [Fixnum] attr_accessor :priority @@ -6043,26 +6096,26 @@ module Google # @return [String] attr_accessor :self_link - # If source ranges are specified, the firewall will apply only to traffic that - # has source IP address in these ranges. These ranges must be expressed in CIDR - # format. One or both of sourceRanges and sourceTags may be set. If both - # properties are set, the firewall will apply to traffic that has source IP - # address within sourceRanges OR the source IP that belongs to a tag listed in - # the sourceTags property. The connection does not need to match both properties - # for the firewall to apply. Only IPv4 is supported. + # If source ranges are specified, the firewall rule applies only to traffic that + # has a source IP address in these ranges. These ranges must be expressed in + # CIDR format. One or both of sourceRanges and sourceTags may be set. If both + # fields are set, the rule applies to traffic that has a source IP address + # within sourceRanges OR a source IP from a resource with a matching tag listed + # in the sourceTags field. The connection does not need to match both fields for + # the rule to apply. Only IPv4 is supported. # Corresponds to the JSON property `sourceRanges` # @return [Array] attr_accessor :source_ranges - # If source service accounts are specified, the firewall will apply only to + # If source service accounts are specified, the firewall rules apply only to # traffic originating from an instance with a service account in this list. # Source service accounts cannot be used to control traffic to an instance's # external IP address because service accounts are associated with an instance, # not an IP address. sourceRanges can be set at the same time as - # sourceServiceAccounts. If both are set, the firewall will apply to traffic - # that has source IP address within sourceRanges OR the source IP belongs to an - # instance with service account listed in sourceServiceAccount. The connection - # does not need to match both properties for the firewall to apply. + # sourceServiceAccounts. If both are set, the firewall applies to traffic that + # has a source IP address within the sourceRanges OR a source IP that belongs to + # an instance with service account listed in sourceServiceAccount. The + # connection does not need to match both fields for the firewall to apply. # sourceServiceAccounts cannot be used at the same time as sourceTags or # targetTags. # Corresponds to the JSON property `sourceServiceAccounts` @@ -6075,10 +6128,10 @@ module Google # traffic to an instance's external IP address, it only applies to traffic # between instances in the same virtual network. Because tags are associated # with instances, not IP addresses. One or both of sourceRanges and sourceTags - # may be set. If both properties are set, the firewall will apply to traffic - # that has source IP address within sourceRanges OR the source IP that belongs - # to a tag listed in the sourceTags property. The connection does not need to - # match both properties for the firewall to apply. + # may be set. If both fields are set, the firewall applies to traffic that has a + # source IP address within sourceRanges OR a source IP from a resource with a + # matching tag listed in the sourceTags field. The connection does not need to + # match both fields for the firewall to apply. # Corresponds to the JSON property `sourceTags` # @return [Array] attr_accessor :source_tags @@ -6134,15 +6187,16 @@ module Google # The IP protocol to which this rule applies. The protocol type is required when # creating a firewall rule. This value can either be one of the following well - # known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP + # known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP # protocol number. # Corresponds to the JSON property `IPProtocol` # @return [String] attr_accessor :ip_protocol # An optional list of ports to which this rule applies. This field is only - # applicable for UDP or TCP protocol. Each entry must be either an integer or a - # range. If not specified, this rule applies to connections through any port. + # applicable for the UDP or TCP protocol. Each entry must be either an integer + # or a range. If not specified, this rule applies to connections through any + # port. # Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. # Corresponds to the JSON property `ports` # @return [Array] @@ -6165,15 +6219,16 @@ module Google # The IP protocol to which this rule applies. The protocol type is required when # creating a firewall rule. This value can either be one of the following well - # known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP + # known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP # protocol number. # Corresponds to the JSON property `IPProtocol` # @return [String] attr_accessor :ip_protocol # An optional list of ports to which this rule applies. This field is only - # applicable for UDP or TCP protocol. Each entry must be either an integer or a - # range. If not specified, this rule applies to connections through any port. + # applicable for the UDP or TCP protocol. Each entry must be either an integer + # or a range. If not specified, this rule applies to connections through any + # port. # Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. # Corresponds to the JSON property `ports` # @return [Array] @@ -9150,8 +9205,10 @@ module Google end end - # An Image resource. (== resource_for beta.images ==) (== resource_for v1.images - # ==) + # 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 ==) class Image include Google::Apis::Core::Hashable @@ -9535,8 +9592,10 @@ module Google end end - # An Instance resource. (== resource_for beta.instances ==) (== resource_for v1. - # instances ==) + # 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 ==) class Instance include Google::Apis::Core::Hashable @@ -9672,7 +9731,7 @@ module Google # @return [Google::Apis::ComputeBeta::ReservationAffinity] attr_accessor :reservation_affinity - # Sets the scheduling options for an Instance. + # Sets the scheduling options for an Instance. NextID: 9 # Corresponds to the JSON property `scheduling` # @return [Google::Apis::ComputeBeta::Scheduling] attr_accessor :scheduling @@ -9902,9 +9961,15 @@ module Google end end - # InstanceGroups (== resource_for beta.instanceGroups ==) (== resource_for v1. - # instanceGroups ==) (== resource_for beta.regionInstanceGroups ==) (== - # resource_for v1.regionInstanceGroups ==) + # Represents an unmanaged Instance Group resource. + # Use unmanaged instance groups if you need to apply load balancing to groups of + # heterogeneous instances or if you need to manage the instances yourself. For + # more information, read Instance groups. + # For zonal unmanaged Instance Group, use instanceGroups resource. + # For regional unmanaged Instance Group, use regionInstanceGroups resource. (== + # resource_for beta.instanceGroups ==) (== resource_for v1.instanceGroups ==) (== + # resource_for beta.regionInstanceGroups ==) (== resource_for v1. + # regionInstanceGroups ==) class InstanceGroup include Google::Apis::Core::Hashable @@ -10246,10 +10311,14 @@ module Google end end - # An Instance Group Manager resource. (== resource_for beta. - # instanceGroupManagers ==) (== resource_for v1.instanceGroupManagers ==) (== - # resource_for beta.regionInstanceGroupManagers ==) (== resource_for v1. - # regionInstanceGroupManagers ==) + # Represents a Managed Instance Group resource. + # An instance group is a collection of VM instances that you can manage as a + # 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 ==) class InstanceGroupManager include Google::Apis::Core::Hashable @@ -10941,7 +11010,11 @@ module Google # @return [String] attr_accessor :minimal_action - # + # The type of update process. You can specify either PROACTIVE so that the + # instance group manager proactively executes actions in order to bring + # instances to their target versions or OPPORTUNISTIC so that no action is + # proactively executed but the update will be performed as part of other actions + # (for example, resizes or recreateInstances calls). # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -11019,20 +11092,33 @@ module Google class InstanceGroupManagersApplyUpdatesRequest include Google::Apis::Core::Hashable - # The list of URLs of one or more instances for which we want to apply updates - # on this managed instance group. This can be a full URL or a partial URL, such - # as zones/[ZONE]/instances/[INSTANCE_NAME]. + # The list of URLs of one or more instances for which you want to apply updates. + # Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[ + # INSTANCE_NAME]. # Corresponds to the JSON property `instances` # @return [Array] attr_accessor :instances - # The minimal action that should be perfomed on the instances. By default NONE. + # The minimal action that you want to perform on each instance during the update: + # + # - REPLACE: At minimum, delete the instance and create it again. + # - RESTART: Stop the instance and start it again. + # - REFRESH: Do not stop the instance. + # - NONE: Do not disrupt the instance at all. By default, the minimum action is + # NONE. If your update requires a more disruptive action than you set with this + # flag, the necessary action is performed to execute the update. # Corresponds to the JSON property `minimalAction` # @return [String] attr_accessor :minimal_action - # The most disruptive action that allowed to be performed on the instances. By - # default REPLACE. + # The most disruptive action that you want to perform on each instance during + # the update: + # - REPLACE: Delete the instance and create it again. + # - RESTART: Stop the instance and start it again. + # - REFRESH: Do not stop the instance. + # - NONE: Do not disrupt the instance at all. By default, the most disruptive + # allowed action is REPLACE. If your update requires a more disruptive action + # than you set with this flag, the update request will fail. # Corresponds to the JSON property `mostDisruptiveAllowedAction` # @return [String] attr_accessor :most_disruptive_allowed_action @@ -11970,7 +12056,7 @@ module Google # @return [Google::Apis::ComputeBeta::ReservationAffinity] attr_accessor :reservation_affinity - # Sets the scheduling options for an Instance. + # Sets the scheduling options for an Instance. NextID: 9 # Corresponds to the JSON property `scheduling` # @return [Google::Apis::ComputeBeta::Scheduling] attr_accessor :scheduling @@ -12041,8 +12127,10 @@ module Google end end - # An Instance Template resource. (== resource_for beta.instanceTemplates ==) (== - # resource_for v1.instanceTemplates ==) + # 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 ==) class InstanceTemplate include Google::Apis::Core::Hashable @@ -12556,10 +12644,11 @@ module Google end end - # Represents an Interconnects resource. The Interconnects resource is a - # dedicated connection between Google's network and your on-premises network. - # For more information, see the Dedicated overview page. (== resource_for v1. - # interconnects ==) (== resource_for beta.interconnects ==) + # 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 ==) class Interconnect include Google::Apis::Core::Hashable @@ -12772,8 +12861,10 @@ module Google end end - # Represents an InterconnectAttachment (VLAN attachment) resource. For more - # information, see Creating VLAN Attachments. (== resource_for beta. + # 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 ==) class InterconnectAttachment include Google::Apis::Core::Hashable @@ -12851,7 +12942,8 @@ module Google attr_accessor :edge_availability_domain # [Output Only] Google reference ID, to be used when raising support tickets - # with Google or otherwise to debug backend connectivity issues. + # with Google or otherwise to debug backend connectivity issues. [Deprecated] + # This field is not used. # Corresponds to the JSON property `googleReferenceId` # @return [String] attr_accessor :google_reference_id @@ -13754,9 +13846,10 @@ module Google end end - # Represents an InterconnectLocations resource. The InterconnectLocations - # resource describes the locations where you can connect to Google's networks. - # For more information, see Colocation Facilities. + # Represents an Interconnect Attachment (VLAN) Location resource. + # You can use this resource to find location details about an Interconnect + # attachment (VLAN). For more information about interconnect attachments, read + # Creating VLAN Attachments. class InterconnectLocation include Google::Apis::Core::Hashable @@ -14574,8 +14667,10 @@ module Google end end - # A Machine Type resource. (== resource_for v1.machineTypes ==) (== resource_for - # beta.machineTypes ==) + # 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 ==) class MachineType include Google::Apis::Core::Hashable @@ -15341,9 +15436,10 @@ module Google end end - # Represents a Network resource. Read Virtual Private Cloud (VPC) Network - # Overview for more information. (== resource_for v1.networks ==) (== - # resource_for beta.networks ==) + # 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 ==) class Network include Google::Apis::Core::Hashable @@ -15368,14 +15464,14 @@ module Google # @return [String] attr_accessor :creation_timestamp - # An optional description of this resource. Provide this property when you - # create the resource. + # An optional description of this resource. Provide this field when you create + # the resource. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # [Output Only] The gateway address for default routing out of the network. This - # value is read only and is selected by GCP. + # [Output Only] The gateway address for default routing out of the network, + # selected by GCP. # Corresponds to the JSON property `gatewayIPv4` # @return [String] attr_accessor :gateway_i_pv4 @@ -15394,9 +15490,9 @@ module Google # 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. + # z0-9]*[a-z0-9])?. The first character must be a lowercase letter, and all + # following characters (except for the last character) must be a dash, lowercase + # letter, or digit. The last character must be a lowercase letter or digit. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -16165,8 +16261,8 @@ module Google # @return [Array] attr_accessor :access_configs - # An array of alias IP ranges for this network interface. Can only be specified - # for network interfaces on subnet-mode networks. + # An array of alias IP ranges for this network interface. You can only specify + # this field for network interfaces in VPC networks. # Corresponds to the JSON property `aliasIpRanges` # @return [Array] attr_accessor :alias_ip_ranges @@ -16186,8 +16282,8 @@ module Google # @return [String] attr_accessor :kind - # [Output Only] The name of the network interface, generated by the server. For - # network devices, these are eth0, eth1, etc. + # [Output Only] The name of the network interface, which is generated by the + # server. For network devices, these are eth0, eth1, etc. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -16196,8 +16292,6 @@ module Google # neither the network nor the subnetwork is specified, the default network # global/networks/default is used; if the network is not specified but the # subnetwork is specified, the network is inferred. - # This field is optional when creating a firewall rule. If not specified when - # creating a firewall rule, the default network global/networks/default is used. # If you specify this property, you can specify the network as a full or partial # URL. For example, the following are all valid URLs: # - https://www.googleapis.com/compute/v1/projects/project/global/networks/ @@ -16208,7 +16302,7 @@ module Google # @return [String] attr_accessor :network - # An IPv4 internal network address to assign to the instance for this network + # An IPv4 internal IP address to assign to the instance for this network # interface. If not specified by the user, an unused internal IP is assigned by # the system. # Corresponds to the JSON property `networkIP` @@ -16216,9 +16310,9 @@ module Google attr_accessor :network_ip # The URL of the Subnetwork resource for this instance. If the network resource - # is in legacy mode, do not provide this property. If the network is in auto - # subnet mode, providing the subnetwork is optional. If the network is in custom - # subnet mode, then this field should be specified. If you specify this property, + # is in legacy mode, do not specify this field. If the network is in auto subnet + # mode, specifying the subnetwork is optional. If the network is in custom + # subnet mode, specifying the subnetwork is required. If you specify this field, # you can specify the subnetwork as a full or partial URL. For example, the # following are all valid URLs: # - https://www.googleapis.com/compute/v1/projects/project/regions/region/ @@ -16369,7 +16463,7 @@ module Google class NetworkPeering include Google::Apis::Core::Hashable - # This field will be deprecated soon. Prefer using exchange_subnet_routes + # This field will be deprecated soon. Use the exchange_subnet_routes field # instead. Indicates whether full mesh connectivity is created and managed # automatically. When it is set to true, Google Compute Engine will # automatically create and manage the routes between two networks when the state @@ -16403,10 +16497,10 @@ module Google # Name of this peering. Provided by the client when the peering is created. The # name must comply with RFC1035. Specifically, the name must be 1-63 characters - # long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the - # first character must be a lowercase letter, and all the following characters - # must be a dash, lowercase letter, or digit, except the last character, which - # cannot be a dash. + # long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first + # character must be a lowercase letter, and all the 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 @@ -16419,7 +16513,8 @@ module Google # @return [String] attr_accessor :network - # [Output Only] State for the peering. + # [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The + # peering is `ACTIVE` when there's a matching configuration in the peer network. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state @@ -16452,9 +16547,9 @@ module Google class NetworkRoutingConfig include Google::Apis::Core::Hashable - # The network-wide routing mode to use. If set to REGIONAL, this network's cloud - # routers will only advertise routes with subnets of this network in the same - # region as the router. If set to GLOBAL, this network's cloud routers will + # The network-wide routing mode to use. If set to REGIONAL, this network's Cloud + # Routers will only advertise routes with subnets of this network in the same + # region as the router. If set to GLOBAL, this network's Cloud Routers will # advertise routes with all subnets of this network, across regions. # Corresponds to the JSON property `routingMode` # @return [String] @@ -16474,7 +16569,7 @@ module Google class NetworksAddPeeringRequest include Google::Apis::Core::Hashable - # This field will be deprecated soon. Prefer using exchange_subnet_routes in + # This field will be deprecated soon. Use exchange_subnet_routes in # network_peering instead. Whether Google Compute Engine manages the routes # automatically. # Corresponds to the JSON property `autoCreateRoutes` @@ -16555,10 +16650,13 @@ module Google end end - # A NodeGroup resource. To create a node group, you must first create a node - # templates. To learn more about node groups and sole-tenant nodes, read the - # Sole-tenant nodes documentation. (== resource_for beta.nodeGroups ==) (== - # resource_for v1.nodeGroups ==) + # Represent a sole-tenant Node Group resource. + # A sole-tenant node is a physical server that is dedicated to hosting VM + # 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 ==) NextID: 15 class NodeGroup include Google::Apis::Core::Hashable @@ -17187,9 +17285,10 @@ module Google end end - # A Node Template resource. To learn more about node templates and sole-tenant - # nodes, read the Sole-tenant nodes documentation. (== resource_for beta. - # nodeTemplates ==) (== resource_for v1.nodeTemplates ==) + # 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 ==) NextID: 16 class NodeTemplate include Google::Apis::Core::Hashable @@ -17652,7 +17751,12 @@ module Google end end - # A Node Type resource. + # Represent a sole-tenant Node Type resource. + # Each node within a node group must have a node type. A node type specifies the + # 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 ==) class NodeType include Google::Apis::Core::Hashable @@ -18067,7 +18171,14 @@ module Google end end - # An Operation resource, used to manage asynchronous API requests. (== + # Represents an Operation resource. + # 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. + # - For global operations, use the globalOperations resource. + # - 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 @@ -18155,9 +18266,7 @@ module Google attr_accessor :progress # [Output Only] The URL of the region where the operation resides. Only - # available when performing regional operations. You must specify this field as - # part of the HTTP request URL. It is not settable as a field in the request - # body. + # applicable when performing regional operations. # Corresponds to the JSON property `region` # @return [String] attr_accessor :region @@ -18209,9 +18318,8 @@ module Google # @return [Array] attr_accessor :warnings - # [Output Only] The URL of the zone where the operation resides. Only available - # when performing per-zone operations. You must specify this field as part of - # the HTTP request URL. It is not settable as a field in the request body. + # [Output Only] The URL of the zone where the operation resides. Only applicable + # when performing per-zone operations. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -19053,8 +19161,10 @@ module Google end end - # A Project resource. For an overview of projects, see Cloud Platform Resource - # Hierarchy. (== resource_for v1.projects ==) (== resource_for beta.projects ==) + # 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 ==) class Project include Google::Apis::Core::Hashable @@ -19344,8 +19454,10 @@ module Google end end - # Region resource. (== resource_for beta.regions ==) (== resource_for v1.regions - # ==) + # 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 ==) class Region include Google::Apis::Core::Hashable @@ -19992,19 +20104,33 @@ module Google class RegionInstanceGroupManagersApplyUpdatesRequest include Google::Apis::Core::Hashable - # The list of instances for which we want to apply changes on this managed - # instance group. + # The list of URLs of one or more instances for which you want to apply updates. + # Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[ + # INSTANCE_NAME]. # Corresponds to the JSON property `instances` # @return [Array] attr_accessor :instances - # The minimal action that should be perfomed on the instances. By default NONE. + # The minimal action that you want to perform on each instance during the update: + # + # - REPLACE: At minimum, delete the instance and create it again. + # - RESTART: Stop the instance and start it again. + # - REFRESH: Do not stop the instance. + # - NONE: Do not disrupt the instance at all. By default, the minimum action is + # NONE. If your update requires a more disruptive action than you set with this + # flag, the necessary action is performed to execute the update. # Corresponds to the JSON property `minimalAction` # @return [String] attr_accessor :minimal_action - # The most disruptive action that allowed to be performed on the instances. By - # default REPLACE. + # The most disruptive action that you want to perform on each instance during + # the update: + # - REPLACE: Delete the instance and create it again. + # - RESTART: Stop the instance and start it again. + # - REFRESH: Do not stop the instance. + # - NONE: Do not disrupt the instance at all. By default, the most disruptive + # allowed action is REPLACE. If your update requires a more disruptive action + # than you set with this flag, the update request will fail. # Corresponds to the JSON property `mostDisruptiveAllowedAction` # @return [String] attr_accessor :most_disruptive_allowed_action @@ -20595,7 +20721,7 @@ module Google end end - # Reservation resource + # Reservation resource NextID: 13 class Reservation include Google::Apis::Core::Hashable @@ -20657,6 +20783,11 @@ module Google attr_accessor :specific_reservation_required alias_method :specific_reservation_required?, :specific_reservation_required + # [Output Only] The status of the reservation. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + # Zone in which the reservation resides, must be provided if reservation is # created with commitment creation. # Corresponds to the JSON property `zone` @@ -20678,6 +20809,7 @@ module Google @self_link = args[:self_link] if args.key?(:self_link) @specific_reservation = args[:specific_reservation] if args.key?(:specific_reservation) @specific_reservation_required = args[:specific_reservation_required] if args.key?(:specific_reservation_required) + @status = args[:status] if args.key?(:status) @zone = args[:zone] if args.key?(:zone) end end @@ -21778,20 +21910,11 @@ module Google end end - # Represents a Route resource. A route specifies how certain packets should be - # handled by the network. Routes are associated with instances by tags and the - # set of routes for a particular instance is called its routing table. - # For each packet leaving an instance, the system searches that instance's - # routing table for a single best matching route. Routes match packets by - # destination IP address, preferring smaller or more specific ranges over larger - # ones. If there is a tie, the system selects the route with the smallest - # priority value. If there is still a tie, it uses the layer three and four - # packet headers to select just one of the remaining matching routes. The packet - # is then forwarded as specified by the nextHop field of the winning route - - # either to another instance destination, an instance gateway, or a Google - # Compute Engine-operated gateway. - # Packets that do not match any route in the sending instance's routing table - # are dropped. (== resource_for beta.routes ==) (== resource_for v1.routes ==) + # 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 ==) class Route include Google::Apis::Core::Hashable @@ -21800,8 +21923,8 @@ module Google # @return [String] attr_accessor :creation_timestamp - # An optional description of this resource. Provide this property when you - # create the resource. + # An optional description of this resource. Provide this field when you create + # the resource. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description @@ -21826,9 +21949,9 @@ module Google # 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. + # z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all + # following characters (except for the last character) must be a dash, lowercase + # letter, or digit. The last character must be a lowercase letter or digit. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -21839,7 +21962,7 @@ module Google attr_accessor :network # The URL to a gateway that should handle matching packets. You can only specify - # the internet gateway using a full or partial valid URL: projects// + # the internet gateway using a full or partial valid URL: projects/project/ # global/gateways/default-internet-gateway # Corresponds to the JSON property `nextHopGateway` # @return [String] @@ -21893,9 +22016,10 @@ module Google attr_accessor :next_hop_vpn_tunnel # The priority of this route. Priority is used to break ties in cases where - # there is more than one matching route of equal prefix length. In the case of - # two routes with equal prefix length, the one with the lowest-numbered priority - # value wins. Default value is 1000. Valid range is 0 through 65535. + # there is more than one matching route of equal prefix length. In cases where + # multiple routes have equal prefix length, the one with the lowest-numbered + # priority value wins. The default value is `1000`. The priority value must be + # from `0` to `65535`, inclusive. # Corresponds to the JSON property `priority` # @return [Fixnum] attr_accessor :priority @@ -22125,7 +22249,8 @@ module Google end end - # Router resource. + # Represents a Cloud Router resource. + # For more information about Cloud Router, read the the Cloud Router overview. class Router include Google::Apis::Core::Hashable @@ -23048,7 +23173,8 @@ module Google class RoutersPreviewResponse include Google::Apis::Core::Hashable - # Router resource. + # Represents a Cloud Router resource. + # For more information about Cloud Router, read the the Cloud Router overview. # Corresponds to the JSON property `resource` # @return [Google::Apis::ComputeBeta::Router] attr_accessor :resource @@ -23287,7 +23413,7 @@ module Google end end - # Sets the scheduling options for an Instance. + # Sets the scheduling options for an Instance. NextID: 9 class Scheduling include Google::Apis::Core::Hashable @@ -24104,8 +24230,10 @@ module Google end end - # A persistent disk snapshot resource. (== resource_for beta.snapshots ==) (== - # resource_for v1.snapshots ==) + # 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 ==) class Snapshot include Google::Apis::Core::Hashable @@ -25238,8 +25366,11 @@ module Google end end - # A Subnetwork resource. (== resource_for beta.subnetworks ==) (== resource_for - # v1.subnetworks ==) + # Represents a Subnetwork resource. + # 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 ==) class Subnetwork include Google::Apis::Core::Hashable @@ -26843,9 +26974,12 @@ module Google end end - # A TargetInstance resource. This resource defines an endpoint instance that - # terminates traffic of certain protocols. (== resource_for beta.targetInstances - # ==) (== resource_for v1.targetInstances ==) + # Represents a Target Instance resource. + # 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 ==) class TargetInstance include Google::Apis::Core::Hashable @@ -28327,7 +28461,9 @@ module Google end end - # Represents a Target VPN gateway resource. (== resource_for beta. + # 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 ==) class TargetVpnGateway include Google::Apis::Core::Hashable @@ -30467,8 +30603,9 @@ module Google end end - # VPN tunnel resource. (== resource_for beta.vpnTunnels ==) (== resource_for v1. - # vpnTunnels ==) + # 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 ==) class VpnTunnel include Google::Apis::Core::Hashable @@ -31241,8 +31378,11 @@ module Google end end - # A Zone resource. (== resource_for beta.zones ==) (== resource_for v1.zones ==) - # Next ID: 17 + # 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 ==) 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 b1a870daf..fa782ef55 100644 --- a/generated/google/apis/compute_beta/representations.rb +++ b/generated/google/apis/compute_beta/representations.rb @@ -5219,6 +5219,7 @@ module Google property :start_timestamp, as: 'startTimestamp' property :status, as: 'status' property :status_message, as: 'statusMessage' + property :type, as: 'type' end end @@ -9494,6 +9495,7 @@ module Google property :specific_reservation, as: 'specificReservation', class: Google::Apis::ComputeBeta::AllocationSpecificSkuReservation, decorator: Google::Apis::ComputeBeta::AllocationSpecificSkuReservation::Representation property :specific_reservation_required, as: 'specificReservationRequired' + property :status, as: 'status' property :zone, as: 'zone' end end diff --git a/generated/google/apis/compute_beta/service.rb b/generated/google/apis/compute_beta/service.rb index 2043be568..1d6efcb75 100644 --- a/generated/google/apis/compute_beta/service.rb +++ b/generated/google/apis/compute_beta/service.rb @@ -396,8 +396,8 @@ module Google execute_or_queue_command(command, &block) end - # Creates an address resource in the specified project using the data included - # in the request. + # Creates an address resource in the specified project by using the data + # included in the request. # @param [String] project # Project ID for this request. # @param [String] region @@ -4195,8 +4195,8 @@ module Google execute_or_queue_command(command, &block) end - # Creates an address resource in the specified project using the data included - # in the request. + # Creates an address resource in the specified project by using the data + # included in the request. # @param [String] project # Project ID for this request. # @param [Google::Apis::ComputeBeta::Address] address_object @@ -14626,8 +14626,8 @@ module Google execute_or_queue_command(command, &block) end - # Disable a serivce resource (a.k.a service project) associated with this host - # project. + # Disable a service resource (also known as service project) associated with + # this host project. # @param [String] project # Project ID for this request. # @param [Google::Apis::ComputeBeta::ProjectsDisableXpnResourceRequest] projects_disable_xpn_resource_request_object diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index 4d93d7e7a..c5f242154 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 = '20190528' + REVISION = '20190530' # 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 069fe58f8..547d42e62 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -52,8 +52,12 @@ module Google end end - # An Accelerator Type resource. (== resource_for beta.acceleratorTypes ==) (== - # resource_for v1.acceleratorTypes ==) + # Represents an Accelerator Type resource. + # 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 = + # =) class AcceleratorType include Google::Apis::Core::Hashable @@ -463,8 +467,8 @@ module Google attr_accessor :kind # The name of this access configuration. The default and recommended name is - # External NAT but you can use any arbitrary string you would like. For example, - # My external IP or Network Access. + # External NAT, but you can use any arbitrary string, such as My external IP or + # Network Access. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -489,13 +493,13 @@ module Google # @return [String] attr_accessor :network_tier - # The DNS domain name for the public PTR record. This field can only be set when - # the set_public_ptr field is enabled. + # The DNS domain name for the public PTR record. You can set this field only if + # the `setPublicPtr` field is enabled. # Corresponds to the JSON property `publicPtrDomainName` # @return [String] attr_accessor :public_ptr_domain_name - # Specifies whether a public DNS ?PTR? record should be created to map the + # Specifies whether a public DNS 'PTR' record should be created to map the # external IP address of the instance to a DNS domain name. # Corresponds to the JSON property `setPublicPtr` # @return [Boolean] @@ -523,9 +527,21 @@ module Google end end - # A reserved address resource. (== resource_for beta.addresses ==) (== - # resource_for v1.addresses ==) (== resource_for beta.globalAddresses ==) (== - # resource_for v1.globalAddresses ==) + # 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 ==) class Address include Google::Apis::Core::Hashable @@ -545,8 +561,8 @@ module Google # @return [String] attr_accessor :creation_timestamp - # An optional description of this resource. Provide this property when you - # create the resource. + # An optional description of this resource. Provide this field when you create + # the resource. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description @@ -557,7 +573,7 @@ module Google # @return [Fixnum] attr_accessor :id - # The IP Version that will be used by this address. Valid options are IPV4 or + # The IP version that will be used by this address. Valid options are IPV4 or # IPV6. This can only be specified for a global address. # Corresponds to the JSON property `ipVersion` # @return [String] @@ -571,25 +587,25 @@ module Google # 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. + # z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all + # following characters (except for the last character) must be a dash, lowercase + # letter, or digit. The last character must be a lowercase letter or digit. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # The URL of the network in which to reserve the address. This field can only be - # used with INTERNAL type with VPC_PEERING purpose. + # used with INTERNAL type with the VPC_PEERING purpose. # Corresponds to the JSON property `network` # @return [String] attr_accessor :network - # This signifies the networking tier used for configuring this Address and can - # only take the following values: PREMIUM, STANDARD. Global forwarding rules can - # only be Premium Tier. Regional forwarding rules can be either Premium or + # This signifies the networking tier used for configuring this address and can + # only take the following values: PREMIUM or STANDARD. Global forwarding rules + # can only be Premium Tier. Regional forwarding rules can be either Premium or # Standard Tier. Standard Tier addresses applied to regional forwarding rules # can be used with any external load balancer. Regional forwarding rules in - # Premium Tier can only be used with a Network load balancer. + # Premium Tier can only be used with a network load balancer. # If this field is not specified, it is assumed to be PREMIUM. # Corresponds to the JSON property `networkTier` # @return [String] @@ -600,14 +616,20 @@ module Google # @return [Fixnum] attr_accessor :prefix_length - # The purpose of resource, only used with INTERNAL type. + # The purpose of this resource, which can be one of the following values: + # - `GCE_ENDPOINT` for addresses that are used by VM instances, alias IP ranges, + # internal load balancers, and similar resources. + # - `DNS_RESOLVER` for a DNS resolver address in a subnetwork + # - `VPC_PEERING` for addresses that are reserved for VPC peer networks. + # - `NAT_AUTO` for addresses that are external IP addresses automatically + # reserved for Cloud NAT. # Corresponds to the JSON property `purpose` # @return [String] attr_accessor :purpose - # [Output Only] URL of the region where the regional address resides. This field - # is not applicable to global addresses. You must specify this field as part of - # the HTTP request URL. You cannot set this field in the request body. + # [Output Only] The URL of the region where the regional address resides. This + # field is not applicable to global addresses. You must specify this field as + # part of the HTTP request URL. # Corresponds to the JSON property `region` # @return [String] attr_accessor :region @@ -628,7 +650,7 @@ module Google # The URL of the subnetwork in which to reserve the address. If an IP address is # specified, it must be within the subnetwork's IP range. This field can only be - # used with INTERNAL type with GCE_ENDPOINT/DNS_RESOLVER purposes. + # used with INTERNAL type with a GCE_ENDPOINT or DNS_RESOLVER purpose. # Corresponds to the JSON property `subnetwork` # @return [String] attr_accessor :subnetwork @@ -995,18 +1017,17 @@ module Google class AliasIpRange include Google::Apis::Core::Hashable - # The IP CIDR range represented by this alias IP range. This IP CIDR range must + # The IP alias ranges to allocate for this interface. This IP CIDR range must # belong to the specified subnetwork and cannot contain IP addresses reserved by # system or used by other network interfaces. This range may be a single IP - # address (e.g. 10.2.3.4), a netmask (e.g. /24) or a CIDR format string (e.g. 10. - # 1.2.0/24). + # address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string + # (such as 10.1.2.0/24). # Corresponds to the JSON property `ipCidrRange` # @return [String] attr_accessor :ip_cidr_range - # Optional subnetwork secondary range name specifying the secondary range from - # which to allocate the IP CIDR range for this alias IP range. If left - # unspecified, the primary range of the subnetwork will be used. + # The name of a subnetwork secondary IP range from which to allocate an IP alias + # range. If not specified, the primary range of the subnetwork is used. # Corresponds to the JSON property `subnetworkRangeName` # @return [String] attr_accessor :subnetwork_range_name @@ -1083,7 +1104,8 @@ module Google # SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and # the request will fail if you attempt to attach a persistent disk in any other # format than SCSI. Local SSDs can use either NVME or SCSI. For performance - # characteristics of SCSI over NVMe, see Local SSD performance. + # characteristics of SCSI over NVMe, see Local SSD performance. TODO(b/131765817) + # : Update documentation when NVME is supported. # Corresponds to the JSON property `interface` # @return [String] attr_accessor :interface @@ -1191,6 +1213,13 @@ module Google # @return [Hash] attr_accessor :labels + # Resource policies applied to this disk for automatic snapshot creations. + # Specified using the full or partial URL. For instance template, specify only + # the resource policy name. + # Corresponds to the JSON property `resourcePolicies` + # @return [Array] + attr_accessor :resource_policies + # The source image to create this disk. When creating a new instance, one of # initializeParams.sourceImage or disks.source is required except for local SSD. # To create a disk with one of the public operating system images, specify the @@ -1243,6 +1272,7 @@ module Google @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) @disk_type = args[:disk_type] if args.key?(:disk_type) @labels = args[:labels] if args.key?(:labels) + @resource_policies = args[:resource_policies] if args.key?(:resource_policies) @source_image = args[:source_image] if args.key?(:source_image) @source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key) @source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot) @@ -1348,12 +1378,15 @@ module Google end end - # Represents an Autoscaler resource. Autoscalers allow you to automatically - # scale virtual machine instances in managed instance groups according to an - # autoscaling policy that you define. For more information, read Autoscaling - # Groups of Instances. (== resource_for beta.autoscalers ==) (== resource_for v1. - # autoscalers ==) (== resource_for beta.regionAutoscalers ==) (== resource_for - # v1.regionAutoscalers ==) + # Represents an Autoscaler resource. + # 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 = + # =) class Autoscaler include Google::Apis::Core::Hashable @@ -3072,16 +3105,12 @@ module Google end end - # Represents a Commitment resource. Creating a Commitment resource means that - # you are purchasing a committed use contract with an explicit start and end - # time. You can create commitments based on vCPUs and memory usage and receive - # discounted rates. For full details, read Signing Up for Committed Use - # Discounts. - # Committed use discounts are subject to Google Cloud Platform's Service - # Specific Terms. By purchasing a committed use discount, you agree to these - # terms. Committed use discounts will not renew, so you must purchase a new - # commitment to continue receiving discounts. (== resource_for beta.commitments = - # =) (== resource_for v1.commitments ==) + # Represents a regional Commitment resource. + # Creating a commitment resource means that you are purchasing a committed use + # contract with an explicit start and end time. You can create commitments based + # on vCPUs and memory usage and receive discounted rates. For full details, read + # Signing Up for Committed Use Discounts. (== resource_for beta. + # regionCommitments ==) (== resource_for v1.regionCommitments ==) class Commitment include Google::Apis::Core::Hashable @@ -3690,7 +3719,16 @@ module Google end end - # A Disk resource. (== resource_for beta.disks ==) (== resource_for v1.disks ==) + # Represents a Persistent Disk resource. + # 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 ==) class Disk include Google::Apis::Core::Hashable @@ -3802,6 +3840,11 @@ module Google # @return [Array] attr_accessor :replica_zones + # Resource policies applied to this disk for automatic snapshot creations. + # Corresponds to the JSON property `resourcePolicies` + # @return [Array] + attr_accessor :resource_policies + # [Output Only] Server-defined fully-qualified URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] @@ -3923,6 +3966,7 @@ module Google @physical_block_size_bytes = args[:physical_block_size_bytes] if args.key?(:physical_block_size_bytes) @region = args[:region] if args.key?(:region) @replica_zones = args[:replica_zones] if args.key?(:replica_zones) + @resource_policies = args[:resource_policies] if args.key?(:resource_policies) @self_link = args[:self_link] if args.key?(:self_link) @size_gb = args[:size_gb] if args.key?(:size_gb) @source_image = args[:source_image] if args.key?(:source_image) @@ -4259,8 +4303,15 @@ module Google end end - # A DiskType resource. (== resource_for beta.diskTypes ==) (== resource_for v1. - # diskTypes ==) + # Represents a Disk Type resource. + # 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 ==) class DiskType include Google::Apis::Core::Hashable @@ -4670,6 +4721,44 @@ module Google end end + # + class DisksAddResourcePoliciesRequest + include Google::Apis::Core::Hashable + + # Resource policies to be added to this disk. + # Corresponds to the JSON property `resourcePolicies` + # @return [Array] + attr_accessor :resource_policies + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource_policies = args[:resource_policies] if args.key?(:resource_policies) + end + end + + # + class DisksRemoveResourcePoliciesRequest + include Google::Apis::Core::Hashable + + # Resource policies to be removed from this disk. + # Corresponds to the JSON property `resourcePolicies` + # @return [Array] + attr_accessor :resource_policies + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource_policies = args[:resource_policies] if args.key?(:resource_policies) + end + end + # class DisksResizeRequest include Google::Apis::Core::Hashable @@ -4864,7 +4953,9 @@ module Google end end - # Represents a Firewall resource. + # Represents a Firewall Rule resource. + # Firewall rules allow or deny ingress traffic to, and egress traffic from your + # instances. For more information, read Firewall rules. class Firewall include Google::Apis::Core::Hashable @@ -4885,30 +4976,30 @@ module Google # @return [Array] attr_accessor :denied - # An optional description of this resource. Provide this property when you - # create the resource. + # An optional description of this resource. Provide this field when you create + # the resource. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # If destination ranges are specified, the firewall will apply only to traffic + # If destination ranges are specified, the firewall rule applies only to traffic # that has destination IP address in these ranges. These ranges must be # expressed in CIDR format. Only IPv4 is supported. # Corresponds to the JSON property `destinationRanges` # @return [Array] attr_accessor :destination_ranges - # Direction of traffic to which this firewall applies; default is INGRESS. Note: - # For INGRESS traffic, it is NOT supported to specify destinationRanges; For - # EGRESS traffic, it is NOT supported to specify sourceRanges OR sourceTags. + # Direction of traffic to which this firewall applies, either `INGRESS` or ` + # EGRESS`. The default is `INGRESS`. For `INGRESS` traffic, you cannot specify + # the destinationRanges field, and for `EGRESS` traffic, you cannot specify the + # sourceRanges or sourceTags fields. # Corresponds to the JSON property `direction` # @return [String] attr_accessor :direction - # Denotes whether the firewall rule is disabled, i.e not applied to the network - # it is associated with. When set to true, the firewall rule is not enforced and - # the network behaves as if it did not exist. If this is unspecified, the - # firewall rule will be enabled. + # Denotes whether the firewall rule is disabled. When set to true, the firewall + # rule is not enforced and the network behaves as if it did not exist. If this + # is unspecified, the firewall rule will be enabled. # Corresponds to the JSON property `disabled` # @return [Boolean] attr_accessor :disabled @@ -4933,9 +5024,9 @@ module Google # 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. + # z0-9]*[a-z0-9])?. The first character must be a lowercase letter, and all + # following characters (except for the last character) must be a dash, lowercase + # letter, or digit. The last character must be a lowercase letter or digit. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -4943,8 +5034,8 @@ module Google # URL of the network resource for this firewall rule. If not specified when # creating a firewall rule, the default network is used: # global/networks/default - # If you choose to specify this property, you can specify the network as a full - # or partial URL. For example, the following are all valid URLs: + # If you choose to specify this field, you can specify the network as a full or + # partial URL. For example, the following are all valid URLs: # - https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my- # network # - projects/myproject/global/networks/my-network @@ -4953,11 +5044,14 @@ module Google # @return [String] attr_accessor :network - # Priority for this rule. This is an integer between 0 and 65535, both inclusive. - # When not specified, the value assumed is 1000. Relative priorities determine - # precedence of conflicting rules. Lower value of priority implies higher - # precedence (eg, a rule with priority 0 has higher precedence than a rule with - # priority 1). DENY rules take precedence over ALLOW rules having equal priority. + # Priority for this rule. This is an integer between `0` and `65535`, both + # inclusive. The default value is `1000`. Relative priorities determine which + # rule takes effect if multiple rules apply. Lower values indicate higher + # priority. For example, a rule with priority `0` has higher precedence than a + # rule with priority `1`. DENY rules take precedence over ALLOW rules if they + # have equal priority. Note that VPC networks have implied rules with a priority + # of `65535`. To avoid conflicts with the implied rules, use a priority number + # less than `65535`. # Corresponds to the JSON property `priority` # @return [Fixnum] attr_accessor :priority @@ -4967,26 +5061,26 @@ module Google # @return [String] attr_accessor :self_link - # If source ranges are specified, the firewall will apply only to traffic that - # has source IP address in these ranges. These ranges must be expressed in CIDR - # format. One or both of sourceRanges and sourceTags may be set. If both - # properties are set, the firewall will apply to traffic that has source IP - # address within sourceRanges OR the source IP that belongs to a tag listed in - # the sourceTags property. The connection does not need to match both properties - # for the firewall to apply. Only IPv4 is supported. + # If source ranges are specified, the firewall rule applies only to traffic that + # has a source IP address in these ranges. These ranges must be expressed in + # CIDR format. One or both of sourceRanges and sourceTags may be set. If both + # fields are set, the rule applies to traffic that has a source IP address + # within sourceRanges OR a source IP from a resource with a matching tag listed + # in the sourceTags field. The connection does not need to match both fields for + # the rule to apply. Only IPv4 is supported. # Corresponds to the JSON property `sourceRanges` # @return [Array] attr_accessor :source_ranges - # If source service accounts are specified, the firewall will apply only to + # If source service accounts are specified, the firewall rules apply only to # traffic originating from an instance with a service account in this list. # Source service accounts cannot be used to control traffic to an instance's # external IP address because service accounts are associated with an instance, # not an IP address. sourceRanges can be set at the same time as - # sourceServiceAccounts. If both are set, the firewall will apply to traffic - # that has source IP address within sourceRanges OR the source IP belongs to an - # instance with service account listed in sourceServiceAccount. The connection - # does not need to match both properties for the firewall to apply. + # sourceServiceAccounts. If both are set, the firewall applies to traffic that + # has a source IP address within the sourceRanges OR a source IP that belongs to + # an instance with service account listed in sourceServiceAccount. The + # connection does not need to match both fields for the firewall to apply. # sourceServiceAccounts cannot be used at the same time as sourceTags or # targetTags. # Corresponds to the JSON property `sourceServiceAccounts` @@ -4999,10 +5093,10 @@ module Google # traffic to an instance's external IP address, it only applies to traffic # between instances in the same virtual network. Because tags are associated # with instances, not IP addresses. One or both of sourceRanges and sourceTags - # may be set. If both properties are set, the firewall will apply to traffic - # that has source IP address within sourceRanges OR the source IP that belongs - # to a tag listed in the sourceTags property. The connection does not need to - # match both properties for the firewall to apply. + # may be set. If both fields are set, the firewall applies to traffic that has a + # source IP address within sourceRanges OR a source IP from a resource with a + # matching tag listed in the sourceTags field. The connection does not need to + # match both fields for the firewall to apply. # Corresponds to the JSON property `sourceTags` # @return [Array] attr_accessor :source_tags @@ -5057,15 +5151,16 @@ module Google # The IP protocol to which this rule applies. The protocol type is required when # creating a firewall rule. This value can either be one of the following well - # known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP + # known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP # protocol number. # Corresponds to the JSON property `IPProtocol` # @return [String] attr_accessor :ip_protocol # An optional list of ports to which this rule applies. This field is only - # applicable for UDP or TCP protocol. Each entry must be either an integer or a - # range. If not specified, this rule applies to connections through any port. + # applicable for the UDP or TCP protocol. Each entry must be either an integer + # or a range. If not specified, this rule applies to connections through any + # port. # Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. # Corresponds to the JSON property `ports` # @return [Array] @@ -5088,15 +5183,16 @@ module Google # The IP protocol to which this rule applies. The protocol type is required when # creating a firewall rule. This value can either be one of the following well - # known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP + # known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP # protocol number. # Corresponds to the JSON property `IPProtocol` # @return [String] attr_accessor :ip_protocol # An optional list of ports to which this rule applies. This field is only - # applicable for UDP or TCP protocol. Each entry must be either an integer or a - # range. If not specified, this rule applies to connections through any port. + # applicable for the UDP or TCP protocol. Each entry must be either an integer + # or a range. If not specified, this rule applies to connections through any + # port. # Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. # Corresponds to the JSON property `ports` # @return [Array] @@ -5968,6 +6064,107 @@ module Google end end + # A guest attributes entry. + class GuestAttributes + include Google::Apis::Core::Hashable + + # [Output Only] Type of the resource. Always compute#guestAttributes for guest + # attributes entry. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The path to be queried. This can be the default namespace ('/') or a nested + # namespace ('//') or a specified key ('//') + # Corresponds to the JSON property `queryPath` + # @return [String] + attr_accessor :query_path + + # Array of guest attribute namespace/key/value tuples. + # Corresponds to the JSON property `queryValue` + # @return [Google::Apis::ComputeV1::GuestAttributesValue] + attr_accessor :query_value + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # The key to search for. + # Corresponds to the JSON property `variableKey` + # @return [String] + attr_accessor :variable_key + + # [Output Only] The value found for the requested key. + # Corresponds to the JSON property `variableValue` + # @return [String] + attr_accessor :variable_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @query_path = args[:query_path] if args.key?(:query_path) + @query_value = args[:query_value] if args.key?(:query_value) + @self_link = args[:self_link] if args.key?(:self_link) + @variable_key = args[:variable_key] if args.key?(:variable_key) + @variable_value = args[:variable_value] if args.key?(:variable_value) + end + end + + # A guest attributes namespace/key/value entry. + class GuestAttributesEntry + include Google::Apis::Core::Hashable + + # Key for the guest attribute entry. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # Namespace for the guest attribute entry. + # Corresponds to the JSON property `namespace` + # @return [String] + attr_accessor :namespace + + # Value for the guest attribute entry. + # 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) + @namespace = args[:namespace] if args.key?(:namespace) + @value = args[:value] if args.key?(:value) + end + end + + # Array of guest attribute namespace/key/value tuples. + class GuestAttributesValue + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @items = args[:items] if args.key?(:items) + end + end + # Guest OS features. class GuestOsFeature include Google::Apis::Core::Hashable @@ -7048,8 +7245,10 @@ module Google end end - # An Image resource. (== resource_for beta.images ==) (== resource_for v1.images - # ==) + # 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 ==) class Image include Google::Apis::Core::Hashable @@ -7427,8 +7626,10 @@ module Google end end - # An Instance resource. (== resource_for beta.instances ==) (== resource_for v1. - # instances ==) + # 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 ==) class Instance include Google::Apis::Core::Hashable @@ -7553,7 +7754,7 @@ module Google # @return [Array] attr_accessor :network_interfaces - # Sets the scheduling options for an Instance. + # Sets the scheduling options for an Instance. NextID: 9 # Corresponds to the JSON property `scheduling` # @return [Google::Apis::ComputeV1::Scheduling] attr_accessor :scheduling @@ -7768,9 +7969,15 @@ module Google end end - # InstanceGroups (== resource_for beta.instanceGroups ==) (== resource_for v1. - # instanceGroups ==) (== resource_for beta.regionInstanceGroups ==) (== - # resource_for v1.regionInstanceGroups ==) + # Represents an unmanaged Instance Group resource. + # Use unmanaged instance groups if you need to apply load balancing to groups of + # heterogeneous instances or if you need to manage the instances yourself. For + # more information, read Instance groups. + # For zonal unmanaged Instance Group, use instanceGroups resource. + # For regional unmanaged Instance Group, use regionInstanceGroups resource. (== + # resource_for beta.instanceGroups ==) (== resource_for v1.instanceGroups ==) (== + # resource_for beta.regionInstanceGroups ==) (== resource_for v1. + # regionInstanceGroups ==) class InstanceGroup include Google::Apis::Core::Hashable @@ -8112,10 +8319,14 @@ module Google end end - # An Instance Group Manager resource. (== resource_for beta. - # instanceGroupManagers ==) (== resource_for v1.instanceGroupManagers ==) (== - # resource_for beta.regionInstanceGroupManagers ==) (== resource_for v1. - # regionInstanceGroupManagers ==) + # Represents a Managed Instance Group resource. + # An instance group is a collection of VM instances that you can manage as a + # 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 ==) class InstanceGroupManager include Google::Apis::Core::Hashable @@ -8691,7 +8902,11 @@ module Google # @return [String] attr_accessor :minimal_action - # + # The type of update process. You can specify either PROACTIVE so that the + # instance group manager proactively executes actions in order to bring + # instances to their target versions or OPPORTUNISTIC so that no action is + # proactively executed but the update will be performed as part of other actions + # (for example, resizes or recreateInstances calls). # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -9601,7 +9816,7 @@ module Google # @return [Array] attr_accessor :network_interfaces - # Sets the scheduling options for an Instance. + # Sets the scheduling options for an Instance. NextID: 9 # Corresponds to the JSON property `scheduling` # @return [Google::Apis::ComputeV1::Scheduling] attr_accessor :scheduling @@ -9664,8 +9879,10 @@ module Google end end - # An Instance Template resource. (== resource_for beta.instanceTemplates ==) (== - # resource_for v1.instanceTemplates ==) + # 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 ==) class InstanceTemplate include Google::Apis::Core::Hashable @@ -10123,10 +10340,11 @@ module Google end end - # Represents an Interconnects resource. The Interconnects resource is a - # dedicated connection between Google's network and your on-premises network. - # For more information, see the Dedicated overview page. (== resource_for v1. - # interconnects ==) (== resource_for beta.interconnects ==) + # 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 ==) class Interconnect include Google::Apis::Core::Hashable @@ -10317,8 +10535,10 @@ module Google end end - # Represents an InterconnectAttachment (VLAN attachment) resource. For more - # information, see Creating VLAN Attachments. (== resource_for beta. + # 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 ==) class InterconnectAttachment include Google::Apis::Core::Hashable @@ -10396,7 +10616,8 @@ module Google attr_accessor :edge_availability_domain # [Output Only] Google reference ID, to be used when raising support tickets - # with Google or otherwise to debug backend connectivity issues. + # with Google or otherwise to debug backend connectivity issues. [Deprecated] + # This field is not used. # Corresponds to the JSON property `googleReferenceId` # @return [String] attr_accessor :google_reference_id @@ -11277,9 +11498,10 @@ module Google end end - # Represents an InterconnectLocations resource. The InterconnectLocations - # resource describes the locations where you can connect to Google's networks. - # For more information, see Colocation Facilities. + # Represents an Interconnect Attachment (VLAN) Location resource. + # You can use this resource to find location details about an Interconnect + # attachment (VLAN). For more information about interconnect attachments, read + # Creating VLAN Attachments. class InterconnectLocation include Google::Apis::Core::Hashable @@ -12097,8 +12319,10 @@ module Google end end - # A Machine Type resource. (== resource_for v1.machineTypes ==) (== resource_for - # beta.machineTypes ==) + # 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 ==) class MachineType include Google::Apis::Core::Hashable @@ -12820,9 +13044,10 @@ module Google end end - # Represents a Network resource. Read Virtual Private Cloud (VPC) Network - # Overview for more information. (== resource_for v1.networks ==) (== - # resource_for beta.networks ==) + # 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 ==) class Network include Google::Apis::Core::Hashable @@ -12847,14 +13072,14 @@ module Google # @return [String] attr_accessor :creation_timestamp - # An optional description of this resource. Provide this property when you - # create the resource. + # An optional description of this resource. Provide this field when you create + # the resource. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # [Output Only] The gateway address for default routing out of the network. This - # value is read only and is selected by GCP. + # [Output Only] The gateway address for default routing out of the network, + # selected by GCP. # Corresponds to the JSON property `gatewayIPv4` # @return [String] attr_accessor :gateway_i_pv4 @@ -12873,9 +13098,9 @@ module Google # 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. + # z0-9]*[a-z0-9])?. The first character must be a lowercase letter, and all + # following characters (except for the last character) must be a dash, lowercase + # letter, or digit. The last character must be a lowercase letter or digit. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -13597,8 +13822,8 @@ module Google # @return [Array] attr_accessor :access_configs - # An array of alias IP ranges for this network interface. Can only be specified - # for network interfaces on subnet-mode networks. + # An array of alias IP ranges for this network interface. You can only specify + # this field for network interfaces in VPC networks. # Corresponds to the JSON property `aliasIpRanges` # @return [Array] attr_accessor :alias_ip_ranges @@ -13618,8 +13843,8 @@ module Google # @return [String] attr_accessor :kind - # [Output Only] The name of the network interface, generated by the server. For - # network devices, these are eth0, eth1, etc. + # [Output Only] The name of the network interface, which is generated by the + # server. For network devices, these are eth0, eth1, etc. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -13628,8 +13853,6 @@ module Google # neither the network nor the subnetwork is specified, the default network # global/networks/default is used; if the network is not specified but the # subnetwork is specified, the network is inferred. - # This field is optional when creating a firewall rule. If not specified when - # creating a firewall rule, the default network global/networks/default is used. # If you specify this property, you can specify the network as a full or partial # URL. For example, the following are all valid URLs: # - https://www.googleapis.com/compute/v1/projects/project/global/networks/ @@ -13640,7 +13863,7 @@ module Google # @return [String] attr_accessor :network - # An IPv4 internal network address to assign to the instance for this network + # An IPv4 internal IP address to assign to the instance for this network # interface. If not specified by the user, an unused internal IP is assigned by # the system. # Corresponds to the JSON property `networkIP` @@ -13648,9 +13871,9 @@ module Google attr_accessor :network_ip # The URL of the Subnetwork resource for this instance. If the network resource - # is in legacy mode, do not provide this property. If the network is in auto - # subnet mode, providing the subnetwork is optional. If the network is in custom - # subnet mode, then this field should be specified. If you specify this property, + # is in legacy mode, do not specify this field. If the network is in auto subnet + # mode, specifying the subnetwork is optional. If the network is in custom + # subnet mode, specifying the subnetwork is required. If you specify this field, # you can specify the subnetwork as a full or partial URL. For example, the # following are all valid URLs: # - https://www.googleapis.com/compute/v1/projects/project/regions/region/ @@ -13801,7 +14024,7 @@ module Google class NetworkPeering include Google::Apis::Core::Hashable - # This field will be deprecated soon. Prefer using exchange_subnet_routes + # This field will be deprecated soon. Use the exchange_subnet_routes field # instead. Indicates whether full mesh connectivity is created and managed # automatically. When it is set to true, Google Compute Engine will # automatically create and manage the routes between two networks when the state @@ -13823,10 +14046,10 @@ module Google # Name of this peering. Provided by the client when the peering is created. The # name must comply with RFC1035. Specifically, the name must be 1-63 characters - # long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the - # first character must be a lowercase letter, and all the following characters - # must be a dash, lowercase letter, or digit, except the last character, which - # cannot be a dash. + # long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first + # character must be a lowercase letter, and all the 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 @@ -13839,7 +14062,8 @@ module Google # @return [String] attr_accessor :network - # [Output Only] State for the peering. + # [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The + # peering is `ACTIVE` when there's a matching configuration in the peer network. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state @@ -13870,9 +14094,9 @@ module Google class NetworkRoutingConfig include Google::Apis::Core::Hashable - # The network-wide routing mode to use. If set to REGIONAL, this network's cloud - # routers will only advertise routes with subnets of this network in the same - # region as the router. If set to GLOBAL, this network's cloud routers will + # The network-wide routing mode to use. If set to REGIONAL, this network's Cloud + # Routers will only advertise routes with subnets of this network in the same + # region as the router. If set to GLOBAL, this network's Cloud Routers will # advertise routes with all subnets of this network, across regions. # Corresponds to the JSON property `routingMode` # @return [String] @@ -13892,7 +14116,7 @@ module Google class NetworksAddPeeringRequest include Google::Apis::Core::Hashable - # This field will be deprecated soon. Prefer using exchange_subnet_routes in + # This field will be deprecated soon. Use exchange_subnet_routes in # network_peering instead. Whether Google Compute Engine manages the routes # automatically. # Corresponds to the JSON property `autoCreateRoutes` @@ -13952,10 +14176,13 @@ module Google end end - # A NodeGroup resource. To create a node group, you must first create a node - # templates. To learn more about node groups and sole-tenant nodes, read the - # Sole-tenant nodes documentation. (== resource_for beta.nodeGroups ==) (== - # resource_for v1.nodeGroups ==) + # Represent a sole-tenant Node Group resource. + # A sole-tenant node is a physical server that is dedicated to hosting VM + # 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 ==) NextID: 15 class NodeGroup include Google::Apis::Core::Hashable @@ -14293,6 +14520,11 @@ module Google # @return [String] attr_accessor :node_type + # Binding properties for the physical server. + # Corresponds to the JSON property `serverBinding` + # @return [Google::Apis::ComputeV1::ServerBinding] + attr_accessor :server_binding + # # Corresponds to the JSON property `status` # @return [String] @@ -14307,6 +14539,7 @@ module Google @instances = args[:instances] if args.key?(:instances) @name = args[:name] if args.key?(:name) @node_type = args[:node_type] if args.key?(:node_type) + @server_binding = args[:server_binding] if args.key?(:server_binding) @status = args[:status] if args.key?(:status) end end @@ -14578,9 +14811,10 @@ module Google end end - # A Node Template resource. To learn more about node templates and sole-tenant - # nodes, read the Sole-tenant nodes documentation. (== resource_for beta. - # nodeTemplates ==) (== resource_for v1.nodeTemplates ==) + # 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 ==) NextID: 16 class NodeTemplate include Google::Apis::Core::Hashable @@ -14647,6 +14881,11 @@ module Google # @return [String] attr_accessor :self_link + # Binding properties for the physical server. + # Corresponds to the JSON property `serverBinding` + # @return [Google::Apis::ComputeV1::ServerBinding] + attr_accessor :server_binding + # [Output Only] The status of the node template. One of the following values: # CREATING, READY, and DELETING. # Corresponds to the JSON property `status` @@ -14674,6 +14913,7 @@ module Google @node_type_flexibility = args[:node_type_flexibility] if args.key?(:node_type_flexibility) @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) + @server_binding = args[:server_binding] if args.key?(:server_binding) @status = args[:status] if args.key?(:status) @status_message = args[:status_message] if args.key?(:status_message) end @@ -15037,7 +15277,12 @@ module Google end end - # A Node Type resource. + # Represent a sole-tenant Node Type resource. + # Each node within a node group must have a node type. A node type specifies the + # 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 ==) class NodeType include Google::Apis::Core::Hashable @@ -15452,7 +15697,14 @@ module Google end end - # An Operation resource, used to manage asynchronous API requests. (== + # Represents an Operation resource. + # 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. + # - For global operations, use the globalOperations resource. + # - 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 @@ -15540,9 +15792,7 @@ module Google attr_accessor :progress # [Output Only] The URL of the region where the operation resides. Only - # available when performing regional operations. You must specify this field as - # part of the HTTP request URL. It is not settable as a field in the request - # body. + # applicable when performing regional operations. # Corresponds to the JSON property `region` # @return [String] attr_accessor :region @@ -15594,9 +15844,8 @@ module Google # @return [Array] attr_accessor :warnings - # [Output Only] The URL of the zone where the operation resides. Only available - # when performing per-zone operations. You must specify this field as part of - # the HTTP request URL. It is not settable as a field in the request body. + # [Output Only] The URL of the zone where the operation resides. Only applicable + # when performing per-zone operations. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -16259,8 +16508,10 @@ module Google end end - # A Project resource. For an overview of projects, see Cloud Platform Resource - # Hierarchy. (== resource_for v1.projects ==) (== resource_for beta.projects ==) + # 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 ==) class Project include Google::Apis::Core::Hashable @@ -16550,8 +16801,10 @@ module Google end end - # Region resource. (== resource_for beta.regions ==) (== resource_for v1.regions - # ==) + # 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 ==) class Region include Google::Apis::Core::Hashable @@ -16861,6 +17114,44 @@ module Google end end + # + class RegionDisksAddResourcePoliciesRequest + include Google::Apis::Core::Hashable + + # Resource policies to be added to this disk. + # Corresponds to the JSON property `resourcePolicies` + # @return [Array] + attr_accessor :resource_policies + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource_policies = args[:resource_policies] if args.key?(:resource_policies) + end + end + + # + class RegionDisksRemoveResourcePoliciesRequest + include Google::Apis::Core::Hashable + + # Resource policies to be removed from this disk. + # Corresponds to the JSON property `resourcePolicies` + # @return [Array] + attr_accessor :resource_policies + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource_policies = args[:resource_policies] if args.key?(:resource_policies) + end + end + # class RegionDisksResizeRequest include Google::Apis::Core::Hashable @@ -17668,20 +17959,669 @@ module Google end end - # Represents a Route resource. A route specifies how certain packets should be - # handled by the network. Routes are associated with instances by tags and the - # set of routes for a particular instance is called its routing table. - # For each packet leaving an instance, the system searches that instance's - # routing table for a single best matching route. Routes match packets by - # destination IP address, preferring smaller or more specific ranges over larger - # ones. If there is a tie, the system selects the route with the smallest - # priority value. If there is still a tie, it uses the layer three and four - # packet headers to select just one of the remaining matching routes. The packet - # is then forwarded as specified by the nextHop field of the winning route - - # either to another instance destination, an instance gateway, or a Google - # Compute Engine-operated gateway. - # Packets that do not match any route in the sending instance's routing table - # are dropped. (== resource_for beta.routes ==) (== resource_for v1.routes ==) + # + class ResourcePoliciesScopedList + include Google::Apis::Core::Hashable + + # A list of resourcePolicies contained in this scope. + # Corresponds to the JSON property `resourcePolicies` + # @return [Array] + attr_accessor :resource_policies + + # Informational warning which replaces the list of resourcePolicies when the + # list is empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::ResourcePoliciesScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource_policies = args[:resource_policies] if args.key?(:resource_policies) + @warning = args[:warning] if args.key?(:warning) + end + + # Informational warning which replaces the list of resourcePolicies when the + # list is empty. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # + class ResourcePolicy + include Google::Apis::Core::Hashable + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # [Output Only] Type of the resource. Always compute#resource_policies for + # resource policies. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The name of the resource, provided by the client when initially creating the + # resource. The resource 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 + + # + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # [Output Only] Server-defined fully-qualified URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # A snapshot schedule policy specifies when and how frequently snapshots are to + # be created for the target disk. Also specifies how many and how long these + # scheduled snapshots should be retained. + # Corresponds to the JSON property `snapshotSchedulePolicy` + # @return [Google::Apis::ComputeV1::ResourcePolicySnapshotSchedulePolicy] + attr_accessor :snapshot_schedule_policy + + # [Output Only] The status of resource policy creation. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @snapshot_schedule_policy = args[:snapshot_schedule_policy] if args.key?(:snapshot_schedule_policy) + @status = args[:status] if args.key?(:status) + end + end + + # Contains a list of resourcePolicies. + class ResourcePolicyAggregatedList + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of ResourcePolicy 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::ResourcePolicyAggregatedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + 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 + + # Time window specified for daily operations. + class ResourcePolicyDailyCycle + include Google::Apis::Core::Hashable + + # Defines a schedule that runs every nth day of the month. + # Corresponds to the JSON property `daysInCycle` + # @return [Fixnum] + attr_accessor :days_in_cycle + + # [Output only] A predetermined duration for the window, automatically chosen to + # be the smallest possible in the given scenario. + # Corresponds to the JSON property `duration` + # @return [String] + attr_accessor :duration + + # Start time of the window. This must be in UTC format that resolves to one of + # 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08: + # 00 are valid. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @days_in_cycle = args[:days_in_cycle] if args.key?(:days_in_cycle) + @duration = args[:duration] if args.key?(:duration) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + + # Time window specified for hourly operations. + class ResourcePolicyHourlyCycle + include Google::Apis::Core::Hashable + + # [Output only] Duration of the time window, automatically chosen to be smallest + # possible in the given scenario. + # Corresponds to the JSON property `duration` + # @return [String] + attr_accessor :duration + + # Allows to define schedule that runs every nth hour. + # Corresponds to the JSON property `hoursInCycle` + # @return [Fixnum] + attr_accessor :hours_in_cycle + + # Time within the window to start the operations. It must be in format "HH:MM", + # where HH : [00-23] and MM : [00-00] GMT. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @duration = args[:duration] if args.key?(:duration) + @hours_in_cycle = args[:hours_in_cycle] if args.key?(:hours_in_cycle) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + + # + class ResourcePolicyList + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output Only] A list of ResourcePolicy resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource.Always compute#resourcePoliciesList for listsof + # resourcePolicies + # 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::ResourcePolicyList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + 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 snapshot schedule policy specifies when and how frequently snapshots are to + # be created for the target disk. Also specifies how many and how long these + # scheduled snapshots should be retained. + class ResourcePolicySnapshotSchedulePolicy + include Google::Apis::Core::Hashable + + # Policy for retention of scheduled snapshots. + # Corresponds to the JSON property `retentionPolicy` + # @return [Google::Apis::ComputeV1::ResourcePolicySnapshotSchedulePolicyRetentionPolicy] + attr_accessor :retention_policy + + # A schedule for disks where the schedueled operations are performed. + # Corresponds to the JSON property `schedule` + # @return [Google::Apis::ComputeV1::ResourcePolicySnapshotSchedulePolicySchedule] + attr_accessor :schedule + + # Specified snapshot properties for scheduled snapshots created by this policy. + # Corresponds to the JSON property `snapshotProperties` + # @return [Google::Apis::ComputeV1::ResourcePolicySnapshotSchedulePolicySnapshotProperties] + attr_accessor :snapshot_properties + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @retention_policy = args[:retention_policy] if args.key?(:retention_policy) + @schedule = args[:schedule] if args.key?(:schedule) + @snapshot_properties = args[:snapshot_properties] if args.key?(:snapshot_properties) + end + end + + # Policy for retention of scheduled snapshots. + class ResourcePolicySnapshotSchedulePolicyRetentionPolicy + include Google::Apis::Core::Hashable + + # Maximum age of the snapshot that is allowed to be kept. + # Corresponds to the JSON property `maxRetentionDays` + # @return [Fixnum] + attr_accessor :max_retention_days + + # Specifies the behavior to apply to scheduled snapshots when the source disk is + # deleted. + # Corresponds to the JSON property `onSourceDiskDelete` + # @return [String] + attr_accessor :on_source_disk_delete + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_retention_days = args[:max_retention_days] if args.key?(:max_retention_days) + @on_source_disk_delete = args[:on_source_disk_delete] if args.key?(:on_source_disk_delete) + end + end + + # A schedule for disks where the schedueled operations are performed. + class ResourcePolicySnapshotSchedulePolicySchedule + include Google::Apis::Core::Hashable + + # Time window specified for daily operations. + # Corresponds to the JSON property `dailySchedule` + # @return [Google::Apis::ComputeV1::ResourcePolicyDailyCycle] + attr_accessor :daily_schedule + + # Time window specified for hourly operations. + # Corresponds to the JSON property `hourlySchedule` + # @return [Google::Apis::ComputeV1::ResourcePolicyHourlyCycle] + attr_accessor :hourly_schedule + + # Time window specified for weekly operations. + # Corresponds to the JSON property `weeklySchedule` + # @return [Google::Apis::ComputeV1::ResourcePolicyWeeklyCycle] + attr_accessor :weekly_schedule + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @daily_schedule = args[:daily_schedule] if args.key?(:daily_schedule) + @hourly_schedule = args[:hourly_schedule] if args.key?(:hourly_schedule) + @weekly_schedule = args[:weekly_schedule] if args.key?(:weekly_schedule) + end + end + + # Specified snapshot properties for scheduled snapshots created by this policy. + class ResourcePolicySnapshotSchedulePolicySnapshotProperties + include Google::Apis::Core::Hashable + + # Indication to perform a ?guest aware? snapshot. + # Corresponds to the JSON property `guestFlush` + # @return [Boolean] + attr_accessor :guest_flush + alias_method :guest_flush?, :guest_flush + + # Labels to apply to scheduled snapshots. These can be later modified by the + # setLabels method. Label values may be empty. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # GCS bucket storage location of the auto snapshot (regional or multi-regional). + # Corresponds to the JSON property `storageLocations` + # @return [Array] + attr_accessor :storage_locations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @guest_flush = args[:guest_flush] if args.key?(:guest_flush) + @labels = args[:labels] if args.key?(:labels) + @storage_locations = args[:storage_locations] if args.key?(:storage_locations) + end + end + + # Time window specified for weekly operations. + class ResourcePolicyWeeklyCycle + include Google::Apis::Core::Hashable + + # Up to 7 intervals/windows, one for each day of the week. + # Corresponds to the JSON property `dayOfWeeks` + # @return [Array] + attr_accessor :day_of_weeks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day_of_weeks = args[:day_of_weeks] if args.key?(:day_of_weeks) + end + end + + # + class ResourcePolicyWeeklyCycleDayOfWeek + include Google::Apis::Core::Hashable + + # Allows to define schedule that runs specified day of the week. + # Corresponds to the JSON property `day` + # @return [String] + attr_accessor :day + + # [Output only] Duration of the time window, automatically chosen to be smallest + # possible in the given scenario. + # Corresponds to the JSON property `duration` + # @return [String] + attr_accessor :duration + + # Time within the window to start the operations. It must be in format "HH:MM", + # where HH : [00-23] and MM : [00-00] GMT. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day = args[:day] if args.key?(:day) + @duration = args[:duration] if args.key?(:duration) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + + # 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 ==) class Route include Google::Apis::Core::Hashable @@ -17690,8 +18630,8 @@ module Google # @return [String] attr_accessor :creation_timestamp - # An optional description of this resource. Provide this property when you - # create the resource. + # An optional description of this resource. Provide this field when you create + # the resource. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description @@ -17716,9 +18656,9 @@ module Google # 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. + # z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all + # following characters (except for the last character) must be a dash, lowercase + # letter, or digit. The last character must be a lowercase letter or digit. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -17729,7 +18669,7 @@ module Google attr_accessor :network # The URL to a gateway that should handle matching packets. You can only specify - # the internet gateway using a full or partial valid URL: projects// + # the internet gateway using a full or partial valid URL: projects/project/ # global/gateways/default-internet-gateway # Corresponds to the JSON property `nextHopGateway` # @return [String] @@ -17765,9 +18705,10 @@ module Google attr_accessor :next_hop_vpn_tunnel # The priority of this route. Priority is used to break ties in cases where - # there is more than one matching route of equal prefix length. In the case of - # two routes with equal prefix length, the one with the lowest-numbered priority - # value wins. Default value is 1000. Valid range is 0 through 65535. + # there is more than one matching route of equal prefix length. In cases where + # multiple routes have equal prefix length, the one with the lowest-numbered + # priority value wins. The default value is `1000`. The priority value must be + # from `0` to `65535`, inclusive. # Corresponds to the JSON property `priority` # @return [Fixnum] attr_accessor :priority @@ -17995,7 +18936,8 @@ module Google end end - # Router resource. + # Represents a Cloud Router resource. + # For more information about Cloud Router, read the the Cloud Router overview. class Router include Google::Apis::Core::Hashable @@ -18918,7 +19860,8 @@ module Google class RoutersPreviewResponse include Google::Apis::Core::Hashable - # Router resource. + # Represents a Cloud Router resource. + # For more information about Cloud Router, read the the Cloud Router overview. # Corresponds to the JSON property `resource` # @return [Google::Apis::ComputeV1::Router] attr_accessor :resource @@ -19157,7 +20100,7 @@ module Google end end - # Sets the scheduling options for an Instance. + # Sets the scheduling options for an Instance. NextID: 9 class Scheduling include Google::Apis::Core::Hashable @@ -19607,6 +20550,25 @@ module Google end end + # + class ServerBinding + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] if args.key?(:type) + end + end + # A service account. class ServiceAccount include Google::Apis::Core::Hashable @@ -19776,11 +20738,20 @@ module Google end end - # A persistent disk snapshot resource. (== resource_for beta.snapshots ==) (== - # resource_for v1.snapshots ==) + # 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 ==) class Snapshot include Google::Apis::Core::Hashable + # [Output Only] Set to true if snapshots are automatically by applying resource + # policy on the target disk. + # Corresponds to the JSON property `autoCreated` + # @return [Boolean] + attr_accessor :auto_created + alias_method :auto_created?, :auto_created + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] @@ -19908,6 +20879,7 @@ module Google # Update properties of this object def update!(**args) + @auto_created = args[:auto_created] if args.key?(:auto_created) @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) @@ -20592,8 +21564,11 @@ module Google end end - # A Subnetwork resource. (== resource_for beta.subnetworks ==) (== resource_for - # v1.subnetworks ==) + # Represents a Subnetwork resource. + # 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 ==) class Subnetwork include Google::Apis::Core::Hashable @@ -21661,9 +22636,12 @@ module Google end end - # A TargetInstance resource. This resource defines an endpoint instance that - # terminates traffic of certain protocols. (== resource_for beta.targetInstances - # ==) (== resource_for v1.targetInstances ==) + # Represents a Target Instance resource. + # 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 ==) class TargetInstance include Google::Apis::Core::Hashable @@ -23145,7 +24123,9 @@ module Google end end - # Represents a Target VPN gateway resource. (== resource_for beta. + # 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 ==) class TargetVpnGateway include Google::Apis::Core::Hashable @@ -24403,8 +25383,9 @@ module Google end end - # VPN tunnel resource. (== resource_for beta.vpnTunnels ==) (== resource_for v1. - # vpnTunnels ==) + # 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 ==) class VpnTunnel include Google::Apis::Core::Hashable @@ -25015,8 +25996,11 @@ module Google end end - # A Zone resource. (== resource_for beta.zones ==) (== resource_for v1.zones ==) - # Next ID: 17 + # 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 ==) 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 c38d49dea..baa1aaaa8 100644 --- a/generated/google/apis/compute_v1/representations.rb +++ b/generated/google/apis/compute_v1/representations.rb @@ -622,6 +622,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DisksAddResourcePoliciesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DisksRemoveResourcePoliciesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DisksResizeRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -790,6 +802,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GuestAttributes + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GuestAttributesEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GuestAttributesValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GuestOsFeature class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2266,6 +2296,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RegionDisksAddResourcePoliciesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RegionDisksRemoveResourcePoliciesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RegionDisksResizeRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2416,6 +2458,114 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ResourcePoliciesScopedList + 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 ResourcePolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicyAggregatedList + 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 ResourcePolicyDailyCycle + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicyHourlyCycle + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicyList + 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 ResourcePolicySnapshotSchedulePolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicySnapshotSchedulePolicyRetentionPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicySnapshotSchedulePolicySchedule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicySnapshotSchedulePolicySnapshotProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicyWeeklyCycle + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourcePolicyWeeklyCycleDayOfWeek + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Route class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2662,6 +2812,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ServerBinding + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ServiceAccount class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3784,6 +3940,7 @@ module Google property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb' property :disk_type, as: 'diskType' hash :labels, as: 'labels' + collection :resource_policies, as: 'resourcePolicies' property :source_image, as: 'sourceImage' property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation @@ -4420,6 +4577,7 @@ module Google property :physical_block_size_bytes, :numeric_string => true, as: 'physicalBlockSizeBytes' property :region, as: 'region' collection :replica_zones, as: 'replicaZones' + collection :resource_policies, as: 'resourcePolicies' property :self_link, as: 'selfLink' property :size_gb, :numeric_string => true, as: 'sizeGb' property :source_image, as: 'sourceImage' @@ -4629,6 +4787,20 @@ module Google end end + class DisksAddResourcePoliciesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :resource_policies, as: 'resourcePolicies' + end + end + + class DisksRemoveResourcePoliciesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :resource_policies, as: 'resourcePolicies' + end + end + class DisksResizeRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4926,6 +5098,36 @@ module Google end end + class GuestAttributes + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :query_path, as: 'queryPath' + property :query_value, as: 'queryValue', class: Google::Apis::ComputeV1::GuestAttributesValue, decorator: Google::Apis::ComputeV1::GuestAttributesValue::Representation + + property :self_link, as: 'selfLink' + property :variable_key, as: 'variableKey' + property :variable_value, as: 'variableValue' + end + end + + class GuestAttributesEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :namespace, as: 'namespace' + property :value, as: 'value' + end + end + + class GuestAttributesValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :items, as: 'items', class: Google::Apis::ComputeV1::GuestAttributesEntry, decorator: Google::Apis::ComputeV1::GuestAttributesEntry::Representation + + end + end + class GuestOsFeature # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -6998,6 +7200,8 @@ module Google collection :instances, as: 'instances' property :name, as: 'name' property :node_type, as: 'nodeType' + property :server_binding, as: 'serverBinding', class: Google::Apis::ComputeV1::ServerBinding, decorator: Google::Apis::ComputeV1::ServerBinding::Representation + property :status, as: 'status' end end @@ -7097,6 +7301,8 @@ module Google property :region, as: 'region' property :self_link, as: 'selfLink' + property :server_binding, as: 'serverBinding', class: Google::Apis::ComputeV1::ServerBinding, decorator: Google::Apis::ComputeV1::ServerBinding::Representation + property :status, as: 'status' property :status_message, as: 'statusMessage' end @@ -7670,6 +7876,20 @@ module Google end end + class RegionDisksAddResourcePoliciesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :resource_policies, as: 'resourcePolicies' + end + end + + class RegionDisksRemoveResourcePoliciesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :resource_policies, as: 'resourcePolicies' + end + end + class RegionDisksResizeRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -7900,6 +8120,192 @@ module Google end end + class ResourcePoliciesScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :resource_policies, as: 'resourcePolicies', class: Google::Apis::ComputeV1::ResourcePolicy, decorator: Google::Apis::ComputeV1::ResourcePolicy::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeV1::ResourcePoliciesScopedList::Warning, decorator: Google::Apis::ComputeV1::ResourcePoliciesScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::ResourcePoliciesScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::ResourcePoliciesScopedList::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 ResourcePolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :region, as: 'region' + property :self_link, as: 'selfLink' + property :snapshot_schedule_policy, as: 'snapshotSchedulePolicy', class: Google::Apis::ComputeV1::ResourcePolicySnapshotSchedulePolicy, decorator: Google::Apis::ComputeV1::ResourcePolicySnapshotSchedulePolicy::Representation + + property :status, as: 'status' + end + end + + class ResourcePolicyAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :etag, as: 'etag' + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeV1::ResourcePoliciesScopedList, decorator: Google::Apis::ComputeV1::ResourcePoliciesScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeV1::ResourcePolicyAggregatedList::Warning, decorator: Google::Apis::ComputeV1::ResourcePolicyAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::ResourcePolicyAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeV1::ResourcePolicyAggregatedList::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 ResourcePolicyDailyCycle + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :days_in_cycle, as: 'daysInCycle' + property :duration, as: 'duration' + property :start_time, as: 'startTime' + end + end + + class ResourcePolicyHourlyCycle + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :duration, as: 'duration' + property :hours_in_cycle, as: 'hoursInCycle' + property :start_time, as: 'startTime' + end + end + + class ResourcePolicyList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :etag, as: 'etag' + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::ResourcePolicy, decorator: Google::Apis::ComputeV1::ResourcePolicy::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeV1::ResourcePolicyList::Warning, decorator: Google::Apis::ComputeV1::ResourcePolicyList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::ResourcePolicyList::Warning::Datum, decorator: Google::Apis::ComputeV1::ResourcePolicyList::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 ResourcePolicySnapshotSchedulePolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :retention_policy, as: 'retentionPolicy', class: Google::Apis::ComputeV1::ResourcePolicySnapshotSchedulePolicyRetentionPolicy, decorator: Google::Apis::ComputeV1::ResourcePolicySnapshotSchedulePolicyRetentionPolicy::Representation + + property :schedule, as: 'schedule', class: Google::Apis::ComputeV1::ResourcePolicySnapshotSchedulePolicySchedule, decorator: Google::Apis::ComputeV1::ResourcePolicySnapshotSchedulePolicySchedule::Representation + + property :snapshot_properties, as: 'snapshotProperties', class: Google::Apis::ComputeV1::ResourcePolicySnapshotSchedulePolicySnapshotProperties, decorator: Google::Apis::ComputeV1::ResourcePolicySnapshotSchedulePolicySnapshotProperties::Representation + + end + end + + class ResourcePolicySnapshotSchedulePolicyRetentionPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_retention_days, as: 'maxRetentionDays' + property :on_source_disk_delete, as: 'onSourceDiskDelete' + end + end + + class ResourcePolicySnapshotSchedulePolicySchedule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :daily_schedule, as: 'dailySchedule', class: Google::Apis::ComputeV1::ResourcePolicyDailyCycle, decorator: Google::Apis::ComputeV1::ResourcePolicyDailyCycle::Representation + + property :hourly_schedule, as: 'hourlySchedule', class: Google::Apis::ComputeV1::ResourcePolicyHourlyCycle, decorator: Google::Apis::ComputeV1::ResourcePolicyHourlyCycle::Representation + + property :weekly_schedule, as: 'weeklySchedule', class: Google::Apis::ComputeV1::ResourcePolicyWeeklyCycle, decorator: Google::Apis::ComputeV1::ResourcePolicyWeeklyCycle::Representation + + end + end + + class ResourcePolicySnapshotSchedulePolicySnapshotProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :guest_flush, as: 'guestFlush' + hash :labels, as: 'labels' + collection :storage_locations, as: 'storageLocations' + end + end + + class ResourcePolicyWeeklyCycle + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :day_of_weeks, as: 'dayOfWeeks', class: Google::Apis::ComputeV1::ResourcePolicyWeeklyCycleDayOfWeek, decorator: Google::Apis::ComputeV1::ResourcePolicyWeeklyCycleDayOfWeek::Representation + + end + end + + class ResourcePolicyWeeklyCycleDayOfWeek + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :day, as: 'day' + property :duration, as: 'duration' + property :start_time, as: 'startTime' + end + end + class Route # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -8372,6 +8778,13 @@ module Google end end + class ServerBinding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + end + end + class ServiceAccount # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -8426,6 +8839,7 @@ module Google class Snapshot # @private class Representation < Google::Apis::Core::JsonRepresentation + property :auto_created, as: 'autoCreated' property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb' diff --git a/generated/google/apis/compute_v1/service.rb b/generated/google/apis/compute_v1/service.rb index 96b7a10d0..43539971d 100644 --- a/generated/google/apis/compute_v1/service.rb +++ b/generated/google/apis/compute_v1/service.rb @@ -396,8 +396,8 @@ module Google execute_or_queue_command(command, &block) end - # Creates an address resource in the specified project using the data included - # in the request. + # Creates an address resource in the specified project by using the data + # included in the request. # @param [String] project # Project ID for this request. # @param [String] region @@ -2105,6 +2105,61 @@ module Google execute_or_queue_command(command, &block) end + # Adds existing resource policies to a disk. You can only add one policy which + # will be applied to this disk for scheduling snapshot creation. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] disk + # The disk name for this request. + # @param [Google::Apis::ComputeV1::DisksAddResourcePoliciesRequest] disks_add_resource_policies_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::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 add_disk_resource_policies(project, zone, disk, disks_add_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/disks/{disk}/addResourcePolicies', options) + command.request_representation = Google::Apis::ComputeV1::DisksAddResourcePoliciesRequest::Representation + command.request_object = disks_add_resource_policies_request_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['zone'] = zone unless zone.nil? + command.params['disk'] = disk unless disk.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves an aggregated list of persistent disks. # @param [String] project # Project ID for this request. @@ -2499,6 +2554,60 @@ module Google execute_or_queue_command(command, &block) end + # Removes resource policies from a disk. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] disk + # The disk name for this request. + # @param [Google::Apis::ComputeV1::DisksRemoveResourcePoliciesRequest] disks_remove_resource_policies_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::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 remove_disk_resource_policies(project, zone, disk, disks_remove_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/disks/{disk}/removeResourcePolicies', options) + command.request_representation = Google::Apis::ComputeV1::DisksRemoveResourcePoliciesRequest::Representation + command.request_object = disks_remove_resource_policies_request_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['zone'] = zone unless zone.nil? + command.params['disk'] = disk unless disk.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 + # Resizes the specified persistent disk. You can only increase the size of the # disk. # @param [String] project @@ -3432,8 +3541,8 @@ module Google execute_or_queue_command(command, &block) end - # Creates an address resource in the specified project using the data included - # in the request. + # Creates an address resource in the specified project by using the data + # included in the request. # @param [String] project # Project ID for this request. # @param [Google::Apis::ComputeV1::Address] address_object @@ -7487,6 +7596,51 @@ module Google execute_or_queue_command(command, &block) end + # Returns the specified guest attributes entry. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] instance + # Name of the instance scoping this request. + # @param [String] query_path + # Specifies the guest attributes path to be queried. + # @param [String] variable_key + # Specifies the key for the guest attributes entry. + # @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::GuestAttributes] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::GuestAttributes] + # + # @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_instance_guest_attributes(project, zone, instance, query_path: nil, variable_key: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}/getGuestAttributes', options) + command.response_representation = Google::Apis::ComputeV1::GuestAttributes::Representation + command.response_class = Google::Apis::ComputeV1::GuestAttributes + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['instance'] = instance unless instance.nil? + command.query['queryPath'] = query_path unless query_path.nil? + command.query['variableKey'] = variable_key unless variable_key.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 + # Gets the access control policy for a resource. May be empty if no such policy # or resource exists. # @param [String] project @@ -12517,8 +12671,8 @@ module Google execute_or_queue_command(command, &block) end - # Disable a serivce resource (a.k.a service project) associated with this host - # project. + # Disable a service resource (also known as service project) associated with + # this host project. # @param [String] project # Project ID for this request. # @param [Google::Apis::ComputeV1::ProjectsDisableXpnResourceRequest] projects_disable_xpn_resource_request_object @@ -14171,6 +14325,61 @@ module Google execute_or_queue_command(command, &block) end + # Adds existing resource policies to a regional disk. You can only add one + # policy which will be applied to this disk for scheduling snapshot creation. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] disk + # The disk name for this request. + # @param [Google::Apis::ComputeV1::RegionDisksAddResourcePoliciesRequest] region_disks_add_resource_policies_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::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 add_region_disk_resource_policies(project, region, disk, region_disks_add_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/disks/{disk}/addResourcePolicies', options) + command.request_representation = Google::Apis::ComputeV1::RegionDisksAddResourcePoliciesRequest::Representation + command.request_object = region_disks_add_resource_policies_request_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['disk'] = disk unless disk.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 + # Creates a snapshot of this regional disk. # @param [String] project # Project ID for this request. @@ -14447,6 +14656,60 @@ module Google execute_or_queue_command(command, &block) end + # Removes resource policies from a regional disk. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region for this request. + # @param [String] disk + # The disk name for this request. + # @param [Google::Apis::ComputeV1::RegionDisksRemoveResourcePoliciesRequest] region_disks_remove_resource_policies_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::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 remove_region_disk_resource_policies(project, region, disk, region_disks_remove_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/disks/{disk}/removeResourcePolicies', options) + command.request_representation = Google::Apis::ComputeV1::RegionDisksRemoveResourcePoliciesRequest::Representation + command.request_object = region_disks_remove_resource_policies_request_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['disk'] = disk unless disk.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 + # Resizes the specified regional persistent disk. # @param [String] project # The project ID for this request. @@ -15830,6 +16093,335 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves an aggregated list of resource policies. + # @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::ResourcePolicyAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::ResourcePolicyAggregatedList] + # + # @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_resource_policy_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/resourcePolicies', options) + command.response_representation = Google::Apis::ComputeV1::ResourcePolicyAggregatedList::Representation + command.response_class = Google::Apis::ComputeV1::ResourcePolicyAggregatedList + 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 resource policy. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] resource_policy + # Name of the resource policy 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_resource_policy(project, region, resource_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/regions/{region}/resourcePolicies/{resourcePolicy}', 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['resourcePolicy'] = resource_policy unless resource_policy.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 all information of the specified resource policy. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] resource_policy + # Name of the resource policy to retrieve. + # @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::ResourcePolicy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::ResourcePolicy] + # + # @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_resource_policy(project, region, resource_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options) + command.response_representation = Google::Apis::ComputeV1::ResourcePolicy::Representation + command.response_class = Google::Apis::ComputeV1::ResourcePolicy + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resourcePolicy'] = resource_policy unless resource_policy.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 new resource policy. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [Google::Apis::ComputeV1::ResourcePolicy] resource_policy_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_resource_policy(project, region, resource_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/resourcePolicies', options) + command.request_representation = Google::Apis::ComputeV1::ResourcePolicy::Representation + command.request_object = resource_policy_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 + + # A list all the resource policies that have been configured for the specified + # project in specified 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::ResourcePolicyList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::ResourcePolicyList] + # + # @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_resource_policies(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}/resourcePolicies', options) + command.response_representation = Google::Apis::ComputeV1::ResourcePolicyList::Representation + command.response_class = Google::Apis::ComputeV1::ResourcePolicyList + 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 + + # 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_resource_policy_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}/resourcePolicies/{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 + # Retrieves an aggregated list of routers. # @param [String] project # Project ID for this request. diff --git a/generated/google/apis/container_v1.rb b/generated/google/apis/container_v1.rb index 4af0e4a8c..a18046c0b 100644 --- a/generated/google/apis/container_v1.rb +++ b/generated/google/apis/container_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1 VERSION = 'V1' - REVISION = '20190527' + REVISION = '20190610' # 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/container_v1/classes.rb b/generated/google/apis/container_v1/classes.rb index 367be8c7e..be0de16e4 100644 --- a/generated/google/apis/container_v1/classes.rb +++ b/generated/google/apis/container_v1/classes.rb @@ -120,6 +120,25 @@ module Google end end + # Parameters for using BigQuery as the destination of resource usage export. + class BigQueryDestination + include Google::Apis::Core::Hashable + + # The ID of a BigQuery Dataset. + # Corresponds to the JSON property `datasetId` + # @return [String] + attr_accessor :dataset_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dataset_id = args[:dataset_id] if args.key?(:dataset_id) + end + end + # CancelOperationRequest cancels a single operation. class CancelOperationRequest include Google::Apis::Core::Hashable @@ -366,6 +385,8 @@ module Google # The logging service the cluster should use to write logs. # Currently available options: + # * "logging.googleapis.com/kubernetes" - the Google Cloud Logging + # service with Kubernetes-native resource model in Stackdriver # * `logging.googleapis.com` - the Google Cloud Logging service. # * `none` - no logs will be exported from the cluster. # * if left as an empty string,`logging.googleapis.com` will be used. @@ -461,6 +482,11 @@ module Google # @return [Hash] attr_accessor :resource_labels + # Configuration for exporting cluster resource usages. + # Corresponds to the JSON property `resourceUsageExportConfig` + # @return [Google::Apis::ContainerV1::ResourceUsageExportConfig] + attr_accessor :resource_usage_export_config + # [Output only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] @@ -549,6 +575,7 @@ module Google @node_pools = args[:node_pools] if args.key?(:node_pools) @private_cluster_config = args[:private_cluster_config] if args.key?(:private_cluster_config) @resource_labels = args[:resource_labels] if args.key?(:resource_labels) + @resource_usage_export_config = args[:resource_usage_export_config] if args.key?(:resource_usage_export_config) @self_link = args[:self_link] if args.key?(:self_link) @services_ipv4_cidr = args[:services_ipv4_cidr] if args.key?(:services_ipv4_cidr) @status = args[:status] if args.key?(:status) @@ -587,6 +614,16 @@ module Google # @return [Array] attr_accessor :desired_locations + # The logging service the cluster should use to write logs. + # Currently available options: + # * "logging.googleapis.com/kubernetes" - the Google Cloud Logging + # service with Kubernetes-native resource model in Stackdriver + # * "logging.googleapis.com" - the Google Cloud Logging service + # * "none" - no logs will be exported from the cluster + # Corresponds to the JSON property `desiredLoggingService` + # @return [String] + attr_accessor :desired_logging_service + # Configuration options for the master authorized networks feature. Enabled # master authorized networks will disallow all external traffic to access # Kubernetes master through HTTPS except traffic from the given CIDR blocks, @@ -609,6 +646,8 @@ module Google # The monitoring service the cluster should use to write metrics. # Currently available options: + # * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring + # service with Kubernetes-native resource model in Stackdriver # * "monitoring.googleapis.com" - the Google Cloud Monitoring service # * "none" - no metrics will be exported from the cluster # Corresponds to the JSON property `desiredMonitoringService` @@ -642,6 +681,11 @@ module Google # @return [String] attr_accessor :desired_node_version + # Configuration for exporting cluster resource usages. + # Corresponds to the JSON property `desiredResourceUsageExportConfig` + # @return [Google::Apis::ContainerV1::ResourceUsageExportConfig] + attr_accessor :desired_resource_usage_export_config + def initialize(**args) update!(**args) end @@ -651,12 +695,14 @@ module Google @desired_addons_config = args[:desired_addons_config] if args.key?(:desired_addons_config) @desired_image_type = args[:desired_image_type] if args.key?(:desired_image_type) @desired_locations = args[:desired_locations] if args.key?(:desired_locations) + @desired_logging_service = args[:desired_logging_service] if args.key?(:desired_logging_service) @desired_master_authorized_networks_config = args[:desired_master_authorized_networks_config] if args.key?(:desired_master_authorized_networks_config) @desired_master_version = args[:desired_master_version] if args.key?(:desired_master_version) @desired_monitoring_service = args[:desired_monitoring_service] if args.key?(:desired_monitoring_service) @desired_node_pool_autoscaling = args[:desired_node_pool_autoscaling] if args.key?(:desired_node_pool_autoscaling) @desired_node_pool_id = args[:desired_node_pool_id] if args.key?(:desired_node_pool_id) @desired_node_version = args[:desired_node_version] if args.key?(:desired_node_version) + @desired_resource_usage_export_config = args[:desired_resource_usage_export_config] if args.key?(:desired_resource_usage_export_config) end end @@ -704,6 +750,28 @@ module Google end end + # Parameters for controlling consumption metering. + class ConsumptionMeteringConfig + include Google::Apis::Core::Hashable + + # Whether to enable consumption metering for this cluster. If enabled, a + # second BigQuery table will be created to hold resource consumption + # records. + # Corresponds to the JSON property `enabled` + # @return [Boolean] + attr_accessor :enabled + alias_method :enabled?, :enabled + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enabled = args[:enabled] if args.key?(:enabled) + end + end + # CreateClusterRequest creates a cluster. class CreateClusterRequest include Google::Apis::Core::Hashable @@ -1634,6 +1702,7 @@ module Google # "k8s-node-setup-psm1" # "install-ssh-psm1" # "user-profile-psm1" + # "serial-port-logging-enable" # Values are free-form strings, and only have meaning as interpreted by # the image running in the instance. The only restriction placed on them is # that each value's size must be less than or equal to 32 KB. @@ -2084,6 +2153,39 @@ module Google end end + # Configuration for exporting cluster resource usages. + class ResourceUsageExportConfig + include Google::Apis::Core::Hashable + + # Parameters for using BigQuery as the destination of resource usage export. + # Corresponds to the JSON property `bigqueryDestination` + # @return [Google::Apis::ContainerV1::BigQueryDestination] + attr_accessor :bigquery_destination + + # Parameters for controlling consumption metering. + # Corresponds to the JSON property `consumptionMeteringConfig` + # @return [Google::Apis::ContainerV1::ConsumptionMeteringConfig] + attr_accessor :consumption_metering_config + + # Whether to enable network egress metering for this cluster. If enabled, a + # daemonset will be created in the cluster to meter network egress traffic. + # Corresponds to the JSON property `enableNetworkEgressMetering` + # @return [Boolean] + attr_accessor :enable_network_egress_metering + alias_method :enable_network_egress_metering?, :enable_network_egress_metering + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination) + @consumption_metering_config = args[:consumption_metering_config] if args.key?(:consumption_metering_config) + @enable_network_egress_metering = args[:enable_network_egress_metering] if args.key?(:enable_network_egress_metering) + end + end + # RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed # NodePool upgrade. This will be an no-op if the last upgrade successfully # completed. @@ -2573,6 +2675,8 @@ module Google # The monitoring service the cluster should use to write metrics. # Currently available options: + # * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring + # service with Kubernetes-native resource model in Stackdriver # * "monitoring.googleapis.com" - the Google Cloud Monitoring service # * "none" - no metrics will be exported from the cluster # Corresponds to the JSON property `monitoringService` diff --git a/generated/google/apis/container_v1/representations.rb b/generated/google/apis/container_v1/representations.rb index a5cd646b0..7a8b6043f 100644 --- a/generated/google/apis/container_v1/representations.rb +++ b/generated/google/apis/container_v1/representations.rb @@ -40,6 +40,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BigQueryDestination + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CancelOperationRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -76,6 +82,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ConsumptionMeteringConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CreateClusterRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -262,6 +274,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ResourceUsageExportConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RollbackNodePoolUpgradeRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -418,6 +436,13 @@ module Google end end + class BigQueryDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dataset_id, as: 'datasetId' + end + end + class CancelOperationRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -494,6 +519,8 @@ module Google property :private_cluster_config, as: 'privateClusterConfig', class: Google::Apis::ContainerV1::PrivateClusterConfig, decorator: Google::Apis::ContainerV1::PrivateClusterConfig::Representation hash :resource_labels, as: 'resourceLabels' + property :resource_usage_export_config, as: 'resourceUsageExportConfig', class: Google::Apis::ContainerV1::ResourceUsageExportConfig, decorator: Google::Apis::ContainerV1::ResourceUsageExportConfig::Representation + property :self_link, as: 'selfLink' property :services_ipv4_cidr, as: 'servicesIpv4Cidr' property :status, as: 'status' @@ -511,6 +538,7 @@ module Google property :desired_image_type, as: 'desiredImageType' collection :desired_locations, as: 'desiredLocations' + property :desired_logging_service, as: 'desiredLoggingService' property :desired_master_authorized_networks_config, as: 'desiredMasterAuthorizedNetworksConfig', class: Google::Apis::ContainerV1::MasterAuthorizedNetworksConfig, decorator: Google::Apis::ContainerV1::MasterAuthorizedNetworksConfig::Representation property :desired_master_version, as: 'desiredMasterVersion' @@ -519,6 +547,8 @@ module Google property :desired_node_pool_id, as: 'desiredNodePoolId' property :desired_node_version, as: 'desiredNodeVersion' + property :desired_resource_usage_export_config, as: 'desiredResourceUsageExportConfig', class: Google::Apis::ContainerV1::ResourceUsageExportConfig, decorator: Google::Apis::ContainerV1::ResourceUsageExportConfig::Representation + end end @@ -532,6 +562,13 @@ module Google end end + class ConsumptionMeteringConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enabled, as: 'enabled' + end + end + class CreateClusterRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -860,6 +897,17 @@ module Google end end + class ResourceUsageExportConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bigquery_destination, as: 'bigqueryDestination', class: Google::Apis::ContainerV1::BigQueryDestination, decorator: Google::Apis::ContainerV1::BigQueryDestination::Representation + + property :consumption_metering_config, as: 'consumptionMeteringConfig', class: Google::Apis::ContainerV1::ConsumptionMeteringConfig, decorator: Google::Apis::ContainerV1::ConsumptionMeteringConfig::Representation + + property :enable_network_egress_metering, as: 'enableNetworkEgressMetering' + end + end + class RollbackNodePoolUpgradeRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/container_v1beta1.rb b/generated/google/apis/container_v1beta1.rb index 5b92a6b13..ed19ca4ee 100644 --- a/generated/google/apis/container_v1beta1.rb +++ b/generated/google/apis/container_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1beta1 VERSION = 'V1beta1' - REVISION = '20190527' + REVISION = '20190610' # 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/container_v1beta1/classes.rb b/generated/google/apis/container_v1beta1/classes.rb index bf041104e..ff2d804f8 100644 --- a/generated/google/apis/container_v1beta1/classes.rb +++ b/generated/google/apis/container_v1beta1/classes.rb @@ -675,6 +675,11 @@ module Google # @return [String] attr_accessor :subnetwork + # Cluster tier settings. + # Corresponds to the JSON property `tierSettings` + # @return [Google::Apis::ContainerV1beta1::TierSettings] + attr_accessor :tier_settings + # [Output only] The IP address range of the Cloud TPUs in this cluster, in # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) # notation (e.g. `1.2.3.4/29`). @@ -757,6 +762,7 @@ module Google @status = args[:status] if args.key?(:status) @status_message = args[:status_message] if args.key?(:status_message) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) + @tier_settings = args[:tier_settings] if args.key?(:tier_settings) @tpu_ipv4_cidr_block = args[:tpu_ipv4_cidr_block] if args.key?(:tpu_ipv4_cidr_block) @vertical_pod_autoscaling = args[:vertical_pod_autoscaling] if args.key?(:vertical_pod_autoscaling) @workload_identity_config = args[:workload_identity_config] if args.key?(:workload_identity_config) @@ -1884,8 +1890,7 @@ module Google # @return [String] attr_accessor :client_key - # [Output only] Base64-encoded public certificate that is the root of - # trust for the cluster. + # # Corresponds to the JSON property `clusterCaCertificate` # @return [String] attr_accessor :cluster_ca_certificate @@ -2177,6 +2182,7 @@ module Google # "k8s-node-setup-psm1" # "install-ssh-psm1" # "user-profile-psm1" + # "serial-port-logging-enable" # Values are free-form strings, and only have meaning as interpreted by # the image running in the instance. The only restriction placed on them is # that each value's size must be less than or equal to 32 KB. @@ -2231,6 +2237,11 @@ module Google # @return [String] attr_accessor :service_account + # A set of Shielded Instance options. + # Corresponds to the JSON property `shieldedInstanceConfig` + # @return [Google::Apis::ContainerV1beta1::ShieldedInstanceConfig] + attr_accessor :shielded_instance_config + # The list of instance tags applied to all nodes. Tags are used to identify # valid sources or targets for network firewalls and are specified by # the client during cluster or node pool creation. Each tag within the list @@ -2271,6 +2282,7 @@ module Google @preemptible = args[:preemptible] if args.key?(:preemptible) @sandbox_config = args[:sandbox_config] if args.key?(:sandbox_config) @service_account = args[:service_account] if args.key?(:service_account) + @shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config) @tags = args[:tags] if args.key?(:tags) @taints = args[:taints] if args.key?(:taints) @workload_metadata_config = args[:workload_metadata_config] if args.key?(:workload_metadata_config) @@ -3570,6 +3582,40 @@ module Google end end + # A set of Shielded Instance options. + class ShieldedInstanceConfig + include Google::Apis::Core::Hashable + + # Defines whether the instance has integrity monitoring enabled. + # Enables monitoring and attestation of the boot integrity of the instance. + # The attestation is performed against the integrity policy baseline. This + # baseline is initially derived from the implicitly trusted boot image when + # the instance is created. + # Corresponds to the JSON property `enableIntegrityMonitoring` + # @return [Boolean] + attr_accessor :enable_integrity_monitoring + alias_method :enable_integrity_monitoring?, :enable_integrity_monitoring + + # Defines whether the instance has Secure Boot enabled. + # Secure Boot helps ensure that the system only runs authentic software by + # verifying the digital signature of all boot components, and halting the + # boot process if signature verification fails. + # Corresponds to the JSON property `enableSecureBoot` + # @return [Boolean] + attr_accessor :enable_secure_boot + alias_method :enable_secure_boot?, :enable_secure_boot + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enable_integrity_monitoring = args[:enable_integrity_monitoring] if args.key?(:enable_integrity_monitoring) + @enable_secure_boot = args[:enable_secure_boot] if args.key?(:enable_secure_boot) + end + end + # StartIPRotationRequest creates a new IP for the cluster and then performs # a node upgrade on each node pool to point to the new IP. class StartIpRotationRequest @@ -3648,6 +3694,25 @@ module Google end end + # Cluster tier settings. + class TierSettings + include Google::Apis::Core::Hashable + + # Cluster tier. + # Corresponds to the JSON property `tier` + # @return [String] + attr_accessor :tier + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @tier = args[:tier] if args.key?(:tier) + end + end + # UpdateClusterRequest updates the settings of a cluster. class UpdateClusterRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/container_v1beta1/representations.rb b/generated/google/apis/container_v1beta1/representations.rb index 3c445be57..310b841b9 100644 --- a/generated/google/apis/container_v1beta1/representations.rb +++ b/generated/google/apis/container_v1beta1/representations.rb @@ -454,6 +454,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ShieldedInstanceConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class StartIpRotationRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -466,6 +472,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class TierSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class UpdateClusterRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -680,6 +692,8 @@ module Google property :status, as: 'status' property :status_message, as: 'statusMessage' property :subnetwork, as: 'subnetwork' + property :tier_settings, as: 'tierSettings', class: Google::Apis::ContainerV1beta1::TierSettings, decorator: Google::Apis::ContainerV1beta1::TierSettings::Representation + property :tpu_ipv4_cidr_block, as: 'tpuIpv4CidrBlock' property :vertical_pod_autoscaling, as: 'verticalPodAutoscaling', class: Google::Apis::ContainerV1beta1::VerticalPodAutoscaling, decorator: Google::Apis::ContainerV1beta1::VerticalPodAutoscaling::Representation @@ -1048,6 +1062,8 @@ module Google property :sandbox_config, as: 'sandboxConfig', class: Google::Apis::ContainerV1beta1::SandboxConfig, decorator: Google::Apis::ContainerV1beta1::SandboxConfig::Representation property :service_account, as: 'serviceAccount' + property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::ContainerV1beta1::ShieldedInstanceConfig, decorator: Google::Apis::ContainerV1beta1::ShieldedInstanceConfig::Representation + collection :tags, as: 'tags' collection :taints, as: 'taints', class: Google::Apis::ContainerV1beta1::NodeTaint, decorator: Google::Apis::ContainerV1beta1::NodeTaint::Representation @@ -1356,6 +1372,14 @@ module Google end end + class ShieldedInstanceConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enable_integrity_monitoring, as: 'enableIntegrityMonitoring' + property :enable_secure_boot, as: 'enableSecureBoot' + end + end + class StartIpRotationRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1375,6 +1399,13 @@ module Google end end + class TierSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :tier, as: 'tier' + end + end + class UpdateClusterRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index 74cb76148..0c2aa80c0 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2 VERSION = 'V2' - REVISION = '20190531' + REVISION = '20190607' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2/classes.rb b/generated/google/apis/content_v2/classes.rb index cb9a7ce14..d34b8d514 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -5147,9 +5147,13 @@ module Google # - "lasership" # - "mpx" # - "uds" + # - "efw" # Acceptable values for FR are: # - "colissimo" # - "chronopost" + # - "gls" + # - "dpd" + # - "bpost" # Corresponds to the JSON property `carrier` # @return [String] attr_accessor :carrier diff --git a/generated/google/apis/content_v2_1.rb b/generated/google/apis/content_v2_1.rb index c257e3565..c8022d849 100644 --- a/generated/google/apis/content_v2_1.rb +++ b/generated/google/apis/content_v2_1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2_1 VERSION = 'V2_1' - REVISION = '20190531' + REVISION = '20190607' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2_1/classes.rb b/generated/google/apis/content_v2_1/classes.rb index 9cb11e6af..f99d7c34a 100644 --- a/generated/google/apis/content_v2_1/classes.rb +++ b/generated/google/apis/content_v2_1/classes.rb @@ -3724,6 +3724,11 @@ module Google class OrderLineItem include Google::Apis::Core::Hashable + # Price and tax adjustments applied on the line item. + # Corresponds to the JSON property `adjustments` + # @return [Array] + attr_accessor :adjustments + # Annotations that are attached to the line item. # Corresponds to the JSON property `annotations` # @return [Array] @@ -3809,6 +3814,7 @@ module Google # Update properties of this object def update!(**args) + @adjustments = args[:adjustments] if args.key?(:adjustments) @annotations = args[:annotations] if args.key?(:annotations) @cancellations = args[:cancellations] if args.key?(:cancellations) @id = args[:id] if args.key?(:id) @@ -3827,6 +3833,37 @@ module Google end end + # + class OrderLineItemAdjustment + include Google::Apis::Core::Hashable + + # Adjustment for total price of the line item. + # Corresponds to the JSON property `priceAdjustment` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :price_adjustment + + # Adjustment for total tax of the line item. + # Corresponds to the JSON property `taxAdjustment` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :tax_adjustment + + # Type of this adjustment. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @price_adjustment = args[:price_adjustment] if args.key?(:price_adjustment) + @tax_adjustment = args[:tax_adjustment] if args.key?(:tax_adjustment) + @type = args[:type] if args.key?(:type) + end + end + # class OrderLineItemProduct include Google::Apis::Core::Hashable @@ -4434,9 +4471,13 @@ module Google # - "lasership" # - "mpx" # - "uds" + # - "efw" # Acceptable values for FR are: # - "colissimo" # - "chronopost" + # - "gls" + # - "dpd" + # - "bpost" # Corresponds to the JSON property `carrier` # @return [String] attr_accessor :carrier diff --git a/generated/google/apis/content_v2_1/representations.rb b/generated/google/apis/content_v2_1/representations.rb index 3317c8978..6e79de8db 100644 --- a/generated/google/apis/content_v2_1/representations.rb +++ b/generated/google/apis/content_v2_1/representations.rb @@ -616,6 +616,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class OrderLineItemAdjustment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class OrderLineItemProduct class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2447,6 +2453,8 @@ module Google class OrderLineItem # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :adjustments, as: 'adjustments', class: Google::Apis::ContentV2_1::OrderLineItemAdjustment, decorator: Google::Apis::ContentV2_1::OrderLineItemAdjustment::Representation + collection :annotations, as: 'annotations', class: Google::Apis::ContentV2_1::OrderMerchantProvidedAnnotation, decorator: Google::Apis::ContentV2_1::OrderMerchantProvidedAnnotation::Representation collection :cancellations, as: 'cancellations', class: Google::Apis::ContentV2_1::OrderCancellation, decorator: Google::Apis::ContentV2_1::OrderCancellation::Representation @@ -2473,6 +2481,17 @@ module Google end end + class OrderLineItemAdjustment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :price_adjustment, as: 'priceAdjustment', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :tax_adjustment, as: 'taxAdjustment', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :type, as: 'type' + end + end + class OrderLineItemProduct # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dialogflow_v2.rb b/generated/google/apis/dialogflow_v2.rb index 11d55f82d..41292c42e 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-enterprise/ module DialogflowV2 VERSION = 'V2' - REVISION = '20190601' + REVISION = '20190610' # 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 0f64d9cec..3e227e4df 100644 --- a/generated/google/apis/dialogflow_v2/classes.rb +++ b/generated/google/apis/dialogflow_v2/classes.rb @@ -26,6 +26,14 @@ module Google class GoogleCloudDialogflowV2Agent include Google::Apis::Core::Hashable + # Optional. API version displayed in Dialogflow console. If not specified, + # V2 API is assumed. Clients are free to query different service endpoints + # for different API versions. However, bots connectors and webhook calls will + # follow the specified API version. + # Corresponds to the JSON property `apiVersion` + # @return [String] + attr_accessor :api_version + # Optional. The URI of the agent's avatar. # Avatars are used throughout the Dialogflow console and in the self-hosted # [Web @@ -91,6 +99,11 @@ module Google # @return [Array] attr_accessor :supported_language_codes + # Optional. The agent tier. If not specified, TIER_STANDARD is assumed. + # Corresponds to the JSON property `tier` + # @return [String] + attr_accessor :tier + # Required. The time zone of this agent from the # [time zone database](https://www.iana.org/time-zones), e.g., # America/New_York, Europe/Paris. @@ -104,6 +117,7 @@ module Google # Update properties of this object def update!(**args) + @api_version = args[:api_version] if args.key?(:api_version) @avatar_uri = args[:avatar_uri] if args.key?(:avatar_uri) @classification_threshold = args[:classification_threshold] if args.key?(:classification_threshold) @default_language_code = args[:default_language_code] if args.key?(:default_language_code) @@ -113,6 +127,7 @@ module Google @match_mode = args[:match_mode] if args.key?(:match_mode) @parent = args[:parent] if args.key?(:parent) @supported_language_codes = args[:supported_language_codes] if args.key?(:supported_language_codes) + @tier = args[:tier] if args.key?(:tier) @time_zone = args[:time_zone] if args.key?(:time_zone) end end diff --git a/generated/google/apis/dialogflow_v2/representations.rb b/generated/google/apis/dialogflow_v2/representations.rb index 5530daa2b..798744614 100644 --- a/generated/google/apis/dialogflow_v2/representations.rb +++ b/generated/google/apis/dialogflow_v2/representations.rb @@ -709,6 +709,7 @@ module Google class GoogleCloudDialogflowV2Agent # @private class Representation < Google::Apis::Core::JsonRepresentation + property :api_version, as: 'apiVersion' property :avatar_uri, as: 'avatarUri' property :classification_threshold, as: 'classificationThreshold' property :default_language_code, as: 'defaultLanguageCode' @@ -718,6 +719,7 @@ module Google property :match_mode, as: 'matchMode' property :parent, as: 'parent' collection :supported_language_codes, as: 'supportedLanguageCodes' + property :tier, as: 'tier' property :time_zone, as: 'timeZone' end end diff --git a/generated/google/apis/dialogflow_v2/service.rb b/generated/google/apis/dialogflow_v2/service.rb index b44992cd3..b7cc621c1 100644 --- a/generated/google/apis/dialogflow_v2/service.rb +++ b/generated/google/apis/dialogflow_v2/service.rb @@ -48,6 +48,74 @@ module Google @batch_path = 'batch' end + # Creates/updates the specified agent. + # @param [String] parent + # Required. The project of this agent. + # Format: `projects/`. + # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent] google_cloud_dialogflow_v2_agent_object + # @param [String] update_mask + # Optional. The mask to control which fields get updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent] + # + # @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 agent_project(parent, google_cloud_dialogflow_v2_agent_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/agent', options) + command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent::Representation + command.request_object = google_cloud_dialogflow_v2_agent_object + command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent + command.params['parent'] = parent unless parent.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified agent. + # @param [String] parent + # Required. The project that the agent to delete is associated with. + # Format: `projects/`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleProtobufEmpty] + # + # @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_project_agent(parent, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+parent}/agent', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleProtobufEmpty + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Retrieves the specified agent. # @param [String] parent # Required. The project that the agent to fetch is associated with. diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb index fcb308615..cd506b2a0 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-enterprise/ module DialogflowV2beta1 VERSION = 'V2beta1' - REVISION = '20190601' + REVISION = '20190610' # 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 69ae23d8e..78d1b37be 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -1560,6 +1560,14 @@ module Google class GoogleCloudDialogflowV2beta1Agent include Google::Apis::Core::Hashable + # Optional. API version displayed in Dialogflow console. If not specified, + # V2 API is assumed. Clients are free to query different service endpoints + # for different API versions. However, bots connectors and webhook calls will + # follow the specified API version. + # Corresponds to the JSON property `apiVersion` + # @return [String] + attr_accessor :api_version + # Optional. The URI of the agent's avatar. # Avatars are used throughout the Dialogflow console and in the self-hosted # [Web @@ -1625,6 +1633,11 @@ module Google # @return [Array] attr_accessor :supported_language_codes + # Optional. The agent tier. If not specified, TIER_STANDARD is assumed. + # Corresponds to the JSON property `tier` + # @return [String] + attr_accessor :tier + # Required. The time zone of this agent from the # [time zone database](https://www.iana.org/time-zones), e.g., # America/New_York, Europe/Paris. @@ -1638,6 +1651,7 @@ module Google # Update properties of this object def update!(**args) + @api_version = args[:api_version] if args.key?(:api_version) @avatar_uri = args[:avatar_uri] if args.key?(:avatar_uri) @classification_threshold = args[:classification_threshold] if args.key?(:classification_threshold) @default_language_code = args[:default_language_code] if args.key?(:default_language_code) @@ -1647,6 +1661,7 @@ module Google @match_mode = args[:match_mode] if args.key?(:match_mode) @parent = args[:parent] if args.key?(:parent) @supported_language_codes = args[:supported_language_codes] if args.key?(:supported_language_codes) + @tier = args[:tier] if args.key?(:tier) @time_zone = args[:time_zone] if args.key?(:time_zone) end end diff --git a/generated/google/apis/dialogflow_v2beta1/representations.rb b/generated/google/apis/dialogflow_v2beta1/representations.rb index 9d7e69ac3..e14b55f25 100644 --- a/generated/google/apis/dialogflow_v2beta1/representations.rb +++ b/generated/google/apis/dialogflow_v2beta1/representations.rb @@ -1138,6 +1138,7 @@ module Google class GoogleCloudDialogflowV2beta1Agent # @private class Representation < Google::Apis::Core::JsonRepresentation + property :api_version, as: 'apiVersion' property :avatar_uri, as: 'avatarUri' property :classification_threshold, as: 'classificationThreshold' property :default_language_code, as: 'defaultLanguageCode' @@ -1147,6 +1148,7 @@ module Google property :match_mode, as: 'matchMode' property :parent, as: 'parent' collection :supported_language_codes, as: 'supportedLanguageCodes' + property :tier, as: 'tier' property :time_zone, as: 'timeZone' end end diff --git a/generated/google/apis/dialogflow_v2beta1/service.rb b/generated/google/apis/dialogflow_v2beta1/service.rb index 33a72d825..001262b56 100644 --- a/generated/google/apis/dialogflow_v2beta1/service.rb +++ b/generated/google/apis/dialogflow_v2beta1/service.rb @@ -48,6 +48,74 @@ module Google @batch_path = 'batch' end + # Creates/updates the specified agent. + # @param [String] parent + # Required. The project of this agent. + # Format: `projects/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent] google_cloud_dialogflow_v2beta1_agent_object + # @param [String] update_mask + # Optional. The mask to control which fields get updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent] + # + # @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 agent_project(parent, google_cloud_dialogflow_v2beta1_agent_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+parent}/agent', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent::Representation + command.request_object = google_cloud_dialogflow_v2beta1_agent_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent + command.params['parent'] = parent unless parent.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specified agent. + # @param [String] parent + # Required. The project that the agent to delete is associated with. + # Format: `projects/`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] + # + # @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_project_agent(parent, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2beta1/{+parent}/agent', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Retrieves the specified agent. # @param [String] parent # Required. The project that the agent to fetch is associated with. diff --git a/generated/google/apis/healthcare_v1alpha2.rb b/generated/google/apis/healthcare_v1alpha2.rb index aaf6439a3..62f208ef8 100644 --- a/generated/google/apis/healthcare_v1alpha2.rb +++ b/generated/google/apis/healthcare_v1alpha2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/healthcare module HealthcareV1alpha2 VERSION = 'V1alpha2' - REVISION = '20190530' + REVISION = '20190607' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/healthcare_v1alpha2/service.rb b/generated/google/apis/healthcare_v1alpha2/service.rb index 83a93e0ae..7a1376677 100644 --- a/generated/google/apis/healthcare_v1alpha2/service.rb +++ b/generated/google/apis/healthcare_v1alpha2/service.rb @@ -1303,9 +1303,9 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., - # `instances`). + # The path of the SearchForInstancesRequest DICOMweb request (e.g., + # `instances` or `series/`series_uid`/instances` or + # `studies/`study_uid`/instances`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1341,9 +1341,8 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., - # `series`). + # The path of the SearchForSeries DICOMweb request(e.g., `series` or + # `studies/`study_uid`/series`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1379,9 +1378,7 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., - # `studies`). + # The path of the SearchForStudies DICOMweb request (e.g., `studies`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1418,8 +1415,8 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., `studies/`study_id``). + # The path of the StoreInstances DICOMweb request (e.g., + # `studies/[`study_id`]`). Note that the `study_uid` is optional. # @param [Google::Apis::HealthcareV1alpha2::HttpBody] http_body_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1458,8 +1455,7 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., `studies/`study_id``). + # The path of the DeleteStudy request (e.g., `studies/`study_id``). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1496,8 +1492,8 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., `studies/`study_id`/metadata`. + # The path of the RetrieveStudyMetadata DICOMweb request (e.g., + # `studies/`study_id`/metadata`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1533,8 +1529,8 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., `studies/`study_id``). + # The path of the RetrieveStudy DICOMweb request (e.g., + # `studies/`study_id``). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1570,9 +1566,9 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., - # `instances`). + # The path of the SearchForInstancesRequest DICOMweb request (e.g., + # `instances` or `series/`series_uid`/instances` or + # `studies/`study_uid`/instances`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1608,9 +1604,8 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., - # `series`). + # The path of the SearchForSeries DICOMweb request(e.g., `series` or + # `studies/`study_uid`/series`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1647,8 +1642,8 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., `studies/`study_id``). + # The path of the StoreInstances DICOMweb request (e.g., + # `studies/[`study_id`]`). Note that the `study_uid` is optional. # @param [Google::Apis::HealthcareV1alpha2::HttpBody] http_body_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1688,8 +1683,8 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., `studies/`study_id`/series/`series_id``). + # The path of the DeleteSeries request (e.g., + # `studies/`study_id`/series/`series_id``). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1726,8 +1721,8 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., `studies/`study_id`/series/`series_id`/metadata`. + # The path of the RetrieveSeriesMetadata DICOMweb request (e.g., + # `studies/`study_id`/series/`series_id`/metadata`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1763,8 +1758,8 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., `studies/`study_id`/series/`series_id``). + # The path of the RetrieveSeries DICOMweb request (e.g., + # `studies/`study_id`/series/`series_id``). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1800,9 +1795,9 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., - # `instances`). + # The path of the SearchForInstancesRequest DICOMweb request (e.g., + # `instances` or `series/`series_uid`/instances` or + # `studies/`study_uid`/instances`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1839,8 +1834,7 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., + # The path of the DeleteInstance request (e.g., # `studies/`study_id`/series/`series_id`/instances/`instance_id``). # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1879,8 +1873,7 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., + # The path of the RetrieveInstanceMetadata DICOMweb request (e.g., # `studies/`study_id`/series/`series_id`/instances/`instance_id`/metadata`). # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1918,8 +1911,7 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., + # The path of the RetrieveRenderedInstance DICOMweb request (e.g., # `studies/`study_id`/series/`series_id`/instances/`instance_id`/rendered`). # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1957,8 +1949,7 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., + # The path of the RetrieveInstance DICOMweb request (e.g., # `studies/`study_id`/series/`series_id`/instances/`instance_id``). # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1997,8 +1988,7 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., + # The path of the RetrieveRenderedFrames DICOMweb request (e.g., # `studies/`study_id`/series/`series_id`/instances/`instance_id`/frames/` # frame_list`/rendered`). # @param [String] fields @@ -2037,8 +2027,7 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., + # The path of the RetrieveFrames DICOMweb request (e.g., # `studies/`study_id`/series/`series_id`/instances/`instance_id`/frames/` # frame_list``). # @param [String] fields @@ -3153,27 +3142,14 @@ module Google # `OperationOutcome` resource describing the reason for the error. If the # request cannot be mapped to a valid API method on a FHIR store, a generic # GCP error might be returned instead. - # # Search Parameters # The server's capability statement, retrieved through # capabilities, indicates what search parameters # are supported on each FHIR resource. A list of all search parameters # defined by the specification can be found in the [FHIR Search Parameter # Registry](http://hl7.org/implement/standards/fhir/STU3/searchparameter- # registry.html). - # # Search Modifiers - # Modifier | Supported - # ----------- | --------- - # `:missing` | Yes - # `:exact` | Yes - # `:contains` | Yes - # `:text` | Yes - # `:in` | Yes - # `:not-in` | Yes - # `:above` | Yes - # `:below` | Yes - # `:[type]` | Yes - # `:not` | Yes - # `:recurse` | No + # Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, + # `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `:recurse`. # @param [String] parent # Name of the FHIR store to retrieve resources from. # @param [Google::Apis::HealthcareV1alpha2::SearchResourcesRequest] search_resources_request_object diff --git a/generated/google/apis/healthcare_v1beta1.rb b/generated/google/apis/healthcare_v1beta1.rb index 4a71413d4..6d2a87bf0 100644 --- a/generated/google/apis/healthcare_v1beta1.rb +++ b/generated/google/apis/healthcare_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/healthcare module HealthcareV1beta1 VERSION = 'V1beta1' - REVISION = '20190530' + REVISION = '20190607' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/healthcare_v1beta1/service.rb b/generated/google/apis/healthcare_v1beta1/service.rb index 50834de9d..78ae08b60 100644 --- a/generated/google/apis/healthcare_v1beta1/service.rb +++ b/generated/google/apis/healthcare_v1beta1/service.rb @@ -750,9 +750,9 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., - # `instances`). + # The path of the SearchForInstancesRequest DICOMweb request (e.g., + # `instances` or `series/`series_uid`/instances` or + # `studies/`study_uid`/instances`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -788,9 +788,8 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., - # `series`). + # The path of the SearchForSeries DICOMweb request(e.g., `series` or + # `studies/`study_uid`/series`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -826,9 +825,7 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., - # `studies`). + # The path of the SearchForStudies DICOMweb request (e.g., `studies`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -900,8 +897,8 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., `studies/`study_id``). + # The path of the StoreInstances DICOMweb request (e.g., + # `studies/[`study_id`]`). Note that the `study_uid` is optional. # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -979,8 +976,7 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., `studies/`study_id``). + # The path of the DeleteStudy request (e.g., `studies/`study_id``). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1017,8 +1013,8 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., `studies/`study_id`/metadata`. + # The path of the RetrieveStudyMetadata DICOMweb request (e.g., + # `studies/`study_id`/metadata`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1054,8 +1050,8 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., `studies/`study_id``). + # The path of the RetrieveStudy DICOMweb request (e.g., + # `studies/`study_id``). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1091,9 +1087,9 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., - # `instances`). + # The path of the SearchForInstancesRequest DICOMweb request (e.g., + # `instances` or `series/`series_uid`/instances` or + # `studies/`study_uid`/instances`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1129,9 +1125,8 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., - # `series`). + # The path of the SearchForSeries DICOMweb request(e.g., `series` or + # `studies/`study_uid`/series`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1168,8 +1163,8 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., `studies/`study_id``). + # The path of the StoreInstances DICOMweb request (e.g., + # `studies/[`study_id`]`). Note that the `study_uid` is optional. # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1209,8 +1204,8 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., `studies/`study_id`/series/`series_id``). + # The path of the DeleteSeries request (e.g., + # `studies/`study_id`/series/`series_id``). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1247,8 +1242,8 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., `studies/`study_id`/series/`series_id`/metadata`. + # The path of the RetrieveSeriesMetadata DICOMweb request (e.g., + # `studies/`study_id`/series/`series_id`/metadata`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1284,8 +1279,8 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., `studies/`study_id`/series/`series_id``). + # The path of the RetrieveSeries DICOMweb request (e.g., + # `studies/`study_id`/series/`series_id``). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1321,9 +1316,9 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., - # `instances`). + # The path of the SearchForInstancesRequest DICOMweb request (e.g., + # `instances` or `series/`series_uid`/instances` or + # `studies/`study_uid`/instances`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1360,8 +1355,7 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., + # The path of the DeleteInstance request (e.g., # `studies/`study_id`/series/`series_id`/instances/`instance_id``). # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1399,8 +1393,7 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., + # The path of the RetrieveInstance DICOMweb request (e.g., # `studies/`study_id`/series/`series_id`/instances/`instance_id``). # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1439,8 +1432,7 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., + # The path of the RetrieveInstanceMetadata DICOMweb request (e.g., # `studies/`study_id`/series/`series_id`/instances/`instance_id`/metadata`). # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1478,8 +1470,7 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., + # The path of the RetrieveRenderedInstance DICOMweb request (e.g., # `studies/`study_id`/series/`series_id`/instances/`instance_id`/rendered`). # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1517,8 +1508,7 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., + # The path of the RetrieveFrames DICOMweb request (e.g., # `studies/`study_id`/series/`series_id`/instances/`instance_id`/frames/` # frame_list``). # @param [String] fields @@ -1558,8 +1548,7 @@ module Google # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DICOMweb request, as specified in the STOW-RS, WADO-RS, or - # QIDO-RS standard (e.g., + # The path of the RetrieveRenderedFrames DICOMweb request (e.g., # `studies/`study_id`/series/`series_id`/instances/`instance_id`/frames/` # frame_list`/rendered`). # @param [String] fields @@ -2631,27 +2620,14 @@ module Google # `OperationOutcome` resource describing the reason for the error. If the # request cannot be mapped to a valid API method on a FHIR store, a generic # GCP error might be returned instead. - # # Search Parameters # The server's capability statement, retrieved through # capabilities, indicates what search parameters # are supported on each FHIR resource. A list of all search parameters # defined by the specification can be found in the [FHIR Search Parameter # Registry](http://hl7.org/implement/standards/fhir/STU3/searchparameter- # registry.html). - # # Search Modifiers - # Modifier | Supported - # ----------- | --------- - # `:missing` | Yes - # `:exact` | Yes - # `:contains` | Yes - # `:text` | Yes - # `:in` | Yes - # `:not-in` | Yes - # `:above` | Yes - # `:below` | Yes - # `:[type]` | Yes - # `:not` | Yes - # `:recurse` | No + # Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, + # `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `:recurse`. # @param [String] parent # Name of the FHIR store to retrieve resources from. # @param [Google::Apis::HealthcareV1beta1::SearchResourcesRequest] search_resources_request_object diff --git a/generated/google/apis/spanner_v1.rb b/generated/google/apis/spanner_v1.rb index d8f421af2..5e15b9414 100644 --- a/generated/google/apis/spanner_v1.rb +++ b/generated/google/apis/spanner_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/spanner/ module SpannerV1 VERSION = 'V1' - REVISION = '20190503' + REVISION = '20190516' # 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/videointelligence_v1beta2.rb b/generated/google/apis/videointelligence_v1beta2.rb index c826d7c46..a72f17512 100644 --- a/generated/google/apis/videointelligence_v1beta2.rb +++ b/generated/google/apis/videointelligence_v1beta2.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/video-intelligence/docs/ module VideointelligenceV1beta2 VERSION = 'V1beta2' - REVISION = '20190308' + REVISION = '20190603' # 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/videointelligence_v1beta2/classes.rb b/generated/google/apis/videointelligence_v1beta2/classes.rb index 1862e61e5..b2d7fd628 100644 --- a/generated/google/apis/videointelligence_v1beta2/classes.rb +++ b/generated/google/apis/videointelligence_v1beta2/classes.rb @@ -584,6 +584,12 @@ module Google class GoogleCloudVideointelligenceV1VideoAnnotationProgress include Google::Apis::Core::Hashable + # Specifies which feature is being tracked if the request contains more than + # one features. + # Corresponds to the JSON property `feature` + # @return [String] + attr_accessor :feature + # Video file location in # [Google Cloud Storage](https://cloud.google.com/storage/). # Corresponds to the JSON property `inputUri` @@ -596,6 +602,11 @@ module Google # @return [Fixnum] attr_accessor :progress_percent + # Video segment. + # Corresponds to the JSON property `segment` + # @return [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1VideoSegment] + attr_accessor :segment + # Time when the request was received. # Corresponds to the JSON property `startTime` # @return [String] @@ -612,8 +623,10 @@ module Google # Update properties of this object def update!(**args) + @feature = args[:feature] if args.key?(:feature) @input_uri = args[:input_uri] if args.key?(:input_uri) @progress_percent = args[:progress_percent] if args.key?(:progress_percent) + @segment = args[:segment] if args.key?(:segment) @start_time = args[:start_time] if args.key?(:start_time) @update_time = args[:update_time] if args.key?(:update_time) end @@ -625,43 +638,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::VideointelligenceV1beta2::GoogleRpcStatus] attr_accessor :error @@ -1336,6 +1316,27 @@ module Google end end + # Config for OBJECT_TRACKING. + class GoogleCloudVideointelligenceV1beta2ObjectTrackingConfig + include Google::Apis::Core::Hashable + + # Model to use for object tracking. + # Supported values: "builtin/stable" (the default if unset) and + # "builtin/latest". + # Corresponds to the JSON property `model` + # @return [String] + attr_accessor :model + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @model = args[:model] if args.key?(:model) + end + end + # Video frame level annotations for object detection and tracking. This field # stores per frame location, time offset, and confidence. class GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame @@ -1615,6 +1616,13 @@ module Google # @return [Array] attr_accessor :language_hints + # Model to use for text detection. + # Supported values: "builtin/stable" (the default if unset) and + # "builtin/latest". + # Corresponds to the JSON property `model` + # @return [String] + attr_accessor :model + def initialize(**args) update!(**args) end @@ -1622,6 +1630,7 @@ module Google # Update properties of this object def update!(**args) @language_hints = args[:language_hints] if args.key?(:language_hints) + @model = args[:model] if args.key?(:model) end end @@ -1702,6 +1711,12 @@ module Google class GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress include Google::Apis::Core::Hashable + # Specifies which feature is being tracked if the request contains more than + # one features. + # Corresponds to the JSON property `feature` + # @return [String] + attr_accessor :feature + # Video file location in # [Google Cloud Storage](https://cloud.google.com/storage/). # Corresponds to the JSON property `inputUri` @@ -1714,6 +1729,11 @@ module Google # @return [Fixnum] attr_accessor :progress_percent + # Video segment. + # Corresponds to the JSON property `segment` + # @return [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2VideoSegment] + attr_accessor :segment + # Time when the request was received. # Corresponds to the JSON property `startTime` # @return [String] @@ -1730,8 +1750,10 @@ module Google # Update properties of this object def update!(**args) + @feature = args[:feature] if args.key?(:feature) @input_uri = args[:input_uri] if args.key?(:input_uri) @progress_percent = args[:progress_percent] if args.key?(:progress_percent) + @segment = args[:segment] if args.key?(:segment) @start_time = args[:start_time] if args.key?(:start_time) @update_time = args[:update_time] if args.key?(:update_time) end @@ -1743,43 +1765,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::VideointelligenceV1beta2::GoogleRpcStatus] attr_accessor :error @@ -1870,6 +1859,11 @@ module Google # @return [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2LabelDetectionConfig] attr_accessor :label_detection_config + # Config for OBJECT_TRACKING. + # Corresponds to the JSON property `objectTrackingConfig` + # @return [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2ObjectTrackingConfig] + attr_accessor :object_tracking_config + # Video segments to annotate. The segments may overlap and are not required # to be contiguous or span the whole video. If unspecified, each video is # treated as a single segment. @@ -1900,6 +1894,7 @@ module Google def update!(**args) @explicit_content_detection_config = args[:explicit_content_detection_config] if args.key?(:explicit_content_detection_config) @label_detection_config = args[:label_detection_config] if args.key?(:label_detection_config) + @object_tracking_config = args[:object_tracking_config] if args.key?(:object_tracking_config) @segments = args[:segments] if args.key?(:segments) @shot_change_detection_config = args[:shot_change_detection_config] if args.key?(:shot_change_detection_config) @speech_transcription_config = args[:speech_transcription_config] if args.key?(:speech_transcription_config) @@ -2555,6 +2550,12 @@ module Google class GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress include Google::Apis::Core::Hashable + # Specifies which feature is being tracked if the request contains more than + # one features. + # Corresponds to the JSON property `feature` + # @return [String] + attr_accessor :feature + # Video file location in # [Google Cloud Storage](https://cloud.google.com/storage/). # Corresponds to the JSON property `inputUri` @@ -2567,6 +2568,11 @@ module Google # @return [Fixnum] attr_accessor :progress_percent + # Video segment. + # Corresponds to the JSON property `segment` + # @return [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1VideoSegment] + attr_accessor :segment + # Time when the request was received. # Corresponds to the JSON property `startTime` # @return [String] @@ -2583,8 +2589,10 @@ module Google # Update properties of this object def update!(**args) + @feature = args[:feature] if args.key?(:feature) @input_uri = args[:input_uri] if args.key?(:input_uri) @progress_percent = args[:progress_percent] if args.key?(:progress_percent) + @segment = args[:segment] if args.key?(:segment) @start_time = args[:start_time] if args.key?(:start_time) @update_time = args[:update_time] if args.key?(:update_time) end @@ -2596,43 +2604,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::VideointelligenceV1beta2::GoogleRpcStatus] attr_accessor :error @@ -3357,6 +3332,12 @@ module Google class GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress include Google::Apis::Core::Hashable + # Specifies which feature is being tracked if the request contains more than + # one features. + # Corresponds to the JSON property `feature` + # @return [String] + attr_accessor :feature + # Video file location in # [Google Cloud Storage](https://cloud.google.com/storage/). # Corresponds to the JSON property `inputUri` @@ -3369,6 +3350,11 @@ module Google # @return [Fixnum] attr_accessor :progress_percent + # Video segment. + # Corresponds to the JSON property `segment` + # @return [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1VideoSegment] + attr_accessor :segment + # Time when the request was received. # Corresponds to the JSON property `startTime` # @return [String] @@ -3385,8 +3371,10 @@ module Google # Update properties of this object def update!(**args) + @feature = args[:feature] if args.key?(:feature) @input_uri = args[:input_uri] if args.key?(:input_uri) @progress_percent = args[:progress_percent] if args.key?(:progress_percent) + @segment = args[:segment] if args.key?(:segment) @start_time = args[:start_time] if args.key?(:start_time) @update_time = args[:update_time] if args.key?(:update_time) end @@ -3398,43 +3386,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::VideointelligenceV1beta2::GoogleRpcStatus] attr_accessor :error @@ -3639,6 +3594,39 @@ module Google end end + # A generic detected attribute represented by name in string format. + class GoogleCloudVideointelligenceV1p3beta1DetectedAttribute + include Google::Apis::Core::Hashable + + # Detected attribute confidence. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # The name of the attribute, i.e. glasses, dark_glasses, mouth_open etc. + # A full list of supported type names will be provided in the document. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Text value of the detection result. For example, the value for "HairColor" + # can be "black", "blonde", etc. + # 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) + @confidence = args[:confidence] if args.key?(:confidence) + @name = args[:name] if args.key?(:name) + @value = args[:value] if args.key?(:value) + end + end + # Detected entity from video analysis. class GoogleCloudVideointelligenceV1p3beta1Entity include Google::Apis::Core::Hashable @@ -3810,6 +3798,39 @@ module Google end end + # Annotation corresponding to one detected, tracked and recognized logo class. + class GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation + include Google::Apis::Core::Hashable + + # Detected entity from video analysis. + # Corresponds to the JSON property `entity` + # @return [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1Entity] + attr_accessor :entity + + # All video segments where the recognized logo appears. There might be + # multiple instances of the same logo class appearing in one VideoSegment. + # Corresponds to the JSON property `segments` + # @return [Array] + attr_accessor :segments + + # All logo tracks where the recognized logo appears. Each track corresponds + # to one logo instance appearing in consecutive frames. + # Corresponds to the JSON property `tracks` + # @return [Array] + attr_accessor :tracks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entity = args[:entity] if args.key?(:entity) + @segments = args[:segments] if args.key?(:segments) + @tracks = args[:tracks] if args.key?(:tracks) + end + end + # Normalized bounding box. # The normalized vertex coordinates are relative to the original image. # Range: [0, 1]. @@ -4077,43 +4098,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::VideointelligenceV1beta2::GoogleRpcStatus] attr_accessor :error @@ -4270,10 +4258,90 @@ module Google end end + # For tracking related features, such as LOGO_RECOGNITION, FACE_DETECTION, + # CELEBRITY_RECOGNITION, PERSON_DETECTION. + # An object at time_offset with attributes, and located with + # normalized_bounding_box. + class GoogleCloudVideointelligenceV1p3beta1TimestampedObject + include Google::Apis::Core::Hashable + + # Optional. The attributes of the object in the bounding box. + # Corresponds to the JSON property `attributes` + # @return [Array] + attr_accessor :attributes + + # Normalized bounding box. + # The normalized vertex coordinates are relative to the original image. + # Range: [0, 1]. + # Corresponds to the JSON property `normalizedBoundingBox` + # @return [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox] + attr_accessor :normalized_bounding_box + + # Time-offset, relative to the beginning of the video, + # corresponding to the video frame for this object. + # Corresponds to the JSON property `timeOffset` + # @return [String] + attr_accessor :time_offset + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attributes = args[:attributes] if args.key?(:attributes) + @normalized_bounding_box = args[:normalized_bounding_box] if args.key?(:normalized_bounding_box) + @time_offset = args[:time_offset] if args.key?(:time_offset) + end + end + + # A track of an object instance. + class GoogleCloudVideointelligenceV1p3beta1Track + include Google::Apis::Core::Hashable + + # Optional. Attributes in the track level. + # Corresponds to the JSON property `attributes` + # @return [Array] + attr_accessor :attributes + + # Optional. The confidence score of the tracked object. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Video segment. + # Corresponds to the JSON property `segment` + # @return [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1VideoSegment] + attr_accessor :segment + + # The object with timestamp and attributes per frame in the track. + # Corresponds to the JSON property `timestampedObjects` + # @return [Array] + attr_accessor :timestamped_objects + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attributes = args[:attributes] if args.key?(:attributes) + @confidence = args[:confidence] if args.key?(:confidence) + @segment = args[:segment] if args.key?(:segment) + @timestamped_objects = args[:timestamped_objects] if args.key?(:timestamped_objects) + end + end + # Annotation progress for a single video. class GoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress include Google::Apis::Core::Hashable + # Specifies which feature is being tracked if the request contains more than + # one features. + # Corresponds to the JSON property `feature` + # @return [String] + attr_accessor :feature + # Video file location in # [Google Cloud Storage](https://cloud.google.com/storage/). # Corresponds to the JSON property `inputUri` @@ -4286,6 +4354,11 @@ module Google # @return [Fixnum] attr_accessor :progress_percent + # Video segment. + # Corresponds to the JSON property `segment` + # @return [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1VideoSegment] + attr_accessor :segment + # Time when the request was received. # Corresponds to the JSON property `startTime` # @return [String] @@ -4302,8 +4375,10 @@ module Google # Update properties of this object def update!(**args) + @feature = args[:feature] if args.key?(:feature) @input_uri = args[:input_uri] if args.key?(:input_uri) @progress_percent = args[:progress_percent] if args.key?(:progress_percent) + @segment = args[:segment] if args.key?(:segment) @start_time = args[:start_time] if args.key?(:start_time) @update_time = args[:update_time] if args.key?(:update_time) end @@ -4315,43 +4390,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::VideointelligenceV1beta2::GoogleRpcStatus] attr_accessor :error @@ -4375,6 +4417,11 @@ module Google # @return [String] attr_accessor :input_uri + # Annotations for list of logos detected, tracked and recognized in video. + # Corresponds to the JSON property `logoRecognitionAnnotations` + # @return [Array] + attr_accessor :logo_recognition_annotations + # Annotations for list of objects detected and tracked in video. # Corresponds to the JSON property `objectAnnotations` # @return [Array] @@ -4419,6 +4466,7 @@ module Google @explicit_annotation = args[:explicit_annotation] if args.key?(:explicit_annotation) @frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations) @input_uri = args[:input_uri] if args.key?(:input_uri) + @logo_recognition_annotations = args[:logo_recognition_annotations] if args.key?(:logo_recognition_annotations) @object_annotations = args[:object_annotations] if args.key?(:object_annotations) @segment_label_annotations = args[:segment_label_annotations] if args.key?(:segment_label_annotations) @shot_annotations = args[:shot_annotations] if args.key?(:shot_annotations) @@ -4529,43 +4577,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::VideointelligenceV1beta2::GoogleRpcStatus] attr_accessor :error @@ -4580,7 +4595,7 @@ module Google # The server-assigned name, which is only unique within the same service that # originally returns it. If you use the default HTTP mapping, the - # `name` should have the format of `operations/some/unique/name`. + # `name` should be a resource name ending with `operations/`unique_id``. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -4613,43 +4628,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). class GoogleRpcStatus include Google::Apis::Core::Hashable diff --git a/generated/google/apis/videointelligence_v1beta2/representations.rb b/generated/google/apis/videointelligence_v1beta2/representations.rb index a099d069e..07e78be85 100644 --- a/generated/google/apis/videointelligence_v1beta2/representations.rb +++ b/generated/google/apis/videointelligence_v1beta2/representations.rb @@ -244,6 +244,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1beta2ObjectTrackingConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame class Representation < Google::Apis::Core::JsonRepresentation; end @@ -610,6 +616,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p3beta1DetectedAttribute + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p3beta1Entity class Representation < Google::Apis::Core::JsonRepresentation; end @@ -646,6 +658,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox class Representation < Google::Apis::Core::JsonRepresentation; end @@ -718,6 +736,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p3beta1TimestampedObject + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVideointelligenceV1p3beta1Track + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress class Representation < Google::Apis::Core::JsonRepresentation; end @@ -926,8 +956,11 @@ module Google class GoogleCloudVideointelligenceV1VideoAnnotationProgress # @private class Representation < Google::Apis::Core::JsonRepresentation + property :feature, as: 'feature' property :input_uri, as: 'inputUri' property :progress_percent, as: 'progressPercent' + property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1VideoSegment::Representation + property :start_time, as: 'startTime' property :update_time, as: 'updateTime' end @@ -1120,6 +1153,13 @@ module Google end end + class GoogleCloudVideointelligenceV1beta2ObjectTrackingConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :model, as: 'model' + end + end + class GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1191,6 +1231,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation collection :language_hints, as: 'languageHints' + property :model, as: 'model' end end @@ -1217,8 +1258,11 @@ module Google class GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress # @private class Representation < Google::Apis::Core::JsonRepresentation + property :feature, as: 'feature' property :input_uri, as: 'inputUri' property :progress_percent, as: 'progressPercent' + property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2VideoSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2VideoSegment::Representation + property :start_time, as: 'startTime' property :update_time, as: 'updateTime' end @@ -1256,6 +1300,8 @@ module Google property :label_detection_config, as: 'labelDetectionConfig', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2LabelDetectionConfig, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2LabelDetectionConfig::Representation + property :object_tracking_config, as: 'objectTrackingConfig', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2ObjectTrackingConfig, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2ObjectTrackingConfig::Representation + collection :segments, as: 'segments', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2VideoSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2VideoSegment::Representation property :shot_change_detection_config, as: 'shotChangeDetectionConfig', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2ShotChangeDetectionConfig, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2ShotChangeDetectionConfig::Representation @@ -1458,8 +1504,11 @@ module Google class GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress # @private class Representation < Google::Apis::Core::JsonRepresentation + property :feature, as: 'feature' property :input_uri, as: 'inputUri' property :progress_percent, as: 'progressPercent' + property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1VideoSegment::Representation + property :start_time, as: 'startTime' property :update_time, as: 'updateTime' end @@ -1681,8 +1730,11 @@ module Google class GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress # @private class Representation < Google::Apis::Core::JsonRepresentation + property :feature, as: 'feature' property :input_uri, as: 'inputUri' property :progress_percent, as: 'progressPercent' + property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1VideoSegment::Representation + property :start_time, as: 'startTime' property :update_time, as: 'updateTime' end @@ -1748,6 +1800,15 @@ module Google end end + class GoogleCloudVideointelligenceV1p3beta1DetectedAttribute + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :confidence, as: 'confidence' + property :name, as: 'name' + property :value, as: 'value' + end + end + class GoogleCloudVideointelligenceV1p3beta1Entity # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1804,6 +1865,18 @@ module Google end end + class GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :entity, as: 'entity', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1Entity, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1Entity::Representation + + collection :segments, as: 'segments', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1VideoSegment::Representation + + collection :tracks, as: 'tracks', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1Track, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1Track::Representation + + end + end + class GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1926,11 +1999,38 @@ module Google end end + class GoogleCloudVideointelligenceV1p3beta1TimestampedObject + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :attributes, as: 'attributes', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1DetectedAttribute, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1DetectedAttribute::Representation + + property :normalized_bounding_box, as: 'normalizedBoundingBox', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox::Representation + + property :time_offset, as: 'timeOffset' + end + end + + class GoogleCloudVideointelligenceV1p3beta1Track + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :attributes, as: 'attributes', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1DetectedAttribute, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1DetectedAttribute::Representation + + property :confidence, as: 'confidence' + property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1VideoSegment::Representation + + collection :timestamped_objects, as: 'timestampedObjects', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1TimestampedObject, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1TimestampedObject::Representation + + end + end + class GoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress # @private class Representation < Google::Apis::Core::JsonRepresentation + property :feature, as: 'feature' property :input_uri, as: 'inputUri' property :progress_percent, as: 'progressPercent' + property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1VideoSegment::Representation + property :start_time, as: 'startTime' property :update_time, as: 'updateTime' end @@ -1946,6 +2046,8 @@ module Google collection :frame_label_annotations, as: 'frameLabelAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1LabelAnnotation::Representation property :input_uri, as: 'inputUri' + collection :logo_recognition_annotations, as: 'logoRecognitionAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation::Representation + collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation::Representation collection :segment_label_annotations, as: 'segmentLabelAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p3beta1LabelAnnotation::Representation diff --git a/generated/google/apis/videointelligence_v1p3beta1.rb b/generated/google/apis/videointelligence_v1p3beta1.rb index b74dfe7f2..1f1774d87 100644 --- a/generated/google/apis/videointelligence_v1p3beta1.rb +++ b/generated/google/apis/videointelligence_v1p3beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/video-intelligence/docs/ module VideointelligenceV1p3beta1 VERSION = 'V1p3beta1' - REVISION = '20190308' + REVISION = '20190603' # 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/videointelligence_v1p3beta1/classes.rb b/generated/google/apis/videointelligence_v1p3beta1/classes.rb index 140e4bf80..97b140ab0 100644 --- a/generated/google/apis/videointelligence_v1p3beta1/classes.rb +++ b/generated/google/apis/videointelligence_v1p3beta1/classes.rb @@ -584,6 +584,12 @@ module Google class GoogleCloudVideointelligenceV1VideoAnnotationProgress include Google::Apis::Core::Hashable + # Specifies which feature is being tracked if the request contains more than + # one features. + # Corresponds to the JSON property `feature` + # @return [String] + attr_accessor :feature + # Video file location in # [Google Cloud Storage](https://cloud.google.com/storage/). # Corresponds to the JSON property `inputUri` @@ -596,6 +602,11 @@ module Google # @return [Fixnum] attr_accessor :progress_percent + # Video segment. + # Corresponds to the JSON property `segment` + # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1VideoSegment] + attr_accessor :segment + # Time when the request was received. # Corresponds to the JSON property `startTime` # @return [String] @@ -612,8 +623,10 @@ module Google # Update properties of this object def update!(**args) + @feature = args[:feature] if args.key?(:feature) @input_uri = args[:input_uri] if args.key?(:input_uri) @progress_percent = args[:progress_percent] if args.key?(:progress_percent) + @segment = args[:segment] if args.key?(:segment) @start_time = args[:start_time] if args.key?(:start_time) @update_time = args[:update_time] if args.key?(:update_time) end @@ -625,43 +638,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleRpcStatus] attr_accessor :error @@ -1386,6 +1366,12 @@ module Google class GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress include Google::Apis::Core::Hashable + # Specifies which feature is being tracked if the request contains more than + # one features. + # Corresponds to the JSON property `feature` + # @return [String] + attr_accessor :feature + # Video file location in # [Google Cloud Storage](https://cloud.google.com/storage/). # Corresponds to the JSON property `inputUri` @@ -1398,6 +1384,11 @@ module Google # @return [Fixnum] attr_accessor :progress_percent + # Video segment. + # Corresponds to the JSON property `segment` + # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1beta2VideoSegment] + attr_accessor :segment + # Time when the request was received. # Corresponds to the JSON property `startTime` # @return [String] @@ -1414,8 +1405,10 @@ module Google # Update properties of this object def update!(**args) + @feature = args[:feature] if args.key?(:feature) @input_uri = args[:input_uri] if args.key?(:input_uri) @progress_percent = args[:progress_percent] if args.key?(:progress_percent) + @segment = args[:segment] if args.key?(:segment) @start_time = args[:start_time] if args.key?(:start_time) @update_time = args[:update_time] if args.key?(:update_time) end @@ -1427,43 +1420,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleRpcStatus] attr_accessor :error @@ -2188,6 +2148,12 @@ module Google class GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress include Google::Apis::Core::Hashable + # Specifies which feature is being tracked if the request contains more than + # one features. + # Corresponds to the JSON property `feature` + # @return [String] + attr_accessor :feature + # Video file location in # [Google Cloud Storage](https://cloud.google.com/storage/). # Corresponds to the JSON property `inputUri` @@ -2200,6 +2166,11 @@ module Google # @return [Fixnum] attr_accessor :progress_percent + # Video segment. + # Corresponds to the JSON property `segment` + # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment] + attr_accessor :segment + # Time when the request was received. # Corresponds to the JSON property `startTime` # @return [String] @@ -2216,8 +2187,10 @@ module Google # Update properties of this object def update!(**args) + @feature = args[:feature] if args.key?(:feature) @input_uri = args[:input_uri] if args.key?(:input_uri) @progress_percent = args[:progress_percent] if args.key?(:progress_percent) + @segment = args[:segment] if args.key?(:segment) @start_time = args[:start_time] if args.key?(:start_time) @update_time = args[:update_time] if args.key?(:update_time) end @@ -2229,43 +2202,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleRpcStatus] attr_accessor :error @@ -2990,6 +2930,12 @@ module Google class GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress include Google::Apis::Core::Hashable + # Specifies which feature is being tracked if the request contains more than + # one features. + # Corresponds to the JSON property `feature` + # @return [String] + attr_accessor :feature + # Video file location in # [Google Cloud Storage](https://cloud.google.com/storage/). # Corresponds to the JSON property `inputUri` @@ -3002,6 +2948,11 @@ module Google # @return [Fixnum] attr_accessor :progress_percent + # Video segment. + # Corresponds to the JSON property `segment` + # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p2beta1VideoSegment] + attr_accessor :segment + # Time when the request was received. # Corresponds to the JSON property `startTime` # @return [String] @@ -3018,8 +2969,10 @@ module Google # Update properties of this object def update!(**args) + @feature = args[:feature] if args.key?(:feature) @input_uri = args[:input_uri] if args.key?(:input_uri) @progress_percent = args[:progress_percent] if args.key?(:progress_percent) + @segment = args[:segment] if args.key?(:segment) @start_time = args[:start_time] if args.key?(:start_time) @update_time = args[:update_time] if args.key?(:update_time) end @@ -3031,43 +2984,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleRpcStatus] attr_accessor :error @@ -3340,6 +3260,39 @@ module Google end end + # A generic detected attribute represented by name in string format. + class GoogleCloudVideointelligenceV1p3beta1DetectedAttribute + include Google::Apis::Core::Hashable + + # Detected attribute confidence. Range [0, 1]. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # The name of the attribute, i.e. glasses, dark_glasses, mouth_open etc. + # A full list of supported type names will be provided in the document. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Text value of the detection result. For example, the value for "HairColor" + # can be "black", "blonde", etc. + # 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) + @confidence = args[:confidence] if args.key?(:confidence) + @name = args[:name] if args.key?(:name) + @value = args[:value] if args.key?(:value) + end + end + # Detected entity from video analysis. class GoogleCloudVideointelligenceV1p3beta1Entity include Google::Apis::Core::Hashable @@ -3592,6 +3545,39 @@ module Google end end + # Annotation corresponding to one detected, tracked and recognized logo class. + class GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation + include Google::Apis::Core::Hashable + + # Detected entity from video analysis. + # Corresponds to the JSON property `entity` + # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Entity] + attr_accessor :entity + + # All video segments where the recognized logo appears. There might be + # multiple instances of the same logo class appearing in one VideoSegment. + # Corresponds to the JSON property `segments` + # @return [Array] + attr_accessor :segments + + # All logo tracks where the recognized logo appears. Each track corresponds + # to one logo instance appearing in consecutive frames. + # Corresponds to the JSON property `tracks` + # @return [Array] + attr_accessor :tracks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entity = args[:entity] if args.key?(:entity) + @segments = args[:segments] if args.key?(:segments) + @tracks = args[:tracks] if args.key?(:tracks) + end + end + # Normalized bounding box. # The normalized vertex coordinates are relative to the original image. # Range: [0, 1]. @@ -3742,6 +3728,27 @@ module Google end end + # Config for OBJECT_TRACKING. + class GoogleCloudVideointelligenceV1p3beta1ObjectTrackingConfig + include Google::Apis::Core::Hashable + + # Model to use for object tracking. + # Supported values: "builtin/stable" (the default if unset) and + # "builtin/latest". + # Corresponds to the JSON property `model` + # @return [String] + attr_accessor :model + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @model = args[:model] if args.key?(:model) + end + end + # Video frame level annotations for object detection and tracking. This field # stores per frame location, time offset, and confidence. class GoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame @@ -4004,43 +4011,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleRpcStatus] attr_accessor :error @@ -4136,6 +4110,13 @@ module Google # @return [Array] attr_accessor :language_hints + # Model to use for text detection. + # Supported values: "builtin/stable" (the default if unset) and + # "builtin/latest". + # Corresponds to the JSON property `model` + # @return [String] + attr_accessor :model + def initialize(**args) update!(**args) end @@ -4143,6 +4124,7 @@ module Google # Update properties of this object def update!(**args) @language_hints = args[:language_hints] if args.key?(:language_hints) + @model = args[:model] if args.key?(:model) end end @@ -4219,10 +4201,90 @@ module Google end end + # For tracking related features, such as LOGO_RECOGNITION, FACE_DETECTION, + # CELEBRITY_RECOGNITION, PERSON_DETECTION. + # An object at time_offset with attributes, and located with + # normalized_bounding_box. + class GoogleCloudVideointelligenceV1p3beta1TimestampedObject + include Google::Apis::Core::Hashable + + # Optional. The attributes of the object in the bounding box. + # Corresponds to the JSON property `attributes` + # @return [Array] + attr_accessor :attributes + + # Normalized bounding box. + # The normalized vertex coordinates are relative to the original image. + # Range: [0, 1]. + # Corresponds to the JSON property `normalizedBoundingBox` + # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox] + attr_accessor :normalized_bounding_box + + # Time-offset, relative to the beginning of the video, + # corresponding to the video frame for this object. + # Corresponds to the JSON property `timeOffset` + # @return [String] + attr_accessor :time_offset + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attributes = args[:attributes] if args.key?(:attributes) + @normalized_bounding_box = args[:normalized_bounding_box] if args.key?(:normalized_bounding_box) + @time_offset = args[:time_offset] if args.key?(:time_offset) + end + end + + # A track of an object instance. + class GoogleCloudVideointelligenceV1p3beta1Track + include Google::Apis::Core::Hashable + + # Optional. Attributes in the track level. + # Corresponds to the JSON property `attributes` + # @return [Array] + attr_accessor :attributes + + # Optional. The confidence score of the tracked object. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + # Video segment. + # Corresponds to the JSON property `segment` + # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1VideoSegment] + attr_accessor :segment + + # The object with timestamp and attributes per frame in the track. + # Corresponds to the JSON property `timestampedObjects` + # @return [Array] + attr_accessor :timestamped_objects + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attributes = args[:attributes] if args.key?(:attributes) + @confidence = args[:confidence] if args.key?(:confidence) + @segment = args[:segment] if args.key?(:segment) + @timestamped_objects = args[:timestamped_objects] if args.key?(:timestamped_objects) + end + end + # Annotation progress for a single video. class GoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress include Google::Apis::Core::Hashable + # Specifies which feature is being tracked if the request contains more than + # one features. + # Corresponds to the JSON property `feature` + # @return [String] + attr_accessor :feature + # Video file location in # [Google Cloud Storage](https://cloud.google.com/storage/). # Corresponds to the JSON property `inputUri` @@ -4235,6 +4297,11 @@ module Google # @return [Fixnum] attr_accessor :progress_percent + # Video segment. + # Corresponds to the JSON property `segment` + # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1VideoSegment] + attr_accessor :segment + # Time when the request was received. # Corresponds to the JSON property `startTime` # @return [String] @@ -4251,8 +4318,10 @@ module Google # Update properties of this object def update!(**args) + @feature = args[:feature] if args.key?(:feature) @input_uri = args[:input_uri] if args.key?(:input_uri) @progress_percent = args[:progress_percent] if args.key?(:progress_percent) + @segment = args[:segment] if args.key?(:segment) @start_time = args[:start_time] if args.key?(:start_time) @update_time = args[:update_time] if args.key?(:update_time) end @@ -4264,43 +4333,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleRpcStatus] attr_accessor :error @@ -4324,6 +4360,11 @@ module Google # @return [String] attr_accessor :input_uri + # Annotations for list of logos detected, tracked and recognized in video. + # Corresponds to the JSON property `logoRecognitionAnnotations` + # @return [Array] + attr_accessor :logo_recognition_annotations + # Annotations for list of objects detected and tracked in video. # Corresponds to the JSON property `objectAnnotations` # @return [Array] @@ -4368,6 +4409,7 @@ module Google @explicit_annotation = args[:explicit_annotation] if args.key?(:explicit_annotation) @frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations) @input_uri = args[:input_uri] if args.key?(:input_uri) + @logo_recognition_annotations = args[:logo_recognition_annotations] if args.key?(:logo_recognition_annotations) @object_annotations = args[:object_annotations] if args.key?(:object_annotations) @segment_label_annotations = args[:segment_label_annotations] if args.key?(:segment_label_annotations) @shot_annotations = args[:shot_annotations] if args.key?(:shot_annotations) @@ -4391,6 +4433,11 @@ module Google # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1LabelDetectionConfig] attr_accessor :label_detection_config + # Config for OBJECT_TRACKING. + # Corresponds to the JSON property `objectTrackingConfig` + # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1ObjectTrackingConfig] + attr_accessor :object_tracking_config + # Video segments to annotate. The segments may overlap and are not required # to be contiguous or span the whole video. If unspecified, each video is # treated as a single segment. @@ -4421,6 +4468,7 @@ module Google def update!(**args) @explicit_content_detection_config = args[:explicit_content_detection_config] if args.key?(:explicit_content_detection_config) @label_detection_config = args[:label_detection_config] if args.key?(:label_detection_config) + @object_tracking_config = args[:object_tracking_config] if args.key?(:object_tracking_config) @segments = args[:segments] if args.key?(:segments) @shot_change_detection_config = args[:shot_change_detection_config] if args.key?(:shot_change_detection_config) @speech_transcription_config = args[:speech_transcription_config] if args.key?(:speech_transcription_config) @@ -4529,43 +4577,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleRpcStatus] attr_accessor :error @@ -4580,7 +4595,7 @@ module Google # The server-assigned name, which is only unique within the same service that # originally returns it. If you use the default HTTP mapping, the - # `name` should have the format of `operations/some/unique/name`. + # `name` should be a resource name ending with `operations/`unique_id``. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -4613,43 +4628,10 @@ module Google # The `Status` type defines a logical error model that is suitable for # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). The error model is designed to be: - # - Simple to use and understand for most users - # - Flexible enough to meet unexpected needs - # # Overview - # The `Status` message contains three pieces of data: error code, error - # message, and error details. The error code should be an enum value of - # google.rpc.Code, but it may accept additional error codes if needed. The - # error message should be a developer-facing English message that helps - # developers *understand* and *resolve* the error. If a localized user-facing - # error message is needed, put the localized message in the error details or - # localize it in the client. The optional error details may contain arbitrary - # information about the error. There is a predefined set of error detail types - # in the package `google.rpc` that can be used for common error conditions. - # # Language mapping - # The `Status` message is the logical representation of the error model, but it - # is not necessarily the actual wire format. When the `Status` message is - # exposed in different client libraries and different wire protocols, it can be - # mapped differently. For example, it will likely be mapped to some exceptions - # in Java, but more likely mapped to some error codes in C. - # # Other uses - # The error model and the `Status` message can be used in a variety of - # environments, either with or without APIs, to provide a - # consistent developer experience across different environments. - # Example uses of this error model include: - # - Partial errors. If a service needs to return partial errors to the client, - # it may embed the `Status` in the normal response to indicate the partial - # errors. - # - Workflow errors. A typical workflow has multiple steps. Each step may - # have a `Status` message for error reporting. - # - Batch operations. If a client uses batch request and batch response, the - # `Status` message should be used directly inside batch response, one for - # each error sub-response. - # - Asynchronous operations. If an API call embeds asynchronous operation - # results in its response, the status of those operations should be - # represented directly using the `Status` message. - # - Logging. If some API errors are stored in logs, the message `Status` could - # be used directly after any stripping needed for security/privacy reasons. + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). class GoogleRpcStatus include Google::Apis::Core::Hashable diff --git a/generated/google/apis/videointelligence_v1p3beta1/representations.rb b/generated/google/apis/videointelligence_v1p3beta1/representations.rb index f76702cff..595fbfcb1 100644 --- a/generated/google/apis/videointelligence_v1p3beta1/representations.rb +++ b/generated/google/apis/videointelligence_v1p3beta1/representations.rb @@ -568,6 +568,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p3beta1DetectedAttribute + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p3beta1Entity class Representation < Google::Apis::Core::JsonRepresentation; end @@ -616,6 +622,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox class Representation < Google::Apis::Core::JsonRepresentation; end @@ -640,6 +652,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p3beta1ObjectTrackingConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame class Representation < Google::Apis::Core::JsonRepresentation; end @@ -712,6 +730,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudVideointelligenceV1p3beta1TimestampedObject + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudVideointelligenceV1p3beta1Track + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress class Representation < Google::Apis::Core::JsonRepresentation; end @@ -926,8 +956,11 @@ module Google class GoogleCloudVideointelligenceV1VideoAnnotationProgress # @private class Representation < Google::Apis::Core::JsonRepresentation + property :feature, as: 'feature' property :input_uri, as: 'inputUri' property :progress_percent, as: 'progressPercent' + property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1VideoSegment, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1VideoSegment::Representation + property :start_time, as: 'startTime' property :update_time, as: 'updateTime' end @@ -1149,8 +1182,11 @@ module Google class GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress # @private class Representation < Google::Apis::Core::JsonRepresentation + property :feature, as: 'feature' property :input_uri, as: 'inputUri' property :progress_percent, as: 'progressPercent' + property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1beta2VideoSegment, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1beta2VideoSegment::Representation + property :start_time, as: 'startTime' property :update_time, as: 'updateTime' end @@ -1372,8 +1408,11 @@ module Google class GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress # @private class Representation < Google::Apis::Core::JsonRepresentation + property :feature, as: 'feature' property :input_uri, as: 'inputUri' property :progress_percent, as: 'progressPercent' + property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment::Representation + property :start_time, as: 'startTime' property :update_time, as: 'updateTime' end @@ -1595,8 +1634,11 @@ module Google class GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress # @private class Representation < Google::Apis::Core::JsonRepresentation + property :feature, as: 'feature' property :input_uri, as: 'inputUri' property :progress_percent, as: 'progressPercent' + property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p2beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p2beta1VideoSegment::Representation + property :start_time, as: 'startTime' property :update_time, as: 'updateTime' end @@ -1675,6 +1717,15 @@ module Google end end + class GoogleCloudVideointelligenceV1p3beta1DetectedAttribute + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :confidence, as: 'confidence' + property :name, as: 'name' + property :value, as: 'value' + end + end + class GoogleCloudVideointelligenceV1p3beta1Entity # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1749,6 +1800,18 @@ module Google end end + class GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :entity, as: 'entity', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Entity, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Entity::Representation + + collection :segments, as: 'segments', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1VideoSegment::Representation + + collection :tracks, as: 'tracks', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Track, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Track::Representation + + end + end + class GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1789,6 +1852,13 @@ module Google end end + class GoogleCloudVideointelligenceV1p3beta1ObjectTrackingConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :model, as: 'model' + end + end + class GoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1885,6 +1955,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation collection :language_hints, as: 'languageHints' + property :model, as: 'model' end end @@ -1908,11 +1979,38 @@ module Google end end + class GoogleCloudVideointelligenceV1p3beta1TimestampedObject + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :attributes, as: 'attributes', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1DetectedAttribute, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1DetectedAttribute::Representation + + property :normalized_bounding_box, as: 'normalizedBoundingBox', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox::Representation + + property :time_offset, as: 'timeOffset' + end + end + + class GoogleCloudVideointelligenceV1p3beta1Track + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :attributes, as: 'attributes', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1DetectedAttribute, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1DetectedAttribute::Representation + + property :confidence, as: 'confidence' + property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1VideoSegment::Representation + + collection :timestamped_objects, as: 'timestampedObjects', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1TimestampedObject, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1TimestampedObject::Representation + + end + end + class GoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress # @private class Representation < Google::Apis::Core::JsonRepresentation + property :feature, as: 'feature' property :input_uri, as: 'inputUri' property :progress_percent, as: 'progressPercent' + property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1VideoSegment::Representation + property :start_time, as: 'startTime' property :update_time, as: 'updateTime' end @@ -1928,6 +2026,8 @@ module Google collection :frame_label_annotations, as: 'frameLabelAnnotations', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1LabelAnnotation::Representation property :input_uri, as: 'inputUri' + collection :logo_recognition_annotations, as: 'logoRecognitionAnnotations', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation::Representation + collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation::Representation collection :segment_label_annotations, as: 'segmentLabelAnnotations', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1LabelAnnotation::Representation @@ -1950,6 +2050,8 @@ module Google property :label_detection_config, as: 'labelDetectionConfig', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1LabelDetectionConfig, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1LabelDetectionConfig::Representation + property :object_tracking_config, as: 'objectTrackingConfig', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1ObjectTrackingConfig, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1ObjectTrackingConfig::Representation + collection :segments, as: 'segments', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1VideoSegment::Representation property :shot_change_detection_config, as: 'shotChangeDetectionConfig', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1ShotChangeDetectionConfig, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1ShotChangeDetectionConfig::Representation