azure_mgmt_media_services 0.16.0 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-10-01/generated/azure_mgmt_media_services/media_services_management_client.rb +1 -1
  3. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services.rb +213 -0
  4. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/assets.rb +946 -0
  5. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/azure_media_services.rb +176 -0
  6. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/content_key_policies.rb +815 -0
  7. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/jobs.rb +702 -0
  8. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/live_events.rb +1285 -0
  9. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/live_outputs.rb +706 -0
  10. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/locations.rb +130 -0
  11. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/mediaservices.rb +1069 -0
  12. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/aac_audio.rb +95 -0
  13. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/aac_audio_profile.rb +17 -0
  14. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/akamai_access_control.rb +56 -0
  15. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/akamai_signature_header_authentication_key.rb +68 -0
  16. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/api_error.rb +47 -0
  17. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/asset.rb +157 -0
  18. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/asset_collection.rb +99 -0
  19. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/asset_container_permission.rb +17 -0
  20. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/asset_container_sas.rb +54 -0
  21. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/asset_storage_encryption_format.rb +16 -0
  22. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/asset_storage_encryption_key.rb +46 -0
  23. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/audio.rb +92 -0
  24. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/audio_analyzer_preset.rb +66 -0
  25. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/audio_overlay.rb +98 -0
  26. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/built_in_standard_encoder_preset.rb +66 -0
  27. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/cbcs_drm_configuration.rb +73 -0
  28. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/cenc_drm_configuration.rb +61 -0
  29. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/check_name_availability_input.rb +58 -0
  30. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/codec.rb +66 -0
  31. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/common_encryption_cbcs.rb +95 -0
  32. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/common_encryption_cenc.rb +95 -0
  33. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy.rb +129 -0
  34. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_clear_key_configuration.rb +50 -0
  35. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_collection.rb +100 -0
  36. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_configuration.rb +51 -0
  37. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_fair_play_configuration.rb +111 -0
  38. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_fair_play_rental_and_lease_key_type.rb +18 -0
  39. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_open_restriction.rb +51 -0
  40. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_option.rb +87 -0
  41. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_configuration.rb +82 -0
  42. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_encryption_key_from_header.rb +51 -0
  43. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_encryption_key_from_key_identifier.rb +64 -0
  44. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_key_location.rb +49 -0
  45. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_type.rb +18 -0
  46. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_explicit_analog_television_restriction.rb +61 -0
  47. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license.rb +156 -0
  48. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license_type.rb +17 -0
  49. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_play_right.rb +196 -0
  50. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_unknown_output_passing_option.rb +18 -0
  51. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_properties.rb +102 -0
  52. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_restriction.rb +49 -0
  53. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_restriction_token_key.rb +49 -0
  54. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_restriction_token_type.rb +17 -0
  55. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_rsa_token_key.rb +72 -0
  56. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_symmetric_token_key.rb +61 -0
  57. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_token_claim.rb +57 -0
  58. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_token_restriction.rb +156 -0
  59. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_unknown_configuration.rb +51 -0
  60. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_unknown_restriction.rb +51 -0
  61. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_widevine_configuration.rb +61 -0
  62. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/content_key_policy_x509certificate_token_key.rb +62 -0
  63. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/copy_audio.rb +58 -0
  64. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/copy_video.rb +59 -0
  65. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/cross_site_access_policies.rb +58 -0
  66. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/default_key.rb +59 -0
  67. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/deinterlace.rb +62 -0
  68. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/deinterlace_mode.rb +16 -0
  69. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/deinterlace_parity.rb +17 -0
  70. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/enabled_protocols.rb +79 -0
  71. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/encoder_named_preset.rb +19 -0
  72. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/encryption_scheme.rb +18 -0
  73. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/entity_name_availability_check_output.rb +69 -0
  74. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/entropy_mode.rb +16 -0
  75. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/envelope_encryption.rb +94 -0
  76. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/filters.rb +98 -0
  77. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/format.rb +69 -0
  78. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/h264complexity.rb +17 -0
  79. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/h264layer.rb +191 -0
  80. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/h264video.rb +124 -0
  81. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/h264video_profile.rb +20 -0
  82. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/hls.rb +47 -0
  83. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/image.rb +121 -0
  84. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/image_format.rb +58 -0
  85. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/ipaccess_control.rb +55 -0
  86. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/iprange.rb +68 -0
  87. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/job.rb +166 -0
  88. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/job_collection.rb +99 -0
  89. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/job_error.rb +117 -0
  90. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/job_error_category.rb +19 -0
  91. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/job_error_code.rb +23 -0
  92. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/job_error_detail.rb +59 -0
  93. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/job_input.rb +65 -0
  94. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/job_input_asset.rb +85 -0
  95. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/job_input_clip.rb +77 -0
  96. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/job_input_http.rb +87 -0
  97. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/job_inputs.rb +80 -0
  98. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/job_output.rb +90 -0
  99. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/job_output_asset.rb +90 -0
  100. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/job_retry.rb +16 -0
  101. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/job_state.rb +21 -0
  102. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/jpg_format.rb +58 -0
  103. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/jpg_image.rb +121 -0
  104. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/jpg_layer.rb +86 -0
  105. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/layer.rb +93 -0
  106. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/list_container_sas_input.rb +60 -0
  107. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/list_content_keys_response.rb +56 -0
  108. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/list_paths_response.rb +76 -0
  109. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/live_event.rb +227 -0
  110. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/live_event_action_input.rb +46 -0
  111. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/live_event_encoding.rb +59 -0
  112. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/live_event_encoding_type.rb +16 -0
  113. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/live_event_endpoint.rb +57 -0
  114. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/live_event_input.rb +92 -0
  115. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/live_event_input_protocol.rb +16 -0
  116. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/live_event_list_result.rb +110 -0
  117. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/live_event_preview.rb +91 -0
  118. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/live_event_preview_access_control.rb +47 -0
  119. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/live_event_resource_state.rb +19 -0
  120. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/live_output.rb +181 -0
  121. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/live_output_list_result.rb +111 -0
  122. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/live_output_resource_state.rb +17 -0
  123. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/location.rb +47 -0
  124. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/media_service.rb +118 -0
  125. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/media_service_collection.rb +99 -0
  126. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/mp4format.rb +75 -0
  127. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/multi_bitrate_format.rb +84 -0
  128. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/no_encryption.rb +47 -0
  129. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/odata_error.rb +89 -0
  130. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/on_error_type.rb +16 -0
  131. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/operation.rb +58 -0
  132. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/operation_collection.rb +99 -0
  133. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/operation_display.rb +79 -0
  134. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/output_file.rb +59 -0
  135. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/overlay.rb +132 -0
  136. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/png_format.rb +58 -0
  137. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/png_image.rb +121 -0
  138. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/png_layer.rb +74 -0
  139. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/preset.rb +50 -0
  140. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/priority.rb +17 -0
  141. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/provider.rb +46 -0
  142. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/proxy_resource.rb +62 -0
  143. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/rectangle.rb +88 -0
  144. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/resource.rb +71 -0
  145. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/rotation.rb +20 -0
  146. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/standard_encoder_preset.rb +110 -0
  147. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/storage_account.rb +63 -0
  148. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/storage_account_type.rb +16 -0
  149. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/stream_options_flag.rb +16 -0
  150. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/streaming_endpoint.rb +284 -0
  151. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/streaming_endpoint_access_control.rb +60 -0
  152. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/streaming_endpoint_list_result.rb +111 -0
  153. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/streaming_endpoint_resource_state.rb +20 -0
  154. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/streaming_entity_scale_unit.rb +47 -0
  155. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/streaming_locator.rb +169 -0
  156. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/streaming_locator_collection.rb +100 -0
  157. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/streaming_locator_content_key.rb +113 -0
  158. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/streaming_locator_content_key_type.rb +17 -0
  159. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/streaming_locator_user_defined_content_key.rb +69 -0
  160. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/streaming_path.rb +82 -0
  161. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/streaming_policy.rb +133 -0
  162. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/streaming_policy_collection.rb +99 -0
  163. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/streaming_policy_content_key.rb +78 -0
  164. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/streaming_policy_content_keys.rb +68 -0
  165. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/streaming_policy_fair_play_configuration.rb +59 -0
  166. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/streaming_policy_play_ready_configuration.rb +59 -0
  167. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/streaming_policy_streaming_protocol.rb +18 -0
  168. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/streaming_policy_widevine_configuration.rb +48 -0
  169. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/stretch_mode.rb +17 -0
  170. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/subscription_media_service.rb +118 -0
  171. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/subscription_media_service_collection.rb +100 -0
  172. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/sync_storage_keys_input.rb +46 -0
  173. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/track_property_compare_operation.rb +16 -0
  174. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/track_property_condition.rb +72 -0
  175. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/track_property_type.rb +16 -0
  176. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/track_selection.rb +56 -0
  177. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/tracked_resource.rb +92 -0
  178. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/transform.rb +123 -0
  179. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/transform_collection.rb +99 -0
  180. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/transform_output.rb +83 -0
  181. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/transport_stream_format.rb +76 -0
  182. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/video.rb +86 -0
  183. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/video_analyzer_preset.rb +71 -0
  184. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/video_layer.rb +156 -0
  185. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/models/video_overlay.rb +136 -0
  186. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/module_definition.rb +9 -0
  187. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/operations.rb +229 -0
  188. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/streaming_endpoints.rb +1308 -0
  189. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/streaming_locators.rb +794 -0
  190. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/streaming_policies.rb +584 -0
  191. data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/transforms.rb +714 -0
  192. data/lib/azure_mgmt_media_services.rb +1 -0
  193. data/lib/profiles/latest/modules/mediaservices_profile_module.rb +699 -55
  194. data/lib/version.rb +1 -1
  195. metadata +192 -3
