azure_mgmt_media_services 0.17.1 → 0.17.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (219) 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/azure_media_services.rb +1 -1
  4. data/lib/2018-06-01-preview/generated/azure_mgmt_media_services/azure_media_services.rb +1 -1
  5. data/lib/2018-07-01/generated/azure_mgmt_media_services.rb +235 -0
  6. data/lib/2018-07-01/generated/azure_mgmt_media_services/account_filters.rb +686 -0
  7. data/lib/2018-07-01/generated/azure_mgmt_media_services/asset_filters.rb +707 -0
  8. data/lib/2018-07-01/generated/azure_mgmt_media_services/assets.rb +1051 -0
  9. data/lib/2018-07-01/generated/azure_mgmt_media_services/azure_media_services.rb +185 -0
  10. data/lib/2018-07-01/generated/azure_mgmt_media_services/content_key_policies.rb +815 -0
  11. data/lib/2018-07-01/generated/azure_mgmt_media_services/jobs.rb +822 -0
  12. data/lib/2018-07-01/generated/azure_mgmt_media_services/live_events.rb +1290 -0
  13. data/lib/2018-07-01/generated/azure_mgmt_media_services/live_outputs.rb +706 -0
  14. data/lib/2018-07-01/generated/azure_mgmt_media_services/locations.rb +130 -0
  15. data/lib/2018-07-01/generated/azure_mgmt_media_services/mediaservices.rb +1069 -0
  16. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/aac_audio.rb +95 -0
  17. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/aac_audio_profile.rb +17 -0
  18. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/account_filter.rb +106 -0
  19. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/account_filter_collection.rb +99 -0
  20. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/akamai_access_control.rb +56 -0
  21. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/akamai_signature_header_authentication_key.rb +68 -0
  22. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/api_error.rb +47 -0
  23. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/asset.rb +157 -0
  24. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/asset_collection.rb +99 -0
  25. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/asset_container_permission.rb +17 -0
  26. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/asset_container_sas.rb +54 -0
  27. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/asset_file_encryption_metadata.rb +68 -0
  28. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/asset_filter.rb +106 -0
  29. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/asset_filter_collection.rb +99 -0
  30. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/asset_storage_encryption_format.rb +16 -0
  31. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/asset_streaming_locator.rb +133 -0
  32. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/audio.rb +92 -0
  33. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/audio_analyzer_preset.rb +72 -0
  34. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/audio_overlay.rb +98 -0
  35. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/built_in_standard_encoder_preset.rb +67 -0
  36. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/cbcs_drm_configuration.rb +73 -0
  37. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/cenc_drm_configuration.rb +61 -0
  38. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/check_name_availability_input.rb +58 -0
  39. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/codec.rb +66 -0
  40. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/common_encryption_cbcs.rb +95 -0
  41. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/common_encryption_cenc.rb +95 -0
  42. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy.rb +129 -0
  43. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_clear_key_configuration.rb +50 -0
  44. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_collection.rb +100 -0
  45. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_configuration.rb +51 -0
  46. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_fair_play_configuration.rb +112 -0
  47. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_fair_play_rental_and_lease_key_type.rb +18 -0
  48. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_open_restriction.rb +51 -0
  49. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_option.rb +87 -0
  50. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_configuration.rb +82 -0
  51. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_encryption_key_from_header.rb +51 -0
  52. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_encryption_key_from_key_identifier.rb +64 -0
  53. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_key_location.rb +49 -0
  54. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_type.rb +18 -0
  55. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_explicit_analog_television_restriction.rb +61 -0
  56. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license.rb +156 -0
  57. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license_type.rb +17 -0
  58. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_play_right.rb +196 -0
  59. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_unknown_output_passing_option.rb +18 -0
  60. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_properties.rb +102 -0
  61. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_restriction.rb +49 -0
  62. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_restriction_token_key.rb +49 -0
  63. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_restriction_token_type.rb +17 -0
  64. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_rsa_token_key.rb +72 -0
  65. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_symmetric_token_key.rb +61 -0
  66. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_token_claim.rb +57 -0
  67. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_token_restriction.rb +156 -0
  68. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_unknown_configuration.rb +51 -0
  69. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_unknown_restriction.rb +51 -0
  70. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_widevine_configuration.rb +61 -0
  71. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_x509certificate_token_key.rb +62 -0
  72. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/copy_audio.rb +58 -0
  73. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/copy_video.rb +59 -0
  74. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/cross_site_access_policies.rb +58 -0
  75. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/default_key.rb +59 -0
  76. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/deinterlace.rb +62 -0
  77. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/deinterlace_mode.rb +16 -0
  78. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/deinterlace_parity.rb +17 -0
  79. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/enabled_protocols.rb +79 -0
  80. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/encoder_named_preset.rb +22 -0
  81. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/encryption_scheme.rb +18 -0
  82. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/entity_name_availability_check_output.rb +69 -0
  83. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/entropy_mode.rb +16 -0
  84. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/envelope_encryption.rb +94 -0
  85. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/filter_track_property_compare_operation.rb +16 -0
  86. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/filter_track_property_condition.rb +73 -0
  87. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/filter_track_property_type.rb +20 -0
  88. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/filter_track_selection.rb +56 -0
  89. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/filters.rb +98 -0
  90. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/first_quality.rb +46 -0
  91. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/format.rb +69 -0
  92. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/h264complexity.rb +17 -0
  93. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/h264layer.rb +191 -0
  94. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/h264video.rb +124 -0
  95. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/h264video_profile.rb +20 -0
  96. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/hls.rb +47 -0
  97. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/image.rb +121 -0
  98. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/image_format.rb +58 -0
  99. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/insights_type.rb +17 -0
  100. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/ipaccess_control.rb +55 -0
  101. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/iprange.rb +68 -0
  102. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/job.rb +186 -0
  103. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/job_collection.rb +99 -0
  104. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/job_error.rb +117 -0
  105. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/job_error_category.rb +19 -0
  106. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/job_error_code.rb +23 -0
  107. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/job_error_detail.rb +59 -0
  108. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/job_input.rb +49 -0
  109. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/job_input_asset.rb +85 -0
  110. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/job_input_clip.rb +85 -0
  111. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/job_input_http.rb +87 -0
  112. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/job_inputs.rb +72 -0
  113. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/job_output.rb +113 -0
  114. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/job_output_asset.rb +98 -0
  115. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/job_retry.rb +16 -0
  116. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/job_state.rb +21 -0
  117. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/jpg_format.rb +58 -0
  118. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/jpg_image.rb +121 -0
  119. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/jpg_layer.rb +86 -0
  120. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/layer.rb +93 -0
  121. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/list_container_sas_input.rb +60 -0
  122. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/list_content_keys_response.rb +56 -0
  123. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/list_paths_response.rb +76 -0
  124. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/list_streaming_locators_response.rb +56 -0
  125. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/live_event.rb +230 -0
  126. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/live_event_action_input.rb +46 -0
  127. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/live_event_encoding.rb +61 -0
  128. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/live_event_encoding_type.rb +16 -0
  129. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/live_event_endpoint.rb +57 -0
  130. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/live_event_input.rb +108 -0
  131. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/live_event_input_access_control.rb +47 -0
  132. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/live_event_input_protocol.rb +16 -0
  133. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/live_event_list_result.rb +110 -0
  134. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/live_event_preview.rb +112 -0
  135. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/live_event_preview_access_control.rb +47 -0
  136. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/live_event_resource_state.rb +19 -0
  137. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/live_output.rb +182 -0
  138. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/live_output_list_result.rb +111 -0
  139. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/live_output_resource_state.rb +17 -0
  140. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/location.rb +47 -0
  141. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/media_service.rb +118 -0
  142. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/media_service_collection.rb +99 -0
  143. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/metric.rb +120 -0
  144. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/metric_aggregation_type.rb +17 -0
  145. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/metric_dimension.rb +71 -0
  146. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/metric_properties.rb +48 -0
  147. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/metric_unit.rb +17 -0
  148. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/mp4format.rb +75 -0
  149. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/multi_bitrate_format.rb +84 -0
  150. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/no_encryption.rb +47 -0
  151. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/odata_error.rb +89 -0
  152. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/on_error_type.rb +16 -0
  153. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/operation.rb +81 -0
  154. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/operation_collection.rb +99 -0
  155. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/operation_display.rb +79 -0
  156. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/output_file.rb +59 -0
  157. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/overlay.rb +132 -0
  158. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/png_format.rb +58 -0
  159. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/png_image.rb +121 -0
  160. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/png_layer.rb +74 -0
  161. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/presentation_time_range.rb +102 -0
  162. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/preset.rb +50 -0
  163. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/priority.rb +17 -0
  164. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/provider.rb +46 -0
  165. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/proxy_resource.rb +62 -0
  166. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/rectangle.rb +88 -0
  167. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/resource.rb +80 -0
  168. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/rotation.rb +20 -0
  169. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/service_specification.rb +56 -0
  170. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/standard_encoder_preset.rb +110 -0
  171. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/storage_account.rb +63 -0
  172. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/storage_account_type.rb +16 -0
  173. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/storage_encrypted_asset_decryption_data.rb +68 -0
  174. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/stream_options_flag.rb +16 -0
  175. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_endpoint.rb +287 -0
  176. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_endpoint_access_control.rb +60 -0
  177. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_endpoint_list_result.rb +111 -0
  178. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_endpoint_resource_state.rb +20 -0
  179. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_entity_scale_unit.rb +46 -0
  180. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_locator.rb +179 -0
  181. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_locator_collection.rb +100 -0
  182. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_locator_content_key.rb +117 -0
  183. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_locator_content_key_type.rb +17 -0
  184. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_path.rb +82 -0
  185. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_policy.rb +133 -0
  186. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_policy_collection.rb +99 -0
  187. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_policy_content_key.rb +78 -0
  188. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_policy_content_keys.rb +68 -0
  189. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_policy_fair_play_configuration.rb +59 -0
  190. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_policy_play_ready_configuration.rb +59 -0
  191. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_policy_streaming_protocol.rb +18 -0
  192. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_policy_widevine_configuration.rb +48 -0
  193. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/stretch_mode.rb +17 -0
  194. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/subscription_media_service.rb +118 -0
  195. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/subscription_media_service_collection.rb +100 -0
  196. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/sync_storage_keys_input.rb +46 -0
  197. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/track_property_compare_operation.rb +16 -0
  198. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/track_property_condition.rb +72 -0
  199. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/track_property_type.rb +16 -0
  200. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/track_selection.rb +56 -0
  201. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/tracked_resource.rb +92 -0
  202. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/transform.rb +123 -0
  203. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/transform_collection.rb +99 -0
  204. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/transform_output.rb +84 -0
  205. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/transport_stream_format.rb +76 -0
  206. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/video.rb +86 -0
  207. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/video_analyzer_preset.rb +75 -0
  208. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/video_layer.rb +156 -0
  209. data/lib/2018-07-01/generated/azure_mgmt_media_services/models/video_overlay.rb +136 -0
  210. data/lib/2018-07-01/generated/azure_mgmt_media_services/module_definition.rb +9 -0
  211. data/lib/2018-07-01/generated/azure_mgmt_media_services/operations.rb +229 -0
  212. data/lib/2018-07-01/generated/azure_mgmt_media_services/streaming_endpoints.rb +1313 -0
  213. data/lib/2018-07-01/generated/azure_mgmt_media_services/streaming_locators.rb +794 -0
  214. data/lib/2018-07-01/generated/azure_mgmt_media_services/streaming_policies.rb +584 -0
  215. data/lib/2018-07-01/generated/azure_mgmt_media_services/transforms.rb +714 -0
  216. data/lib/azure_mgmt_media_services.rb +1 -0
  217. data/lib/profiles/latest/modules/mediaservices_profile_module.rb +512 -424
  218. data/lib/version.rb +1 -1
  219. metadata +213 -2
