azure_mgmt_media_services 0.21.0 → 0.21.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (262) 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/azure_media_services.rb +1 -1
  6. data/lib/2020-05-01/generated/azure_mgmt_media_services.rb +96 -72
  7. data/lib/2020-05-01/generated/azure_mgmt_media_services/azure_media_services.rb +1 -1
  8. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/account_filter.rb +13 -0
  9. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/asset.rb +13 -0
  10. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/asset_filter.rb +13 -0
  11. data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/aac_audio_profile.rb → 2020-05-01/generated/azure_mgmt_media_services/models/attribute_filter.rb} +7 -6
  12. data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/copy_audio.rb → 2020-05-01/generated/azure_mgmt_media_services/models/audio_track_descriptor.rb} +20 -13
  13. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/azure_entity_resource.rb +3 -1
  14. data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/priority.rb → 2020-05-01/generated/azure_mgmt_media_services/models/blur_type.rb} +6 -4
  15. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/built_in_standard_encoder_preset.rb +3 -1
  16. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/channel_mapping.rb +22 -0
  17. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/codec.rb +1 -0
  18. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy.rb +13 -0
  19. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/created_by_type.rb +18 -0
  20. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/encoder_named_preset.rb +5 -0
  21. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/face_detector_preset.rb +33 -1
  22. data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_input_protocol.rb → 2020-05-01/generated/azure_mgmt_media_services/models/face_redactor_mode.rb} +6 -5
  23. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/format.rb +2 -2
  24. data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_configuration.rb → 2020-05-01/generated/azure_mgmt_media_services/models/from_all_input_file.rb} +20 -30
  25. data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/mp4format.rb → 2020-05-01/generated/azure_mgmt_media_services/models/from_each_input_file.rb} +24 -27
  26. data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/h264complexity.rb → 2020-05-01/generated/azure_mgmt_media_services/models/h265complexity.rb} +3 -3
  27. data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/h264layer.rb → 2020-05-01/generated/azure_mgmt_media_services/models/h265layer.rb} +10 -24
  28. data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/h264video.rb → 2020-05-01/generated/azure_mgmt_media_services/models/h265video.rb} +27 -17
  29. data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/video_layer.rb → 2020-05-01/generated/azure_mgmt_media_services/models/h265video_layer.rb} +12 -11
  30. data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/entropy_mode.rb → 2020-05-01/generated/azure_mgmt_media_services/models/h265video_profile.rb} +5 -5
  31. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/input_definition.rb +72 -0
  32. data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/transport_stream_format.rb → 2020-05-01/generated/azure_mgmt_media_services/models/input_file.rb} +30 -24
  33. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job.rb +13 -0
  34. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job_input.rb +1 -0
  35. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job_input_asset.rb +19 -0
  36. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job_input_clip.rb +24 -0
  37. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job_input_http.rb +19 -0
  38. data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/job_inputs.rb → 2020-05-01/generated/azure_mgmt_media_services/models/job_input_sequence.rb} +11 -12
  39. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/layer.rb +2 -0
  40. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/live_event.rb +13 -0
  41. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/media_service.rb +13 -0
  42. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/metric_specification.rb +13 -0
  43. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb +4 -3
  44. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/proxy_resource.rb +4 -2
  45. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/resource.rb +8 -5
  46. data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/job_output_asset.rb → 2020-05-01/generated/azure_mgmt_media_services/models/select_audio_track_by_attribute.rb} +34 -35
  47. data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/png_layer.rb → 2020-05-01/generated/azure_mgmt_media_services/models/select_audio_track_by_id.rb} +18 -23
  48. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/select_video_track_by_attribute.rb +91 -0
  49. data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/image_format.rb → 2020-05-01/generated/azure_mgmt_media_services/models/select_video_track_by_id.rb} +15 -12
  50. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_endpoint.rb +13 -0
  51. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_locator.rb +13 -0
  52. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_policy.rb +13 -0
  53. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/system_data.rb +105 -0
  54. data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/job_retry.rb → 2020-05-01/generated/azure_mgmt_media_services/models/track_attribute.rb} +5 -5
  55. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/track_descriptor.rb +52 -0
  56. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/tracked_resource.rb +4 -1
  57. data/lib/2020-05-01/generated/azure_mgmt_media_services/models/transform.rb +13 -0
  58. data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_clear_key_configuration.rb → 2020-05-01/generated/azure_mgmt_media_services/models/video_track_descriptor.rb} +7 -7
  59. data/lib/azure_mgmt_media_services.rb +0 -1
  60. data/lib/profiles/latest/modules/mediaservices_profile_module.rb +336 -240
  61. data/lib/version.rb +1 -1
  62. metadata +26 -220
  63. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services.rb +0 -242
  64. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/account_filters.rb +0 -698
  65. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/asset_filters.rb +0 -719
  66. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/assets.rb +0 -1069
  67. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/azure_media_services.rb +0 -180
  68. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/content_key_policies.rb +0 -829
  69. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/jobs.rb +0 -826
  70. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/live_events.rb +0 -1308
  71. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/live_outputs.rb +0 -716
  72. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/locations.rb +0 -132
  73. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/mediaservices.rb +0 -1089
  74. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/aac_audio.rb +0 -94
  75. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/absolute_clip_time.rb +0 -65
  76. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/account_filter.rb +0 -106
  77. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/account_filter_collection.rb +0 -99
  78. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/akamai_access_control.rb +0 -56
  79. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/akamai_signature_header_authentication_key.rb +0 -68
  80. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/analysis_resolution.rb +0 -16
  81. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/api_error.rb +0 -47
  82. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/asset.rb +0 -156
  83. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/asset_collection.rb +0 -99
  84. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/asset_container_permission.rb +0 -17
  85. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/asset_container_sas.rb +0 -54
  86. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/asset_file_encryption_metadata.rb +0 -68
  87. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/asset_filter.rb +0 -106
  88. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/asset_filter_collection.rb +0 -99
  89. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/asset_storage_encryption_format.rb +0 -16
  90. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/asset_streaming_locator.rb +0 -133
  91. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/audio.rb +0 -92
  92. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/audio_analyzer_preset.rb +0 -79
  93. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/audio_overlay.rb +0 -98
  94. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/built_in_standard_encoder_preset.rb +0 -67
  95. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/cbcs_drm_configuration.rb +0 -73
  96. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/cenc_drm_configuration.rb +0 -61
  97. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/check_name_availability_input.rb +0 -58
  98. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/clip_time.rb +0 -47
  99. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/codec.rb +0 -66
  100. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/common_encryption_cbcs.rb +0 -95
  101. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/common_encryption_cenc.rb +0 -95
  102. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy.rb +0 -129
  103. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_collection.rb +0 -100
  104. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_configuration.rb +0 -51
  105. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_fair_play_configuration.rb +0 -111
  106. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_fair_play_rental_and_lease_key_type.rb +0 -18
  107. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_open_restriction.rb +0 -51
  108. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_option.rb +0 -87
  109. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_encryption_key_from_header.rb +0 -51
  110. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_encryption_key_from_key_identifier.rb +0 -64
  111. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_key_location.rb +0 -49
  112. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_type.rb +0 -18
  113. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_explicit_analog_television_restriction.rb +0 -61
  114. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license.rb +0 -154
  115. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license_type.rb +0 -17
  116. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_play_right.rb +0 -195
  117. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_unknown_output_passing_option.rb +0 -18
  118. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_properties.rb +0 -102
  119. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_restriction.rb +0 -49
  120. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_restriction_token_key.rb +0 -49
  121. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_restriction_token_type.rb +0 -17
  122. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_rsa_token_key.rb +0 -72
  123. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_symmetric_token_key.rb +0 -61
  124. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_token_claim.rb +0 -57
  125. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_token_restriction.rb +0 -155
  126. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_unknown_configuration.rb +0 -51
  127. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_unknown_restriction.rb +0 -51
  128. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_widevine_configuration.rb +0 -61
  129. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_x509certificate_token_key.rb +0 -62
  130. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/copy_video.rb +0 -59
  131. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/cross_site_access_policies.rb +0 -58
  132. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/default_key.rb +0 -59
  133. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/deinterlace.rb +0 -60
  134. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/deinterlace_mode.rb +0 -16
  135. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/deinterlace_parity.rb +0 -17
  136. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/enabled_protocols.rb +0 -79
  137. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/encoder_named_preset.rb +0 -23
  138. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/encryption_scheme.rb +0 -18
  139. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/entity_name_availability_check_output.rb +0 -69
  140. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/envelope_encryption.rb +0 -100
  141. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/face_detector_preset.rb +0 -75
  142. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/filter_track_property_compare_operation.rb +0 -16
  143. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/filter_track_property_condition.rb +0 -71
  144. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/filter_track_property_type.rb +0 -20
  145. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/filter_track_selection.rb +0 -56
  146. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/filters.rb +0 -97
  147. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/first_quality.rb +0 -46
  148. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/format.rb +0 -69
  149. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/h264video_profile.rb +0 -20
  150. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/hls.rb +0 -47
  151. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/image.rb +0 -120
  152. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/insights_type.rb +0 -17
  153. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/ipaccess_control.rb +0 -55
  154. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/iprange.rb +0 -68
  155. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job.rb +0 -184
  156. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job_collection.rb +0 -99
  157. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job_error.rb +0 -114
  158. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job_error_category.rb +0 -19
  159. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job_error_code.rb +0 -23
  160. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job_error_detail.rb +0 -59
  161. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job_input.rb +0 -49
  162. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job_input_asset.rb +0 -107
  163. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job_input_clip.rb +0 -117
  164. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job_input_http.rb +0 -110
  165. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job_output.rb +0 -112
  166. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job_state.rb +0 -21
  167. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/jpg_format.rb +0 -58
  168. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/jpg_image.rb +0 -120
  169. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/jpg_layer.rb +0 -86
  170. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/layer.rb +0 -93
  171. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/list_container_sas_input.rb +0 -59
  172. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/list_content_keys_response.rb +0 -56
  173. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/list_paths_response.rb +0 -76
  174. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/list_streaming_locators_response.rb +0 -56
  175. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event.rb +0 -248
  176. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_action_input.rb +0 -46
  177. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_encoding.rb +0 -60
  178. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_encoding_type.rb +0 -18
  179. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_endpoint.rb +0 -57
  180. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_input.rb +0 -107
  181. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_input_access_control.rb +0 -47
  182. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_input_track_selection.rb +0 -68
  183. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_list_result.rb +0 -110
  184. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_output_transcription_track.rb +0 -47
  185. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_preview.rb +0 -112
  186. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_preview_access_control.rb +0 -47
  187. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_resource_state.rb +0 -19
  188. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_transcription.rb +0 -87
  189. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_output.rb +0 -181
  190. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_output_list_result.rb +0 -111
  191. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_output_resource_state.rb +0 -17
  192. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/location.rb +0 -47
  193. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/media_service.rb +0 -118
  194. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/media_service_collection.rb +0 -99
  195. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/metric.rb +0 -118
  196. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/metric_aggregation_type.rb +0 -17
  197. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/metric_dimension.rb +0 -71
  198. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/metric_properties.rb +0 -48
  199. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/metric_unit.rb +0 -17
  200. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/multi_bitrate_format.rb +0 -84
  201. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/no_encryption.rb +0 -47
  202. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/odata_error.rb +0 -89
  203. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/on_error_type.rb +0 -16
  204. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/operation.rb +0 -81
  205. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/operation_collection.rb +0 -99
  206. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/operation_display.rb +0 -79
  207. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/output_file.rb +0 -59
  208. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/overlay.rb +0 -132
  209. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/png_format.rb +0 -58
  210. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/png_image.rb +0 -120
  211. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/presentation_time_range.rb +0 -102
  212. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/preset.rb +0 -51
  213. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/provider.rb +0 -46
  214. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/proxy_resource.rb +0 -62
  215. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/rectangle.rb +0 -88
  216. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/resource.rb +0 -80
  217. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/rotation.rb +0 -20
  218. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/service_specification.rb +0 -56
  219. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/standard_encoder_preset.rb +0 -110
  220. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/storage_account.rb +0 -62
  221. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/storage_account_type.rb +0 -16
  222. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/storage_encrypted_asset_decryption_data.rb +0 -68
  223. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/stream_options_flag.rb +0 -16
  224. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_endpoint.rb +0 -286
  225. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_endpoint_access_control.rb +0 -60
  226. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_endpoint_list_result.rb +0 -111
  227. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_endpoint_resource_state.rb +0 -20
  228. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_entity_scale_unit.rb +0 -46
  229. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_locator.rb +0 -199
  230. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_locator_collection.rb +0 -100
  231. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_locator_content_key.rb +0 -116
  232. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_locator_content_key_type.rb +0 -17
  233. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_path.rb +0 -80
  234. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_policy.rb +0 -133
  235. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_policy_collection.rb +0 -99
  236. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_policy_content_key.rb +0 -78
  237. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_policy_content_keys.rb +0 -68
  238. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_policy_fair_play_configuration.rb +0 -64
  239. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_policy_play_ready_configuration.rb +0 -64
  240. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_policy_streaming_protocol.rb +0 -18
  241. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_policy_widevine_configuration.rb +0 -53
  242. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/stretch_mode.rb +0 -17
  243. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/subscription_media_service.rb +0 -118
  244. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/subscription_media_service_collection.rb +0 -100
  245. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/sync_storage_keys_input.rb +0 -46
  246. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/track_property_compare_operation.rb +0 -16
  247. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/track_property_condition.rb +0 -70
  248. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/track_property_type.rb +0 -16
  249. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/track_selection.rb +0 -56
  250. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/tracked_resource.rb +0 -92
  251. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/transform.rb +0 -123
  252. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/transform_collection.rb +0 -99
  253. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/transform_output.rb +0 -82
  254. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/video.rb +0 -85
  255. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/video_analyzer_preset.rb +0 -79
  256. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/video_overlay.rb +0 -136
  257. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/module_definition.rb +0 -9
  258. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/operations.rb +0 -233
  259. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/streaming_endpoints.rb +0 -1331
  260. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/streaming_locators.rb +0 -808
  261. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/streaming_policies.rb +0 -594
  262. data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/transforms.rb +0 -710
