Autogenerated update (2018-10-02)

Update:
- cloudbuild_v1
- cloudiot_v1
- vision_v1
- vision_v1p1beta1
- vision_v1p2beta1
This commit is contained in:
Google APIs 2018-10-02 00:36:26 +00:00
parent 1ebc5ec383
commit 9c1db8126b
14 changed files with 250 additions and 9 deletions

View File

@ -14177,13 +14177,19 @@
"/cloudbuild:v1/BuildOperationMetadata/build": build
"/cloudbuild:v1/BuildOptions": build_options
"/cloudbuild:v1/BuildOptions/diskSizeGb": disk_size_gb
"/cloudbuild:v1/BuildOptions/env": env
"/cloudbuild:v1/BuildOptions/env/env": env
"/cloudbuild:v1/BuildOptions/logStreamingOption": log_streaming_option
"/cloudbuild:v1/BuildOptions/logging": logging
"/cloudbuild:v1/BuildOptions/machineType": machine_type
"/cloudbuild:v1/BuildOptions/requestedVerifyOption": requested_verify_option
"/cloudbuild:v1/BuildOptions/secretEnv": secret_env
"/cloudbuild:v1/BuildOptions/secretEnv/secret_env": secret_env
"/cloudbuild:v1/BuildOptions/sourceProvenanceHash": source_provenance_hash
"/cloudbuild:v1/BuildOptions/sourceProvenanceHash/source_provenance_hash": source_provenance_hash
"/cloudbuild:v1/BuildOptions/substitutionOption": substitution_option
"/cloudbuild:v1/BuildOptions/volumes": volumes
"/cloudbuild:v1/BuildOptions/volumes/volume": volume
"/cloudbuild:v1/BuildStep": build_step
"/cloudbuild:v1/BuildStep/args": args
"/cloudbuild:v1/BuildStep/args/arg": arg
@ -14193,6 +14199,7 @@
"/cloudbuild:v1/BuildStep/env/env": env
"/cloudbuild:v1/BuildStep/id": id
"/cloudbuild:v1/BuildStep/name": name
"/cloudbuild:v1/BuildStep/pullTiming": pull_timing
"/cloudbuild:v1/BuildStep/secretEnv": secret_env
"/cloudbuild:v1/BuildStep/secretEnv/secret_env": secret_env
"/cloudbuild:v1/BuildStep/status": status
@ -14891,6 +14898,7 @@
"/cloudiot:v1/Device/lastEventTime": last_event_time
"/cloudiot:v1/Device/lastHeartbeatTime": last_heartbeat_time
"/cloudiot:v1/Device/lastStateTime": last_state_time
"/cloudiot:v1/Device/logLevel": log_level
"/cloudiot:v1/Device/metadata": metadata
"/cloudiot:v1/Device/metadata/metadatum": metadatum
"/cloudiot:v1/Device/name": name
@ -14911,6 +14919,7 @@
"/cloudiot:v1/DeviceRegistry/eventNotificationConfigs/event_notification_config": event_notification_config
"/cloudiot:v1/DeviceRegistry/httpConfig": http_config
"/cloudiot:v1/DeviceRegistry/id": id
"/cloudiot:v1/DeviceRegistry/logLevel": log_level
"/cloudiot:v1/DeviceRegistry/mqttConfig": mqtt_config
"/cloudiot:v1/DeviceRegistry/name": name
"/cloudiot:v1/DeviceRegistry/stateNotificationConfig": state_notification_config
@ -14965,6 +14974,10 @@
"/cloudiot:v1/PublicKeyCredential/key": key
"/cloudiot:v1/RegistryCredential": registry_credential
"/cloudiot:v1/RegistryCredential/publicKeyCertificate": public_key_certificate
"/cloudiot:v1/SendCommandToDeviceRequest": send_command_to_device_request
"/cloudiot:v1/SendCommandToDeviceRequest/binaryData": binary_data
"/cloudiot:v1/SendCommandToDeviceRequest/subfolder": subfolder
"/cloudiot:v1/SendCommandToDeviceResponse": send_command_to_device_response
"/cloudiot:v1/SetIamPolicyRequest": set_iam_policy_request
"/cloudiot:v1/SetIamPolicyRequest/policy": policy
"/cloudiot:v1/SetIamPolicyRequest/updateMask": update_mask
@ -15024,6 +15037,8 @@
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.patch": patch_project_location_registry_device
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.patch/name": name
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.patch/updateMask": update_mask
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.sendCommandToDevice": send_project_location_registry_device_command_to_device
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.sendCommandToDevice/name": name
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.states.list": list_project_location_registry_device_states
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.states.list/name": name
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.states.list/numStates": num_states
@ -15051,6 +15066,8 @@
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.patch": patch_project_location_registry_group_device
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.patch/name": name
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.patch/updateMask": update_mask
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.sendCommandToDevice": send_project_location_registry_group_device_command_to_device
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.sendCommandToDevice/name": name
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.states.list": list_project_location_registry_group_device_states
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.states.list/name": name
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.states.list/numStates": num_states

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/cloud-build/docs/
module CloudbuildV1
VERSION = 'V1'
REVISION = '20180927'
REVISION = '20181001'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -347,6 +347,15 @@ module Google
# @return [Fixnum]
attr_accessor :disk_size_gb
# A list of global environment variable definitions that will exist for all
# build steps in this build. If a variable is defined in both globally and in
# a build step, the variable will use the build step value.
# The elements are of the form "KEY=VALUE" for the environment variable "KEY"
# being given the value "VALUE".
# Corresponds to the JSON property `env`
# @return [Array<String>]
attr_accessor :env
# Option to define build log streaming behavior to Google Cloud
# Storage.
# Corresponds to the JSON property `logStreamingOption`
@ -368,6 +377,14 @@ module Google
# @return [String]
attr_accessor :requested_verify_option
# A list of global environment variables, which are encrypted using a Cloud
# Key Management Service crypto key. These values must be specified in the
# build's `Secret`. These variables will be available to all build steps
# in this build.
# Corresponds to the JSON property `secretEnv`
# @return [Array<String>]
attr_accessor :secret_env
# Requested hash for SourceProvenance.
# Corresponds to the JSON property `sourceProvenanceHash`
# @return [Array<String>]
@ -379,6 +396,17 @@ module Google
# @return [String]
attr_accessor :substitution_option
# Global list of volumes to mount for ALL build steps
# Each volume is created as an empty volume prior to starting the build
# process. Upon completion of the build, volumes and their contents are
# discarded. Global volume names and paths cannot conflict with the volumes
# defined a build step.
# Using a global volume in a build with only one step is not valid as
# it is indicative of a build request with an incorrect configuration.
# Corresponds to the JSON property `volumes`
# @return [Array<Google::Apis::CloudbuildV1::Volume>]
attr_accessor :volumes
def initialize(**args)
update!(**args)
end
@ -386,12 +414,15 @@ module Google
# Update properties of this object
def update!(**args)
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
@env = args[:env] if args.key?(:env)
@log_streaming_option = args[:log_streaming_option] if args.key?(:log_streaming_option)
@logging = args[:logging] if args.key?(:logging)
@machine_type = args[:machine_type] if args.key?(:machine_type)
@requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
@secret_env = args[:secret_env] if args.key?(:secret_env)
@source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
@substitution_option = args[:substitution_option] if args.key?(:substitution_option)
@volumes = args[:volumes] if args.key?(:volumes)
end
end
@ -458,6 +489,11 @@ module Google
# @return [String]
attr_accessor :name
# Start and end times for a build execution phase.
# Corresponds to the JSON property `pullTiming`
# @return [Google::Apis::CloudbuildV1::TimeSpan]
attr_accessor :pull_timing
# A list of environment variables which are encrypted using a Cloud Key
# Management Service crypto key. These values must be specified in the
# build's `Secret`.
@ -515,6 +551,7 @@ module Google
@env = args[:env] if args.key?(:env)
@id = args[:id] if args.key?(:id)
@name = args[:name] if args.key?(:name)
@pull_timing = args[:pull_timing] if args.key?(:pull_timing)
@secret_env = args[:secret_env] if args.key?(:secret_env)
@status = args[:status] if args.key?(:status)
@timeout = args[:timeout] if args.key?(:timeout)
@ -1041,7 +1078,7 @@ module Google
# Map of environment variable name to its encrypted value.
# Secret environment variables must be unique across all of a build's
# secrets, and must be used by at least one build step. Values can be at most
# 2 KB in size. There can be at most ten secret values across all of a
# 64 KB in size. There can be at most 100 secret values across all of a
# build's secrets.
# Corresponds to the JSON property `secretEnv`
# @return [Hash<String,String>]

