Class: MicrosoftGraph::Models::RecordOperation

Inherits:
CommsOperation show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/record_operation.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from CommsOperation

#client_context, #client_context=, #result_info, #result_info=, #status, #status=

Methods inherited from Entity

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

Constructor Details

#initializeObject

Instantiates a new recordOperation and sets the default values.



19
20
21
# File 'lib/models/record_operation.rb', line 19

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 record_operation

Raises:

  • (StandardError)


27
28
29
30
# File 'lib/models/record_operation.rb', line 27

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

Instance Method Details

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



35
36
37
38
39
40
# File 'lib/models/record_operation.rb', line 35

def get_field_deserializers()
    return super.merge({
        "recordingAccessToken" => lambda {|n| @recording_access_token = n.get_string_value() },
        "recordingLocation" => lambda {|n| @recording_location = n.get_string_value() },
    })
end

#recording_access_tokenObject

Gets the recordingAccessToken property value. The access token required to retrieve the recording.

Returns:

  • a string



45
46
47
# File 'lib/models/record_operation.rb', line 45

def recording_access_token
    return @recording_access_token
end

#recording_access_token=(value) ⇒ Object

Sets the recordingAccessToken property value. The access token required to retrieve the recording.

Parameters:

  • value

    Value to set for the recordingAccessToken property.

Returns:

  • a void



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

def recording_access_token=(value)
    @recording_access_token = value
end

#recording_locationObject

Gets the recordingLocation property value. The location where the recording is located.

Returns:

  • a string



60
61
62
# File 'lib/models/record_operation.rb', line 60

def recording_location
    return @recording_location
end

#recording_location=(value) ⇒ Object

Sets the recordingLocation property value. The location where the recording is located.

Parameters:

  • value

    Value to set for the recordingLocation property.

Returns:

  • a void



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

def recording_location=(value)
    @recording_location = 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)


76
77
78
79
80
81
# File 'lib/models/record_operation.rb', line 76

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("recordingAccessToken", @recording_access_token)
    writer.write_string_value("recordingLocation", @recording_location)
end