Class: Google::Apis::AdminDirectoryV1::ChangeChromeOsDeviceStatusResult
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::ChangeChromeOsDeviceStatusResult
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/google/apis/admin_directory_v1/representations.rb
Overview
The result of a single ChromeOS device for a Change state operation.
Instance Attribute Summary collapse
-
#device_id ⇒ String
The unique ID of the ChromeOS device.
-
#error ⇒ Google::Apis::AdminDirectoryV1::Status
The
Status
type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. -
#response ⇒ Google::Apis::AdminDirectoryV1::ChangeChromeOsDeviceStatusSucceeded
Response for a successful ChromeOS device status change.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ChangeChromeOsDeviceStatusResult
constructor
A new instance of ChangeChromeOsDeviceStatusResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ChangeChromeOsDeviceStatusResult
Returns a new instance of ChangeChromeOsDeviceStatusResult.
847 848 849 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 847 def initialize(**args) update!(**args) end |
Instance Attribute Details
#device_id ⇒ String
The unique ID of the ChromeOS device.
Corresponds to the JSON property deviceId
830 831 832 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 830 def device_id @device_id end |
#error ⇒ Google::Apis::AdminDirectoryV1::Status
The Status
type defines a logical error model that is suitable for different
programming environments, including REST APIs and RPC APIs. It is used by
gRPC. Each Status
message contains three pieces of
data: error code, error message, and error details. You can find out more
about this error model and how to work with it in the API Design Guide.
Corresponds to the JSON property error
840 841 842 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 840 def error @error end |
#response ⇒ Google::Apis::AdminDirectoryV1::ChangeChromeOsDeviceStatusSucceeded
Response for a successful ChromeOS device status change.
Corresponds to the JSON property response
845 846 847 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 845 def response @response end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
852 853 854 855 856 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 852 def update!(**args) @device_id = args[:device_id] if args.key?(:device_id) @error = args[:error] if args.key?(:error) @response = args[:response] if args.key?(:response) end |