Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventListResult
- Inherits:
-
Object
- Object
- Azure::MediaServices::Mgmt::V2018_07_01::Models::LiveEventListResult
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/2018-07-01/generated/azure_mgmt_media_services/models/live_event_list_result.rb
Overview
The LiveEvent list result.
Instance Attribute Summary collapse
-
#next_method ⇒ Object
return [Proc] with next page method call.
-
#odatacount ⇒ Integer
The number of result.
-
#odatanext_link ⇒ String
contains incomplete list of Live Outputs.
-
#value ⇒ Array<LiveEvent>
The result of the List Live Event operation.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for LiveEventListResult class as Ruby Hash.
Instance Method Summary collapse
-
#get_all_items ⇒ Array<LiveEvent>
Gets the rest of the items for the request, enabling auto-pagination.
-
#get_next_page ⇒ LiveEventListResult
Gets the next page of results.
Instance Attribute Details
#next_method ⇒ Object
return [Proc] with next page method call.
27 28 29 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/live_event_list_result.rb', line 27 def next_method @next_method end |
#odatacount ⇒ Integer
Returns The number of result.
20 21 22 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/live_event_list_result.rb', line 20 def odatacount @odatacount end |
#odatanext_link ⇒ String
contains incomplete list of Live Outputs.
24 25 26 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/live_event_list_result.rb', line 24 def odatanext_link @odatanext_link end |
#value ⇒ Array<LiveEvent>
Returns The result of the List Live Event operation.
17 18 19 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/live_event_list_result.rb', line 17 def value @value end |
Class Method Details
.mapper ⇒ Object
Mapper for LiveEventListResult class as Ruby Hash. This will be used for serialization/deserialization.
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/live_event_list_result.rb', line 62 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'LiveEventListResult', type: { name: 'Composite', class_name: 'LiveEventListResult', model_properties: { value: { client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'LiveEventElementType', type: { name: 'Composite', class_name: 'LiveEvent' } } } }, odatacount: { client_side_validation: true, required: false, serialized_name: '@odata\\.count', type: { name: 'Number' } }, odatanext_link: { client_side_validation: true, required: false, serialized_name: '@odata\\.nextLink', type: { name: 'String' } } } } } end |
Instance Method Details
#get_all_items ⇒ Array<LiveEvent>
Gets the rest of the items for the request, enabling auto-pagination.
34 35 36 37 38 39 40 41 42 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/live_event_list_result.rb', line 34 def get_all_items items = @value page = self while page.odatanext_link != nil && !page.odatanext_link.strip.empty? do page = page.get_next_page items.concat(page.value) end items end |
#get_next_page ⇒ LiveEventListResult
Gets the next page of results.
49 50 51 52 53 54 55 56 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/live_event_list_result.rb', line 49 def get_next_page response = @next_method.call(@odatanext_link).value! unless @next_method.nil? unless response.nil? @odatanext_link = response.body.odatanext_link @value = response.body.value self end end |