Class: Google::Apis::CloudidentityV1beta1::CreateDeviceRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudidentity_v1beta1/classes.rb,
generated/google/apis/cloudidentity_v1beta1/representations.rb,
generated/google/apis/cloudidentity_v1beta1/representations.rb

Overview

Request message for creating a Company Owned device.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreateDeviceRequest

Returns a new instance of CreateDeviceRequest.



378
379
380
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 378

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#customerString

Required. Resource name of the customer. If you're using this API for your own organization, use customers/my_customer If you're using this API to manage another organization, use customers/customer_id`, where customer_id is the customer to whom the device belongs. Corresponds to the JSON propertycustomer`

Returns:

  • (String)


369
370
371
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 369

def customer
  @customer
end

#deviceGoogle::Apis::CloudidentityV1beta1::Device

A Device within the Cloud Identity Devices API. Represents a Device known to Google Cloud, independent of the device ownership, type, and whether it is assigned or in use by a user. Corresponds to the JSON property device



376
377
378
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 376

def device
  @device
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



383
384
385
386
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 383

def update!(**args)
  @customer = args[:customer] if args.key?(:customer)
  @device = args[:device] if args.key?(:device)
end