Class: MicrosoftGraph::Models::ApplePushNotificationCertificate

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/apple_push_notification_certificate.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new applePushNotificationCertificate and sets the default values.



113
114
115
# File 'lib/models/apple_push_notification_certificate.rb', line 113

def initialize()
    super
end

Class Method Details

.create_from_discriminator_value(parse_node) ⇒ Object

Creates a new instance of the appropriate class based on discriminator value

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a apple_push_notification_certificate

Raises:

  • (StandardError)


121
122
123
124
# File 'lib/models/apple_push_notification_certificate.rb', line 121

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return ApplePushNotificationCertificate.new
end

Instance Method Details

#apple_identifierObject

Gets the appleIdentifier property value. Apple Id of the account used to create the MDM push certificate.

Returns:

  • a string



38
39
40
# File 'lib/models/apple_push_notification_certificate.rb', line 38

def apple_identifier
    return @apple_identifier
end

#apple_identifier=(value) ⇒ Object

Sets the appleIdentifier property value. Apple Id of the account used to create the MDM push certificate.

Parameters:

  • value

    Value to set for the apple_identifier property.

Returns:

  • a void



46
47
48
# File 'lib/models/apple_push_notification_certificate.rb', line 46

def apple_identifier=(value)
    @apple_identifier = value
end

#certificateObject

Gets the certificate property value. Not yet documented

Returns:

  • a string



53
54
55
# File 'lib/models/apple_push_notification_certificate.rb', line 53

def certificate
    return @certificate
end

#certificate=(value) ⇒ Object

Sets the certificate property value. Not yet documented

Parameters:

  • value

    Value to set for the certificate property.

Returns:

  • a void



61
62
63
# File 'lib/models/apple_push_notification_certificate.rb', line 61

def certificate=(value)
    @certificate = value
end

#certificate_serial_numberObject

Gets the certificateSerialNumber property value. Certificate serial number. This property is read-only.

Returns:

  • a string



68
69
70
# File 'lib/models/apple_push_notification_certificate.rb', line 68

def certificate_serial_number
    return @certificate_serial_number
end

#certificate_serial_number=(value) ⇒ Object

Sets the certificateSerialNumber property value. Certificate serial number. This property is read-only.

Parameters:

  • value

    Value to set for the certificate_serial_number property.

Returns:

  • a void



76
77
78
# File 'lib/models/apple_push_notification_certificate.rb', line 76

def certificate_serial_number=(value)
    @certificate_serial_number = value
end

#certificate_upload_failure_reasonObject

Gets the certificateUploadFailureReason property value. The reason the certificate upload failed.

Returns:

  • a string



83
84
85
# File 'lib/models/apple_push_notification_certificate.rb', line 83

def certificate_upload_failure_reason
    return @certificate_upload_failure_reason
end

#certificate_upload_failure_reason=(value) ⇒ Object

Sets the certificateUploadFailureReason property value. The reason the certificate upload failed.

Parameters:

  • value

    Value to set for the certificate_upload_failure_reason property.

Returns:

  • a void



91
92
93
# File 'lib/models/apple_push_notification_certificate.rb', line 91

def certificate_upload_failure_reason=(value)
    @certificate_upload_failure_reason = value
end

#certificate_upload_statusObject

Gets the certificateUploadStatus property value. The certificate upload status.

Returns:

  • a string



98
99
100
# File 'lib/models/apple_push_notification_certificate.rb', line 98

def certificate_upload_status
    return @certificate_upload_status
end

#certificate_upload_status=(value) ⇒ Object

Sets the certificateUploadStatus property value. The certificate upload status.

Parameters:

  • value

    Value to set for the certificate_upload_status property.

Returns:

  • a void



106
107
108
# File 'lib/models/apple_push_notification_certificate.rb', line 106

def certificate_upload_status=(value)
    @certificate_upload_status = value
end

#expiration_date_timeObject

Gets the expirationDateTime property value. The expiration date and time for Apple push notification certificate.

Returns:

  • a date_time



129
130
131
# File 'lib/models/apple_push_notification_certificate.rb', line 129

def expiration_date_time
    return @expiration_date_time
end

#expiration_date_time=(value) ⇒ Object

Sets the expirationDateTime property value. The expiration date and time for Apple push notification certificate.

Parameters:

  • value

    Value to set for the expiration_date_time property.

Returns:

  • a void



137
138
139
# File 'lib/models/apple_push_notification_certificate.rb', line 137

def expiration_date_time=(value)
    @expiration_date_time = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



144
145
146
147
148
149
150
151
152
153
154
155
# File 'lib/models/apple_push_notification_certificate.rb', line 144

def get_field_deserializers()
    return super.merge({
        "appleIdentifier" => lambda {|n| @apple_identifier = n.get_string_value() },
        "certificate" => lambda {|n| @certificate = n.get_string_value() },
        "certificateSerialNumber" => lambda {|n| @certificate_serial_number = n.get_string_value() },
        "certificateUploadFailureReason" => lambda {|n| @certificate_upload_failure_reason = n.get_string_value() },
        "certificateUploadStatus" => lambda {|n| @certificate_upload_status = n.get_string_value() },
        "expirationDateTime" => lambda {|n| @expiration_date_time = n.get_date_time_value() },
        "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() },
        "topicIdentifier" => lambda {|n| @topic_identifier = n.get_string_value() },
    })
end

#last_modified_date_timeObject

Gets the lastModifiedDateTime property value. Last modified date and time for Apple push notification certificate.

Returns:

  • a date_time



160
161
162
# File 'lib/models/apple_push_notification_certificate.rb', line 160

def last_modified_date_time
    return @last_modified_date_time
end

#last_modified_date_time=(value) ⇒ Object

Sets the lastModifiedDateTime property value. Last modified date and time for Apple push notification certificate.

Parameters:

  • value

    Value to set for the last_modified_date_time property.

Returns:

  • a void



168
169
170
# File 'lib/models/apple_push_notification_certificate.rb', line 168

def last_modified_date_time=(value)
    @last_modified_date_time = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


176
177
178
179
180
181
182
183
184
185
186
# File 'lib/models/apple_push_notification_certificate.rb', line 176

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("appleIdentifier", @apple_identifier)
    writer.write_string_value("certificate", @certificate)
    writer.write_string_value("certificateUploadFailureReason", @certificate_upload_failure_reason)
    writer.write_string_value("certificateUploadStatus", @certificate_upload_status)
    writer.write_date_time_value("expirationDateTime", @expiration_date_time)
    writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time)
    writer.write_string_value("topicIdentifier", @topic_identifier)
end

#topic_identifierObject

Gets the topicIdentifier property value. Topic Id.

Returns:

  • a string



191
192
193
# File 'lib/models/apple_push_notification_certificate.rb', line 191

def topic_identifier
    return @topic_identifier
end

#topic_identifier=(value) ⇒ Object

Sets the topicIdentifier property value. Topic Id.

Parameters:

  • value

    Value to set for the topic_identifier property.

Returns:

  • a void



199
200
201
# File 'lib/models/apple_push_notification_certificate.rb', line 199

def topic_identifier=(value)
    @topic_identifier = value
end