Class: Google::Apis::AlertcenterV1beta1::DeviceManagementRule
- Inherits:
-
Object
- Object
- Google::Apis::AlertcenterV1beta1::DeviceManagementRule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alertcenter_v1beta1/classes.rb,
lib/google/apis/alertcenter_v1beta1/representations.rb,
lib/google/apis/alertcenter_v1beta1/representations.rb
Overview
Alerts from Device Management Rules configured by Admin.
Instance Attribute Summary collapse
-
#device_id ⇒ String
Required.
-
#device_model ⇒ String
The model of the device.
-
#device_type ⇒ String
The type of the device.
-
#email ⇒ String
The email of the user this alert was created for.
-
#id ⇒ String
ID of the rule that triggered the alert Corresponds to the JSON property
id
. -
#ios_vendor_id ⇒ String
Required for iOS, empty for others.
-
#owner_id ⇒ String
Obfuscated ID of the owner of the device Corresponds to the JSON property
ownerId
. -
#resource_id ⇒ String
The device resource ID.
-
#rule_action ⇒ String
Action taken as result of the rule Corresponds to the JSON property
ruleAction
. -
#serial_number ⇒ String
The serial number of the device.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeviceManagementRule
constructor
A new instance of DeviceManagementRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DeviceManagementRule
Returns a new instance of DeviceManagementRule.
1048 1049 1050 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1048 def initialize(**args) update!(**args) end |
Instance Attribute Details
#device_id ⇒ String
Required. The device ID.
Corresponds to the JSON property deviceId
1001 1002 1003 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1001 def device_id @device_id end |
#device_model ⇒ String
The model of the device.
Corresponds to the JSON property deviceModel
1006 1007 1008 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1006 def device_model @device_model end |
#device_type ⇒ String
The type of the device.
Corresponds to the JSON property deviceType
1011 1012 1013 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1011 def device_type @device_type end |
#email ⇒ String
The email of the user this alert was created for.
Corresponds to the JSON property email
1016 1017 1018 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1016 def email @email end |
#id ⇒ String
ID of the rule that triggered the alert
Corresponds to the JSON property id
1021 1022 1023 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1021 def id @id end |
#ios_vendor_id ⇒ String
Required for iOS, empty for others.
Corresponds to the JSON property iosVendorId
1026 1027 1028 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1026 def ios_vendor_id @ios_vendor_id end |
#owner_id ⇒ String
Obfuscated ID of the owner of the device
Corresponds to the JSON property ownerId
1031 1032 1033 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1031 def owner_id @owner_id end |
#resource_id ⇒ String
The device resource ID.
Corresponds to the JSON property resourceId
1036 1037 1038 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1036 def resource_id @resource_id end |
#rule_action ⇒ String
Action taken as result of the rule
Corresponds to the JSON property ruleAction
1041 1042 1043 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1041 def rule_action @rule_action end |
#serial_number ⇒ String
The serial number of the device.
Corresponds to the JSON property serialNumber
1046 1047 1048 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1046 def serial_number @serial_number end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1053 def update!(**args) @device_id = args[:device_id] if args.key?(:device_id) @device_model = args[:device_model] if args.key?(:device_model) @device_type = args[:device_type] if args.key?(:device_type) @email = args[:email] if args.key?(:email) @id = args[:id] if args.key?(:id) @ios_vendor_id = args[:ios_vendor_id] if args.key?(:ios_vendor_id) @owner_id = args[:owner_id] if args.key?(:owner_id) @resource_id = args[:resource_id] if args.key?(:resource_id) @rule_action = args[:rule_action] if args.key?(:rule_action) @serial_number = args[:serial_number] if args.key?(:serial_number) end |