From 96d6af6b73d8c0e6bed5653427b9f825bfca558a Mon Sep 17 00:00:00 2001 From: Google APIs Date: Fri, 26 Jun 2020 00:38:05 +0000 Subject: [PATCH] Autogenerated update (2020-06-26) Update: - cloudbilling_v1 - cloudscheduler_v1 - ml_v1 - people_v1 - pubsub_v1 - redis_v1 - redis_v1beta1 - secretmanager_v1 - secretmanager_v1beta1 - webfonts_v1 --- generated/google/apis/cloudbilling_v1.rb | 2 +- .../google/apis/cloudbilling_v1/classes.rb | 44 ++++++++++++++++--- .../apis/cloudbilling_v1/representations.rb | 16 +++++++ generated/google/apis/cloudscheduler_v1.rb | 2 +- .../google/apis/cloudscheduler_v1/classes.rb | 3 +- generated/google/apis/ml_v1.rb | 2 +- generated/google/apis/ml_v1/classes.rb | 8 ++++ .../google/apis/ml_v1/representations.rb | 1 + generated/google/apis/people_v1.rb | 5 ++- generated/google/apis/pubsub_v1.rb | 2 +- generated/google/apis/pubsub_v1/classes.rb | 6 ++- generated/google/apis/redis_v1.rb | 2 +- generated/google/apis/redis_v1/classes.rb | 2 +- generated/google/apis/redis_v1/service.rb | 2 +- generated/google/apis/redis_v1beta1.rb | 2 +- .../google/apis/redis_v1beta1/classes.rb | 2 +- .../google/apis/redis_v1beta1/service.rb | 2 +- generated/google/apis/secretmanager_v1.rb | 2 +- .../google/apis/secretmanager_v1beta1.rb | 2 +- generated/google/apis/webfonts_v1.rb | 10 ++--- generated/google/apis/webfonts_v1/classes.rb | 7 +-- .../apis/webfonts_v1/representations.rb | 3 +- generated/google/apis/webfonts_v1/service.rb | 35 ++++++--------- 23 files changed, 109 insertions(+), 53 deletions(-) diff --git a/generated/google/apis/cloudbilling_v1.rb b/generated/google/apis/cloudbilling_v1.rb index 4f9db45b7..b5ee6f94f 100644 --- a/generated/google/apis/cloudbilling_v1.rb +++ b/generated/google/apis/cloudbilling_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/billing/ module CloudbillingV1 VERSION = 'V1' - REVISION = '20200503' + REVISION = '20200623' # 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/cloudbilling_v1/classes.rb b/generated/google/apis/cloudbilling_v1/classes.rb index 4d419672e..c20aa6fea 100644 --- a/generated/google/apis/cloudbilling_v1/classes.rb +++ b/generated/google/apis/cloudbilling_v1/classes.rb @@ -67,7 +67,7 @@ module Google # ` # "audit_configs": [ # ` - # "service": "allServices" + # "service": "allServices", # "audit_log_configs": [ # ` # "log_type": "DATA_READ", @@ -76,18 +76,18 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # `, # ` - # "log_type": "ADMIN_READ", + # "log_type": "ADMIN_READ" # ` # ] # `, # ` - # "service": "sampleservice.googleapis.com" + # "service": "sampleservice.googleapis.com", # "audit_log_configs": [ # ` - # "log_type": "DATA_READ", + # "log_type": "DATA_READ" # `, # ` # "log_type": "DATA_WRITE", @@ -139,7 +139,7 @@ module Google # ] # `, # ` - # "log_type": "DATA_WRITE", + # "log_type": "DATA_WRITE" # ` # ] # ` @@ -407,6 +407,32 @@ module Google end end + # Encapsulates the geographic taxonomy data for a sku. + class GeoTaxonomy + include Google::Apis::Core::Hashable + + # The list of regions associated with a sku. Empty for Global skus, which are + # associated with all GCP regions. + # Corresponds to the JSON property `regions` + # @return [Array] + attr_accessor :regions + + # The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL. + # 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) + @regions = args[:regions] if args.key?(:regions) + @type = args[:type] if args.key?(:type) + end + end + # Response message for `ListBillingAccounts`. class ListBillingAccountsResponse include Google::Apis::Core::Hashable @@ -1012,6 +1038,11 @@ module Google # @return [String] attr_accessor :description + # Encapsulates the geographic taxonomy data for a sku. + # Corresponds to the JSON property `geoTaxonomy` + # @return [Google::Apis::CloudbillingV1::GeoTaxonomy] + attr_accessor :geo_taxonomy + # The resource name for the SKU. # Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE" # Corresponds to the JSON property `name` @@ -1050,6 +1081,7 @@ module Google def update!(**args) @category = args[:category] if args.key?(:category) @description = args[:description] if args.key?(:description) + @geo_taxonomy = args[:geo_taxonomy] if args.key?(:geo_taxonomy) @name = args[:name] if args.key?(:name) @pricing_info = args[:pricing_info] if args.key?(:pricing_info) @service_provider_name = args[:service_provider_name] if args.key?(:service_provider_name) diff --git a/generated/google/apis/cloudbilling_v1/representations.rb b/generated/google/apis/cloudbilling_v1/representations.rb index 34b720483..b19da617d 100644 --- a/generated/google/apis/cloudbilling_v1/representations.rb +++ b/generated/google/apis/cloudbilling_v1/representations.rb @@ -64,6 +64,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GeoTaxonomy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListBillingAccountsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -220,6 +226,14 @@ module Google end end + class GeoTaxonomy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :regions, as: 'regions' + property :type, as: 'type' + end + end + class ListBillingAccountsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -339,6 +353,8 @@ module Google property :category, as: 'category', class: Google::Apis::CloudbillingV1::Category, decorator: Google::Apis::CloudbillingV1::Category::Representation property :description, as: 'description' + property :geo_taxonomy, as: 'geoTaxonomy', class: Google::Apis::CloudbillingV1::GeoTaxonomy, decorator: Google::Apis::CloudbillingV1::GeoTaxonomy::Representation + property :name, as: 'name' collection :pricing_info, as: 'pricingInfo', class: Google::Apis::CloudbillingV1::PricingInfo, decorator: Google::Apis::CloudbillingV1::PricingInfo::Representation diff --git a/generated/google/apis/cloudscheduler_v1.rb b/generated/google/apis/cloudscheduler_v1.rb index 615d1cdd2..e072ee0a7 100644 --- a/generated/google/apis/cloudscheduler_v1.rb +++ b/generated/google/apis/cloudscheduler_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/scheduler/ module CloudschedulerV1 VERSION = 'V1' - REVISION = '20200414' + REVISION = '20200618' # 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/cloudscheduler_v1/classes.rb b/generated/google/apis/cloudscheduler_v1/classes.rb index 77fa960dd..19b8d417b 100644 --- a/generated/google/apis/cloudscheduler_v1/classes.rb +++ b/generated/google/apis/cloudscheduler_v1/classes.rb @@ -695,7 +695,8 @@ module Google include Google::Apis::Core::Hashable # Attributes for this message. If this field is empty, the message must - # contain non-empty data. + # contain non-empty data. This can be used to filter messages on the + # subscription. # Corresponds to the JSON property `attributes` # @return [Hash] attr_accessor :attributes diff --git a/generated/google/apis/ml_v1.rb b/generated/google/apis/ml_v1.rb index 0489a1c26..ad277bc94 100644 --- a/generated/google/apis/ml_v1.rb +++ b/generated/google/apis/ml_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/ml/ module MlV1 VERSION = 'V1' - REVISION = '20200513' + REVISION = '20200624' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/ml_v1/classes.rb b/generated/google/apis/ml_v1/classes.rb index 4b4e7e4ec..33d34c409 100644 --- a/generated/google/apis/ml_v1/classes.rb +++ b/generated/google/apis/ml_v1/classes.rb @@ -2549,6 +2549,13 @@ module Google # @return [Google::Apis::MlV1::GoogleCloudMlV1Scheduling] attr_accessor :scheduling + # Optional. Specifies the service account for workload run-as account. + # Users submitting jobs must have act-as permission on this run-as account. + # If not specified, then CMLE P4SA will be used by default. + # Corresponds to the JSON property `serviceAccount` + # @return [String] + attr_accessor :service_account + # Optional. Use `chief` instead of `master` in the `TF_CONFIG` environment # variable when training with a custom container. Defaults to `false`. [Learn # more about this @@ -2618,6 +2625,7 @@ module Google @runtime_version = args[:runtime_version] if args.key?(:runtime_version) @scale_tier = args[:scale_tier] if args.key?(:scale_tier) @scheduling = args[:scheduling] if args.key?(:scheduling) + @service_account = args[:service_account] if args.key?(:service_account) @use_chief_in_tf_config = args[:use_chief_in_tf_config] if args.key?(:use_chief_in_tf_config) @worker_config = args[:worker_config] if args.key?(:worker_config) @worker_count = args[:worker_count] if args.key?(:worker_count) diff --git a/generated/google/apis/ml_v1/representations.rb b/generated/google/apis/ml_v1/representations.rb index f4a122069..7cc52b368 100644 --- a/generated/google/apis/ml_v1/representations.rb +++ b/generated/google/apis/ml_v1/representations.rb @@ -1109,6 +1109,7 @@ module Google property :scale_tier, as: 'scaleTier' property :scheduling, as: 'scheduling', class: Google::Apis::MlV1::GoogleCloudMlV1Scheduling, decorator: Google::Apis::MlV1::GoogleCloudMlV1Scheduling::Representation + property :service_account, as: 'serviceAccount' property :use_chief_in_tf_config, as: 'useChiefInTfConfig' property :worker_config, as: 'workerConfig', class: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig, decorator: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig::Representation diff --git a/generated/google/apis/people_v1.rb b/generated/google/apis/people_v1.rb index 8954c5c70..06daa076a 100644 --- a/generated/google/apis/people_v1.rb +++ b/generated/google/apis/people_v1.rb @@ -25,11 +25,14 @@ module Google # @see https://developers.google.com/people/ module PeopleV1 VERSION = 'V1' - REVISION = '20200615' + REVISION = '20200624' # See, edit, download, and permanently delete your contacts AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts' + # See and download contact info automatically saved in your "Other contacts" + AUTH_CONTACTS_OTHER_READONLY = 'https://www.googleapis.com/auth/contacts.other.readonly' + # See and download your contacts AUTH_CONTACTS_READONLY = 'https://www.googleapis.com/auth/contacts.readonly' diff --git a/generated/google/apis/pubsub_v1.rb b/generated/google/apis/pubsub_v1.rb index d4c22011d..fc9b0982a 100644 --- a/generated/google/apis/pubsub_v1.rb +++ b/generated/google/apis/pubsub_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/pubsub/docs module PubsubV1 VERSION = 'V1' - REVISION = '20200603' + REVISION = '20200616' # 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/pubsub_v1/classes.rb b/generated/google/apis/pubsub_v1/classes.rb index ee907d7c0..b50d22ac2 100644 --- a/generated/google/apis/pubsub_v1/classes.rb +++ b/generated/google/apis/pubsub_v1/classes.rb @@ -742,7 +742,8 @@ module Google include Google::Apis::Core::Hashable # Attributes for this message. If this field is empty, the message must - # contain non-empty data. + # contain non-empty data. This can be used to filter messages on the + # subscription. # Corresponds to the JSON property `attributes` # @return [Hash] attr_accessor :attributes @@ -1191,7 +1192,8 @@ module Google # @return [Google::Apis::PubsubV1::ExpirationPolicy] attr_accessor :expiration_policy - # An expression written in the Cloud Pub/Sub filter language. If non-empty, + # An expression written in the Pub/Sub [filter + # language](https://cloud.google.com/pubsub/docs/filtering). If non-empty, # then only `PubsubMessage`s whose `attributes` field matches the filter are # delivered on this subscription. If empty, then no messages are filtered # out. diff --git a/generated/google/apis/redis_v1.rb b/generated/google/apis/redis_v1.rb index 838a84bea..cb7143897 100644 --- a/generated/google/apis/redis_v1.rb +++ b/generated/google/apis/redis_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/memorystore/docs/redis/ module RedisV1 VERSION = 'V1' - REVISION = '20200402' + REVISION = '20200623' # 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/redis_v1/classes.rb b/generated/google/apis/redis_v1/classes.rb index b34d44e12..dda9532b1 100644 --- a/generated/google/apis/redis_v1/classes.rb +++ b/generated/google/apis/redis_v1/classes.rb @@ -264,7 +264,7 @@ module Google attr_accessor :alternative_location_id # Optional. The full name of the Google Compute Engine - # [network](/compute/docs/networks-and-firewalls#networks) to which the + # [network](https://cloud.google.com/vpc/docs/vpc) to which the # instance is connected. If left unspecified, the `default` network # will be used. # Corresponds to the JSON property `authorizedNetwork` diff --git a/generated/google/apis/redis_v1/service.rb b/generated/google/apis/redis_v1/service.rb index 63801934a..6d4632138 100644 --- a/generated/google/apis/redis_v1/service.rb +++ b/generated/google/apis/redis_v1/service.rb @@ -118,7 +118,7 @@ module Google # Creates a Redis instance based on the specified tier and memory size. # By default, the instance is accessible from the project's - # [default network](/compute/docs/networks-and-firewalls#networks). + # [default network](https://cloud.google.com/vpc/docs/vpc). # The creation is executed asynchronously and callers may check the returned # operation to track its progress. Once the operation is completed the Redis # instance will be fully functional. Completed longrunning.Operation will diff --git a/generated/google/apis/redis_v1beta1.rb b/generated/google/apis/redis_v1beta1.rb index c565b1c72..b39a53855 100644 --- a/generated/google/apis/redis_v1beta1.rb +++ b/generated/google/apis/redis_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/memorystore/docs/redis/ module RedisV1beta1 VERSION = 'V1beta1' - REVISION = '20200402' + REVISION = '20200623' # 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/redis_v1beta1/classes.rb b/generated/google/apis/redis_v1beta1/classes.rb index ceabcfb94..7765556e8 100644 --- a/generated/google/apis/redis_v1beta1/classes.rb +++ b/generated/google/apis/redis_v1beta1/classes.rb @@ -267,7 +267,7 @@ module Google attr_accessor :alternative_location_id # Optional. The full name of the Google Compute Engine - # [network](/compute/docs/networks-and-firewalls#networks) to which the + # [network](https://cloud.google.com/vpc/docs/vpc) to which the # instance is connected. If left unspecified, the `default` network # will be used. # Corresponds to the JSON property `authorizedNetwork` diff --git a/generated/google/apis/redis_v1beta1/service.rb b/generated/google/apis/redis_v1beta1/service.rb index 189a38570..f1c1372c2 100644 --- a/generated/google/apis/redis_v1beta1/service.rb +++ b/generated/google/apis/redis_v1beta1/service.rb @@ -118,7 +118,7 @@ module Google # Creates a Redis instance based on the specified tier and memory size. # By default, the instance is accessible from the project's - # [default network](/compute/docs/networks-and-firewalls#networks). + # [default network](https://cloud.google.com/vpc/docs/vpc). # The creation is executed asynchronously and callers may check the returned # operation to track its progress. Once the operation is completed the Redis # instance will be fully functional. Completed longrunning.Operation will diff --git a/generated/google/apis/secretmanager_v1.rb b/generated/google/apis/secretmanager_v1.rb index 58811c57e..48435ce78 100644 --- a/generated/google/apis/secretmanager_v1.rb +++ b/generated/google/apis/secretmanager_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/secret-manager/ module SecretmanagerV1 VERSION = 'V1' - REVISION = '20200612' + REVISION = '20200619' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/secretmanager_v1beta1.rb b/generated/google/apis/secretmanager_v1beta1.rb index c2a8b59f3..422b835bf 100644 --- a/generated/google/apis/secretmanager_v1beta1.rb +++ b/generated/google/apis/secretmanager_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/secret-manager/ module SecretmanagerV1beta1 VERSION = 'V1beta1' - REVISION = '20200612' + REVISION = '20200619' # 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/webfonts_v1.rb b/generated/google/apis/webfonts_v1.rb index 4a05941bb..f151d2f44 100644 --- a/generated/google/apis/webfonts_v1.rb +++ b/generated/google/apis/webfonts_v1.rb @@ -18,16 +18,16 @@ require 'google/apis/webfonts_v1/representations.rb' module Google module Apis - # Google Fonts Developer API + # Web Fonts Developer API # - # Accesses the metadata for all families served by Google Fonts, providing a - # list of families currently available (including available styles and a list of - # supported script subsets). + # The Google Web Fonts Developer API lets you retrieve information about web + # fonts served + # by Google. # # @see https://developers.google.com/fonts/docs/developer_api module WebfontsV1 VERSION = 'V1' - REVISION = '20160302' + REVISION = '20200622' end end end diff --git a/generated/google/apis/webfonts_v1/classes.rb b/generated/google/apis/webfonts_v1/classes.rb index dac1c1e77..6822bac91 100644 --- a/generated/google/apis/webfonts_v1/classes.rb +++ b/generated/google/apis/webfonts_v1/classes.rb @@ -22,7 +22,7 @@ module Google module Apis module WebfontsV1 - # + # Metadata describing a family of fonts. class Webfont include Google::Apis::Core::Hashable @@ -49,7 +49,7 @@ module Google # The date (format "yyyy-MM-dd") the font was modified for the last time. # Corresponds to the JSON property `lastModified` - # @return [Date] + # @return [String] attr_accessor :last_modified # The scripts supported by the font. @@ -84,7 +84,8 @@ module Google end end - # + # Response containing the list of fonts currently served by the + # Google Fonts API. class WebfontList include Google::Apis::Core::Hashable diff --git a/generated/google/apis/webfonts_v1/representations.rb b/generated/google/apis/webfonts_v1/representations.rb index 297e26bcc..d31668d88 100644 --- a/generated/google/apis/webfonts_v1/representations.rb +++ b/generated/google/apis/webfonts_v1/representations.rb @@ -41,8 +41,7 @@ module Google property :family, as: 'family' hash :files, as: 'files' property :kind, as: 'kind' - property :last_modified, as: 'lastModified', type: Date - + property :last_modified, as: 'lastModified' collection :subsets, as: 'subsets' collection :variants, as: 'variants' property :version, as: 'version' diff --git a/generated/google/apis/webfonts_v1/service.rb b/generated/google/apis/webfonts_v1/service.rb index 508fda096..a649d9311 100644 --- a/generated/google/apis/webfonts_v1/service.rb +++ b/generated/google/apis/webfonts_v1/service.rb @@ -20,11 +20,11 @@ require 'google/apis/errors' module Google module Apis module WebfontsV1 - # Google Fonts Developer API + # Web Fonts Developer API # - # Accesses the metadata for all families served by Google Fonts, providing a - # list of families currently available (including available styles and a list of - # supported script subsets). + # The Google Web Fonts Developer API lets you retrieve information about web + # fonts served + # by Google. # # @example # require 'google/apis/webfonts_v1' @@ -40,29 +40,24 @@ module Google attr_accessor :key # @return [String] - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. + # 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. attr_accessor :quota_user - # @return [String] - # Deprecated. Please use quotaUser instead. - attr_accessor :user_ip - def initialize - super('https://www.googleapis.com/', 'webfonts/v1/') + super('https://www.googleapis.com/', '') @batch_path = 'batch/webfonts/v1' end - # Retrieves the list of fonts currently served by the Google Fonts Developer API + # Retrieves the list of fonts currently served by the Google Fonts Developer + # API. # @param [String] sort - # Enables sorting of the list + # Enables sorting of the list. # @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. + # 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 # @@ -75,14 +70,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_webfonts(sort: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'webfonts', options) + def list_webfonts(sort: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/webfonts', options) command.response_representation = Google::Apis::WebfontsV1::WebfontList::Representation command.response_class = Google::Apis::WebfontsV1::WebfontList command.query['sort'] = sort unless sort.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 @@ -91,7 +85,6 @@ module Google def apply_command_defaults(command) command.query['key'] = key unless key.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? end end end