@@ -0,0 +1,794 @@
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_07_01
7
+ #
8
+ # StreamingLocators
9
+ #
10
+ class StreamingLocators
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the StreamingLocators 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 Locators
26
+ #
27
+ # Lists the Streaming Locators 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<StreamingLocator>] 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 Locators
50
+ #
51
+ # Lists the Streaming Locators 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 Locators
73
+ #
74
+ # Lists the Streaming Locators 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}/streamingLocators'
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_07_01::Models::StreamingLocatorCollection.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 Locator
145
+ #
146
+ # Get the details of a Streaming Locator 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_locator_name [String] The Streaming Locator 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 [StreamingLocator] operation results.
156
+ #
157
+ def get(resource_group_name, account_name, streaming_locator_name, custom_headers:nil)
158
+ response = get_async(resource_group_name, account_name, streaming_locator_name, custom_headers:custom_headers).value!
159
+ response.body unless response.nil?
160
+ end
161
+
162
+ #
163
+ # Get a Streaming Locator
164
+ #
165
+ # Get the details of a Streaming Locator 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_locator_name [String] The Streaming Locator 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_locator_name, custom_headers:nil)
177
+ get_async(resource_group_name, account_name, streaming_locator_name, custom_headers:custom_headers).value!
178
+ end
179
+
180
+ #
181
+ # Get a Streaming Locator
182
+ #
183
+ # Get the details of a Streaming Locator 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_locator_name [String] The Streaming Locator 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_locator_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_locator_name is nil' if streaming_locator_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}/streamingLocators/{streamingLocatorName}'
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,'streamingLocatorName' => streaming_locator_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_07_01::Models::StreamingLocator.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 Locator
250
+ #
251
+ # Create a Streaming Locator 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_locator_name [String] The Streaming Locator name.
257
+ # @param parameters [StreamingLocator] 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 [StreamingLocator] operation results.
262
+ #
263
+ def create(resource_group_name, account_name, streaming_locator_name, parameters, custom_headers:nil)
264
+ response = create_async(resource_group_name, account_name, streaming_locator_name, parameters, custom_headers:custom_headers).value!
265
+ response.body unless response.nil?
266
+ end
267
+
268
+ #
269
+ # Create a Streaming Locator
270
+ #
271
+ # Create a Streaming Locator 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_locator_name [String] The Streaming Locator name.
277
+ # @param parameters [StreamingLocator] 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_locator_name, parameters, custom_headers:nil)
284
+ create_async(resource_group_name, account_name, streaming_locator_name, parameters, custom_headers:custom_headers).value!
285
+ end
286
+
287
+ #
288
+ # Create a Streaming Locator
289
+ #
290
+ # Create a Streaming Locator 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_locator_name [String] The Streaming Locator name.
296
+ # @param parameters [StreamingLocator] 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_locator_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_locator_name is nil' if streaming_locator_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_07_01::Models::StreamingLocator.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}/streamingLocators/{streamingLocatorName}'
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,'streamingLocatorName' => streaming_locator_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_07_01::Models::StreamingLocator.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 Locator
366
+ #
367
+ # Deletes a Streaming Locator 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_locator_name [String] The Streaming Locator 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_locator_name, custom_headers:nil)
378
+ response = delete_async(resource_group_name, account_name, streaming_locator_name, custom_headers:custom_headers).value!
379
+ nil
380
+ end
381
+
382
+ #
383
+ # Delete a Streaming Locator
384
+ #
385
+ # Deletes a Streaming Locator 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_locator_name [String] The Streaming Locator 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_locator_name, custom_headers:nil)
397
+ delete_async(resource_group_name, account_name, streaming_locator_name, custom_headers:custom_headers).value!
398
+ end
399
+
400
+ #
401
+ # Delete a Streaming Locator
402
+ #
403
+ # Deletes a Streaming Locator 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_locator_name [String] The Streaming Locator 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_locator_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_locator_name is nil' if streaming_locator_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}/streamingLocators/{streamingLocatorName}'
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,'streamingLocatorName' => streaming_locator_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 Content Keys
460
+ #
461
+ # List Content Keys used by this Streaming Locator
462
+ #
463
+ # @param resource_group_name [String] The name of the resource group within the
464
+ # Azure subscription.
465
+ # @param account_name [String] The Media Services account name.
466
+ # @param streaming_locator_name [String] The Streaming Locator name.
467
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
468
+ # will be added to the HTTP request.
469
+ #
470
+ # @return [ListContentKeysResponse] operation results.
471
+ #
472
+ def list_content_keys(resource_group_name, account_name, streaming_locator_name, custom_headers:nil)
473
+ response = list_content_keys_async(resource_group_name, account_name, streaming_locator_name, custom_headers:custom_headers).value!
474
+ response.body unless response.nil?
475
+ end
476
+
477
+ #
478
+ # List Content Keys
479
+ #
480
+ # List Content Keys used by this Streaming Locator
481
+ #
482
+ # @param resource_group_name [String] The name of the resource group within the
483
+ # Azure subscription.
484
+ # @param account_name [String] The Media Services account name.
485
+ # @param streaming_locator_name [String] The Streaming Locator name.
486
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
487
+ # will be added to the HTTP request.
488
+ #
489
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
490
+ #
491
+ def list_content_keys_with_http_info(resource_group_name, account_name, streaming_locator_name, custom_headers:nil)
492
+ list_content_keys_async(resource_group_name, account_name, streaming_locator_name, custom_headers:custom_headers).value!
493
+ end
494
+
495
+ #
496
+ # List Content Keys
497
+ #
498
+ # List Content Keys used by this Streaming Locator
499
+ #
500
+ # @param resource_group_name [String] The name of the resource group within the
501
+ # Azure subscription.
502
+ # @param account_name [String] The Media Services account name.
503
+ # @param streaming_locator_name [String] The Streaming Locator name.
504
+ # @param [Hash{String => String}] A hash of custom headers that will be added
505
+ # to the HTTP request.
506
+ #
507
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
508
+ #
509
+ def list_content_keys_async(resource_group_name, account_name, streaming_locator_name, custom_headers:nil)
510
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
511
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
512
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
513
+ fail ArgumentError, 'streaming_locator_name is nil' if streaming_locator_name.nil?
514
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
515
+
516
+
517
+ request_headers = {}
518
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
519
+
520
+ # Set Headers
521
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
522
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
523
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listContentKeys'
524
+
525
+ request_url = @base_url || @client.base_url
526
+
527
+ options = {
528
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
529
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'streamingLocatorName' => streaming_locator_name},
530
+ query_params: {'api-version' => @client.api_version},
531
+ headers: request_headers.merge(custom_headers || {}),
532
+ base_url: request_url
533
+ }
534
+ promise = @client.make_request_async(:post, path_template, options)
535
+
536
+ promise = promise.then do |result|
537
+ http_response = result.response
538
+ status_code = http_response.status
539
+ response_content = http_response.body
540
+ unless status_code == 200
541
+ error_model = JSON.load(response_content)
542
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
543
+ end
544
+
545
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
546
+ # Deserialize Response
547
+ if status_code == 200
548
+ begin
549
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
550
+ result_mapper = Azure::MediaServices::Mgmt::V2018_07_01::Models::ListContentKeysResponse.mapper()
551
+ result.body = @client.deserialize(result_mapper, parsed_response)
552
+ rescue Exception => e
553
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
554
+ end
555
+ end
556
+
557
+ result
558
+ end
559
+
560
+ promise.execute
561
+ end
562
+
563
+ #
564
+ # List Paths
565
+ #
566
+ # List Paths supported by this Streaming Locator
567
+ #
568
+ # @param resource_group_name [String] The name of the resource group within the
569
+ # Azure subscription.
570
+ # @param account_name [String] The Media Services account name.
571
+ # @param streaming_locator_name [String] The Streaming Locator name.
572
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
573
+ # will be added to the HTTP request.
574
+ #
575
+ # @return [ListPathsResponse] operation results.
576
+ #
577
+ def list_paths(resource_group_name, account_name, streaming_locator_name, custom_headers:nil)
578
+ response = list_paths_async(resource_group_name, account_name, streaming_locator_name, custom_headers:custom_headers).value!
579
+ response.body unless response.nil?
580
+ end
581
+
582
+ #
583
+ # List Paths
584
+ #
585
+ # List Paths supported by this Streaming Locator
586
+ #
587
+ # @param resource_group_name [String] The name of the resource group within the
588
+ # Azure subscription.
589
+ # @param account_name [String] The Media Services account name.
590
+ # @param streaming_locator_name [String] The Streaming Locator name.
591
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
592
+ # will be added to the HTTP request.
593
+ #
594
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
595
+ #
596
+ def list_paths_with_http_info(resource_group_name, account_name, streaming_locator_name, custom_headers:nil)
597
+ list_paths_async(resource_group_name, account_name, streaming_locator_name, custom_headers:custom_headers).value!
598
+ end
599
+
600
+ #
601
+ # List Paths
602
+ #
603
+ # List Paths supported by this Streaming Locator
604
+ #
605
+ # @param resource_group_name [String] The name of the resource group within the
606
+ # Azure subscription.
607
+ # @param account_name [String] The Media Services account name.
608
+ # @param streaming_locator_name [String] The Streaming Locator name.
609
+ # @param [Hash{String => String}] A hash of custom headers that will be added
610
+ # to the HTTP request.
611
+ #
612
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
613
+ #
614
+ def list_paths_async(resource_group_name, account_name, streaming_locator_name, custom_headers:nil)
615
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
616
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
617
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
618
+ fail ArgumentError, 'streaming_locator_name is nil' if streaming_locator_name.nil?
619
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
620
+
621
+
622
+ request_headers = {}
623
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
624
+
625
+ # Set Headers
626
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
627
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
628
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listPaths'
629
+
630
+ request_url = @base_url || @client.base_url
631
+
632
+ options = {
633
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
634
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'streamingLocatorName' => streaming_locator_name},
635
+ query_params: {'api-version' => @client.api_version},
636
+ headers: request_headers.merge(custom_headers || {}),
637
+ base_url: request_url
638
+ }
639
+ promise = @client.make_request_async(:post, path_template, options)
640
+
641
+ promise = promise.then do |result|
642
+ http_response = result.response
643
+ status_code = http_response.status
644
+ response_content = http_response.body
645
+ unless status_code == 200
646
+ error_model = JSON.load(response_content)
647
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
648
+ end
649
+
650
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
651
+ # Deserialize Response
652
+ if status_code == 200
653
+ begin
654
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
655
+ result_mapper = Azure::MediaServices::Mgmt::V2018_07_01::Models::ListPathsResponse.mapper()
656
+ result.body = @client.deserialize(result_mapper, parsed_response)
657
+ rescue Exception => e
658
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
659
+ end
660
+ end
661
+
662
+ result
663
+ end
664
+
665
+ promise.execute
666
+ end
667
+
668
+ #
669
+ # List Streaming Locators
670
+ #
671
+ # Lists the Streaming Locators in the account
672
+ #
673
+ # @param next_page_link [String] The NextLink from the previous successful call
674
+ # to List operation.
675
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
676
+ # will be added to the HTTP request.
677
+ #
678
+ # @return [StreamingLocatorCollection] operation results.
679
+ #
680
+ def list_next(next_page_link, custom_headers:nil)
681
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
682
+ response.body unless response.nil?
683
+ end
684
+
685
+ #
686
+ # List Streaming Locators
687
+ #
688
+ # Lists the Streaming Locators in the account
689
+ #
690
+ # @param next_page_link [String] The NextLink from the previous successful call
691
+ # to List operation.
692
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
693
+ # will be added to the HTTP request.
694
+ #
695
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
696
+ #
697
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
698
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
699
+ end
700
+
701
+ #
702
+ # List Streaming Locators
703
+ #
704
+ # Lists the Streaming Locators in the account
705
+ #
706
+ # @param next_page_link [String] The NextLink from the previous successful call
707
+ # to List operation.
708
+ # @param [Hash{String => String}] A hash of custom headers that will be added
709
+ # to the HTTP request.
710
+ #
711
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
712
+ #
713
+ def list_next_async(next_page_link, custom_headers:nil)
714
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
715
+
716
+
717
+ request_headers = {}
718
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
719
+
720
+ # Set Headers
721
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
722
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
723
+ path_template = '{nextLink}'
724
+
725
+ request_url = @base_url || @client.base_url
726
+
727
+ options = {
728
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
729
+ skip_encoding_path_params: {'nextLink' => next_page_link},
730
+ headers: request_headers.merge(custom_headers || {}),
731
+ base_url: request_url
732
+ }
733
+ promise = @client.make_request_async(:get, path_template, options)
734
+
735
+ promise = promise.then do |result|
736
+ http_response = result.response
737
+ status_code = http_response.status
738
+ response_content = http_response.body
739
+ unless status_code == 200
740
+ error_model = JSON.load(response_content)
741
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
742
+ end
743
+
744
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
745
+ # Deserialize Response
746
+ if status_code == 200
747
+ begin
748
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
749
+ result_mapper = Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingLocatorCollection.mapper()
750
+ result.body = @client.deserialize(result_mapper, parsed_response)
751
+ rescue Exception => e
752
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
753
+ end
754
+ end
755
+
756
+ result
757
+ end
758
+
759
+ promise.execute
760
+ end
761
+
762
+ #
763
+ # List Streaming Locators
764
+ #
765
+ # Lists the Streaming Locators in the account
766
+ #
767
+ # @param resource_group_name [String] The name of the resource group within the
768
+ # Azure subscription.
769
+ # @param account_name [String] The Media Services account name.
770
+ # @param filter [String] Restricts the set of items returned.
771
+ # @param top [Integer] Specifies a non-negative integer n that limits the
772
+ # number of items returned from a collection. The service returns the number of
773
+ # available items up to but not greater than the specified value n.
774
+ # @param orderby [String] Specifies the the key by which the result collection
775
+ # should be ordered.
776
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
777
+ # will be added to the HTTP request.
778
+ #
779
+ # @return [StreamingLocatorCollection] which provide lazy access to pages of
780
+ # the response.
781
+ #
782
+ def list_as_lazy(resource_group_name, account_name, filter:nil, top:nil, orderby:nil, custom_headers:nil)
783
+ response = list_async(resource_group_name, account_name, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
784
+ unless response.nil?
785
+ page = response.body
786
+ page.next_method = Proc.new do |next_page_link|
787
+ list_next_async(next_page_link, custom_headers:custom_headers)
788
+ end
789
+ page
790
+ end
791
+ end
792
+
793
+ end
794
+ end