Class: MicrosoftGraph::Models::ApplePushNotificationCertificate

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

Overview

Apple push notification certificate.

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.



115
116
117
# File 'lib/models/apple_push_notification_certificate.rb', line 115

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)


123
124
125
126
# File 'lib/models/apple_push_notification_certificate.rb', line 123

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



40
41
42
# File 'lib/models/apple_push_notification_certificate.rb', line 40

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 appleIdentifier property.

Returns:

  • a void



48
49
50
# File 'lib/models/apple_push_notification_certificate.rb', line 48

def apple_identifier=(value)
    @apple_identifier = value
end

#certificateObject

Gets the certificate property value. Not yet documented

Returns:

  • a string



55
56
57
# File 'lib/models/apple_push_notification_certificate.rb', line 55

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



63
64
65
# File 'lib/models/apple_push_notification_certificate.rb', line 63

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



70
71
72
# File 'lib/models/apple_push_notification_certificate.rb', line 70

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 certificateSerialNumber property.

Returns:

  • a void



78
79
80
# File 'lib/models/apple_push_notification_certificate.rb', line 78

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



85
86
87
# File 'lib/models/apple_push_notification_certificate.rb', line 85

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 certificateUploadFailureReason property.

Returns:

  • a void



93
94
95
# File 'lib/models/apple_push_notification_certificate.rb', line 93

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



100
101
102
# File 'lib/models/apple_push_notification_certificate.rb', line 100

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 certificateUploadStatus property.

Returns:

  • a void



108
109
110
# File 'lib/models/apple_push_notification_certificate.rb', line 108

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



131
132
133
# File 'lib/models/apple_push_notification_certificate.rb', line 131

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 expirationDateTime property.

Returns:

  • a void



139
140
141
# File 'lib/models/apple_push_notification_certificate.rb', line 139

def expiration_date_time=(value)
    @expiration_date_time = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

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



162
163
164
# File 'lib/models/apple_push_notification_certificate.rb', line 162

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 lastModifiedDateTime property.

Returns:

  • a void



170
171
172
# File 'lib/models/apple_push_notification_certificate.rb', line 170

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)


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

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



193
194
195
# File 'lib/models/apple_push_notification_certificate.rb', line 193

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 topicIdentifier property.

Returns:

  • a void



201
202
203
# File 'lib/models/apple_push_notification_certificate.rb', line 201

def topic_identifier=(value)
    @topic_identifier = value
end