lib/purecloudplatformclientv2/models/policy_actions.rb in purecloudplatformclientv2-2.0.40 vs lib/purecloudplatformclientv2/models/policy_actions.rb in purecloudplatformclientv2-3.0.0

- old
+ new

@@ -35,21 +35,24 @@ attr_accessor :retention_duration attr_accessor :initiate_screen_recording + attr_accessor :media_transcriptions + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'retain_recording' => :'retainRecording', :'delete_recording' => :'deleteRecording', :'always_delete' => :'alwaysDelete', :'assign_evaluations' => :'assignEvaluations', :'assign_metered_evaluations' => :'assignMeteredEvaluations', :'assign_calibrations' => :'assignCalibrations', :'retention_duration' => :'retentionDuration', - :'initiate_screen_recording' => :'initiateScreenRecording' + :'initiate_screen_recording' => :'initiateScreenRecording', + :'media_transcriptions' => :'mediaTranscriptions' } end # Attribute type mapping. def self.swagger_types @@ -59,11 +62,12 @@ :'always_delete' => :'BOOLEAN', :'assign_evaluations' => :'Array<EvaluationAssignment>', :'assign_metered_evaluations' => :'Array<MeteredEvaluationAssignment>', :'assign_calibrations' => :'Array<CalibrationAssignment>', :'retention_duration' => :'RetentionDuration', - :'initiate_screen_recording' => :'InitiateScreenRecording' + :'initiate_screen_recording' => :'InitiateScreenRecording', + :'media_transcriptions' => :'Array<MediaTranscription>' } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -109,10 +113,16 @@ if attributes.has_key?(:'initiateScreenRecording') self.initiate_screen_recording = attributes[:'initiateScreenRecording'] end + if attributes.has_key?(:'mediaTranscriptions') + if (value = attributes[:'mediaTranscriptions']).is_a?(Array) + self.media_transcriptions = value + end + end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properies with the reasons def list_invalid_properties @@ -135,11 +145,12 @@ always_delete == o.always_delete && assign_evaluations == o.assign_evaluations && assign_metered_evaluations == o.assign_metered_evaluations && assign_calibrations == o.assign_calibrations && retention_duration == o.retention_duration && - initiate_screen_recording == o.initiate_screen_recording + initiate_screen_recording == o.initiate_screen_recording && + media_transcriptions == o.media_transcriptions end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -147,10 +158,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [retain_recording, delete_recording, always_delete, assign_evaluations, assign_metered_evaluations, assign_calibrations, retention_duration, initiate_screen_recording].hash + [retain_recording, delete_recording, always_delete, assign_evaluations, assign_metered_evaluations, assign_calibrations, retention_duration, initiate_screen_recording, media_transcriptions].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)