Class: Azure::MediaServices::Mgmt::V2020_05_01::Models::UtcClipTime

Inherits:
ClipTime
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-05-01/generated/azure_mgmt_media_services/models/utc_clip_time.rb

Overview

Specifies the clip time as a Utc time position in the media file. The Utc time can point to a different position depending on whether the media file starts from a timestamp of zero or not.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeUtcClipTime

Returns a new instance of UtcClipTime.



18
19
20
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/utc_clip_time.rb', line 18

def initialize
  @odatatype = "#Microsoft.Media.UtcClipTime"
end

Instance Attribute Details

#odatatypeObject

Returns the value of attribute odatatype.



22
23
24
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/utc_clip_time.rb', line 22

def odatatype
  @odatatype
end

#timeDateTime

based on Utc time.

Returns:

  • (DateTime)

    The time position on the timeline of the input media



26
27
28
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/utc_clip_time.rb', line 26

def time
  @time
end

Class Method Details

.mapperObject

Mapper for UtcClipTime class as Ruby Hash. This will be used for serialization/deserialization.



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/utc_clip_time.rb', line 33

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: '#Microsoft.Media.UtcClipTime',
    type: {
      name: 'Composite',
      class_name: 'UtcClipTime',
      model_properties: {
        odatatype: {
          client_side_validation: true,
          required: true,
          serialized_name: '@odata\\.type',
          type: {
            name: 'String'
          }
        },
        time: {
          client_side_validation: true,
          required: true,
          serialized_name: 'time',
          type: {
            name: 'DateTime'
          }
        }
      }
    }
  }
end