@@ -1,808 +0,0 @@
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::V2019_05_01_preview
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 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 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 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
- api_version = '2018-07-01'
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' => 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
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
127
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
128
- # Deserialize Response
129
- if status_code == 200
130
- begin
131
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
132
- result_mapper = Azure::MediaServices::Mgmt::V2019_05_01_preview::Models::StreamingLocatorCollection.mapper()
133
- result.body = @client.deserialize(result_mapper, parsed_response)
134
- rescue Exception => e
135
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
136
- end
137
- end
138
-
139
- result
140
- end
141
-
142
- promise.execute
143
- end
144
-
145
- #
146
- # Get a Streaming Locator
147
- #
148
- # Get the details of a Streaming Locator in the Media Services account
149
- #
150
- # @param resource_group_name [String] The name of the resource group within the
151
- # Azure subscription.
152
- # @param account_name [String] The Media Services account name.
153
- # @param streaming_locator_name [String] The Streaming Locator name.
154
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
155
- # will be added to the HTTP request.
156
- #
157
- # @return [StreamingLocator] operation results.
158
- #
159
- def get(resource_group_name, account_name, streaming_locator_name, custom_headers:nil)
160
- response = get_async(resource_group_name, account_name, streaming_locator_name, custom_headers:custom_headers).value!
161
- response.body unless response.nil?
162
- end
163
-
164
- #
165
- # Get a Streaming Locator
166
- #
167
- # Get the details of a Streaming Locator in the Media Services account
168
- #
169
- # @param resource_group_name [String] The name of the resource group within the
170
- # Azure subscription.
171
- # @param account_name [String] The Media Services account name.
172
- # @param streaming_locator_name [String] The Streaming Locator name.
173
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
174
- # will be added to the HTTP request.
175
- #
176
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
177
- #
178
- def get_with_http_info(resource_group_name, account_name, streaming_locator_name, custom_headers:nil)
179
- get_async(resource_group_name, account_name, streaming_locator_name, custom_headers:custom_headers).value!
180
- end
181
-
182
- #
183
- # Get a Streaming Locator
184
- #
185
- # Get the details of a Streaming Locator in the Media Services account
186
- #
187
- # @param resource_group_name [String] The name of the resource group within the
188
- # Azure subscription.
189
- # @param account_name [String] The Media Services account name.
190
- # @param streaming_locator_name [String] The Streaming Locator name.
191
- # @param [Hash{String => String}] A hash of custom headers that will be added
192
- # to the HTTP request.
193
- #
194
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
195
- #
196
- def get_async(resource_group_name, account_name, streaming_locator_name, custom_headers:nil)
197
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
198
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
199
- fail ArgumentError, 'account_name is nil' if account_name.nil?
200
- fail ArgumentError, 'streaming_locator_name is nil' if streaming_locator_name.nil?
201
- api_version = '2018-07-01'
202
-
203
-
204
- request_headers = {}
205
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
206
-
207
- # Set Headers
208
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
209
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
210
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}'
211
-
212
- request_url = @base_url || @client.base_url
213
-
214
- options = {
215
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
216
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'streamingLocatorName' => streaming_locator_name},
217
- query_params: {'api-version' => api_version},
218
- headers: request_headers.merge(custom_headers || {}),
219
- base_url: request_url
220
- }
221
- promise = @client.make_request_async(:get, path_template, options)
222
-
223
- promise = promise.then do |result|
224
- http_response = result.response
225
- status_code = http_response.status
226
- response_content = http_response.body
227
- unless status_code == 200 || status_code == 404
228
- error_model = JSON.load(response_content)
229
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
230
- end
231
-
232
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
233
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
234
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
235
- # Deserialize Response
236
- if status_code == 200
237
- begin
238
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
239
- result_mapper = Azure::MediaServices::Mgmt::V2019_05_01_preview::Models::StreamingLocator.mapper()
240
- result.body = @client.deserialize(result_mapper, parsed_response)
241
- rescue Exception => e
242
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
243
- end
244
- end
245
-
246
- result
247
- end
248
-
249
- promise.execute
250
- end
251
-
252
- #
253
- # Create a Streaming Locator
254
- #
255
- # Create a Streaming Locator in the Media Services account
256
- #
257
- # @param resource_group_name [String] The name of the resource group within the
258
- # Azure subscription.
259
- # @param account_name [String] The Media Services account name.
260
- # @param streaming_locator_name [String] The Streaming Locator name.
261
- # @param parameters [StreamingLocator] The request parameters
262
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
263
- # will be added to the HTTP request.
264
- #
265
- # @return [StreamingLocator] operation results.
266
- #
267
- def create(resource_group_name, account_name, streaming_locator_name, parameters, custom_headers:nil)
268
- response = create_async(resource_group_name, account_name, streaming_locator_name, parameters, custom_headers:custom_headers).value!
269
- response.body unless response.nil?
270
- end
271
-
272
- #
273
- # Create a Streaming Locator
274
- #
275
- # Create a Streaming Locator in the Media Services account
276
- #
277
- # @param resource_group_name [String] The name of the resource group within the
278
- # Azure subscription.
279
- # @param account_name [String] The Media Services account name.
280
- # @param streaming_locator_name [String] The Streaming Locator name.
281
- # @param parameters [StreamingLocator] The request parameters
282
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
283
- # will be added to the HTTP request.
284
- #
285
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
286
- #
287
- def create_with_http_info(resource_group_name, account_name, streaming_locator_name, parameters, custom_headers:nil)
288
- create_async(resource_group_name, account_name, streaming_locator_name, parameters, custom_headers:custom_headers).value!
289
- end
290
-
291
- #
292
- # Create a Streaming Locator
293
- #
294
- # Create a Streaming Locator in the Media Services account
295
- #
296
- # @param resource_group_name [String] The name of the resource group within the
297
- # Azure subscription.
298
- # @param account_name [String] The Media Services account name.
299
- # @param streaming_locator_name [String] The Streaming Locator name.
300
- # @param parameters [StreamingLocator] The request parameters
301
- # @param [Hash{String => String}] A hash of custom headers that will be added
302
- # to the HTTP request.
303
- #
304
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
305
- #
306
- def create_async(resource_group_name, account_name, streaming_locator_name, parameters, custom_headers:nil)
307
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
308
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
309
- fail ArgumentError, 'account_name is nil' if account_name.nil?
310
- fail ArgumentError, 'streaming_locator_name is nil' if streaming_locator_name.nil?
311
- fail ArgumentError, 'parameters is nil' if parameters.nil?
312
- api_version = '2018-07-01'
313
-
314
-
315
- request_headers = {}
316
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
317
-
318
- # Set Headers
319
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
320
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
321
-
322
- # Serialize Request
323
- request_mapper = Azure::MediaServices::Mgmt::V2019_05_01_preview::Models::StreamingLocator.mapper()
324
- request_content = @client.serialize(request_mapper, parameters)
325
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
326
-
327
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}'
328
-
329
- request_url = @base_url || @client.base_url
330
-
331
- options = {
332
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
333
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'streamingLocatorName' => streaming_locator_name},
334
- query_params: {'api-version' => api_version},
335
- body: request_content,
336
- headers: request_headers.merge(custom_headers || {}),
337
- base_url: request_url
338
- }
339
- promise = @client.make_request_async(:put, path_template, options)
340
-
341
- promise = promise.then do |result|
342
- http_response = result.response
343
- status_code = http_response.status
344
- response_content = http_response.body
345
- unless status_code == 201
346
- error_model = JSON.load(response_content)
347
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
348
- end
349
-
350
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
351
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
352
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
353
- # Deserialize Response
354
- if status_code == 201
355
- begin
356
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
357
- result_mapper = Azure::MediaServices::Mgmt::V2019_05_01_preview::Models::StreamingLocator.mapper()
358
- result.body = @client.deserialize(result_mapper, parsed_response)
359
- rescue Exception => e
360
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
361
- end
362
- end
363
-
364
- result
365
- end
366
-
367
- promise.execute
368
- end
369
-
370
- #
371
- # Delete a Streaming Locator
372
- #
373
- # Deletes a Streaming Locator in the Media Services account
374
- #
375
- # @param resource_group_name [String] The name of the resource group within the
376
- # Azure subscription.
377
- # @param account_name [String] The Media Services account name.
378
- # @param streaming_locator_name [String] The Streaming Locator name.
379
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
380
- # will be added to the HTTP request.
381
- #
382
- #
383
- def delete(resource_group_name, account_name, streaming_locator_name, custom_headers:nil)
384
- response = delete_async(resource_group_name, account_name, streaming_locator_name, custom_headers:custom_headers).value!
385
- nil
386
- end
387
-
388
- #
389
- # Delete a Streaming Locator
390
- #
391
- # Deletes a Streaming Locator in the Media Services account
392
- #
393
- # @param resource_group_name [String] The name of the resource group within the
394
- # Azure subscription.
395
- # @param account_name [String] The Media Services account name.
396
- # @param streaming_locator_name [String] The Streaming Locator name.
397
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
398
- # will be added to the HTTP request.
399
- #
400
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
401
- #
402
- def delete_with_http_info(resource_group_name, account_name, streaming_locator_name, custom_headers:nil)
403
- delete_async(resource_group_name, account_name, streaming_locator_name, custom_headers:custom_headers).value!
404
- end
405
-
406
- #
407
- # Delete a Streaming Locator
408
- #
409
- # Deletes a Streaming Locator in the Media Services account
410
- #
411
- # @param resource_group_name [String] The name of the resource group within the
412
- # Azure subscription.
413
- # @param account_name [String] The Media Services account name.
414
- # @param streaming_locator_name [String] The Streaming Locator name.
415
- # @param [Hash{String => String}] A hash of custom headers that will be added
416
- # to the HTTP request.
417
- #
418
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
419
- #
420
- def delete_async(resource_group_name, account_name, streaming_locator_name, custom_headers:nil)
421
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
422
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
423
- fail ArgumentError, 'account_name is nil' if account_name.nil?
424
- fail ArgumentError, 'streaming_locator_name is nil' if streaming_locator_name.nil?
425
- api_version = '2018-07-01'
426
-
427
-
428
- request_headers = {}
429
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
430
-
431
- # Set Headers
432
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
433
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
434
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}'
435
-
436
- request_url = @base_url || @client.base_url
437
-
438
- options = {
439
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
440
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'streamingLocatorName' => streaming_locator_name},
441
- query_params: {'api-version' => api_version},
442
- headers: request_headers.merge(custom_headers || {}),
443
- base_url: request_url
444
- }
445
- promise = @client.make_request_async(:delete, path_template, options)
446
-
447
- promise = promise.then do |result|
448
- http_response = result.response
449
- status_code = http_response.status
450
- response_content = http_response.body
451
- unless status_code == 200 || status_code == 204
452
- error_model = JSON.load(response_content)
453
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
454
- end
455
-
456
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
457
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
458
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
459
-
460
- result
461
- end
462
-
463
- promise.execute
464
- end
465
-
466
- #
467
- # List Content Keys
468
- #
469
- # List Content Keys used by this Streaming Locator
470
- #
471
- # @param resource_group_name [String] The name of the resource group within the
472
- # Azure subscription.
473
- # @param account_name [String] The Media Services account name.
474
- # @param streaming_locator_name [String] The Streaming Locator name.
475
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
476
- # will be added to the HTTP request.
477
- #
478
- # @return [ListContentKeysResponse] operation results.
479
- #
480
- def list_content_keys(resource_group_name, account_name, streaming_locator_name, custom_headers:nil)
481
- response = list_content_keys_async(resource_group_name, account_name, streaming_locator_name, custom_headers:custom_headers).value!
482
- response.body unless response.nil?
483
- end
484
-
485
- #
486
- # List Content Keys
487
- #
488
- # List Content Keys used by this Streaming Locator
489
- #
490
- # @param resource_group_name [String] The name of the resource group within the
491
- # Azure subscription.
492
- # @param account_name [String] The Media Services account name.
493
- # @param streaming_locator_name [String] The Streaming Locator name.
494
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
495
- # will be added to the HTTP request.
496
- #
497
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
498
- #
499
- def list_content_keys_with_http_info(resource_group_name, account_name, streaming_locator_name, custom_headers:nil)
500
- list_content_keys_async(resource_group_name, account_name, streaming_locator_name, custom_headers:custom_headers).value!
501
- end
502
-
503
- #
504
- # List Content Keys
505
- #
506
- # List Content Keys used by this Streaming Locator
507
- #
508
- # @param resource_group_name [String] The name of the resource group within the
509
- # Azure subscription.
510
- # @param account_name [String] The Media Services account name.
511
- # @param streaming_locator_name [String] The Streaming Locator name.
512
- # @param [Hash{String => String}] A hash of custom headers that will be added
513
- # to the HTTP request.
514
- #
515
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
516
- #
517
- def list_content_keys_async(resource_group_name, account_name, streaming_locator_name, custom_headers:nil)
518
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
519
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
520
- fail ArgumentError, 'account_name is nil' if account_name.nil?
521
- fail ArgumentError, 'streaming_locator_name is nil' if streaming_locator_name.nil?
522
- api_version = '2018-07-01'
523
-
524
-
525
- request_headers = {}
526
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
527
-
528
- # Set Headers
529
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
530
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
531
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listContentKeys'
532
-
533
- request_url = @base_url || @client.base_url
534
-
535
- options = {
536
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
537
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'streamingLocatorName' => streaming_locator_name},
538
- query_params: {'api-version' => api_version},
539
- headers: request_headers.merge(custom_headers || {}),
540
- base_url: request_url
541
- }
542
- promise = @client.make_request_async(:post, path_template, options)
543
-
544
- promise = promise.then do |result|
545
- http_response = result.response
546
- status_code = http_response.status
547
- response_content = http_response.body
548
- unless status_code == 200
549
- error_model = JSON.load(response_content)
550
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
551
- end
552
-
553
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
554
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
555
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
556
- # Deserialize Response
557
- if status_code == 200
558
- begin
559
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
560
- result_mapper = Azure::MediaServices::Mgmt::V2019_05_01_preview::Models::ListContentKeysResponse.mapper()
561
- result.body = @client.deserialize(result_mapper, parsed_response)
562
- rescue Exception => e
563
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
564
- end
565
- end
566
-
567
- result
568
- end
569
-
570
- promise.execute
571
- end
572
-
573
- #
574
- # List Paths
575
- #
576
- # List Paths supported by this Streaming Locator
577
- #
578
- # @param resource_group_name [String] The name of the resource group within the
579
- # Azure subscription.
580
- # @param account_name [String] The Media Services account name.
581
- # @param streaming_locator_name [String] The Streaming Locator name.
582
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
583
- # will be added to the HTTP request.
584
- #
585
- # @return [ListPathsResponse] operation results.
586
- #
587
- def list_paths(resource_group_name, account_name, streaming_locator_name, custom_headers:nil)
588
- response = list_paths_async(resource_group_name, account_name, streaming_locator_name, custom_headers:custom_headers).value!
589
- response.body unless response.nil?
590
- end
591
-
592
- #
593
- # List Paths
594
- #
595
- # List Paths supported by this Streaming Locator
596
- #
597
- # @param resource_group_name [String] The name of the resource group within the
598
- # Azure subscription.
599
- # @param account_name [String] The Media Services account name.
600
- # @param streaming_locator_name [String] The Streaming Locator name.
601
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
602
- # will be added to the HTTP request.
603
- #
604
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
605
- #
606
- def list_paths_with_http_info(resource_group_name, account_name, streaming_locator_name, custom_headers:nil)
607
- list_paths_async(resource_group_name, account_name, streaming_locator_name, custom_headers:custom_headers).value!
608
- end
609
-
610
- #
611
- # List Paths
612
- #
613
- # List Paths supported by this Streaming Locator
614
- #
615
- # @param resource_group_name [String] The name of the resource group within the
616
- # Azure subscription.
617
- # @param account_name [String] The Media Services account name.
618
- # @param streaming_locator_name [String] The Streaming Locator name.
619
- # @param [Hash{String => String}] A hash of custom headers that will be added
620
- # to the HTTP request.
621
- #
622
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
623
- #
624
- def list_paths_async(resource_group_name, account_name, streaming_locator_name, custom_headers:nil)
625
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
626
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
627
- fail ArgumentError, 'account_name is nil' if account_name.nil?
628
- fail ArgumentError, 'streaming_locator_name is nil' if streaming_locator_name.nil?
629
- api_version = '2018-07-01'
630
-
631
-
632
- request_headers = {}
633
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
634
-
635
- # Set Headers
636
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
637
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
638
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listPaths'
639
-
640
- request_url = @base_url || @client.base_url
641
-
642
- options = {
643
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
644
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'streamingLocatorName' => streaming_locator_name},
645
- query_params: {'api-version' => api_version},
646
- headers: request_headers.merge(custom_headers || {}),
647
- base_url: request_url
648
- }
649
- promise = @client.make_request_async(:post, path_template, options)
650
-
651
- promise = promise.then do |result|
652
- http_response = result.response
653
- status_code = http_response.status
654
- response_content = http_response.body
655
- unless status_code == 200
656
- error_model = JSON.load(response_content)
657
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
658
- end
659
-
660
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
661
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
662
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
663
- # Deserialize Response
664
- if status_code == 200
665
- begin
666
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
667
- result_mapper = Azure::MediaServices::Mgmt::V2019_05_01_preview::Models::ListPathsResponse.mapper()
668
- result.body = @client.deserialize(result_mapper, parsed_response)
669
- rescue Exception => e
670
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
671
- end
672
- end
673
-
674
- result
675
- end
676
-
677
- promise.execute
678
- end
679
-
680
- #
681
- # List Streaming Locators
682
- #
683
- # Lists the Streaming Locators in the account
684
- #
685
- # @param next_page_link [String] The NextLink from the previous successful call
686
- # to List operation.
687
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
688
- # will be added to the HTTP request.
689
- #
690
- # @return [StreamingLocatorCollection] operation results.
691
- #
692
- def list_next(next_page_link, custom_headers:nil)
693
- response = list_next_async(next_page_link, custom_headers:custom_headers).value!
694
- response.body unless response.nil?
695
- end
696
-
697
- #
698
- # List Streaming Locators
699
- #
700
- # Lists the Streaming Locators in the account
701
- #
702
- # @param next_page_link [String] The NextLink from the previous successful call
703
- # to List operation.
704
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
705
- # will be added to the HTTP request.
706
- #
707
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
708
- #
709
- def list_next_with_http_info(next_page_link, custom_headers:nil)
710
- list_next_async(next_page_link, custom_headers:custom_headers).value!
711
- end
712
-
713
- #
714
- # List Streaming Locators
715
- #
716
- # Lists the Streaming Locators in the account
717
- #
718
- # @param next_page_link [String] The NextLink from the previous successful call
719
- # to List operation.
720
- # @param [Hash{String => String}] A hash of custom headers that will be added
721
- # to the HTTP request.
722
- #
723
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
724
- #
725
- def list_next_async(next_page_link, custom_headers:nil)
726
- fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
727
-
728
-
729
- request_headers = {}
730
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
731
-
732
- # Set Headers
733
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
734
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
735
- path_template = '{nextLink}'
736
-
737
- request_url = @base_url || @client.base_url
738
-
739
- options = {
740
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
741
- skip_encoding_path_params: {'nextLink' => next_page_link},
742
- headers: request_headers.merge(custom_headers || {}),
743
- base_url: request_url
744
- }
745
- promise = @client.make_request_async(:get, path_template, options)
746
-
747
- promise = promise.then do |result|
748
- http_response = result.response
749
- status_code = http_response.status
750
- response_content = http_response.body
751
- unless status_code == 200
752
- error_model = JSON.load(response_content)
753
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
754
- end
755
-
756
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
757
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
758
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
759
- # Deserialize Response
760
- if status_code == 200
761
- begin
762
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
763
- result_mapper = Azure::MediaServices::Mgmt::V2019_05_01_preview::Models::StreamingLocatorCollection.mapper()
764
- result.body = @client.deserialize(result_mapper, parsed_response)
765
- rescue Exception => e
766
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
767
- end
768
- end
769
-
770
- result
771
- end
772
-
773
- promise.execute
774
- end
775
-
776
- #
777
- # List Streaming Locators
778
- #
779
- # Lists the Streaming Locators in the account
780
- #
781
- # @param resource_group_name [String] The name of the resource group within the
782
- # Azure subscription.
783
- # @param account_name [String] The Media Services account name.
784
- # @param filter [String] Restricts the set of items returned.
785
- # @param top [Integer] Specifies a non-negative integer n that limits the
786
- # number of items returned from a collection. The service returns the number of
787
- # available items up to but not greater than the specified value n.
788
- # @param orderby [String] Specifies the key by which the result collection
789
- # should be ordered.
790
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
791
- # will be added to the HTTP request.
792
- #
793
- # @return [StreamingLocatorCollection] which provide lazy access to pages of
794
- # the response.
795
- #
796
- def list_as_lazy(resource_group_name, account_name, filter:nil, top:nil, orderby:nil, custom_headers:nil)
797
- response = list_async(resource_group_name, account_name, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
798
- unless response.nil?
799
- page = response.body
800
- page.next_method = Proc.new do |next_page_link|
801
- list_next_async(next_page_link, custom_headers:custom_headers)
802
- end
803
- page
804
- end
805
- end
806
-
807
- end
808
- end