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