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:
parent
4630b98e3a
commit
96d6af6b73
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/billing/
|
# @see https://cloud.google.com/billing/
|
||||||
module CloudbillingV1
|
module CloudbillingV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200503'
|
REVISION = '20200623'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -67,7 +67,7 @@ module Google
|
||||||
# `
|
# `
|
||||||
# "audit_configs": [
|
# "audit_configs": [
|
||||||
# `
|
# `
|
||||||
# "service": "allServices"
|
# "service": "allServices",
|
||||||
# "audit_log_configs": [
|
# "audit_log_configs": [
|
||||||
# `
|
# `
|
||||||
# "log_type": "DATA_READ",
|
# "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": [
|
# "audit_log_configs": [
|
||||||
# `
|
# `
|
||||||
# "log_type": "DATA_READ",
|
# "log_type": "DATA_READ"
|
||||||
# `,
|
# `,
|
||||||
# `
|
# `
|
||||||
# "log_type": "DATA_WRITE",
|
# "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
|
||||||
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`.
|
# Response message for `ListBillingAccounts`.
|
||||||
class ListBillingAccountsResponse
|
class ListBillingAccountsResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -1012,6 +1038,11 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :description
|
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.
|
# The resource name for the SKU.
|
||||||
# Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
|
# Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
|
@ -1050,6 +1081,7 @@ module Google
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@category = args[:category] if args.key?(:category)
|
@category = args[:category] if args.key?(:category)
|
||||||
@description = args[:description] if args.key?(:description)
|
@description = args[:description] if args.key?(:description)
|
||||||
|
@geo_taxonomy = args[:geo_taxonomy] if args.key?(:geo_taxonomy)
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
@pricing_info = args[:pricing_info] if args.key?(:pricing_info)
|
@pricing_info = args[:pricing_info] if args.key?(:pricing_info)
|
||||||
@service_provider_name = args[:service_provider_name] if args.key?(:service_provider_name)
|
@service_provider_name = args[:service_provider_name] if args.key?(:service_provider_name)
|
||||||
|
|
|
@ -64,6 +64,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GeoTaxonomy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class ListBillingAccountsResponse
|
class ListBillingAccountsResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -220,6 +226,14 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GeoTaxonomy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :regions, as: 'regions'
|
||||||
|
property :type, as: 'type'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class ListBillingAccountsResponse
|
class ListBillingAccountsResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
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 :category, as: 'category', class: Google::Apis::CloudbillingV1::Category, decorator: Google::Apis::CloudbillingV1::Category::Representation
|
||||||
|
|
||||||
property :description, as: 'description'
|
property :description, as: 'description'
|
||||||
|
property :geo_taxonomy, as: 'geoTaxonomy', class: Google::Apis::CloudbillingV1::GeoTaxonomy, decorator: Google::Apis::CloudbillingV1::GeoTaxonomy::Representation
|
||||||
|
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
collection :pricing_info, as: 'pricingInfo', class: Google::Apis::CloudbillingV1::PricingInfo, decorator: Google::Apis::CloudbillingV1::PricingInfo::Representation
|
collection :pricing_info, as: 'pricingInfo', class: Google::Apis::CloudbillingV1::PricingInfo, decorator: Google::Apis::CloudbillingV1::PricingInfo::Representation
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/scheduler/
|
# @see https://cloud.google.com/scheduler/
|
||||||
module CloudschedulerV1
|
module CloudschedulerV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200414'
|
REVISION = '20200618'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -695,7 +695,8 @@ module Google
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Attributes for this message. If this field is empty, the message must
|
# 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`
|
# Corresponds to the JSON property `attributes`
|
||||||
# @return [Hash<String,String>]
|
# @return [Hash<String,String>]
|
||||||
attr_accessor :attributes
|
attr_accessor :attributes
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/ml/
|
# @see https://cloud.google.com/ml/
|
||||||
module MlV1
|
module MlV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200513'
|
REVISION = '20200624'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -2549,6 +2549,13 @@ module Google
|
||||||
# @return [Google::Apis::MlV1::GoogleCloudMlV1Scheduling]
|
# @return [Google::Apis::MlV1::GoogleCloudMlV1Scheduling]
|
||||||
attr_accessor :scheduling
|
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
|
# Optional. Use `chief` instead of `master` in the `TF_CONFIG` environment
|
||||||
# variable when training with a custom container. Defaults to `false`. [Learn
|
# variable when training with a custom container. Defaults to `false`. [Learn
|
||||||
# more about this
|
# more about this
|
||||||
|
@ -2618,6 +2625,7 @@ module Google
|
||||||
@runtime_version = args[:runtime_version] if args.key?(:runtime_version)
|
@runtime_version = args[:runtime_version] if args.key?(:runtime_version)
|
||||||
@scale_tier = args[:scale_tier] if args.key?(:scale_tier)
|
@scale_tier = args[:scale_tier] if args.key?(:scale_tier)
|
||||||
@scheduling = args[:scheduling] if args.key?(:scheduling)
|
@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)
|
@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_config = args[:worker_config] if args.key?(:worker_config)
|
||||||
@worker_count = args[:worker_count] if args.key?(:worker_count)
|
@worker_count = args[:worker_count] if args.key?(:worker_count)
|
||||||
|
|
|
@ -1109,6 +1109,7 @@ module Google
|
||||||
property :scale_tier, as: 'scaleTier'
|
property :scale_tier, as: 'scaleTier'
|
||||||
property :scheduling, as: 'scheduling', class: Google::Apis::MlV1::GoogleCloudMlV1Scheduling, decorator: Google::Apis::MlV1::GoogleCloudMlV1Scheduling::Representation
|
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 :use_chief_in_tf_config, as: 'useChiefInTfConfig'
|
||||||
property :worker_config, as: 'workerConfig', class: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig, decorator: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig::Representation
|
property :worker_config, as: 'workerConfig', class: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig, decorator: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig::Representation
|
||||||
|
|
||||||
|
|
|
@ -25,11 +25,14 @@ module Google
|
||||||
# @see https://developers.google.com/people/
|
# @see https://developers.google.com/people/
|
||||||
module PeopleV1
|
module PeopleV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200615'
|
REVISION = '20200624'
|
||||||
|
|
||||||
# See, edit, download, and permanently delete your contacts
|
# See, edit, download, and permanently delete your contacts
|
||||||
AUTH_CONTACTS = 'https://www.googleapis.com/auth/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
|
# See and download your contacts
|
||||||
AUTH_CONTACTS_READONLY = 'https://www.googleapis.com/auth/contacts.readonly'
|
AUTH_CONTACTS_READONLY = 'https://www.googleapis.com/auth/contacts.readonly'
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/pubsub/docs
|
# @see https://cloud.google.com/pubsub/docs
|
||||||
module PubsubV1
|
module PubsubV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200603'
|
REVISION = '20200616'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -742,7 +742,8 @@ module Google
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Attributes for this message. If this field is empty, the message must
|
# 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`
|
# Corresponds to the JSON property `attributes`
|
||||||
# @return [Hash<String,String>]
|
# @return [Hash<String,String>]
|
||||||
attr_accessor :attributes
|
attr_accessor :attributes
|
||||||
|
@ -1191,7 +1192,8 @@ module Google
|
||||||
# @return [Google::Apis::PubsubV1::ExpirationPolicy]
|
# @return [Google::Apis::PubsubV1::ExpirationPolicy]
|
||||||
attr_accessor :expiration_policy
|
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
|
# then only `PubsubMessage`s whose `attributes` field matches the filter are
|
||||||
# delivered on this subscription. If empty, then no messages are filtered
|
# delivered on this subscription. If empty, then no messages are filtered
|
||||||
# out.
|
# out.
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/memorystore/docs/redis/
|
# @see https://cloud.google.com/memorystore/docs/redis/
|
||||||
module RedisV1
|
module RedisV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200402'
|
REVISION = '20200623'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -264,7 +264,7 @@ module Google
|
||||||
attr_accessor :alternative_location_id
|
attr_accessor :alternative_location_id
|
||||||
|
|
||||||
# Optional. The full name of the Google Compute Engine
|
# 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
|
# instance is connected. If left unspecified, the `default` network
|
||||||
# will be used.
|
# will be used.
|
||||||
# Corresponds to the JSON property `authorizedNetwork`
|
# Corresponds to the JSON property `authorizedNetwork`
|
||||||
|
|
|
@ -118,7 +118,7 @@ module Google
|
||||||
|
|
||||||
# Creates a Redis instance based on the specified tier and memory size.
|
# Creates a Redis instance based on the specified tier and memory size.
|
||||||
# By default, the instance is accessible from the project's
|
# 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
|
# The creation is executed asynchronously and callers may check the returned
|
||||||
# operation to track its progress. Once the operation is completed the Redis
|
# operation to track its progress. Once the operation is completed the Redis
|
||||||
# instance will be fully functional. Completed longrunning.Operation will
|
# instance will be fully functional. Completed longrunning.Operation will
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/memorystore/docs/redis/
|
# @see https://cloud.google.com/memorystore/docs/redis/
|
||||||
module RedisV1beta1
|
module RedisV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20200402'
|
REVISION = '20200623'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -267,7 +267,7 @@ module Google
|
||||||
attr_accessor :alternative_location_id
|
attr_accessor :alternative_location_id
|
||||||
|
|
||||||
# Optional. The full name of the Google Compute Engine
|
# 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
|
# instance is connected. If left unspecified, the `default` network
|
||||||
# will be used.
|
# will be used.
|
||||||
# Corresponds to the JSON property `authorizedNetwork`
|
# Corresponds to the JSON property `authorizedNetwork`
|
||||||
|
|
|
@ -118,7 +118,7 @@ module Google
|
||||||
|
|
||||||
# Creates a Redis instance based on the specified tier and memory size.
|
# Creates a Redis instance based on the specified tier and memory size.
|
||||||
# By default, the instance is accessible from the project's
|
# 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
|
# The creation is executed asynchronously and callers may check the returned
|
||||||
# operation to track its progress. Once the operation is completed the Redis
|
# operation to track its progress. Once the operation is completed the Redis
|
||||||
# instance will be fully functional. Completed longrunning.Operation will
|
# instance will be fully functional. Completed longrunning.Operation will
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/secret-manager/
|
# @see https://cloud.google.com/secret-manager/
|
||||||
module SecretmanagerV1
|
module SecretmanagerV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200612'
|
REVISION = '20200619'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/secret-manager/
|
# @see https://cloud.google.com/secret-manager/
|
||||||
module SecretmanagerV1beta1
|
module SecretmanagerV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20200612'
|
REVISION = '20200619'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -18,16 +18,16 @@ require 'google/apis/webfonts_v1/representations.rb'
|
||||||
|
|
||||||
module Google
|
module Google
|
||||||
module Apis
|
module Apis
|
||||||
# Google Fonts Developer API
|
# Web Fonts Developer API
|
||||||
#
|
#
|
||||||
# Accesses the metadata for all families served by Google Fonts, providing a
|
# The Google Web Fonts Developer API lets you retrieve information about web
|
||||||
# list of families currently available (including available styles and a list of
|
# fonts served
|
||||||
# supported script subsets).
|
# by Google.
|
||||||
#
|
#
|
||||||
# @see https://developers.google.com/fonts/docs/developer_api
|
# @see https://developers.google.com/fonts/docs/developer_api
|
||||||
module WebfontsV1
|
module WebfontsV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20160302'
|
REVISION = '20200622'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -22,7 +22,7 @@ module Google
|
||||||
module Apis
|
module Apis
|
||||||
module WebfontsV1
|
module WebfontsV1
|
||||||
|
|
||||||
#
|
# Metadata describing a family of fonts.
|
||||||
class Webfont
|
class Webfont
|
||||||
include Google::Apis::Core::Hashable
|
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.
|
# The date (format "yyyy-MM-dd") the font was modified for the last time.
|
||||||
# Corresponds to the JSON property `lastModified`
|
# Corresponds to the JSON property `lastModified`
|
||||||
# @return [Date]
|
# @return [String]
|
||||||
attr_accessor :last_modified
|
attr_accessor :last_modified
|
||||||
|
|
||||||
# The scripts supported by the font.
|
# The scripts supported by the font.
|
||||||
|
@ -84,7 +84,8 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
# Response containing the list of fonts currently served by the
|
||||||
|
# Google Fonts API.
|
||||||
class WebfontList
|
class WebfontList
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
|
|
@ -41,8 +41,7 @@ module Google
|
||||||
property :family, as: 'family'
|
property :family, as: 'family'
|
||||||
hash :files, as: 'files'
|
hash :files, as: 'files'
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
property :last_modified, as: 'lastModified', type: Date
|
property :last_modified, as: 'lastModified'
|
||||||
|
|
||||||
collection :subsets, as: 'subsets'
|
collection :subsets, as: 'subsets'
|
||||||
collection :variants, as: 'variants'
|
collection :variants, as: 'variants'
|
||||||
property :version, as: 'version'
|
property :version, as: 'version'
|
||||||
|
|
|
@ -20,11 +20,11 @@ require 'google/apis/errors'
|
||||||
module Google
|
module Google
|
||||||
module Apis
|
module Apis
|
||||||
module WebfontsV1
|
module WebfontsV1
|
||||||
# Google Fonts Developer API
|
# Web Fonts Developer API
|
||||||
#
|
#
|
||||||
# Accesses the metadata for all families served by Google Fonts, providing a
|
# The Google Web Fonts Developer API lets you retrieve information about web
|
||||||
# list of families currently available (including available styles and a list of
|
# fonts served
|
||||||
# supported script subsets).
|
# by Google.
|
||||||
#
|
#
|
||||||
# @example
|
# @example
|
||||||
# require 'google/apis/webfonts_v1'
|
# require 'google/apis/webfonts_v1'
|
||||||
|
@ -40,29 +40,24 @@ module Google
|
||||||
attr_accessor :key
|
attr_accessor :key
|
||||||
|
|
||||||
# @return [String]
|
# @return [String]
|
||||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
attr_accessor :quota_user
|
attr_accessor :quota_user
|
||||||
|
|
||||||
# @return [String]
|
|
||||||
# Deprecated. Please use quotaUser instead.
|
|
||||||
attr_accessor :user_ip
|
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
super('https://www.googleapis.com/', 'webfonts/v1/')
|
super('https://www.googleapis.com/', '')
|
||||||
@batch_path = 'batch/webfonts/v1'
|
@batch_path = 'batch/webfonts/v1'
|
||||||
end
|
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
|
# @param [String] sort
|
||||||
# Enables sorting of the list
|
# Enables sorting of the list.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] user_ip
|
|
||||||
# Deprecated. Please use quotaUser instead.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific 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::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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_webfonts(sort: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def list_webfonts(sort: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'webfonts', options)
|
command = make_simple_command(:get, 'v1/webfonts', options)
|
||||||
command.response_representation = Google::Apis::WebfontsV1::WebfontList::Representation
|
command.response_representation = Google::Apis::WebfontsV1::WebfontList::Representation
|
||||||
command.response_class = Google::Apis::WebfontsV1::WebfontList
|
command.response_class = Google::Apis::WebfontsV1::WebfontList
|
||||||
command.query['sort'] = sort unless sort.nil?
|
command.query['sort'] = sort unless sort.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.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)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -91,7 +85,6 @@ module Google
|
||||||
def apply_command_defaults(command)
|
def apply_command_defaults(command)
|
||||||
command.query['key'] = key unless key.nil?
|
command.query['key'] = key unless key.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue