Autogenerated update (2018-11-27)

Update:
- cloudiot_v1
- firebasedynamiclinks_v1
This commit is contained in:
Google APIs 2018-11-27 00:36:41 +00:00
parent ee49501c6c
commit 1adcf8fda9
7 changed files with 401 additions and 5 deletions

View File

@ -15377,6 +15377,10 @@
"/cloudiot:v1/AuditLogConfig/exemptedMembers": exempted_members "/cloudiot:v1/AuditLogConfig/exemptedMembers": exempted_members
"/cloudiot:v1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member "/cloudiot:v1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member
"/cloudiot:v1/AuditLogConfig/logType": log_type "/cloudiot:v1/AuditLogConfig/logType": log_type
"/cloudiot:v1/BindDeviceToGatewayRequest": bind_device_to_gateway_request
"/cloudiot:v1/BindDeviceToGatewayRequest/deviceId": device_id
"/cloudiot:v1/BindDeviceToGatewayRequest/gatewayId": gateway_id
"/cloudiot:v1/BindDeviceToGatewayResponse": bind_device_to_gateway_response
"/cloudiot:v1/Binding": binding "/cloudiot:v1/Binding": binding
"/cloudiot:v1/Binding/condition": condition "/cloudiot:v1/Binding/condition": condition
"/cloudiot:v1/Binding/members": members "/cloudiot:v1/Binding/members": members
@ -15387,6 +15391,7 @@
"/cloudiot:v1/Device/config": config "/cloudiot:v1/Device/config": config
"/cloudiot:v1/Device/credentials": credentials "/cloudiot:v1/Device/credentials": credentials
"/cloudiot:v1/Device/credentials/credential": credential "/cloudiot:v1/Device/credentials/credential": credential
"/cloudiot:v1/Device/gatewayConfig": gateway_config
"/cloudiot:v1/Device/id": id "/cloudiot:v1/Device/id": id
"/cloudiot:v1/Device/lastConfigAckTime": last_config_ack_time "/cloudiot:v1/Device/lastConfigAckTime": last_config_ack_time
"/cloudiot:v1/Device/lastConfigSendTime": last_config_send_time "/cloudiot:v1/Device/lastConfigSendTime": last_config_send_time
@ -15432,6 +15437,11 @@
"/cloudiot:v1/Expr/expression": expression "/cloudiot:v1/Expr/expression": expression
"/cloudiot:v1/Expr/location": location "/cloudiot:v1/Expr/location": location
"/cloudiot:v1/Expr/title": title "/cloudiot:v1/Expr/title": title
"/cloudiot:v1/GatewayConfig": gateway_config
"/cloudiot:v1/GatewayConfig/gatewayAuthMethod": gateway_auth_method
"/cloudiot:v1/GatewayConfig/gatewayType": gateway_type
"/cloudiot:v1/GatewayConfig/lastAccessedGatewayId": last_accessed_gateway_id
"/cloudiot:v1/GatewayConfig/lastAccessedGatewayTime": last_accessed_gateway_time
"/cloudiot:v1/GetIamPolicyRequest": get_iam_policy_request "/cloudiot:v1/GetIamPolicyRequest": get_iam_policy_request
"/cloudiot:v1/HttpConfig": http_config "/cloudiot:v1/HttpConfig": http_config
"/cloudiot:v1/HttpConfig/httpEnabledState": http_enabled_state "/cloudiot:v1/HttpConfig/httpEnabledState": http_enabled_state
@ -15492,6 +15502,10 @@
"/cloudiot:v1/TestIamPermissionsResponse": test_iam_permissions_response "/cloudiot:v1/TestIamPermissionsResponse": test_iam_permissions_response
"/cloudiot:v1/TestIamPermissionsResponse/permissions": permissions "/cloudiot:v1/TestIamPermissionsResponse/permissions": permissions
"/cloudiot:v1/TestIamPermissionsResponse/permissions/permission": permission "/cloudiot:v1/TestIamPermissionsResponse/permissions/permission": permission
"/cloudiot:v1/UnbindDeviceFromGatewayRequest": unbind_device_from_gateway_request
"/cloudiot:v1/UnbindDeviceFromGatewayRequest/deviceId": device_id
"/cloudiot:v1/UnbindDeviceFromGatewayRequest/gatewayId": gateway_id
"/cloudiot:v1/UnbindDeviceFromGatewayResponse": unbind_device_from_gateway_response
"/cloudiot:v1/X509CertificateDetails": x509_certificate_details "/cloudiot:v1/X509CertificateDetails": x509_certificate_details
"/cloudiot:v1/X509CertificateDetails/expiryTime": expiry_time "/cloudiot:v1/X509CertificateDetails/expiryTime": expiry_time
"/cloudiot:v1/X509CertificateDetails/issuer": issuer "/cloudiot:v1/X509CertificateDetails/issuer": issuer
@ -15507,6 +15521,8 @@
"/cloudiot:v1/cloudiot.projects.locations.groups.devices.list/pageSize": page_size "/cloudiot:v1/cloudiot.projects.locations.groups.devices.list/pageSize": page_size
"/cloudiot:v1/cloudiot.projects.locations.groups.devices.list/pageToken": page_token "/cloudiot:v1/cloudiot.projects.locations.groups.devices.list/pageToken": page_token
"/cloudiot:v1/cloudiot.projects.locations.groups.devices.list/parent": parent "/cloudiot:v1/cloudiot.projects.locations.groups.devices.list/parent": parent
"/cloudiot:v1/cloudiot.projects.locations.registries.bindDeviceToGateway": bind_registry_device_to_gateway
"/cloudiot:v1/cloudiot.projects.locations.registries.bindDeviceToGateway/parent": parent
"/cloudiot:v1/cloudiot.projects.locations.registries.create": create_project_location_registry "/cloudiot:v1/cloudiot.projects.locations.registries.create": create_project_location_registry
"/cloudiot:v1/cloudiot.projects.locations.registries.create/parent": parent "/cloudiot:v1/cloudiot.projects.locations.registries.create/parent": parent
"/cloudiot:v1/cloudiot.projects.locations.registries.delete": delete_project_location_registry "/cloudiot:v1/cloudiot.projects.locations.registries.delete": delete_project_location_registry
@ -15525,6 +15541,9 @@
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/deviceIds": device_ids "/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/deviceIds": device_ids
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/deviceNumIds": device_num_ids "/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/deviceNumIds": device_num_ids
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/fieldMask": field_mask "/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/fieldMask": field_mask
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/gatewayListOptions.associationsDeviceId": gateway_list_options_associations_device_id
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/gatewayListOptions.associationsGatewayId": gateway_list_options_associations_gateway_id
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/gatewayListOptions.gatewayType": gateway_list_options_gateway_type
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/gatewayType": gateway_type "/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/gatewayType": gateway_type
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/pageSize": page_size "/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/pageSize": page_size
"/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/pageToken": page_token "/cloudiot:v1/cloudiot.projects.locations.registries.devices.list/pageToken": page_token
@ -15543,6 +15562,8 @@
"/cloudiot:v1/cloudiot.projects.locations.registries.get/name": name "/cloudiot:v1/cloudiot.projects.locations.registries.get/name": name
"/cloudiot:v1/cloudiot.projects.locations.registries.getIamPolicy": get_registry_iam_policy "/cloudiot:v1/cloudiot.projects.locations.registries.getIamPolicy": get_registry_iam_policy
"/cloudiot:v1/cloudiot.projects.locations.registries.getIamPolicy/resource": resource "/cloudiot:v1/cloudiot.projects.locations.registries.getIamPolicy/resource": resource
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.bindDeviceToGateway": bind_group_device_to_gateway
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.bindDeviceToGateway/parent": parent
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.configVersions.list": list_project_location_registry_group_device_config_versions "/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.configVersions.list": list_project_location_registry_group_device_config_versions
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.configVersions.list/name": name "/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.configVersions.list/name": name
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.configVersions.list/numVersions": num_versions "/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.configVersions.list/numVersions": num_versions
@ -15555,6 +15576,9 @@
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.list/deviceIds": device_ids "/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.list/deviceIds": device_ids
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.list/deviceNumIds": device_num_ids "/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.list/deviceNumIds": device_num_ids
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.list/fieldMask": field_mask "/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.list/fieldMask": field_mask
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.list/gatewayListOptions.associationsDeviceId": gateway_list_options_associations_device_id
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.list/gatewayListOptions.associationsGatewayId": gateway_list_options_associations_gateway_id
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.list/gatewayListOptions.gatewayType": gateway_list_options_gateway_type
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.list/pageSize": page_size "/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.list/pageSize": page_size
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.list/pageToken": page_token "/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.list/pageToken": page_token
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.list/parent": parent "/cloudiot:v1/cloudiot.projects.locations.registries.groups.devices.list/parent": parent
@ -15574,6 +15598,8 @@
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.setIamPolicy/resource": resource "/cloudiot:v1/cloudiot.projects.locations.registries.groups.setIamPolicy/resource": resource
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.testIamPermissions": test_group_iam_permissions "/cloudiot:v1/cloudiot.projects.locations.registries.groups.testIamPermissions": test_group_iam_permissions
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.testIamPermissions/resource": resource "/cloudiot:v1/cloudiot.projects.locations.registries.groups.testIamPermissions/resource": resource
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.unbindDeviceFromGateway": unbind_group_device_from_gateway
"/cloudiot:v1/cloudiot.projects.locations.registries.groups.unbindDeviceFromGateway/parent": parent
"/cloudiot:v1/cloudiot.projects.locations.registries.list": list_project_location_registries "/cloudiot:v1/cloudiot.projects.locations.registries.list": list_project_location_registries
"/cloudiot:v1/cloudiot.projects.locations.registries.list/pageSize": page_size "/cloudiot:v1/cloudiot.projects.locations.registries.list/pageSize": page_size
"/cloudiot:v1/cloudiot.projects.locations.registries.list/pageToken": page_token "/cloudiot:v1/cloudiot.projects.locations.registries.list/pageToken": page_token
@ -15585,6 +15611,8 @@
"/cloudiot:v1/cloudiot.projects.locations.registries.setIamPolicy/resource": resource "/cloudiot:v1/cloudiot.projects.locations.registries.setIamPolicy/resource": resource
"/cloudiot:v1/cloudiot.projects.locations.registries.testIamPermissions": test_registry_iam_permissions "/cloudiot:v1/cloudiot.projects.locations.registries.testIamPermissions": test_registry_iam_permissions
"/cloudiot:v1/cloudiot.projects.locations.registries.testIamPermissions/resource": resource "/cloudiot:v1/cloudiot.projects.locations.registries.testIamPermissions/resource": resource
"/cloudiot:v1/cloudiot.projects.locations.registries.unbindDeviceFromGateway": unbind_registry_device_from_gateway
"/cloudiot:v1/cloudiot.projects.locations.registries.unbindDeviceFromGateway/parent": parent
"/cloudiot:v1/fields": fields "/cloudiot:v1/fields": fields
"/cloudiot:v1/key": key "/cloudiot:v1/key": key
"/cloudiot:v1/quotaUser": quota_user "/cloudiot:v1/quotaUser": quota_user

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/iot # @see https://cloud.google.com/iot
module CloudiotV1 module CloudiotV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20180926' REVISION = '20181120'
# 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'

View File

@ -22,6 +22,47 @@ module Google
module Apis module Apis
module CloudiotV1 module CloudiotV1
# Request for `BindDeviceToGateway`.
class BindDeviceToGatewayRequest
include Google::Apis::Core::Hashable
# The device to associate with the specified gateway. The value of
# `device_id` can be either the device numeric ID or the user-defined device
# identifier.
# Corresponds to the JSON property `deviceId`
# @return [String]
attr_accessor :device_id
# The value of `gateway_id` can be either the device numeric ID or the
# user-defined device identifier.
# Corresponds to the JSON property `gatewayId`
# @return [String]
attr_accessor :gateway_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_id = args[:device_id] if args.key?(:device_id)
@gateway_id = args[:gateway_id] if args.key?(:gateway_id)
end
end
# Response for `BindDeviceToGateway`.
class BindDeviceToGatewayResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Associates `members` with a `role`. # Associates `members` with a `role`.
class Binding class Binding
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -97,6 +138,11 @@ module Google
# @return [Array<Google::Apis::CloudiotV1::DeviceCredential>] # @return [Array<Google::Apis::CloudiotV1::DeviceCredential>]
attr_accessor :credentials attr_accessor :credentials
# Gateway-related configuration and state.
# Corresponds to the JSON property `gatewayConfig`
# @return [Google::Apis::CloudiotV1::GatewayConfig]
attr_accessor :gateway_config
# The user-defined device identifier. The device ID must be unique # The user-defined device identifier. The device ID must be unique
# within a device registry. # within a device registry.
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
@ -238,6 +284,7 @@ module Google
@blocked = args[:blocked] if args.key?(:blocked) @blocked = args[:blocked] if args.key?(:blocked)
@config = args[:config] if args.key?(:config) @config = args[:config] if args.key?(:config)
@credentials = args[:credentials] if args.key?(:credentials) @credentials = args[:credentials] if args.key?(:credentials)
@gateway_config = args[:gateway_config] if args.key?(:gateway_config)
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@last_config_ack_time = args[:last_config_ack_time] if args.key?(:last_config_ack_time) @last_config_ack_time = args[:last_config_ack_time] if args.key?(:last_config_ack_time)
@last_config_send_time = args[:last_config_send_time] if args.key?(:last_config_send_time) @last_config_send_time = args[:last_config_send_time] if args.key?(:last_config_send_time)
@ -534,6 +581,45 @@ module Google
end end
end end
# Gateway-related configuration and state.
class GatewayConfig
include Google::Apis::Core::Hashable
# Indicates how to authorize and/or authenticate devices to access the
# gateway.
# Corresponds to the JSON property `gatewayAuthMethod`
# @return [String]
attr_accessor :gateway_auth_method
# Indicates whether the device is a gateway.
# Corresponds to the JSON property `gatewayType`
# @return [String]
attr_accessor :gateway_type
# [Output only] The ID of the gateway the device accessed most recently.
# Corresponds to the JSON property `lastAccessedGatewayId`
# @return [String]
attr_accessor :last_accessed_gateway_id
# [Output only] The most recent time at which the device accessed the gateway
# specified in `last_accessed_gateway`.
# Corresponds to the JSON property `lastAccessedGatewayTime`
# @return [String]
attr_accessor :last_accessed_gateway_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@gateway_auth_method = args[:gateway_auth_method] if args.key?(:gateway_auth_method)
@gateway_type = args[:gateway_type] if args.key?(:gateway_type)
@last_accessed_gateway_id = args[:last_accessed_gateway_id] if args.key?(:last_accessed_gateway_id)
@last_accessed_gateway_time = args[:last_accessed_gateway_time] if args.key?(:last_accessed_gateway_time)
end
end
# Request message for `GetIamPolicy` method. # Request message for `GetIamPolicy` method.
class GetIamPolicyRequest class GetIamPolicyRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1094,6 +1180,47 @@ module Google
end end
end end
# Request for `UnbindDeviceFromGateway`.
class UnbindDeviceFromGatewayRequest
include Google::Apis::Core::Hashable
# The device to disassociate from the specified gateway. The value of
# `device_id` can be either the device numeric ID or the user-defined device
# identifier.
# Corresponds to the JSON property `deviceId`
# @return [String]
attr_accessor :device_id
# The value of `gateway_id` can be either the device numeric ID or the
# user-defined device identifier.
# Corresponds to the JSON property `gatewayId`
# @return [String]
attr_accessor :gateway_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_id = args[:device_id] if args.key?(:device_id)
@gateway_id = args[:gateway_id] if args.key?(:gateway_id)
end
end
# Response for `UnbindDeviceFromGateway`.
class UnbindDeviceFromGatewayResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Details of an X.509 certificate. For informational purposes only. # Details of an X.509 certificate. For informational purposes only.
class X509CertificateDetails class X509CertificateDetails
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -22,6 +22,18 @@ module Google
module Apis module Apis
module CloudiotV1 module CloudiotV1
class BindDeviceToGatewayRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BindDeviceToGatewayResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Binding class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -76,6 +88,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GatewayConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetIamPolicyRequest class GetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -190,12 +208,38 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class UnbindDeviceFromGatewayRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UnbindDeviceFromGatewayResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class X509CertificateDetails class X509CertificateDetails
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class BindDeviceToGatewayRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_id, as: 'deviceId'
property :gateway_id, as: 'gatewayId'
end
end
class BindDeviceToGatewayResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Binding class Binding
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -214,6 +258,8 @@ module Google
collection :credentials, as: 'credentials', class: Google::Apis::CloudiotV1::DeviceCredential, decorator: Google::Apis::CloudiotV1::DeviceCredential::Representation collection :credentials, as: 'credentials', class: Google::Apis::CloudiotV1::DeviceCredential, decorator: Google::Apis::CloudiotV1::DeviceCredential::Representation
property :gateway_config, as: 'gatewayConfig', class: Google::Apis::CloudiotV1::GatewayConfig, decorator: Google::Apis::CloudiotV1::GatewayConfig::Representation
property :id, as: 'id' property :id, as: 'id'
property :last_config_ack_time, as: 'lastConfigAckTime' property :last_config_ack_time, as: 'lastConfigAckTime'
property :last_config_send_time, as: 'lastConfigSendTime' property :last_config_send_time, as: 'lastConfigSendTime'
@ -302,6 +348,16 @@ module Google
end end
end end
class GatewayConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :gateway_auth_method, as: 'gatewayAuthMethod'
property :gateway_type, as: 'gatewayType'
property :last_accessed_gateway_id, as: 'lastAccessedGatewayId'
property :last_accessed_gateway_time, as: 'lastAccessedGatewayTime'
end
end
class GetIamPolicyRequest class GetIamPolicyRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -452,6 +508,20 @@ module Google
end end
end end
class UnbindDeviceFromGatewayRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_id, as: 'deviceId'
property :gateway_id, as: 'gatewayId'
end
end
class UnbindDeviceFromGatewayResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class X509CertificateDetails class X509CertificateDetails
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -48,6 +48,40 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Associates the device with the gateway.
# @param [String] parent
# The name of the registry. For example,
# `projects/example-project/locations/us-central1/registries/my-registry`.
# @param [Google::Apis::CloudiotV1::BindDeviceToGatewayRequest] bind_device_to_gateway_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::BindDeviceToGatewayResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::BindDeviceToGatewayResponse]
#
# @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 bind_registry_device_to_gateway(parent, bind_device_to_gateway_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}:bindDeviceToGateway', options)
command.request_representation = Google::Apis::CloudiotV1::BindDeviceToGatewayRequest::Representation
command.request_object = bind_device_to_gateway_request_object
command.response_representation = Google::Apis::CloudiotV1::BindDeviceToGatewayResponse::Representation
command.response_class = Google::Apis::CloudiotV1::BindDeviceToGatewayResponse
command.params['parent'] = parent unless parent.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 device registry that contains devices. # Creates a device registry that contains devices.
# @param [String] parent # @param [String] parent
# The project and cloud region where this device registry must be created. # The project and cloud region where this device registry must be created.
@ -334,6 +368,40 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes the association between the device and the gateway.
# @param [String] parent
# The name of the registry. For example,
# `projects/example-project/locations/us-central1/registries/my-registry`.
# @param [Google::Apis::CloudiotV1::UnbindDeviceFromGatewayRequest] unbind_device_from_gateway_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::UnbindDeviceFromGatewayResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::UnbindDeviceFromGatewayResponse]
#
# @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 unbind_registry_device_from_gateway(parent, unbind_device_from_gateway_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}:unbindDeviceFromGateway', options)
command.request_representation = Google::Apis::CloudiotV1::UnbindDeviceFromGatewayRequest::Representation
command.request_object = unbind_device_from_gateway_request_object
command.response_representation = Google::Apis::CloudiotV1::UnbindDeviceFromGatewayResponse::Representation
command.response_class = Google::Apis::CloudiotV1::UnbindDeviceFromGatewayResponse
command.params['parent'] = parent unless parent.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 device in a device registry. # Creates a device in a device registry.
# @param [String] parent # @param [String] parent
# The name of the device registry where this device should be created. # The name of the device registry where this device should be created.
@ -451,6 +519,20 @@ module Google
# The fields of the `Device` resource to be returned in the response. The # The fields of the `Device` resource to be returned in the response. The
# fields `id` and `num_id` are always returned, along with any # fields `id` and `num_id` are always returned, along with any
# other fields specified. # other fields specified.
# @param [String] gateway_list_options_associations_device_id
# If set, returns only the gateways with which the specified device is
# associated. The device ID can be numeric (`num_id`) or the user-defined
# string (`id`). For example, if `456` is specified, returns only the
# gateways to which the device with `num_id` 456 is bound.
# @param [String] gateway_list_options_associations_gateway_id
# If set, only devices associated with the specified gateway are returned.
# The gateway ID can be numeric (`num_id`) or the user-defined string
# (`id`). For example, if `123` is specified, only devices bound to the
# gateway with `num_id` 123 are returned.
# @param [String] gateway_list_options_gateway_type
# If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
# is specified, only non-gateway devices are returned. If
# `GATEWAY_TYPE_UNSPECIFIED` is specified, all devices are returned.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of devices to return in the response. If this value # The maximum number of devices to return in the response. If this value
# is zero, the service will select a default size. A call may return fewer # is zero, the service will select a default size. A call may return fewer
@ -477,7 +559,7 @@ 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_project_location_registry_devices(parent, device_ids: nil, device_num_ids: nil, field_mask: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) def list_project_location_registry_devices(parent, device_ids: nil, device_num_ids: nil, field_mask: nil, gateway_list_options_associations_device_id: nil, gateway_list_options_associations_gateway_id: nil, gateway_list_options_gateway_type: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/devices', options) command = make_simple_command(:get, 'v1/{+parent}/devices', options)
command.response_representation = Google::Apis::CloudiotV1::ListDevicesResponse::Representation command.response_representation = Google::Apis::CloudiotV1::ListDevicesResponse::Representation
command.response_class = Google::Apis::CloudiotV1::ListDevicesResponse command.response_class = Google::Apis::CloudiotV1::ListDevicesResponse
@ -485,6 +567,9 @@ module Google
command.query['deviceIds'] = device_ids unless device_ids.nil? command.query['deviceIds'] = device_ids unless device_ids.nil?
command.query['deviceNumIds'] = device_num_ids unless device_num_ids.nil? command.query['deviceNumIds'] = device_num_ids unless device_num_ids.nil?
command.query['fieldMask'] = field_mask unless field_mask.nil? command.query['fieldMask'] = field_mask unless field_mask.nil?
command.query['gatewayListOptions.associationsDeviceId'] = gateway_list_options_associations_device_id unless gateway_list_options_associations_device_id.nil?
command.query['gatewayListOptions.associationsGatewayId'] = gateway_list_options_associations_gateway_id unless gateway_list_options_associations_gateway_id.nil?
command.query['gatewayListOptions.gatewayType'] = gateway_list_options_gateway_type unless gateway_list_options_gateway_type.nil?
command.query['pageSize'] = page_size unless page_size.nil? command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil? command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
@ -695,6 +780,40 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Associates the device with the gateway.
# @param [String] parent
# The name of the registry. For example,
# `projects/example-project/locations/us-central1/registries/my-registry`.
# @param [Google::Apis::CloudiotV1::BindDeviceToGatewayRequest] bind_device_to_gateway_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::BindDeviceToGatewayResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::BindDeviceToGatewayResponse]
#
# @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 bind_group_device_to_gateway(parent, bind_device_to_gateway_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}:bindDeviceToGateway', options)
command.request_representation = Google::Apis::CloudiotV1::BindDeviceToGatewayRequest::Representation
command.request_object = bind_device_to_gateway_request_object
command.response_representation = Google::Apis::CloudiotV1::BindDeviceToGatewayResponse::Representation
command.response_class = Google::Apis::CloudiotV1::BindDeviceToGatewayResponse
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the access control policy for a resource. # Gets the access control policy for a resource.
# Returns an empty policy if the resource exists and does not have a policy # Returns an empty policy if the resource exists and does not have a policy
# set. # set.
@ -802,6 +921,40 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes the association between the device and the gateway.
# @param [String] parent
# The name of the registry. For example,
# `projects/example-project/locations/us-central1/registries/my-registry`.
# @param [Google::Apis::CloudiotV1::UnbindDeviceFromGatewayRequest] unbind_device_from_gateway_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::UnbindDeviceFromGatewayResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::UnbindDeviceFromGatewayResponse]
#
# @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 unbind_group_device_from_gateway(parent, unbind_device_from_gateway_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}:unbindDeviceFromGateway', options)
command.request_representation = Google::Apis::CloudiotV1::UnbindDeviceFromGatewayRequest::Representation
command.request_object = unbind_device_from_gateway_request_object
command.response_representation = Google::Apis::CloudiotV1::UnbindDeviceFromGatewayResponse::Representation
command.response_class = Google::Apis::CloudiotV1::UnbindDeviceFromGatewayResponse
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets details about a device. # Gets details about a device.
# @param [String] name # @param [String] name
# The name of the device. For example, # The name of the device. For example,
@ -852,6 +1005,20 @@ module Google
# The fields of the `Device` resource to be returned in the response. The # The fields of the `Device` resource to be returned in the response. The
# fields `id` and `num_id` are always returned, along with any # fields `id` and `num_id` are always returned, along with any
# other fields specified. # other fields specified.
# @param [String] gateway_list_options_associations_device_id
# If set, returns only the gateways with which the specified device is
# associated. The device ID can be numeric (`num_id`) or the user-defined
# string (`id`). For example, if `456` is specified, returns only the
# gateways to which the device with `num_id` 456 is bound.
# @param [String] gateway_list_options_associations_gateway_id
# If set, only devices associated with the specified gateway are returned.
# The gateway ID can be numeric (`num_id`) or the user-defined string
# (`id`). For example, if `123` is specified, only devices bound to the
# gateway with `num_id` 123 are returned.
# @param [String] gateway_list_options_gateway_type
# If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
# is specified, only non-gateway devices are returned. If
# `GATEWAY_TYPE_UNSPECIFIED` is specified, all devices are returned.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of devices to return in the response. If this value # The maximum number of devices to return in the response. If this value
# is zero, the service will select a default size. A call may return fewer # is zero, the service will select a default size. A call may return fewer
@ -878,7 +1045,7 @@ 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_project_location_registry_group_devices(parent, device_ids: nil, device_num_ids: nil, field_mask: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) def list_project_location_registry_group_devices(parent, device_ids: nil, device_num_ids: nil, field_mask: nil, gateway_list_options_associations_device_id: nil, gateway_list_options_associations_gateway_id: nil, gateway_list_options_gateway_type: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/devices', options) command = make_simple_command(:get, 'v1/{+parent}/devices', options)
command.response_representation = Google::Apis::CloudiotV1::ListDevicesResponse::Representation command.response_representation = Google::Apis::CloudiotV1::ListDevicesResponse::Representation
command.response_class = Google::Apis::CloudiotV1::ListDevicesResponse command.response_class = Google::Apis::CloudiotV1::ListDevicesResponse
@ -886,6 +1053,9 @@ module Google
command.query['deviceIds'] = device_ids unless device_ids.nil? command.query['deviceIds'] = device_ids unless device_ids.nil?
command.query['deviceNumIds'] = device_num_ids unless device_num_ids.nil? command.query['deviceNumIds'] = device_num_ids unless device_num_ids.nil?
command.query['fieldMask'] = field_mask unless field_mask.nil? command.query['fieldMask'] = field_mask unless field_mask.nil?
command.query['gatewayListOptions.associationsDeviceId'] = gateway_list_options_associations_device_id unless gateway_list_options_associations_device_id.nil?
command.query['gatewayListOptions.associationsGatewayId'] = gateway_list_options_associations_gateway_id unless gateway_list_options_associations_gateway_id.nil?
command.query['gatewayListOptions.gatewayType'] = gateway_list_options_gateway_type unless gateway_list_options_gateway_type.nil?
command.query['pageSize'] = page_size unless page_size.nil? command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil? command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?

View File

@ -25,7 +25,7 @@ module Google
# @see https://firebase.google.com/docs/dynamic-links/ # @see https://firebase.google.com/docs/dynamic-links/
module FirebasedynamiclinksV1 module FirebasedynamiclinksV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20181109' REVISION = '20181121'
# View and administer all your Firebase data and settings # View and administer all your Firebase data and settings
AUTH_FIREBASE = 'https://www.googleapis.com/auth/firebase' AUTH_FIREBASE = 'https://www.googleapis.com/auth/firebase'

View File

@ -371,6 +371,7 @@ module Google
# E.g. https://maps.app.goo.gl, https://maps.page.link, https://g.co/maps # E.g. https://maps.app.goo.gl, https://maps.page.link, https://g.co/maps
# More examples can be found in description of getNormalizedUriPrefix in # More examples can be found in description of getNormalizedUriPrefix in
# j/c/g/firebase/dynamiclinks/uri/DdlDomain.java # j/c/g/firebase/dynamiclinks/uri/DdlDomain.java
# Will fallback to dynamic_link_domain is this field is missing
# Corresponds to the JSON property `domainUriPrefix` # Corresponds to the JSON property `domainUriPrefix`
# @return [String] # @return [String]
attr_accessor :domain_uri_prefix attr_accessor :domain_uri_prefix
@ -378,7 +379,7 @@ module Google
# Dynamic Links domain that the project owns, e.g. abcd.app.goo.gl # Dynamic Links domain that the project owns, e.g. abcd.app.goo.gl
# [Learn more](https://firebase.google.com/docs/dynamic-links/android/receive) # [Learn more](https://firebase.google.com/docs/dynamic-links/android/receive)
# on how to set up Dynamic Link domain associated with your Firebase project. # on how to set up Dynamic Link domain associated with your Firebase project.
# Required. # Required if missing domain_uri_prefix.
# Corresponds to the JSON property `dynamicLinkDomain` # Corresponds to the JSON property `dynamicLinkDomain`
# @return [String] # @return [String]
attr_accessor :dynamic_link_domain attr_accessor :dynamic_link_domain