View File

@ -266,12 +266,16 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
collection :env, as: 'env'
property :log_streaming_option, as: 'logStreamingOption'
property :logging, as: 'logging'
property :machine_type, as: 'machineType'
property :requested_verify_option, as: 'requestedVerifyOption'
collection :secret_env, as: 'secretEnv'
collection :source_provenance_hash, as: 'sourceProvenanceHash'
property :substitution_option, as: 'substitutionOption'
collection :volumes, as: 'volumes', class: Google::Apis::CloudbuildV1::Volume, decorator: Google::Apis::CloudbuildV1::Volume::Representation
end
end
@ -284,6 +288,8 @@ module Google
collection :env, as: 'env'
property :id, as: 'id'
property :name, as: 'name'
property :pull_timing, as: 'pullTiming', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation
collection :secret_env, as: 'secretEnv'
property :status, as: 'status'
property :timeout, as: 'timeout'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/iot
module CloudiotV1
VERSION = 'V1'
REVISION = '20180822'
REVISION = '20180926'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -189,6 +189,13 @@ module Google
# @return [String]
attr_accessor :last_state_time
# **Beta Feature**
# The logging verbosity for device activity. If unspecified,
# DeviceRegistry.log_level will be used.
# Corresponds to the JSON property `logLevel`
# @return [String]
attr_accessor :log_level
# The metadata key-value pairs assigned to the device. This metadata is not
# interpreted or indexed by Cloud IoT Core. It can be used to add contextual
# information for the device.
@ -239,6 +246,7 @@ module Google
@last_event_time = args[:last_event_time] if args.key?(:last_event_time)
@last_heartbeat_time = args[:last_heartbeat_time] if args.key?(:last_heartbeat_time)
@last_state_time = args[:last_state_time] if args.key?(:last_state_time)
@log_level = args[:log_level] if args.key?(:log_level)
@metadata = args[:metadata] if args.key?(:metadata)
@name = args[:name] if args.key?(:name)
@num_id = args[:num_id] if args.key?(:num_id)
@ -364,6 +372,13 @@ module Google
# @return [String]
attr_accessor :id
# **Beta Feature**
# The default logging verbosity for activity from devices in this registry.
# The verbosity level can be overridden by Device.log_level.
# Corresponds to the JSON property `logLevel`
# @return [String]
attr_accessor :log_level
# The configuration of MQTT for a device registry.
# Corresponds to the JSON property `mqttConfig`
# @return [Google::Apis::CloudiotV1::MqttConfig]
@ -390,6 +405,7 @@ module Google
@event_notification_configs = args[:event_notification_configs] if args.key?(:event_notification_configs)
@http_config = args[:http_config] if args.key?(:http_config)
@id = args[:id] if args.key?(:id)
@log_level = args[:log_level] if args.key?(:log_level)
@mqtt_config = args[:mqtt_config] if args.key?(:mqtt_config)
@name = args[:name] if args.key?(:name)
@state_notification_config = args[:state_notification_config] if args.key?(:state_notification_config)
@ -846,6 +862,49 @@ module Google
end
end
# Request for `SendCommandToDevice`.
class SendCommandToDeviceRequest
include Google::Apis::Core::Hashable
# The command data to send to the device.
# 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 command. If empty, the command will be delivered
# to the /devices/`device-id`/commands topic, otherwise it will be delivered
# to the /devices/`device-id`/commands/`subfolder` topic. Multi-level
# subfolders are allowed. This field must not have more than 256 characters,
# and must not contain any MQTT wildcards ("+" or "#") or null characters.
# Corresponds to the JSON property `subfolder`
# @return [String]
attr_accessor :subfolder
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@binary_data = args[:binary_data] if args.key?(:binary_data)
@subfolder = args[:subfolder] if args.key?(:subfolder)
end
end
# Response for `SendCommandToDevice`.
class SendCommandToDeviceResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Request message for `SetIamPolicy` method.
class SetIamPolicyRequest
include Google::Apis::Core::Hashable

