Autogenerated update (2017-12-08)

Update:
- admin_directory_v1
- cloudiot_v1beta1
- dialogflow_v2beta1
- ml_v1
- toolresults_v1beta3
- youtube_partner_v1
This commit is contained in:
Google APIs committed 2017-12-08 00:35:39 +00:00
1 parent 7dcc9066c4
commit 4b90f6bb8f
17 files changed
+601 -309

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/admin-sdk/directory/
module AdminDirectoryV1
VERSION = 'DirectoryV1'
REVISION = '20171113'
REVISION = '20171127'
# View and manage customer related information
AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'
@@ -254,14 +254,39 @@ module Google
class CalendarResource
include Google::Apis::Core::Hashable
# Unique ID for the building a resource is located in.
# Corresponds to the JSON property `buildingId`
# @return [String]
attr_accessor :building_id
# Capacity of a resource, number of seats in a room.
# Corresponds to the JSON property `capacity`
# @return [Fixnum]
attr_accessor :capacity
# ETag of the resource.
# Corresponds to the JSON property `etags`
# @return [String]
attr_accessor :etags
# The auto-generated name of the calendar resource which includes metadata about
# the resource such as building name, floor, capacity, etc. For example, NYC-2-
# Training Room 1A (16)
#
# Corresponds to the JSON property `featureInstances`
# @return [Object]
attr_accessor :feature_instances
# Name of the floor a resource is located on.
# Corresponds to the JSON property `floorName`
# @return [String]
attr_accessor :floor_name
# Name of the section within a floor a resource is located in.
# Corresponds to the JSON property `floorSection`
# @return [String]
attr_accessor :floor_section
# The read-only auto-generated name of the calendar resource which includes
# metadata about the resource such as building name, floor, capacity, etc. For
# example, "NYC-2-Training Room 1A (16)".
# Corresponds to the JSON property `generatedResourceName`
# @return [String]
attr_accessor :generated_resource_name
@@ -272,13 +297,21 @@ module Google
# @return [String]
attr_accessor :kind
# The brief description of the calendar resource.
# The category of the calendar resource. Either CONFERENCE_ROOM or OTHER. Legacy
# data is set to CATEGORY_UNKNOWN.
# Corresponds to the JSON property `resourceCategory`
# @return [String]
attr_accessor :resource_category
# Description of the resource, visible only to admins. The brief description of
# the calendar resource.
# Corresponds to the JSON property `resourceDescription`
# @return [String]
attr_accessor :resource_description
# The read-only email ID for the calendar resource. Generated as part of
# creating a new calendar resource.
# creating a new calendar resource. The read-only email for the calendar
# resource. Generated as part of creating a new calendar resource.
# Corresponds to the JSON property `resourceEmail`
# @return [String]
attr_accessor :resource_email
@@ -288,31 +321,45 @@ module Google
# @return [String]
attr_accessor :resource_id
# The name of the calendar resource. For example, Training Room 1A
# The name of the calendar resource. For example, "Training Room 1A". The name
# of the calendar resource. For example, Training Room 1A
# Corresponds to the JSON property `resourceName`
# @return [String]
attr_accessor :resource_name
# The type of the calendar resource. Used for grouping resources in the calendar
# user interface.
# The type of the calendar resource, intended for non-room resources. The type
# of the calendar resource. Used for grouping resources in the calendar user
# interface.
# Corresponds to the JSON property `resourceType`
# @return [String]
attr_accessor :resource_type
# Description of the resource, visible to users and admins.
# Corresponds to the JSON property `userVisibleDescription`
# @return [String]
attr_accessor :user_visible_description
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@building_id = args[:building_id] if args.key?(:building_id)
@capacity = args[:capacity] if args.key?(:capacity)
@etags = args[:etags] if args.key?(:etags)
@feature_instances = args[:feature_instances] if args.key?(:feature_instances)
@floor_name = args[:floor_name] if args.key?(:floor_name)
@floor_section = args[:floor_section] if args.key?(:floor_section)
@generated_resource_name = args[:generated_resource_name] if args.key?(:generated_resource_name)
@kind = args[:kind] if args.key?(:kind)
@resource_category = args[:resource_category] if args.key?(:resource_category)
@resource_description = args[:resource_description] if args.key?(:resource_description)
@resource_email = args[:resource_email] if args.key?(:resource_email)
@resource_id = args[:resource_id] if args.key?(:resource_id)
@resource_name = args[:resource_name] if args.key?(:resource_name)
@resource_type = args[:resource_type] if args.key?(:resource_type)
@user_visible_description = args[:user_visible_description] if args.key?(:user_visible_description)
end
end
@@ -462,6 +509,11 @@ module Google
# @return [String]
attr_accessor :boot_mode
# List of device files to download (Read-only)
# Corresponds to the JSON property `deviceFiles`
# @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::DeviceFile>]
attr_accessor :device_files
# Unique identifier of Chrome OS Device (Read-only)
# Corresponds to the JSON property `deviceId`
# @return [String]
@@ -576,6 +628,7 @@ module Google
@annotated_location = args[:annotated_location] if args.key?(:annotated_location)
@annotated_user = args[:annotated_user] if args.key?(:annotated_user)
@boot_mode = args[:boot_mode] if args.key?(:boot_mode)
@device_files = args[:device_files] if args.key?(:device_files)
@device_id = args[:device_id] if args.key?(:device_id)
@etag = args[:etag] if args.key?(:etag)
@ethernet_mac_address = args[:ethernet_mac_address] if args.key?(:ethernet_mac_address)
@@ -623,6 +676,43 @@ module Google
end
end
#
class DeviceFile
include Google::Apis::Core::Hashable
# Date and time the file was created
# Corresponds to the JSON property `createTime`
# @return [DateTime]
attr_accessor :create_time
# File downlod URL
# Corresponds to the JSON property `downloadUrl`
# @return [String]
attr_accessor :download_url
# File name
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# File type
# 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)
@create_time = args[:create_time] if args.key?(:create_time)
@download_url = args[:download_url] if args.key?(:download_url)
@name = args[:name] if args.key?(:name)
@type = args[:type] if args.key?(:type)
end
end
#
class RecentUser
include Google::Apis::Core::Hashable
@@ -1044,6 +1134,56 @@ module Google
end
end
# JSON template for Feature object in Directory API.
class Feature
include Google::Apis::Core::Hashable
# ETag of the resource.
# Corresponds to the JSON property `etags`
# @return [String]
attr_accessor :etags
# Kind of resource this is.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The name of the feature.
# 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)
@etags = args[:etags] if args.key?(:etags)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
end
end
# JSON template for a "feature instance".
class FeatureInstance
include Google::Apis::Core::Hashable
# JSON template for Feature object in Directory API.
# Corresponds to the JSON property `feature`
# @return [Google::Apis::AdminDirectoryV1::Feature]
attr_accessor :feature
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@feature = args[:feature] if args.key?(:feature)
end
end
# JSON template for Group resource in Directory API.
class Group
include Google::Apis::Core::Hashable
@@ -79,6 +79,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class DeviceFile
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RecentUser
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -142,6 +148,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Feature
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FeatureInstance
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Group
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -508,14 +526,21 @@ module Google
class CalendarResource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :building_id, as: 'buildingId'
property :capacity, as: 'capacity'
property :etags, as: 'etags'
property :feature_instances, as: 'featureInstances'
property :floor_name, as: 'floorName'
property :floor_section, as: 'floorSection'
property :generated_resource_name, as: 'generatedResourceName'
property :kind, as: 'kind'
property :resource_category, as: 'resourceCategory'
property :resource_description, as: 'resourceDescription'
property :resource_email, as: 'resourceEmail'
property :resource_id, as: 'resourceId'
property :resource_name, as: 'resourceName'
property :resource_type, as: 'resourceType'
property :user_visible_description, as: 'userVisibleDescription'
end
end
@@ -555,6 +580,8 @@ module Google
property :annotated_location, as: 'annotatedLocation'
property :annotated_user, as: 'annotatedUser'
property :boot_mode, as: 'bootMode'
collection :device_files, as: 'deviceFiles', class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::DeviceFile, decorator: Google::Apis::AdminDirectoryV1::ChromeOsDevice::DeviceFile::Representation
property :device_id, as: 'deviceId'
property :etag, as: 'etag'
property :ethernet_mac_address, as: 'ethernetMacAddress'
@@ -590,6 +617,17 @@ module Google
end
end
class DeviceFile
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime', type: DateTime
property :download_url, as: 'downloadUrl'
property :name, as: 'name'
property :type, as: 'type'
end
end
class RecentUser
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -703,6 +741,23 @@ module Google
end
end
class Feature
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etags, as: 'etags'
property :kind, as: 'kind'
property :name, as: 'name'
end
end
class FeatureInstance
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :feature, as: 'feature', class: Google::Apis::AdminDirectoryV1::Feature, decorator: Google::Apis::AdminDirectoryV1::Feature::Representation
end
end
class Group
# @private
class Representation < Google::Apis::Core::JsonRepresentation
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/iot
module CloudiotV1beta1
VERSION = 'V1beta1'
REVISION = '20171011'
REVISION = '20171204'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -541,111 +541,6 @@ module Google
end
end
# The device configuration obtained from Cloud IoT Core.
class HttpDeviceConfig
include Google::Apis::Core::Hashable
# Data in binary format.
# Corresponds to the JSON property `binaryData`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :binary_data
# The version of the configuration in Cloud IoT Core.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@binary_data = args[:binary_data] if args.key?(:binary_data)
@version = args[:version] if args.key?(:version)
end
end
# The device state reported to Cloud IoT Core.
class HttpDeviceState
include Google::Apis::Core::Hashable
# Data in binary format.
# Corresponds to the JSON property `binaryData`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :binary_data
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@binary_data = args[:binary_data] if args.key?(:binary_data)
end
end
# Request for `PublishEvent`.
class HttpPublishEventRequest
include Google::Apis::Core::Hashable
# Payload data in binary format.
# Corresponds to the JSON property `binaryData`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :binary_data
# Optional subfolder for the telemetry event. This can be used to classify
# types of events, and is included in the Pub/Sub message attributes.
# Corresponds to the JSON property `subFolder`
# @return [String]
attr_accessor :sub_folder
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@binary_data = args[:binary_data] if args.key?(:binary_data)
@sub_folder = args[:sub_folder] if args.key?(:sub_folder)
end
end
# Response for `PublishEvent`.
class HttpPublishEventResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Request for `SetDeviceState`.
class HttpSetDeviceStateRequest
include Google::Apis::Core::Hashable
# The device state reported to Cloud IoT Core.
# Corresponds to the JSON property `state`
# @return [Google::Apis::CloudiotV1beta1::HttpDeviceState]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@state = args[:state] if args.key?(:state)
end
end
# Response for `ListDeviceConfigVersions`.
class ListDeviceConfigVersionsResponse
include Google::Apis::Core::Hashable
@@ -88,36 +88,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class HttpDeviceConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HttpDeviceState
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HttpPublishEventRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HttpPublishEventResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HttpSetDeviceStateRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDeviceConfigVersionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -299,43 +269,6 @@ module Google
end
end
class HttpDeviceConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :binary_data, :base64 => true, as: 'binaryData'
property :version, :numeric_string => true, as: 'version'
end
end
class HttpDeviceState
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :binary_data, :base64 => true, as: 'binaryData'
end
end
class HttpPublishEventRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :binary_data, :base64 => true, as: 'binaryData'
property :sub_folder, as: 'subFolder'
end
end
class HttpPublishEventResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class HttpSetDeviceStateRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :state, as: 'state', class: Google::Apis::CloudiotV1beta1::HttpDeviceState, decorator: Google::Apis::CloudiotV1beta1::HttpDeviceState::Representation
end
end
class ListDeviceConfigVersionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -432,45 +432,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the configuration of a device.
# @param [String] name
# The name of the device. For example,
# `projects/p0/locations/us-central1/registries/registry0/devices/device0`.
# @param [Fixnum] local_version
# If zero, returns the current device configuration from Cloud IoT Core.
# If nonzero, specifies the local version of the configuration on the device.
# The server returns config data only if a higher (newer) version is
# available from Cloud IoT Core.
# If this value is higher than the latest version available in Cloud IoT
# Core, returns an `OUT_OF_RANGE` error.
# @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::CloudiotV1beta1::HttpDeviceConfig] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1beta1::HttpDeviceConfig]
#
# @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_project_location_registry_device_config(name, local_version: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}/config', options)
command.response_representation = Google::Apis::CloudiotV1beta1::HttpDeviceConfig::Representation
command.response_class = Google::Apis::CloudiotV1beta1::HttpDeviceConfig
command.params['name'] = name unless name.nil?
command.query['localVersion'] = local_version unless local_version.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# List devices in a device registry.
# @param [String] parent
# The device registry path. Required. For example,
@@ -607,74 +568,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Publishes a telemetry event for a device.
# @param [String] name
# The name of the device. For example,
# `projects/p0/locations/us-central1/registries/registry0/devices/device0`.
# @param [Google::Apis::CloudiotV1beta1::HttpPublishEventRequest] http_publish_event_request_object
# @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::CloudiotV1beta1::HttpPublishEventResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1beta1::HttpPublishEventResponse]
#
# @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 publish_project_location_registry_device_event(name, http_publish_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+name}:publishEvent', options)
command.request_representation = Google::Apis::CloudiotV1beta1::HttpPublishEventRequest::Representation
command.request_object = http_publish_event_request_object
command.response_representation = Google::Apis::CloudiotV1beta1::HttpPublishEventResponse::Representation
command.response_class = Google::Apis::CloudiotV1beta1::HttpPublishEventResponse
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Sets the state of a device.
# @param [String] name
# The name of the device. For example,
# `projects/p0/locations/us-central1/registries/registry0/devices/device0`.
# @param [Google::Apis::CloudiotV1beta1::HttpSetDeviceStateRequest] http_set_device_state_request_object
# @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::CloudiotV1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1beta1::Empty]
#
# @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_project_location_registry_device_state(name, http_set_device_state_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+name}:setState', options)
command.request_representation = Google::Apis::CloudiotV1beta1::HttpSetDeviceStateRequest::Representation
command.request_object = http_set_device_state_request_object
command.response_representation = Google::Apis::CloudiotV1beta1::Empty::Representation
command.response_class = Google::Apis::CloudiotV1beta1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists the last few versions of the device configuration in descending
# order (i.e.: newest first).
# @param [String] name
+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow-enterprise/
module DialogflowV2beta1
VERSION = 'V2beta1'
REVISION = '20171124'
REVISION = '20171204'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -433,10 +433,10 @@ module Google
attr_accessor :input_audio
# Represents the query input. It can contain either:
# 1. an audio config which
# instructs the speech recognizer how to process the speech audio,
# 2. a conversational query in the form of text, or
# 3. an event that specifies which intent to trigger.
# 1. An audio config which
# instructs the speech recognizer how to process the speech audio.
# 2. A conversational query in the form of text,.
# 3. An event that specifies which intent to trigger.
# Corresponds to the JSON property `queryInput`
# @return [Google::Apis::DialogflowV2beta1::QueryInput]
attr_accessor :query_input
@@ -718,7 +718,7 @@ module Google
attr_accessor :agent_content
# The URI to a file containing the exported agent. This field is populated
# only if `agent_uri`
# only if `agent_uri` is specified in `ExportAgentRequest`.
# Corresponds to the JSON property `agentUri`
# @return [String]
attr_accessor :agent_uri
@@ -2003,10 +2003,10 @@ module Google
end
# Represents the query input. It can contain either:
# 1. an audio config which
# instructs the speech recognizer how to process the speech audio,
# 2. a conversational query in the form of text, or
# 3. an event that specifies which intent to trigger.
# 1. An audio config which
# instructs the speech recognizer how to process the speech audio.
# 2. A conversational query in the form of text,.
# 3. An event that specifies which intent to trigger.
class QueryInput
include Google::Apis::Core::Hashable
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/ml/
module MlV1
VERSION = 'V1'
REVISION = '20171127'
REVISION = '20171205'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
+76
View File
@@ -154,6 +154,31 @@ module Google
end
end
#
class GoogleCloudMlV1Capability
include Google::Apis::Core::Hashable
# Available accelerators for the capability.
# Corresponds to the JSON property `availableAccelerators`
# @return [Array<String>]
attr_accessor :available_accelerators
#
# 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)
@available_accelerators = args[:available_accelerators] if args.key?(:available_accelerators)
@type = args[:type] if args.key?(:type)
end
end
# Returns service account information associated with a project.
class GoogleCloudMlV1GetConfigResponse
include Google::Apis::Core::Hashable
@@ -400,6 +425,32 @@ module Google
end
end
#
class GoogleCloudMlV1ListLocationsResponse
include Google::Apis::Core::Hashable
# Locations where at least one type of CMLE capability is available.
# Corresponds to the JSON property `locations`
# @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Location>]
attr_accessor :locations
# Optional. Pass this token as the `page_token` field of the request for a
# subsequent call.
# 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)
@locations = args[:locations] if args.key?(:locations)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response message for the ListModels method.
class GoogleCloudMlV1ListModelsResponse
include Google::Apis::Core::Hashable
@@ -452,6 +503,31 @@ module Google
end
end
#
class GoogleCloudMlV1Location
include Google::Apis::Core::Hashable
# Capabilities available in the location.
# Corresponds to the JSON property `capabilities`
# @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Capability>]
attr_accessor :capabilities
#
# 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)
@capabilities = args[:capabilities] if args.key?(:capabilities)
@name = args[:name] if args.key?(:name)
end
end
# Options for manually scaling a model.
class GoogleCloudMlV1ManualScaling
include Google::Apis::Core::Hashable
@@ -46,6 +46,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1Capability
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1GetConfigResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -76,6 +82,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1ListLocationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1ListModelsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -88,6 +100,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1Location
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudMlV1ManualScaling
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -256,6 +274,14 @@ module Google
end
end
class GoogleCloudMlV1Capability
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :available_accelerators, as: 'availableAccelerators'
property :type, as: 'type'
end
end
class GoogleCloudMlV1GetConfigResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -319,6 +345,15 @@ module Google
end
end
class GoogleCloudMlV1ListLocationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :locations, as: 'locations', class: Google::Apis::MlV1::GoogleCloudMlV1Location, decorator: Google::Apis::MlV1::GoogleCloudMlV1Location::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleCloudMlV1ListModelsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -337,6 +372,15 @@ module Google
end
end
class GoogleCloudMlV1Location
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :capabilities, as: 'capabilities', class: Google::Apis::MlV1::GoogleCloudMlV1Capability, decorator: Google::Apis::MlV1::GoogleCloudMlV1Capability::Representation
property :name, as: 'name'
end
end
class GoogleCloudMlV1ManualScaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
+73
View File
@@ -417,6 +417,79 @@ module Google
execute_or_queue_command(command, &block)
end
# Get the complete list of CMLE capabilities in a location, along with their
# location-specific properties.
# @param [String] name
# Required. The name of the location.
# @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::MlV1::GoogleCloudMlV1Location] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1::GoogleCloudMlV1Location]
#
# @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_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Location::Representation
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Location
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# List all locations that provides at least one type of CMLE capability.
# @param [String] parent
# Required. The name of the project for which available locations are to be
# listed (since some locations might be whitelisted for specific projects).
# @param [Fixnum] page_size
# Optional. The number of locations to retrieve per "page" of results. If there
# are more remaining results than this number, the response message will
# contain a valid value in the `next_page_token` field.
# The default value is 20, and the maximum page size is 100.
# @param [String] page_token
# Optional. A page token to request the next page of results.
# You get the token from the `next_page_token` field of the response from
# the previous call.
# @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::MlV1::GoogleCloudMlV1ListLocationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MlV1::GoogleCloudMlV1ListLocationsResponse]
#
# @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_project_locations(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/locations', options)
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListLocationsResponse::Representation
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListLocationsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.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?
execute_or_queue_command(command, &block)
end
# Creates a model which will later contain one or more versions.
# You must add at least one version before you can request predictions from
# the model. Add versions by calling
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://firebase.google.com/docs/test-lab/
module ToolresultsV1beta3
VERSION = 'V1beta3'
REVISION = '20171113'
REVISION = '20171205'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -581,7 +581,7 @@ module Google
# zero-padded to two digits each. The fractional seconds, which can go up to 9
# digits (i.e. up to 1 nanosecond resolution), are optional. The "Z" suffix
# indicates the timezone ("UTC"); the timezone is required, though only UTC (as
# indicated by "Z") is presently supported.
# indicated by "Z") is currently supported.
# For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past 01:30 UTC on
# January 15, 2017.
# In JavaScript, one can convert a Date object to this format using the standard
@@ -635,7 +635,7 @@ module Google
# zero-padded to two digits each. The fractional seconds, which can go up to 9
# digits (i.e. up to 1 nanosecond resolution), are optional. The "Z" suffix
# indicates the timezone ("UTC"); the timezone is required, though only UTC (as
# indicated by "Z") is presently supported.
# indicated by "Z") is currently supported.
# For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past 01:30 UTC on
# January 15, 2017.
# In JavaScript, one can convert a Date object to this format using the standard
@@ -1430,7 +1430,7 @@ module Google
# zero-padded to two digits each. The fractional seconds, which can go up to 9
# digits (i.e. up to 1 nanosecond resolution), are optional. The "Z" suffix
# indicates the timezone ("UTC"); the timezone is required, though only UTC (as
# indicated by "Z") is presently supported.
# indicated by "Z") is currently supported.
# For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past 01:30 UTC on
# January 15, 2017.
# In JavaScript, one can convert a Date object to this format using the standard
@@ -1850,7 +1850,7 @@ module Google
# zero-padded to two digits each. The fractional seconds, which can go up to 9
# digits (i.e. up to 1 nanosecond resolution), are optional. The "Z" suffix
# indicates the timezone ("UTC"); the timezone is required, though only UTC (as
# indicated by "Z") is presently supported.
# indicated by "Z") is currently supported.
# For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past 01:30 UTC on
# January 15, 2017.
# In JavaScript, one can convert a Date object to this format using the standard
@@ -1904,7 +1904,7 @@ module Google
# zero-padded to two digits each. The fractional seconds, which can go up to 9
# digits (i.e. up to 1 nanosecond resolution), are optional. The "Z" suffix
# indicates the timezone ("UTC"); the timezone is required, though only UTC (as
# indicated by "Z") is presently supported.
# indicated by "Z") is currently supported.
# For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past 01:30 UTC on
# January 15, 2017.
# In JavaScript, one can convert a Date object to this format using the standard
@@ -2534,7 +2534,7 @@ module Google
# zero-padded to two digits each. The fractional seconds, which can go up to 9
# digits (i.e. up to 1 nanosecond resolution), are optional. The "Z" suffix
# indicates the timezone ("UTC"); the timezone is required, though only UTC (as
# indicated by "Z") is presently supported.
# indicated by "Z") is currently supported.
# For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past 01:30 UTC on
# January 15, 2017.
# In JavaScript, one can convert a Date object to this format using the standard
@@ -2707,7 +2707,7 @@ module Google
# zero-padded to two digits each. The fractional seconds, which can go up to 9
# digits (i.e. up to 1 nanosecond resolution), are optional. The "Z" suffix
# indicates the timezone ("UTC"); the timezone is required, though only UTC (as
# indicated by "Z") is presently supported.
# indicated by "Z") is currently supported.
# For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past 01:30 UTC on
# January 15, 2017.
# In JavaScript, one can convert a Date object to this format using the standard
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/youtube/partner/
module YoutubePartnerV1
VERSION = 'V1'
REVISION = '20171127'
REVISION = '20171205'
# View and manage your assets and associated content on YouTube
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'