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