@@ -0,0 +1,584 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::MediaServices::Mgmt::V2018_03_30_preview
7
+ #
8
+ # StreamingPolicies
9
+ #
10
+ class StreamingPolicies
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the StreamingPolicies class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [AzureMediaServices] reference to the AzureMediaServices
22
+ attr_reader :client
23
+
24
+ #
25
+ # List Streaming Policies
26
+ #
27
+ # Lists the Streaming Policies in the account
28
+ #
29
+ # @param resource_group_name [String] The name of the resource group within the
30
+ # Azure subscription.
31
+ # @param account_name [String] The Media Services account name.
32
+ # @param filter [String] Restricts the set of items returned.
33
+ # @param top [Integer] Specifies a non-negative integer n that limits the
34
+ # number of items returned from a collection. The service returns the number of
35
+ # available items up to but not greater than the specified value n.
36
+ # @param orderby [String] Specifies the the key by which the result collection
37
+ # should be ordered.
38
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
39
+ # will be added to the HTTP request.
40
+ #
41
+ # @return [Array<StreamingPolicy>] operation results.
42
+ #
43
+ def list(resource_group_name, account_name, filter:nil, top:nil, orderby:nil, custom_headers:nil)
44
+ first_page = list_as_lazy(resource_group_name, account_name, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers)
45
+ first_page.get_all_items
46
+ end
47
+
48
+ #
49
+ # List Streaming Policies
50
+ #
51
+ # Lists the Streaming Policies in the account
52
+ #
53
+ # @param resource_group_name [String] The name of the resource group within the
54
+ # Azure subscription.
55
+ # @param account_name [String] The Media Services account name.
56
+ # @param filter [String] Restricts the set of items returned.
57
+ # @param top [Integer] Specifies a non-negative integer n that limits the
58
+ # number of items returned from a collection. The service returns the number of
59
+ # available items up to but not greater than the specified value n.
60
+ # @param orderby [String] Specifies the the key by which the result collection
61
+ # should be ordered.
62
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
63
+ # will be added to the HTTP request.
64
+ #
65
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
66
+ #
67
+ def list_with_http_info(resource_group_name, account_name, filter:nil, top:nil, orderby:nil, custom_headers:nil)
68
+ list_async(resource_group_name, account_name, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
69
+ end
70
+
71
+ #
72
+ # List Streaming Policies
73
+ #
74
+ # Lists the Streaming Policies in the account
75
+ #
76
+ # @param resource_group_name [String] The name of the resource group within the
77
+ # Azure subscription.
78
+ # @param account_name [String] The Media Services account name.
79
+ # @param filter [String] Restricts the set of items returned.
80
+ # @param top [Integer] Specifies a non-negative integer n that limits the
81
+ # number of items returned from a collection. The service returns the number of
82
+ # available items up to but not greater than the specified value n.
83
+ # @param orderby [String] Specifies the the key by which the result collection
84
+ # should be ordered.
85
+ # @param [Hash{String => String}] A hash of custom headers that will be added
86
+ # to the HTTP request.
87
+ #
88
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
89
+ #
90
+ def list_async(resource_group_name, account_name, filter:nil, top:nil, orderby:nil, custom_headers:nil)
91
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
92
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
93
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
94
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
95
+
96
+
97
+ request_headers = {}
98
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
99
+
100
+ # Set Headers
101
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
102
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
103
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies'
104
+
105
+ request_url = @base_url || @client.base_url
106
+
107
+ options = {
108
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
109
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name},
110
+ query_params: {'api-version' => @client.api_version,'$filter' => filter,'$top' => top,'$orderby' => orderby},
111
+ headers: request_headers.merge(custom_headers || {}),
112
+ base_url: request_url
113
+ }
114
+ promise = @client.make_request_async(:get, path_template, options)
115
+
116
+ promise = promise.then do |result|
117
+ http_response = result.response
118
+ status_code = http_response.status
119
+ response_content = http_response.body
120
+ unless status_code == 200
121
+ error_model = JSON.load(response_content)
122
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
123
+ end
124
+
125
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
126
+ # Deserialize Response
127
+ if status_code == 200
128
+ begin
129
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
130
+ result_mapper = Azure::MediaServices::Mgmt::V2018_03_30_preview::Models::StreamingPolicyCollection.mapper()
131
+ result.body = @client.deserialize(result_mapper, parsed_response)
132
+ rescue Exception => e
133
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
134
+ end
135
+ end
136
+
137
+ result
138
+ end
139
+
140
+ promise.execute
141
+ end
142
+
143
+ #
144
+ # Get a Streaming Policy
145
+ #
146
+ # Get the details of a Streaming Policy in the Media Services account
147
+ #
148
+ # @param resource_group_name [String] The name of the resource group within the
149
+ # Azure subscription.
150
+ # @param account_name [String] The Media Services account name.
151
+ # @param streaming_policy_name [String] The Streaming Policy name.
152
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
153
+ # will be added to the HTTP request.
154
+ #
155
+ # @return [StreamingPolicy] operation results.
156
+ #
157
+ def get(resource_group_name, account_name, streaming_policy_name, custom_headers:nil)
158
+ response = get_async(resource_group_name, account_name, streaming_policy_name, custom_headers:custom_headers).value!
159
+ response.body unless response.nil?
160
+ end
161
+
162
+ #
163
+ # Get a Streaming Policy
164
+ #
165
+ # Get the details of a Streaming Policy in the Media Services account
166
+ #
167
+ # @param resource_group_name [String] The name of the resource group within the
168
+ # Azure subscription.
169
+ # @param account_name [String] The Media Services account name.
170
+ # @param streaming_policy_name [String] The Streaming Policy name.
171
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
172
+ # will be added to the HTTP request.
173
+ #
174
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
175
+ #
176
+ def get_with_http_info(resource_group_name, account_name, streaming_policy_name, custom_headers:nil)
177
+ get_async(resource_group_name, account_name, streaming_policy_name, custom_headers:custom_headers).value!
178
+ end
179
+
180
+ #
181
+ # Get a Streaming Policy
182
+ #
183
+ # Get the details of a Streaming Policy in the Media Services account
184
+ #
185
+ # @param resource_group_name [String] The name of the resource group within the
186
+ # Azure subscription.
187
+ # @param account_name [String] The Media Services account name.
188
+ # @param streaming_policy_name [String] The Streaming Policy name.
189
+ # @param [Hash{String => String}] A hash of custom headers that will be added
190
+ # to the HTTP request.
191
+ #
192
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
193
+ #
194
+ def get_async(resource_group_name, account_name, streaming_policy_name, custom_headers:nil)
195
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
196
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
197
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
198
+ fail ArgumentError, 'streaming_policy_name is nil' if streaming_policy_name.nil?
199
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
200
+
201
+
202
+ request_headers = {}
203
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
204
+
205
+ # Set Headers
206
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
207
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
208
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies/{streamingPolicyName}'
209
+
210
+ request_url = @base_url || @client.base_url
211
+
212
+ options = {
213
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
214
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'streamingPolicyName' => streaming_policy_name},
215
+ query_params: {'api-version' => @client.api_version},
216
+ headers: request_headers.merge(custom_headers || {}),
217
+ base_url: request_url
218
+ }
219
+ promise = @client.make_request_async(:get, path_template, options)
220
+
221
+ promise = promise.then do |result|
222
+ http_response = result.response
223
+ status_code = http_response.status
224
+ response_content = http_response.body
225
+ unless status_code == 200 || status_code == 404
226
+ error_model = JSON.load(response_content)
227
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
228
+ end
229
+
230
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
231
+ # Deserialize Response
232
+ if status_code == 200
233
+ begin
234
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
235
+ result_mapper = Azure::MediaServices::Mgmt::V2018_03_30_preview::Models::StreamingPolicy.mapper()
236
+ result.body = @client.deserialize(result_mapper, parsed_response)
237
+ rescue Exception => e
238
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
239
+ end
240
+ end
241
+
242
+ result
243
+ end
244
+
245
+ promise.execute
246
+ end
247
+
248
+ #
249
+ # Create a Streaming Policy
250
+ #
251
+ # Create a Streaming Policy in the Media Services account
252
+ #
253
+ # @param resource_group_name [String] The name of the resource group within the
254
+ # Azure subscription.
255
+ # @param account_name [String] The Media Services account name.
256
+ # @param streaming_policy_name [String] The Streaming Policy name.
257
+ # @param parameters [StreamingPolicy] The request parameters
258
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
259
+ # will be added to the HTTP request.
260
+ #
261
+ # @return [StreamingPolicy] operation results.
262
+ #
263
+ def create(resource_group_name, account_name, streaming_policy_name, parameters, custom_headers:nil)
264
+ response = create_async(resource_group_name, account_name, streaming_policy_name, parameters, custom_headers:custom_headers).value!
265
+ response.body unless response.nil?
266
+ end
267
+
268
+ #
269
+ # Create a Streaming Policy
270
+ #
271
+ # Create a Streaming Policy in the Media Services account
272
+ #
273
+ # @param resource_group_name [String] The name of the resource group within the
274
+ # Azure subscription.
275
+ # @param account_name [String] The Media Services account name.
276
+ # @param streaming_policy_name [String] The Streaming Policy name.
277
+ # @param parameters [StreamingPolicy] The request parameters
278
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
279
+ # will be added to the HTTP request.
280
+ #
281
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
282
+ #
283
+ def create_with_http_info(resource_group_name, account_name, streaming_policy_name, parameters, custom_headers:nil)
284
+ create_async(resource_group_name, account_name, streaming_policy_name, parameters, custom_headers:custom_headers).value!
285
+ end
286
+
287
+ #
288
+ # Create a Streaming Policy
289
+ #
290
+ # Create a Streaming Policy in the Media Services account
291
+ #
292
+ # @param resource_group_name [String] The name of the resource group within the
293
+ # Azure subscription.
294
+ # @param account_name [String] The Media Services account name.
295
+ # @param streaming_policy_name [String] The Streaming Policy name.
296
+ # @param parameters [StreamingPolicy] The request parameters
297
+ # @param [Hash{String => String}] A hash of custom headers that will be added
298
+ # to the HTTP request.
299
+ #
300
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
301
+ #
302
+ def create_async(resource_group_name, account_name, streaming_policy_name, parameters, custom_headers:nil)
303
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
304
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
305
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
306
+ fail ArgumentError, 'streaming_policy_name is nil' if streaming_policy_name.nil?
307
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
308
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
309
+
310
+
311
+ request_headers = {}
312
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
313
+
314
+ # Set Headers
315
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
316
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
317
+
318
+ # Serialize Request
319
+ request_mapper = Azure::MediaServices::Mgmt::V2018_03_30_preview::Models::StreamingPolicy.mapper()
320
+ request_content = @client.serialize(request_mapper, parameters)
321
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
322
+
323
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies/{streamingPolicyName}'
324
+
325
+ request_url = @base_url || @client.base_url
326
+
327
+ options = {
328
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
329
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'streamingPolicyName' => streaming_policy_name},
330
+ query_params: {'api-version' => @client.api_version},
331
+ body: request_content,
332
+ headers: request_headers.merge(custom_headers || {}),
333
+ base_url: request_url
334
+ }
335
+ promise = @client.make_request_async(:put, path_template, options)
336
+
337
+ promise = promise.then do |result|
338
+ http_response = result.response
339
+ status_code = http_response.status
340
+ response_content = http_response.body
341
+ unless status_code == 201
342
+ error_model = JSON.load(response_content)
343
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
344
+ end
345
+
346
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
347
+ # Deserialize Response
348
+ if status_code == 201
349
+ begin
350
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
351
+ result_mapper = Azure::MediaServices::Mgmt::V2018_03_30_preview::Models::StreamingPolicy.mapper()
352
+ result.body = @client.deserialize(result_mapper, parsed_response)
353
+ rescue Exception => e
354
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
355
+ end
356
+ end
357
+
358
+ result
359
+ end
360
+
361
+ promise.execute
362
+ end
363
+
364
+ #
365
+ # Delete a Streaming Policy
366
+ #
367
+ # Deletes a Streaming Policy in the Media Services account
368
+ #
369
+ # @param resource_group_name [String] The name of the resource group within the
370
+ # Azure subscription.
371
+ # @param account_name [String] The Media Services account name.
372
+ # @param streaming_policy_name [String] The Streaming Policy name.
373
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
374
+ # will be added to the HTTP request.
375
+ #
376
+ #
377
+ def delete(resource_group_name, account_name, streaming_policy_name, custom_headers:nil)
378
+ response = delete_async(resource_group_name, account_name, streaming_policy_name, custom_headers:custom_headers).value!
379
+ nil
380
+ end
381
+
382
+ #
383
+ # Delete a Streaming Policy
384
+ #
385
+ # Deletes a Streaming Policy in the Media Services account
386
+ #
387
+ # @param resource_group_name [String] The name of the resource group within the
388
+ # Azure subscription.
389
+ # @param account_name [String] The Media Services account name.
390
+ # @param streaming_policy_name [String] The Streaming Policy name.
391
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
392
+ # will be added to the HTTP request.
393
+ #
394
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
395
+ #
396
+ def delete_with_http_info(resource_group_name, account_name, streaming_policy_name, custom_headers:nil)
397
+ delete_async(resource_group_name, account_name, streaming_policy_name, custom_headers:custom_headers).value!
398
+ end
399
+
400
+ #
401
+ # Delete a Streaming Policy
402
+ #
403
+ # Deletes a Streaming Policy in the Media Services account
404
+ #
405
+ # @param resource_group_name [String] The name of the resource group within the
406
+ # Azure subscription.
407
+ # @param account_name [String] The Media Services account name.
408
+ # @param streaming_policy_name [String] The Streaming Policy name.
409
+ # @param [Hash{String => String}] A hash of custom headers that will be added
410
+ # to the HTTP request.
411
+ #
412
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
413
+ #
414
+ def delete_async(resource_group_name, account_name, streaming_policy_name, custom_headers:nil)
415
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
416
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
417
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
418
+ fail ArgumentError, 'streaming_policy_name is nil' if streaming_policy_name.nil?
419
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
420
+
421
+
422
+ request_headers = {}
423
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
424
+
425
+ # Set Headers
426
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
427
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
428
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies/{streamingPolicyName}'
429
+
430
+ request_url = @base_url || @client.base_url
431
+
432
+ options = {
433
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
434
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'streamingPolicyName' => streaming_policy_name},
435
+ query_params: {'api-version' => @client.api_version},
436
+ headers: request_headers.merge(custom_headers || {}),
437
+ base_url: request_url
438
+ }
439
+ promise = @client.make_request_async(:delete, path_template, options)
440
+
441
+ promise = promise.then do |result|
442
+ http_response = result.response
443
+ status_code = http_response.status
444
+ response_content = http_response.body
445
+ unless status_code == 200 || status_code == 204
446
+ error_model = JSON.load(response_content)
447
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
448
+ end
449
+
450
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
451
+
452
+ result
453
+ end
454
+
455
+ promise.execute
456
+ end
457
+
458
+ #
459
+ # List Streaming Policies
460
+ #
461
+ # Lists the Streaming Policies in the account
462
+ #
463
+ # @param next_page_link [String] The NextLink from the previous successful call
464
+ # to List operation.
465
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
466
+ # will be added to the HTTP request.
467
+ #
468
+ # @return [StreamingPolicyCollection] operation results.
469
+ #
470
+ def list_next(next_page_link, custom_headers:nil)
471
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
472
+ response.body unless response.nil?
473
+ end
474
+
475
+ #
476
+ # List Streaming Policies
477
+ #
478
+ # Lists the Streaming Policies in the account
479
+ #
480
+ # @param next_page_link [String] The NextLink from the previous successful call
481
+ # to List operation.
482
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
483
+ # will be added to the HTTP request.
484
+ #
485
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
486
+ #
487
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
488
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
489
+ end
490
+
491
+ #
492
+ # List Streaming Policies
493
+ #
494
+ # Lists the Streaming Policies in the account
495
+ #
496
+ # @param next_page_link [String] The NextLink from the previous successful call
497
+ # to List operation.
498
+ # @param [Hash{String => String}] A hash of custom headers that will be added
499
+ # to the HTTP request.
500
+ #
501
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
502
+ #
503
+ def list_next_async(next_page_link, custom_headers:nil)
504
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
505
+
506
+
507
+ request_headers = {}
508
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
509
+
510
+ # Set Headers
511
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
512
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
513
+ path_template = '{nextLink}'
514
+
515
+ request_url = @base_url || @client.base_url
516
+
517
+ options = {
518
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
519
+ skip_encoding_path_params: {'nextLink' => next_page_link},
520
+ headers: request_headers.merge(custom_headers || {}),
521
+ base_url: request_url
522
+ }
523
+ promise = @client.make_request_async(:get, path_template, options)
524
+
525
+ promise = promise.then do |result|
526
+ http_response = result.response
527
+ status_code = http_response.status
528
+ response_content = http_response.body
529
+ unless status_code == 200
530
+ error_model = JSON.load(response_content)
531
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
532
+ end
533
+
534
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
535
+ # Deserialize Response
536
+ if status_code == 200
537
+ begin
538
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
539
+ result_mapper = Azure::MediaServices::Mgmt::V2018_03_30_preview::Models::StreamingPolicyCollection.mapper()
540
+ result.body = @client.deserialize(result_mapper, parsed_response)
541
+ rescue Exception => e
542
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
543
+ end
544
+ end
545
+
546
+ result
547
+ end
548
+
549
+ promise.execute
550
+ end
551
+
552
+ #
553
+ # List Streaming Policies
554
+ #
555
+ # Lists the Streaming Policies in the account
556
+ #
557
+ # @param resource_group_name [String] The name of the resource group within the
558
+ # Azure subscription.
559
+ # @param account_name [String] The Media Services account name.
560
+ # @param filter [String] Restricts the set of items returned.
561
+ # @param top [Integer] Specifies a non-negative integer n that limits the
562
+ # number of items returned from a collection. The service returns the number of
563
+ # available items up to but not greater than the specified value n.
564
+ # @param orderby [String] Specifies the the key by which the result collection
565
+ # should be ordered.
566
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
567
+ # will be added to the HTTP request.
568
+ #
569
+ # @return [StreamingPolicyCollection] which provide lazy access to pages of the
570
+ # response.
571
+ #
572
+ def list_as_lazy(resource_group_name, account_name, filter:nil, top:nil, orderby:nil, custom_headers:nil)
573
+ response = list_async(resource_group_name, account_name, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
574
+ unless response.nil?
575
+ page = response.body
576
+ page.next_method = Proc.new do |next_page_link|
577
+ list_next_async(next_page_link, custom_headers:custom_headers)
578
+ end
579
+ page
580
+ end
581
+ end
582
+
583
+ end
584
+ end