View File

@ -148,6 +148,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SendCommandToDeviceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SendCommandToDeviceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -211,6 +223,7 @@ module Google
property :last_event_time, as: 'lastEventTime'
property :last_heartbeat_time, as: 'lastHeartbeatTime'
property :last_state_time, as: 'lastStateTime'
property :log_level, as: 'logLevel'
hash :metadata, as: 'metadata'
property :name, as: 'name'
property :num_id, :numeric_string => true, as: 'numId'
@ -248,6 +261,7 @@ module Google
property :http_config, as: 'httpConfig', class: Google::Apis::CloudiotV1::HttpConfig, decorator: Google::Apis::CloudiotV1::HttpConfig::Representation
property :id, as: 'id'
property :log_level, as: 'logLevel'
property :mqtt_config, as: 'mqttConfig', class: Google::Apis::CloudiotV1::MqttConfig, decorator: Google::Apis::CloudiotV1::MqttConfig::Representation
property :name, as: 'name'
@ -386,6 +400,20 @@ module Google
end
end
class SendCommandToDeviceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :binary_data, :base64 => true, as: 'binaryData'
property :subfolder, as: 'subfolder'
end
end
class SendCommandToDeviceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -572,6 +572,53 @@ module Google
execute_or_queue_command(command, &block)
end
# Sends a command to the specified device. In order for a device to be able
# to receive commands, it must:
# 1) be connected to Cloud IoT Core using the MQTT protocol, and
# 2) be subscribed to the group of MQTT topics specified by
# /devices/`device-id`/commands/#. This subscription will receive commands
# at the top-level topic /devices/`device-id`/commands as well as commands
# for subfolders, like /devices/`device-id`/commands/subfolder.
# Note that subscribing to specific subfolders is not supported.
# If the command could not be delivered to the device, this method will
# return an error; in particular, if the device is not subscribed, this
# method will return FAILED_PRECONDITION. Otherwise, this method will
# return OK. If the subscription is QoS 1, at least once delivery will be
# guaranteed; for QoS 0, no acknowledgment will be expected from the device.
# @param [String] name
# The name of the device. For example,
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
# @param [Google::Apis::CloudiotV1::SendCommandToDeviceRequest] send_command_to_device_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::CloudiotV1::SendCommandToDeviceResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::SendCommandToDeviceResponse]
#
# @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 send_project_location_registry_device_command_to_device(name, send_command_to_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:sendCommandToDevice', options)
command.request_representation = Google::Apis::CloudiotV1::SendCommandToDeviceRequest::Representation
command.request_object = send_command_to_device_request_object
command.response_representation = Google::Apis::CloudiotV1::SendCommandToDeviceResponse::Representation
command.response_class = Google::Apis::CloudiotV1::SendCommandToDeviceResponse
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
@ -926,6 +973,53 @@ module Google
execute_or_queue_command(command, &block)
end
# Sends a command to the specified device. In order for a device to be able
# to receive commands, it must:
# 1) be connected to Cloud IoT Core using the MQTT protocol, and
# 2) be subscribed to the group of MQTT topics specified by
# /devices/`device-id`/commands/#. This subscription will receive commands
# at the top-level topic /devices/`device-id`/commands as well as commands
# for subfolders, like /devices/`device-id`/commands/subfolder.
# Note that subscribing to specific subfolders is not supported.
# If the command could not be delivered to the device, this method will
# return an error; in particular, if the device is not subscribed, this
# method will return FAILED_PRECONDITION. Otherwise, this method will
# return OK. If the subscription is QoS 1, at least once delivery will be
# guaranteed; for QoS 0, no acknowledgment will be expected from the device.
# @param [String] name
# The name of the device. For example,
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
# @param [Google::Apis::CloudiotV1::SendCommandToDeviceRequest] send_command_to_device_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::CloudiotV1::SendCommandToDeviceResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::SendCommandToDeviceResponse]
#
# @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 send_project_location_registry_group_device_command_to_device(name, send_command_to_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:sendCommandToDevice', options)
command.request_representation = Google::Apis::CloudiotV1::SendCommandToDeviceRequest::Representation
command.request_object = send_command_to_device_request_object
command.response_representation = Google::Apis::CloudiotV1::SendCommandToDeviceResponse::Representation
command.response_class = Google::Apis::CloudiotV1::SendCommandToDeviceResponse
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

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/
module VisionV1
VERSION = 'V1'
REVISION = '20180907'
REVISION = '20180928'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -5430,7 +5430,7 @@ module Google
attr_accessor :name
# The category for the product identified by the reference image. This should
# be either "homegoods" or "apparel".
# be either "homegoods", "apparel", or "toys".
# This field is immutable.
# Corresponds to the JSON property `productCategory`
# @return [String]

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/
module VisionV1p1beta1
VERSION = 'V1p1beta1'
REVISION = '20180907'
REVISION = '20180928'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -5565,7 +5565,7 @@ module Google
attr_accessor :name
# The category for the product identified by the reference image. This should
# be either "homegoods" or "apparel".
# be either "homegoods", "apparel", or "toys".
# This field is immutable.
# Corresponds to the JSON property `productCategory`
# @return [String]

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/
module VisionV1p2beta1
VERSION = 'V1p2beta1'
REVISION = '20180907'
REVISION = '20180928'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -5565,7 +5565,7 @@ module Google
attr_accessor :name
# The category for the product identified by the reference image. This should
# be either "homegoods" or "apparel".
# be either "homegoods", "apparel", or "toys".
# This field is immutable.
# Corresponds to the JSON property `productCategory`
# @return [String]