Class: Google::Apis::AlertcenterV1beta1::DeviceManagementRule

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeviceManagementRule

Returns a new instance of DeviceManagementRule.



1043
1044
1045
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1043

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

Instance Attribute Details

#device_idString

Required. The device ID. Corresponds to the JSON property deviceId

Returns:

  • (String)


1001
1002
1003
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1001

def device_id
  @device_id
end

#device_modelString

The model of the device. Corresponds to the JSON property deviceModel

Returns:

  • (String)


1006
1007
1008
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1006

def device_model
  @device_model
end

#device_typeString

The type of the device. Corresponds to the JSON property deviceType

Returns:

  • (String)


1011
1012
1013
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1011

def device_type
  @device_type
end

#emailString

The email of the user this alert was created for. Corresponds to the JSON property email

Returns:

  • (String)


1016
1017
1018
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1016

def email
  @email
end

#ios_vendor_idString

Required for iOS, empty for others. Corresponds to the JSON property iosVendorId

Returns:

  • (String)


1021
1022
1023
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1021

def ios_vendor_id
  @ios_vendor_id
end

#owner_idString

Obfuscated ID of the owner of the device Corresponds to the JSON property ownerId

Returns:

  • (String)


1026
1027
1028
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1026

def owner_id
  @owner_id
end

#resource_idString

The device resource ID. Corresponds to the JSON property resourceId

Returns:

  • (String)


1031
1032
1033
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1031

def resource_id
  @resource_id
end

#rule_actionString

Action taken as result of the rule Corresponds to the JSON property ruleAction

Returns:

  • (String)


1036
1037
1038
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1036

def rule_action
  @rule_action
end

#serial_numberString

The serial number of the device. Corresponds to the JSON property serialNumber

Returns:

  • (String)


1041
1042
1043
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1041

def serial_number
  @serial_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1048

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)
  @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