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