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,826 +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
- # Jobs
9
- #
10
- class Jobs
11
- include MsRestAzure
12
-
13
- #
14
- # Creates and initializes a new instance of the Jobs 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 Jobs
26
- #
27
- # Lists all of the Jobs for the Transform.
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 transform_name [String] The Transform name.
33
- # @param filter [String] Restricts the set of items returned.
34
- # @param orderby [String] Specifies the by which the result collection should
35
- # be ordered.
36
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
37
- # will be added to the HTTP request.
38
- #
39
- # @return [Array<Job>] operation results.
40
- #
41
- def list(resource_group_name, account_name, transform_name, filter:nil, orderby:nil, custom_headers:nil)
42
- first_page = list_as_lazy(resource_group_name, account_name, transform_name, filter:filter, orderby:orderby, custom_headers:custom_headers)
43
- first_page.get_all_items
44
- end
45
-
46
- #
47
- # List Jobs
48
- #
49
- # Lists all of the Jobs for the Transform.
50
- #
51
- # @param resource_group_name [String] The name of the resource group within the
52
- # Azure subscription.
53
- # @param account_name [String] The Media Services account name.
54
- # @param transform_name [String] The Transform name.
55
- # @param filter [String] Restricts the set of items returned.
56
- # @param orderby [String] Specifies the by which the result collection should
57
- # be ordered.
58
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
59
- # will be added to the HTTP request.
60
- #
61
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
62
- #
63
- def list_with_http_info(resource_group_name, account_name, transform_name, filter:nil, orderby:nil, custom_headers:nil)
64
- list_async(resource_group_name, account_name, transform_name, filter:filter, orderby:orderby, custom_headers:custom_headers).value!
65
- end
66
-
67
- #
68
- # List Jobs
69
- #
70
- # Lists all of the Jobs for the Transform.
71
- #
72
- # @param resource_group_name [String] The name of the resource group within the
73
- # Azure subscription.
74
- # @param account_name [String] The Media Services account name.
75
- # @param transform_name [String] The Transform name.
76
- # @param filter [String] Restricts the set of items returned.
77
- # @param orderby [String] Specifies the by which the result collection should
78
- # be ordered.
79
- # @param [Hash{String => String}] A hash of custom headers that will be added
80
- # to the HTTP request.
81
- #
82
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
83
- #
84
- def list_async(resource_group_name, account_name, transform_name, filter:nil, orderby:nil, custom_headers:nil)
85
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
86
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
87
- fail ArgumentError, 'account_name is nil' if account_name.nil?
88
- fail ArgumentError, 'transform_name is nil' if transform_name.nil?
89
- api_version = '2018-07-01'
90
-
91
-
92
- request_headers = {}
93
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
94
-
95
- # Set Headers
96
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
97
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
98
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs'
99
-
100
- request_url = @base_url || @client.base_url
101
-
102
- options = {
103
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
104
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'transformName' => transform_name},
105
- query_params: {'api-version' => api_version,'$filter' => filter,'$orderby' => orderby},
106
- headers: request_headers.merge(custom_headers || {}),
107
- base_url: request_url
108
- }
109
- promise = @client.make_request_async(:get, path_template, options)
110
-
111
- promise = promise.then do |result|
112
- http_response = result.response
113
- status_code = http_response.status
114
- response_content = http_response.body
115
- unless status_code == 200
116
- error_model = JSON.load(response_content)
117
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
118
- end
119
-
120
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
121
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
122
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
123
- # Deserialize Response
124
- if status_code == 200
125
- begin
126
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
127
- result_mapper = Azure::MediaServices::Mgmt::V2019_05_01_preview::Models::JobCollection.mapper()
128
- result.body = @client.deserialize(result_mapper, parsed_response)
129
- rescue Exception => e
130
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
131
- end
132
- end
133
-
134
- result
135
- end
136
-
137
- promise.execute
138
- end
139
-
140
- #
141
- # Get Job
142
- #
143
- # Gets a Job.
144
- #
145
- # @param resource_group_name [String] The name of the resource group within the
146
- # Azure subscription.
147
- # @param account_name [String] The Media Services account name.
148
- # @param transform_name [String] The Transform name.
149
- # @param job_name [String] The Job name.
150
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
151
- # will be added to the HTTP request.
152
- #
153
- # @return [Job] operation results.
154
- #
155
- def get(resource_group_name, account_name, transform_name, job_name, custom_headers:nil)
156
- response = get_async(resource_group_name, account_name, transform_name, job_name, custom_headers:custom_headers).value!
157
- response.body unless response.nil?
158
- end
159
-
160
- #
161
- # Get Job
162
- #
163
- # Gets a Job.
164
- #
165
- # @param resource_group_name [String] The name of the resource group within the
166
- # Azure subscription.
167
- # @param account_name [String] The Media Services account name.
168
- # @param transform_name [String] The Transform name.
169
- # @param job_name [String] The Job name.
170
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
171
- # will be added to the HTTP request.
172
- #
173
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
174
- #
175
- def get_with_http_info(resource_group_name, account_name, transform_name, job_name, custom_headers:nil)
176
- get_async(resource_group_name, account_name, transform_name, job_name, custom_headers:custom_headers).value!
177
- end
178
-
179
- #
180
- # Get Job
181
- #
182
- # Gets a Job.
183
- #
184
- # @param resource_group_name [String] The name of the resource group within the
185
- # Azure subscription.
186
- # @param account_name [String] The Media Services account name.
187
- # @param transform_name [String] The Transform name.
188
- # @param job_name [String] The Job 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, transform_name, job_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, 'transform_name is nil' if transform_name.nil?
199
- fail ArgumentError, 'job_name is nil' if job_name.nil?
200
- api_version = '2018-07-01'
201
-
202
-
203
- request_headers = {}
204
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
205
-
206
- # Set Headers
207
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
208
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
209
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}'
210
-
211
- request_url = @base_url || @client.base_url
212
-
213
- options = {
214
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
215
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'transformName' => transform_name,'jobName' => job_name},
216
- query_params: {'api-version' => api_version},
217
- headers: request_headers.merge(custom_headers || {}),
218
- base_url: request_url
219
- }
220
- promise = @client.make_request_async(:get, path_template, options)
221
-
222
- promise = promise.then do |result|
223
- http_response = result.response
224
- status_code = http_response.status
225
- response_content = http_response.body
226
- unless status_code == 200 || status_code == 404
227
- error_model = JSON.load(response_content)
228
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
229
- end
230
-
231
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
232
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
233
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
234
- # Deserialize Response
235
- if status_code == 200
236
- begin
237
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
238
- result_mapper = Azure::MediaServices::Mgmt::V2019_05_01_preview::Models::Job.mapper()
239
- result.body = @client.deserialize(result_mapper, parsed_response)
240
- rescue Exception => e
241
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
242
- end
243
- end
244
-
245
- result
246
- end
247
-
248
- promise.execute
249
- end
250
-
251
- #
252
- # Create Job
253
- #
254
- # Creates a Job.
255
- #
256
- # @param resource_group_name [String] The name of the resource group within the
257
- # Azure subscription.
258
- # @param account_name [String] The Media Services account name.
259
- # @param transform_name [String] The Transform name.
260
- # @param job_name [String] The Job name.
261
- # @param parameters [Job] 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 [Job] operation results.
266
- #
267
- def create(resource_group_name, account_name, transform_name, job_name, parameters, custom_headers:nil)
268
- response = create_async(resource_group_name, account_name, transform_name, job_name, parameters, custom_headers:custom_headers).value!
269
- response.body unless response.nil?
270
- end
271
-
272
- #
273
- # Create Job
274
- #
275
- # Creates a Job.
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 transform_name [String] The Transform name.
281
- # @param job_name [String] The Job name.
282
- # @param parameters [Job] The request parameters
283
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
284
- # will be added to the HTTP request.
285
- #
286
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
287
- #
288
- def create_with_http_info(resource_group_name, account_name, transform_name, job_name, parameters, custom_headers:nil)
289
- create_async(resource_group_name, account_name, transform_name, job_name, parameters, custom_headers:custom_headers).value!
290
- end
291
-
292
- #
293
- # Create Job
294
- #
295
- # Creates a Job.
296
- #
297
- # @param resource_group_name [String] The name of the resource group within the
298
- # Azure subscription.
299
- # @param account_name [String] The Media Services account name.
300
- # @param transform_name [String] The Transform name.
301
- # @param job_name [String] The Job name.
302
- # @param parameters [Job] The request parameters
303
- # @param [Hash{String => String}] A hash of custom headers that will be added
304
- # to the HTTP request.
305
- #
306
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
307
- #
308
- def create_async(resource_group_name, account_name, transform_name, job_name, parameters, custom_headers:nil)
309
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
310
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
311
- fail ArgumentError, 'account_name is nil' if account_name.nil?
312
- fail ArgumentError, 'transform_name is nil' if transform_name.nil?
313
- fail ArgumentError, 'job_name is nil' if job_name.nil?
314
- fail ArgumentError, 'parameters is nil' if parameters.nil?
315
- api_version = '2018-07-01'
316
-
317
-
318
- request_headers = {}
319
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
320
-
321
- # Set Headers
322
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
323
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
324
-
325
- # Serialize Request
326
- request_mapper = Azure::MediaServices::Mgmt::V2019_05_01_preview::Models::Job.mapper()
327
- request_content = @client.serialize(request_mapper, parameters)
328
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
329
-
330
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}'
331
-
332
- request_url = @base_url || @client.base_url
333
-
334
- options = {
335
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
336
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'transformName' => transform_name,'jobName' => job_name},
337
- query_params: {'api-version' => api_version},
338
- body: request_content,
339
- headers: request_headers.merge(custom_headers || {}),
340
- base_url: request_url
341
- }
342
- promise = @client.make_request_async(:put, path_template, options)
343
-
344
- promise = promise.then do |result|
345
- http_response = result.response
346
- status_code = http_response.status
347
- response_content = http_response.body
348
- unless status_code == 201
349
- error_model = JSON.load(response_content)
350
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
351
- end
352
-
353
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
354
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
355
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
356
- # Deserialize Response
357
- if status_code == 201
358
- begin
359
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
360
- result_mapper = Azure::MediaServices::Mgmt::V2019_05_01_preview::Models::Job.mapper()
361
- result.body = @client.deserialize(result_mapper, parsed_response)
362
- rescue Exception => e
363
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
364
- end
365
- end
366
-
367
- result
368
- end
369
-
370
- promise.execute
371
- end
372
-
373
- #
374
- # Delete Job
375
- #
376
- # Deletes a Job.
377
- #
378
- # @param resource_group_name [String] The name of the resource group within the
379
- # Azure subscription.
380
- # @param account_name [String] The Media Services account name.
381
- # @param transform_name [String] The Transform name.
382
- # @param job_name [String] The Job name.
383
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
384
- # will be added to the HTTP request.
385
- #
386
- #
387
- def delete(resource_group_name, account_name, transform_name, job_name, custom_headers:nil)
388
- response = delete_async(resource_group_name, account_name, transform_name, job_name, custom_headers:custom_headers).value!
389
- nil
390
- end
391
-
392
- #
393
- # Delete Job
394
- #
395
- # Deletes a Job.
396
- #
397
- # @param resource_group_name [String] The name of the resource group within the
398
- # Azure subscription.
399
- # @param account_name [String] The Media Services account name.
400
- # @param transform_name [String] The Transform name.
401
- # @param job_name [String] The Job name.
402
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
403
- # will be added to the HTTP request.
404
- #
405
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
406
- #
407
- def delete_with_http_info(resource_group_name, account_name, transform_name, job_name, custom_headers:nil)
408
- delete_async(resource_group_name, account_name, transform_name, job_name, custom_headers:custom_headers).value!
409
- end
410
-
411
- #
412
- # Delete Job
413
- #
414
- # Deletes a Job.
415
- #
416
- # @param resource_group_name [String] The name of the resource group within the
417
- # Azure subscription.
418
- # @param account_name [String] The Media Services account name.
419
- # @param transform_name [String] The Transform name.
420
- # @param job_name [String] The Job name.
421
- # @param [Hash{String => String}] A hash of custom headers that will be added
422
- # to the HTTP request.
423
- #
424
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
425
- #
426
- def delete_async(resource_group_name, account_name, transform_name, job_name, custom_headers:nil)
427
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
428
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
429
- fail ArgumentError, 'account_name is nil' if account_name.nil?
430
- fail ArgumentError, 'transform_name is nil' if transform_name.nil?
431
- fail ArgumentError, 'job_name is nil' if job_name.nil?
432
- api_version = '2018-07-01'
433
-
434
-
435
- request_headers = {}
436
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
437
-
438
- # Set Headers
439
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
440
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
441
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}'
442
-
443
- request_url = @base_url || @client.base_url
444
-
445
- options = {
446
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
447
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'transformName' => transform_name,'jobName' => job_name},
448
- query_params: {'api-version' => api_version},
449
- headers: request_headers.merge(custom_headers || {}),
450
- base_url: request_url
451
- }
452
- promise = @client.make_request_async(:delete, path_template, options)
453
-
454
- promise = promise.then do |result|
455
- http_response = result.response
456
- status_code = http_response.status
457
- response_content = http_response.body
458
- unless status_code == 200 || status_code == 204
459
- error_model = JSON.load(response_content)
460
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
461
- end
462
-
463
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
464
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
465
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
466
-
467
- result
468
- end
469
-
470
- promise.execute
471
- end
472
-
473
- #
474
- # Update Job
475
- #
476
- # Update is only supported for description and priority. Updating Priority will
477
- # take effect when the Job state is Queued or Scheduled and depending on the
478
- # timing the priority update may be ignored.
479
- #
480
- # @param resource_group_name [String] The name of the resource group within the
481
- # Azure subscription.
482
- # @param account_name [String] The Media Services account name.
483
- # @param transform_name [String] The Transform name.
484
- # @param job_name [String] The Job name.
485
- # @param parameters [Job] The request parameters
486
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
487
- # will be added to the HTTP request.
488
- #
489
- # @return [Job] operation results.
490
- #
491
- def update(resource_group_name, account_name, transform_name, job_name, parameters, custom_headers:nil)
492
- response = update_async(resource_group_name, account_name, transform_name, job_name, parameters, custom_headers:custom_headers).value!
493
- response.body unless response.nil?
494
- end
495
-
496
- #
497
- # Update Job
498
- #
499
- # Update is only supported for description and priority. Updating Priority will
500
- # take effect when the Job state is Queued or Scheduled and depending on the
501
- # timing the priority update may be ignored.
502
- #
503
- # @param resource_group_name [String] The name of the resource group within the
504
- # Azure subscription.
505
- # @param account_name [String] The Media Services account name.
506
- # @param transform_name [String] The Transform name.
507
- # @param job_name [String] The Job name.
508
- # @param parameters [Job] The request parameters
509
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
510
- # will be added to the HTTP request.
511
- #
512
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
513
- #
514
- def update_with_http_info(resource_group_name, account_name, transform_name, job_name, parameters, custom_headers:nil)
515
- update_async(resource_group_name, account_name, transform_name, job_name, parameters, custom_headers:custom_headers).value!
516
- end
517
-
518
- #
519
- # Update Job
520
- #
521
- # Update is only supported for description and priority. Updating Priority will
522
- # take effect when the Job state is Queued or Scheduled and depending on the
523
- # timing the priority update may be ignored.
524
- #
525
- # @param resource_group_name [String] The name of the resource group within the
526
- # Azure subscription.
527
- # @param account_name [String] The Media Services account name.
528
- # @param transform_name [String] The Transform name.
529
- # @param job_name [String] The Job name.
530
- # @param parameters [Job] The request parameters
531
- # @param [Hash{String => String}] A hash of custom headers that will be added
532
- # to the HTTP request.
533
- #
534
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
535
- #
536
- def update_async(resource_group_name, account_name, transform_name, job_name, parameters, custom_headers:nil)
537
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
538
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
539
- fail ArgumentError, 'account_name is nil' if account_name.nil?
540
- fail ArgumentError, 'transform_name is nil' if transform_name.nil?
541
- fail ArgumentError, 'job_name is nil' if job_name.nil?
542
- fail ArgumentError, 'parameters is nil' if parameters.nil?
543
- api_version = '2018-07-01'
544
-
545
-
546
- request_headers = {}
547
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
548
-
549
- # Set Headers
550
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
551
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
552
-
553
- # Serialize Request
554
- request_mapper = Azure::MediaServices::Mgmt::V2019_05_01_preview::Models::Job.mapper()
555
- request_content = @client.serialize(request_mapper, parameters)
556
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
557
-
558
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}'
559
-
560
- request_url = @base_url || @client.base_url
561
-
562
- options = {
563
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
564
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'transformName' => transform_name,'jobName' => job_name},
565
- query_params: {'api-version' => api_version},
566
- body: request_content,
567
- headers: request_headers.merge(custom_headers || {}),
568
- base_url: request_url
569
- }
570
- promise = @client.make_request_async(:patch, path_template, options)
571
-
572
- promise = promise.then do |result|
573
- http_response = result.response
574
- status_code = http_response.status
575
- response_content = http_response.body
576
- unless status_code == 200
577
- error_model = JSON.load(response_content)
578
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
579
- end
580
-
581
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
582
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
583
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
584
- # Deserialize Response
585
- if status_code == 200
586
- begin
587
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
588
- result_mapper = Azure::MediaServices::Mgmt::V2019_05_01_preview::Models::Job.mapper()
589
- result.body = @client.deserialize(result_mapper, parsed_response)
590
- rescue Exception => e
591
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
592
- end
593
- end
594
-
595
- result
596
- end
597
-
598
- promise.execute
599
- end
600
-
601
- #
602
- # Cancel Job
603
- #
604
- # Cancel a Job.
605
- #
606
- # @param resource_group_name [String] The name of the resource group within the
607
- # Azure subscription.
608
- # @param account_name [String] The Media Services account name.
609
- # @param transform_name [String] The Transform name.
610
- # @param job_name [String] The Job name.
611
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
612
- # will be added to the HTTP request.
613
- #
614
- #
615
- def cancel_job(resource_group_name, account_name, transform_name, job_name, custom_headers:nil)
616
- response = cancel_job_async(resource_group_name, account_name, transform_name, job_name, custom_headers:custom_headers).value!
617
- nil
618
- end
619
-
620
- #
621
- # Cancel Job
622
- #
623
- # Cancel a Job.
624
- #
625
- # @param resource_group_name [String] The name of the resource group within the
626
- # Azure subscription.
627
- # @param account_name [String] The Media Services account name.
628
- # @param transform_name [String] The Transform name.
629
- # @param job_name [String] The Job name.
630
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
631
- # will be added to the HTTP request.
632
- #
633
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
634
- #
635
- def cancel_job_with_http_info(resource_group_name, account_name, transform_name, job_name, custom_headers:nil)
636
- cancel_job_async(resource_group_name, account_name, transform_name, job_name, custom_headers:custom_headers).value!
637
- end
638
-
639
- #
640
- # Cancel Job
641
- #
642
- # Cancel a Job.
643
- #
644
- # @param resource_group_name [String] The name of the resource group within the
645
- # Azure subscription.
646
- # @param account_name [String] The Media Services account name.
647
- # @param transform_name [String] The Transform name.
648
- # @param job_name [String] The Job name.
649
- # @param [Hash{String => String}] A hash of custom headers that will be added
650
- # to the HTTP request.
651
- #
652
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
653
- #
654
- def cancel_job_async(resource_group_name, account_name, transform_name, job_name, custom_headers:nil)
655
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
656
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
657
- fail ArgumentError, 'account_name is nil' if account_name.nil?
658
- fail ArgumentError, 'transform_name is nil' if transform_name.nil?
659
- fail ArgumentError, 'job_name is nil' if job_name.nil?
660
- api_version = '2018-07-01'
661
-
662
-
663
- request_headers = {}
664
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
665
-
666
- # Set Headers
667
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
668
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
669
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}/cancelJob'
670
-
671
- request_url = @base_url || @client.base_url
672
-
673
- options = {
674
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
675
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'transformName' => transform_name,'jobName' => job_name},
676
- query_params: {'api-version' => api_version},
677
- headers: request_headers.merge(custom_headers || {}),
678
- base_url: request_url
679
- }
680
- promise = @client.make_request_async(:post, path_template, options)
681
-
682
- promise = promise.then do |result|
683
- http_response = result.response
684
- status_code = http_response.status
685
- response_content = http_response.body
686
- unless status_code == 200
687
- error_model = JSON.load(response_content)
688
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
689
- end
690
-
691
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
692
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
693
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
694
-
695
- result
696
- end
697
-
698
- promise.execute
699
- end
700
-
701
- #
702
- # List Jobs
703
- #
704
- # Lists all of the Jobs for the Transform.
705
- #
706
- # @param next_page_link [String] The NextLink from the previous successful call
707
- # to List operation.
708
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
709
- # will be added to the HTTP request.
710
- #
711
- # @return [JobCollection] operation results.
712
- #
713
- def list_next(next_page_link, custom_headers:nil)
714
- response = list_next_async(next_page_link, custom_headers:custom_headers).value!
715
- response.body unless response.nil?
716
- end
717
-
718
- #
719
- # List Jobs
720
- #
721
- # Lists all of the Jobs for the Transform.
722
- #
723
- # @param next_page_link [String] The NextLink from the previous successful call
724
- # to List operation.
725
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
726
- # will be added to the HTTP request.
727
- #
728
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
729
- #
730
- def list_next_with_http_info(next_page_link, custom_headers:nil)
731
- list_next_async(next_page_link, custom_headers:custom_headers).value!
732
- end
733
-
734
- #
735
- # List Jobs
736
- #
737
- # Lists all of the Jobs for the Transform.
738
- #
739
- # @param next_page_link [String] The NextLink from the previous successful call
740
- # to List operation.
741
- # @param [Hash{String => String}] A hash of custom headers that will be added
742
- # to the HTTP request.
743
- #
744
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
745
- #
746
- def list_next_async(next_page_link, custom_headers:nil)
747
- fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
748
-
749
-
750
- request_headers = {}
751
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
752
-
753
- # Set Headers
754
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
755
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
756
- path_template = '{nextLink}'
757
-
758
- request_url = @base_url || @client.base_url
759
-
760
- options = {
761
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
762
- skip_encoding_path_params: {'nextLink' => next_page_link},
763
- headers: request_headers.merge(custom_headers || {}),
764
- base_url: request_url
765
- }
766
- promise = @client.make_request_async(:get, path_template, options)
767
-
768
- promise = promise.then do |result|
769
- http_response = result.response
770
- status_code = http_response.status
771
- response_content = http_response.body
772
- unless status_code == 200
773
- error_model = JSON.load(response_content)
774
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
775
- end
776
-
777
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
778
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
779
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
780
- # Deserialize Response
781
- if status_code == 200
782
- begin
783
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
784
- result_mapper = Azure::MediaServices::Mgmt::V2019_05_01_preview::Models::JobCollection.mapper()
785
- result.body = @client.deserialize(result_mapper, parsed_response)
786
- rescue Exception => e
787
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
788
- end
789
- end
790
-
791
- result
792
- end
793
-
794
- promise.execute
795
- end
796
-
797
- #
798
- # List Jobs
799
- #
800
- # Lists all of the Jobs for the Transform.
801
- #
802
- # @param resource_group_name [String] The name of the resource group within the
803
- # Azure subscription.
804
- # @param account_name [String] The Media Services account name.
805
- # @param transform_name [String] The Transform name.
806
- # @param filter [String] Restricts the set of items returned.
807
- # @param orderby [String] Specifies the by which the result collection should
808
- # be ordered.
809
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
810
- # will be added to the HTTP request.
811
- #
812
- # @return [JobCollection] which provide lazy access to pages of the response.
813
- #
814
- def list_as_lazy(resource_group_name, account_name, transform_name, filter:nil, orderby:nil, custom_headers:nil)
815
- response = list_async(resource_group_name, account_name, transform_name, filter:filter, orderby:orderby, custom_headers:custom_headers).value!
816
- unless response.nil?
817
- page = response.body
818
- page.next_method = Proc.new do |next_page_link|
819
- list_next_async(next_page_link, custom_headers:custom_headers)
820
- end
821
- page
822
- end
823
- end
824
-
825
- end
826
- end