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
This commit is contained in:
Google APIs 2020-06-26 00:38:05 +00:00
parent 4630b98e3a
commit 96d6af6b73
23 changed files with 109 additions and 53 deletions

View File

@ -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'

View File

@ -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<String>]
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)

View File

@ -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

View File

@ -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'

View File

@ -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<String,String>]
attr_accessor :attributes

View File

@ -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'

View File

@ -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)

View File

@ -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

View File

@ -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'

View File

@ -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'

View File

@ -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<String,String>]
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.

View File

@ -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'

View File

@ -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`

View File

@ -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

View File

@ -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'

View File

@ -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`

View File

@ -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

View File

@ -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'

View File

@ -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'

View File

@ -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

View File

@ -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

View File

@ -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'

View File

@ -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