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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a30dcfadd6caaac533670cb933ddc9e18dc83b51c057776a55ebcf13a0de45c9
|
4
|
+
data.tar.gz: 452387848520bb272189861a1be59893a888b4538b570cfa56a4d60332f5b05e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ef5050130a2c45914db610729444afa3797dbbf883e032e335ea4d62131e129ce7ac204aa3ab93d34999b370d104b89559c93630dd59b9a6142f3320671f560
|
7
|
+
data.tar.gz: 20c12892695a2325062e08226c69b2942bc340b21f04ea216d63d07502fde0fb7ade17d87977e054152b9c284256dfaeb65a073bade3058f069cd40251ef744f
|
@@ -130,7 +130,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01
|
|
130
130
|
#
|
131
131
|
def add_telemetry
|
132
132
|
sdk_information = 'azure_mgmt_media_services'
|
133
|
-
sdk_information = "#{sdk_information}/0.
|
133
|
+
sdk_information = "#{sdk_information}/0.21.0"
|
134
134
|
add_user_agent_information(sdk_information)
|
135
135
|
end
|
136
136
|
end
|
@@ -170,7 +170,7 @@ module Azure::MediaServices::Mgmt::V2018_03_30_preview
|
|
170
170
|
#
|
171
171
|
def add_telemetry
|
172
172
|
sdk_information = 'azure_mgmt_media_services'
|
173
|
-
sdk_information = "#{sdk_information}/0.
|
173
|
+
sdk_information = "#{sdk_information}/0.21.0"
|
174
174
|
add_user_agent_information(sdk_information)
|
175
175
|
end
|
176
176
|
end
|
@@ -170,7 +170,7 @@ module Azure::MediaServices::Mgmt::V2018_06_01_preview
|
|
170
170
|
#
|
171
171
|
def add_telemetry
|
172
172
|
sdk_information = 'azure_mgmt_media_services'
|
173
|
-
sdk_information = "#{sdk_information}/0.
|
173
|
+
sdk_information = "#{sdk_information}/0.21.0"
|
174
174
|
add_user_agent_information(sdk_information)
|
175
175
|
end
|
176
176
|
end
|
@@ -178,7 +178,7 @@ module Azure::MediaServices::Mgmt::V2018_07_01
|
|
178
178
|
#
|
179
179
|
def add_telemetry
|
180
180
|
sdk_information = 'azure_mgmt_media_services'
|
181
|
-
sdk_information = "#{sdk_information}/0.
|
181
|
+
sdk_information = "#{sdk_information}/0.21.0"
|
182
182
|
add_user_agent_information(sdk_information)
|
183
183
|
end
|
184
184
|
end
|
@@ -173,7 +173,7 @@ module Azure::MediaServices::Mgmt::V2019_05_01_preview
|
|
173
173
|
#
|
174
174
|
def add_telemetry
|
175
175
|
sdk_information = 'azure_mgmt_media_services'
|
176
|
-
sdk_information = "#{sdk_information}/0.
|
176
|
+
sdk_information = "#{sdk_information}/0.21.0"
|
177
177
|
add_user_agent_information(sdk_information)
|
178
178
|
end
|
179
179
|
end
|
@@ -0,0 +1,266 @@
|
|
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
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require '2020-05-01/generated/azure_mgmt_media_services/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::MediaServices::Mgmt::V2020_05_01
|
23
|
+
autoload :AccountFilters, '2020-05-01/generated/azure_mgmt_media_services/account_filters.rb'
|
24
|
+
autoload :Operations, '2020-05-01/generated/azure_mgmt_media_services/operations.rb'
|
25
|
+
autoload :Mediaservices, '2020-05-01/generated/azure_mgmt_media_services/mediaservices.rb'
|
26
|
+
autoload :PrivateLinkResources, '2020-05-01/generated/azure_mgmt_media_services/private_link_resources.rb'
|
27
|
+
autoload :PrivateEndpointConnections, '2020-05-01/generated/azure_mgmt_media_services/private_endpoint_connections.rb'
|
28
|
+
autoload :Locations, '2020-05-01/generated/azure_mgmt_media_services/locations.rb'
|
29
|
+
autoload :Assets, '2020-05-01/generated/azure_mgmt_media_services/assets.rb'
|
30
|
+
autoload :AssetFilters, '2020-05-01/generated/azure_mgmt_media_services/asset_filters.rb'
|
31
|
+
autoload :ContentKeyPolicies, '2020-05-01/generated/azure_mgmt_media_services/content_key_policies.rb'
|
32
|
+
autoload :Transforms, '2020-05-01/generated/azure_mgmt_media_services/transforms.rb'
|
33
|
+
autoload :Jobs, '2020-05-01/generated/azure_mgmt_media_services/jobs.rb'
|
34
|
+
autoload :StreamingPolicies, '2020-05-01/generated/azure_mgmt_media_services/streaming_policies.rb'
|
35
|
+
autoload :StreamingLocators, '2020-05-01/generated/azure_mgmt_media_services/streaming_locators.rb'
|
36
|
+
autoload :LiveEvents, '2020-05-01/generated/azure_mgmt_media_services/live_events.rb'
|
37
|
+
autoload :LiveOutputs, '2020-05-01/generated/azure_mgmt_media_services/live_outputs.rb'
|
38
|
+
autoload :StreamingEndpoints, '2020-05-01/generated/azure_mgmt_media_services/streaming_endpoints.rb'
|
39
|
+
autoload :AzureMediaServices, '2020-05-01/generated/azure_mgmt_media_services/azure_media_services.rb'
|
40
|
+
|
41
|
+
module Models
|
42
|
+
autoload :ContentKeyPolicyFairPlayOfflineRentalConfiguration, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_fair_play_offline_rental_configuration.rb'
|
43
|
+
autoload :JobCollection, '2020-05-01/generated/azure_mgmt_media_services/models/job_collection.rb'
|
44
|
+
autoload :FilterTrackPropertyCondition, '2020-05-01/generated/azure_mgmt_media_services/models/filter_track_property_condition.rb'
|
45
|
+
autoload :TrackSelection, '2020-05-01/generated/azure_mgmt_media_services/models/track_selection.rb'
|
46
|
+
autoload :FilterTrackSelection, '2020-05-01/generated/azure_mgmt_media_services/models/filter_track_selection.rb'
|
47
|
+
autoload :TrackPropertyCondition, '2020-05-01/generated/azure_mgmt_media_services/models/track_property_condition.rb'
|
48
|
+
autoload :AccountFilterCollection, '2020-05-01/generated/azure_mgmt_media_services/models/account_filter_collection.rb'
|
49
|
+
autoload :StreamingPolicyPlayReadyConfiguration, '2020-05-01/generated/azure_mgmt_media_services/models/streaming_policy_play_ready_configuration.rb'
|
50
|
+
autoload :ApiError, '2020-05-01/generated/azure_mgmt_media_services/models/api_error.rb'
|
51
|
+
autoload :StreamingPolicyContentKeys, '2020-05-01/generated/azure_mgmt_media_services/models/streaming_policy_content_keys.rb'
|
52
|
+
autoload :ContentKeyPolicyRestrictionTokenKey, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_restriction_token_key.rb'
|
53
|
+
autoload :Hls, '2020-05-01/generated/azure_mgmt_media_services/models/hls.rb'
|
54
|
+
autoload :TransformCollection, '2020-05-01/generated/azure_mgmt_media_services/models/transform_collection.rb'
|
55
|
+
autoload :FirstQuality, '2020-05-01/generated/azure_mgmt_media_services/models/first_quality.rb'
|
56
|
+
autoload :OperationDisplay, '2020-05-01/generated/azure_mgmt_media_services/models/operation_display.rb'
|
57
|
+
autoload :MetricDimension, '2020-05-01/generated/azure_mgmt_media_services/models/metric_dimension.rb'
|
58
|
+
autoload :MetricSpecification, '2020-05-01/generated/azure_mgmt_media_services/models/metric_specification.rb'
|
59
|
+
autoload :ClipTime, '2020-05-01/generated/azure_mgmt_media_services/models/clip_time.rb'
|
60
|
+
autoload :ServiceSpecification, '2020-05-01/generated/azure_mgmt_media_services/models/service_specification.rb'
|
61
|
+
autoload :ODataError, '2020-05-01/generated/azure_mgmt_media_services/models/odata_error.rb'
|
62
|
+
autoload :Operation, '2020-05-01/generated/azure_mgmt_media_services/models/operation.rb'
|
63
|
+
autoload :JobInput, '2020-05-01/generated/azure_mgmt_media_services/models/job_input.rb'
|
64
|
+
autoload :EntityNameAvailabilityCheckOutput, '2020-05-01/generated/azure_mgmt_media_services/models/entity_name_availability_check_output.rb'
|
65
|
+
autoload :LiveOutputListResult, '2020-05-01/generated/azure_mgmt_media_services/models/live_output_list_result.rb'
|
66
|
+
autoload :SyncStorageKeysInput, '2020-05-01/generated/azure_mgmt_media_services/models/sync_storage_keys_input.rb'
|
67
|
+
autoload :StreamingPolicyContentKey, '2020-05-01/generated/azure_mgmt_media_services/models/streaming_policy_content_key.rb'
|
68
|
+
autoload :AccountEncryption, '2020-05-01/generated/azure_mgmt_media_services/models/account_encryption.rb'
|
69
|
+
autoload :DefaultKey, '2020-05-01/generated/azure_mgmt_media_services/models/default_key.rb'
|
70
|
+
autoload :StreamingLocatorContentKey, '2020-05-01/generated/azure_mgmt_media_services/models/streaming_locator_content_key.rb'
|
71
|
+
autoload :PresentationTimeRange, '2020-05-01/generated/azure_mgmt_media_services/models/presentation_time_range.rb'
|
72
|
+
autoload :EdgeUsageDataEventHub, '2020-05-01/generated/azure_mgmt_media_services/models/edge_usage_data_event_hub.rb'
|
73
|
+
autoload :CommonEncryptionCbcs, '2020-05-01/generated/azure_mgmt_media_services/models/common_encryption_cbcs.rb'
|
74
|
+
autoload :EdgePolicies, '2020-05-01/generated/azure_mgmt_media_services/models/edge_policies.rb'
|
75
|
+
autoload :ContentKeyPolicyOption, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_option.rb'
|
76
|
+
autoload :MediaServiceCollection, '2020-05-01/generated/azure_mgmt_media_services/models/media_service_collection.rb'
|
77
|
+
autoload :ContentKeyPolicyProperties, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_properties.rb'
|
78
|
+
autoload :PrivateLinkServiceConnectionState, '2020-05-01/generated/azure_mgmt_media_services/models/private_link_service_connection_state.rb'
|
79
|
+
autoload :CommonEncryptionCenc, '2020-05-01/generated/azure_mgmt_media_services/models/common_encryption_cenc.rb'
|
80
|
+
autoload :StreamingPath, '2020-05-01/generated/azure_mgmt_media_services/models/streaming_path.rb'
|
81
|
+
autoload :ContentKeyPolicyCollection, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_collection.rb'
|
82
|
+
autoload :JobOutput, '2020-05-01/generated/azure_mgmt_media_services/models/job_output.rb'
|
83
|
+
autoload :Preset, '2020-05-01/generated/azure_mgmt_media_services/models/preset.rb'
|
84
|
+
autoload :AssetContainerSas, '2020-05-01/generated/azure_mgmt_media_services/models/asset_container_sas.rb'
|
85
|
+
autoload :Codec, '2020-05-01/generated/azure_mgmt_media_services/models/codec.rb'
|
86
|
+
autoload :StorageEncryptedAssetDecryptionData, '2020-05-01/generated/azure_mgmt_media_services/models/storage_encrypted_asset_decryption_data.rb'
|
87
|
+
autoload :EnvelopeEncryption, '2020-05-01/generated/azure_mgmt_media_services/models/envelope_encryption.rb'
|
88
|
+
autoload :ListStreamingLocatorsResponse, '2020-05-01/generated/azure_mgmt_media_services/models/list_streaming_locators_response.rb'
|
89
|
+
autoload :NoEncryption, '2020-05-01/generated/azure_mgmt_media_services/models/no_encryption.rb'
|
90
|
+
autoload :JobErrorDetail, '2020-05-01/generated/azure_mgmt_media_services/models/job_error_detail.rb'
|
91
|
+
autoload :Layer, '2020-05-01/generated/azure_mgmt_media_services/models/layer.rb'
|
92
|
+
autoload :ListContainerSasInput, '2020-05-01/generated/azure_mgmt_media_services/models/list_container_sas_input.rb'
|
93
|
+
autoload :EnabledProtocols, '2020-05-01/generated/azure_mgmt_media_services/models/enabled_protocols.rb'
|
94
|
+
autoload :ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_explicit_analog_television_restriction.rb'
|
95
|
+
autoload :CencDrmConfiguration, '2020-05-01/generated/azure_mgmt_media_services/models/cenc_drm_configuration.rb'
|
96
|
+
autoload :ListContentKeysResponse, '2020-05-01/generated/azure_mgmt_media_services/models/list_content_keys_response.rb'
|
97
|
+
autoload :CbcsDrmConfiguration, '2020-05-01/generated/azure_mgmt_media_services/models/cbcs_drm_configuration.rb'
|
98
|
+
autoload :ContentKeyPolicyPlayReadyPlayRight, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_play_right.rb'
|
99
|
+
autoload :Overlay, '2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb'
|
100
|
+
autoload :ContentKeyPolicyPlayReadyLicense, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license.rb'
|
101
|
+
autoload :StreamingPolicyFairPlayConfiguration, '2020-05-01/generated/azure_mgmt_media_services/models/streaming_policy_fair_play_configuration.rb'
|
102
|
+
autoload :StreamingPolicyCollection, '2020-05-01/generated/azure_mgmt_media_services/models/streaming_policy_collection.rb'
|
103
|
+
autoload :StreamingPolicyWidevineConfiguration, '2020-05-01/generated/azure_mgmt_media_services/models/streaming_policy_widevine_configuration.rb'
|
104
|
+
autoload :ContentKeyPolicyConfiguration, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_configuration.rb'
|
105
|
+
autoload :Provider, '2020-05-01/generated/azure_mgmt_media_services/models/provider.rb'
|
106
|
+
autoload :Format, '2020-05-01/generated/azure_mgmt_media_services/models/format.rb'
|
107
|
+
autoload :Properties, '2020-05-01/generated/azure_mgmt_media_services/models/properties.rb'
|
108
|
+
autoload :StreamingEndpointListResult, '2020-05-01/generated/azure_mgmt_media_services/models/streaming_endpoint_list_result.rb'
|
109
|
+
autoload :StorageAccount, '2020-05-01/generated/azure_mgmt_media_services/models/storage_account.rb'
|
110
|
+
autoload :StreamingEntityScaleUnit, '2020-05-01/generated/azure_mgmt_media_services/models/streaming_entity_scale_unit.rb'
|
111
|
+
autoload :MediaServiceIdentity, '2020-05-01/generated/azure_mgmt_media_services/models/media_service_identity.rb'
|
112
|
+
autoload :StreamingEndpointAccessControl, '2020-05-01/generated/azure_mgmt_media_services/models/streaming_endpoint_access_control.rb'
|
113
|
+
autoload :EdgeUsageDataCollectionPolicy, '2020-05-01/generated/azure_mgmt_media_services/models/edge_usage_data_collection_policy.rb'
|
114
|
+
autoload :AkamaiAccessControl, '2020-05-01/generated/azure_mgmt_media_services/models/akamai_access_control.rb'
|
115
|
+
autoload :CheckNameAvailabilityInput, '2020-05-01/generated/azure_mgmt_media_services/models/check_name_availability_input.rb'
|
116
|
+
autoload :Deinterlace, '2020-05-01/generated/azure_mgmt_media_services/models/deinterlace.rb'
|
117
|
+
autoload :PrivateEndpointConnectionListResult, '2020-05-01/generated/azure_mgmt_media_services/models/private_endpoint_connection_list_result.rb'
|
118
|
+
autoload :Rectangle, '2020-05-01/generated/azure_mgmt_media_services/models/rectangle.rb'
|
119
|
+
autoload :AssetFileEncryptionMetadata, '2020-05-01/generated/azure_mgmt_media_services/models/asset_file_encryption_metadata.rb'
|
120
|
+
autoload :Filters, '2020-05-01/generated/azure_mgmt_media_services/models/filters.rb'
|
121
|
+
autoload :JobError, '2020-05-01/generated/azure_mgmt_media_services/models/job_error.rb'
|
122
|
+
autoload :AkamaiSignatureHeaderAuthenticationKey, '2020-05-01/generated/azure_mgmt_media_services/models/akamai_signature_header_authentication_key.rb'
|
123
|
+
autoload :AssetFilterCollection, '2020-05-01/generated/azure_mgmt_media_services/models/asset_filter_collection.rb'
|
124
|
+
autoload :LiveEventListResult, '2020-05-01/generated/azure_mgmt_media_services/models/live_event_list_result.rb'
|
125
|
+
autoload :ListPathsResponse, '2020-05-01/generated/azure_mgmt_media_services/models/list_paths_response.rb'
|
126
|
+
autoload :LiveEventActionInput, '2020-05-01/generated/azure_mgmt_media_services/models/live_event_action_input.rb'
|
127
|
+
autoload :ContentKeyPolicyRestriction, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_restriction.rb'
|
128
|
+
autoload :CrossSiteAccessPolicies, '2020-05-01/generated/azure_mgmt_media_services/models/cross_site_access_policies.rb'
|
129
|
+
autoload :Resource, '2020-05-01/generated/azure_mgmt_media_services/models/resource.rb'
|
130
|
+
autoload :LiveEventTranscription, '2020-05-01/generated/azure_mgmt_media_services/models/live_event_transcription.rb'
|
131
|
+
autoload :Location, '2020-05-01/generated/azure_mgmt_media_services/models/location.rb'
|
132
|
+
autoload :OutputFile, '2020-05-01/generated/azure_mgmt_media_services/models/output_file.rb'
|
133
|
+
autoload :ListEdgePoliciesInput, '2020-05-01/generated/azure_mgmt_media_services/models/list_edge_policies_input.rb'
|
134
|
+
autoload :LiveEventOutputTranscriptionTrack, '2020-05-01/generated/azure_mgmt_media_services/models/live_event_output_transcription_track.rb'
|
135
|
+
autoload :PrivateEndpoint, '2020-05-01/generated/azure_mgmt_media_services/models/private_endpoint.rb'
|
136
|
+
autoload :LiveEventInputTrackSelection, '2020-05-01/generated/azure_mgmt_media_services/models/live_event_input_track_selection.rb'
|
137
|
+
autoload :AssetStreamingLocator, '2020-05-01/generated/azure_mgmt_media_services/models/asset_streaming_locator.rb'
|
138
|
+
autoload :LiveEventEncoding, '2020-05-01/generated/azure_mgmt_media_services/models/live_event_encoding.rb'
|
139
|
+
autoload :ContentKeyPolicyPlayReadyContentKeyLocation, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_key_location.rb'
|
140
|
+
autoload :LiveEventPreview, '2020-05-01/generated/azure_mgmt_media_services/models/live_event_preview.rb'
|
141
|
+
autoload :StreamingLocatorCollection, '2020-05-01/generated/azure_mgmt_media_services/models/streaming_locator_collection.rb'
|
142
|
+
autoload :LiveEventPreviewAccessControl, '2020-05-01/generated/azure_mgmt_media_services/models/live_event_preview_access_control.rb'
|
143
|
+
autoload :KeyVaultProperties, '2020-05-01/generated/azure_mgmt_media_services/models/key_vault_properties.rb'
|
144
|
+
autoload :LiveEventInput, '2020-05-01/generated/azure_mgmt_media_services/models/live_event_input.rb'
|
145
|
+
autoload :PrivateLinkResourceListResult, '2020-05-01/generated/azure_mgmt_media_services/models/private_link_resource_list_result.rb'
|
146
|
+
autoload :LiveEventInputAccessControl, '2020-05-01/generated/azure_mgmt_media_services/models/live_event_input_access_control.rb'
|
147
|
+
autoload :ContentKeyPolicyTokenClaim, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_token_claim.rb'
|
148
|
+
autoload :IPAccessControl, '2020-05-01/generated/azure_mgmt_media_services/models/ipaccess_control.rb'
|
149
|
+
autoload :OperationCollection, '2020-05-01/generated/azure_mgmt_media_services/models/operation_collection.rb'
|
150
|
+
autoload :IPRange, '2020-05-01/generated/azure_mgmt_media_services/models/iprange.rb'
|
151
|
+
autoload :LogSpecification, '2020-05-01/generated/azure_mgmt_media_services/models/log_specification.rb'
|
152
|
+
autoload :TransformOutput, '2020-05-01/generated/azure_mgmt_media_services/models/transform_output.rb'
|
153
|
+
autoload :AssetCollection, '2020-05-01/generated/azure_mgmt_media_services/models/asset_collection.rb'
|
154
|
+
autoload :LiveEventEndpoint, '2020-05-01/generated/azure_mgmt_media_services/models/live_event_endpoint.rb'
|
155
|
+
autoload :AccountFilter, '2020-05-01/generated/azure_mgmt_media_services/models/account_filter.rb'
|
156
|
+
autoload :TrackedResource, '2020-05-01/generated/azure_mgmt_media_services/models/tracked_resource.rb'
|
157
|
+
autoload :AzureEntityResource, '2020-05-01/generated/azure_mgmt_media_services/models/azure_entity_resource.rb'
|
158
|
+
autoload :ProxyResource, '2020-05-01/generated/azure_mgmt_media_services/models/proxy_resource.rb'
|
159
|
+
autoload :MediaService, '2020-05-01/generated/azure_mgmt_media_services/models/media_service.rb'
|
160
|
+
autoload :PrivateEndpointConnection, '2020-05-01/generated/azure_mgmt_media_services/models/private_endpoint_connection.rb'
|
161
|
+
autoload :PrivateLinkResource, '2020-05-01/generated/azure_mgmt_media_services/models/private_link_resource.rb'
|
162
|
+
autoload :Asset, '2020-05-01/generated/azure_mgmt_media_services/models/asset.rb'
|
163
|
+
autoload :AssetFilter, '2020-05-01/generated/azure_mgmt_media_services/models/asset_filter.rb'
|
164
|
+
autoload :ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_encryption_key_from_header.rb'
|
165
|
+
autoload :ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_encryption_key_from_key_identifier.rb'
|
166
|
+
autoload :ContentKeyPolicyOpenRestriction, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_open_restriction.rb'
|
167
|
+
autoload :ContentKeyPolicyUnknownRestriction, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_unknown_restriction.rb'
|
168
|
+
autoload :ContentKeyPolicySymmetricTokenKey, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_symmetric_token_key.rb'
|
169
|
+
autoload :ContentKeyPolicyRsaTokenKey, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_rsa_token_key.rb'
|
170
|
+
autoload :ContentKeyPolicyX509CertificateTokenKey, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_x509certificate_token_key.rb'
|
171
|
+
autoload :ContentKeyPolicyTokenRestriction, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_token_restriction.rb'
|
172
|
+
autoload :ContentKeyPolicyClearKeyConfiguration, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_clear_key_configuration.rb'
|
173
|
+
autoload :ContentKeyPolicyUnknownConfiguration, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_unknown_configuration.rb'
|
174
|
+
autoload :ContentKeyPolicyWidevineConfiguration, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_widevine_configuration.rb'
|
175
|
+
autoload :ContentKeyPolicyPlayReadyConfiguration, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_configuration.rb'
|
176
|
+
autoload :ContentKeyPolicyFairPlayConfiguration, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_fair_play_configuration.rb'
|
177
|
+
autoload :ContentKeyPolicy, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy.rb'
|
178
|
+
autoload :Audio, '2020-05-01/generated/azure_mgmt_media_services/models/audio.rb'
|
179
|
+
autoload :AacAudio, '2020-05-01/generated/azure_mgmt_media_services/models/aac_audio.rb'
|
180
|
+
autoload :Video, '2020-05-01/generated/azure_mgmt_media_services/models/video.rb'
|
181
|
+
autoload :FaceDetectorPreset, '2020-05-01/generated/azure_mgmt_media_services/models/face_detector_preset.rb'
|
182
|
+
autoload :AudioAnalyzerPreset, '2020-05-01/generated/azure_mgmt_media_services/models/audio_analyzer_preset.rb'
|
183
|
+
autoload :AudioOverlay, '2020-05-01/generated/azure_mgmt_media_services/models/audio_overlay.rb'
|
184
|
+
autoload :CopyVideo, '2020-05-01/generated/azure_mgmt_media_services/models/copy_video.rb'
|
185
|
+
autoload :Image, '2020-05-01/generated/azure_mgmt_media_services/models/image.rb'
|
186
|
+
autoload :ImageFormat, '2020-05-01/generated/azure_mgmt_media_services/models/image_format.rb'
|
187
|
+
autoload :JpgFormat, '2020-05-01/generated/azure_mgmt_media_services/models/jpg_format.rb'
|
188
|
+
autoload :PngFormat, '2020-05-01/generated/azure_mgmt_media_services/models/png_format.rb'
|
189
|
+
autoload :CopyAudio, '2020-05-01/generated/azure_mgmt_media_services/models/copy_audio.rb'
|
190
|
+
autoload :VideoLayer, '2020-05-01/generated/azure_mgmt_media_services/models/video_layer.rb'
|
191
|
+
autoload :H264Layer, '2020-05-01/generated/azure_mgmt_media_services/models/h264layer.rb'
|
192
|
+
autoload :H264Video, '2020-05-01/generated/azure_mgmt_media_services/models/h264video.rb'
|
193
|
+
autoload :JpgLayer, '2020-05-01/generated/azure_mgmt_media_services/models/jpg_layer.rb'
|
194
|
+
autoload :JpgImage, '2020-05-01/generated/azure_mgmt_media_services/models/jpg_image.rb'
|
195
|
+
autoload :MultiBitrateFormat, '2020-05-01/generated/azure_mgmt_media_services/models/multi_bitrate_format.rb'
|
196
|
+
autoload :Mp4Format, '2020-05-01/generated/azure_mgmt_media_services/models/mp4format.rb'
|
197
|
+
autoload :PngLayer, '2020-05-01/generated/azure_mgmt_media_services/models/png_layer.rb'
|
198
|
+
autoload :PngImage, '2020-05-01/generated/azure_mgmt_media_services/models/png_image.rb'
|
199
|
+
autoload :BuiltInStandardEncoderPreset, '2020-05-01/generated/azure_mgmt_media_services/models/built_in_standard_encoder_preset.rb'
|
200
|
+
autoload :StandardEncoderPreset, '2020-05-01/generated/azure_mgmt_media_services/models/standard_encoder_preset.rb'
|
201
|
+
autoload :VideoAnalyzerPreset, '2020-05-01/generated/azure_mgmt_media_services/models/video_analyzer_preset.rb'
|
202
|
+
autoload :TransportStreamFormat, '2020-05-01/generated/azure_mgmt_media_services/models/transport_stream_format.rb'
|
203
|
+
autoload :VideoOverlay, '2020-05-01/generated/azure_mgmt_media_services/models/video_overlay.rb'
|
204
|
+
autoload :Transform, '2020-05-01/generated/azure_mgmt_media_services/models/transform.rb'
|
205
|
+
autoload :JobInputClip, '2020-05-01/generated/azure_mgmt_media_services/models/job_input_clip.rb'
|
206
|
+
autoload :AbsoluteClipTime, '2020-05-01/generated/azure_mgmt_media_services/models/absolute_clip_time.rb'
|
207
|
+
autoload :UtcClipTime, '2020-05-01/generated/azure_mgmt_media_services/models/utc_clip_time.rb'
|
208
|
+
autoload :JobInputs, '2020-05-01/generated/azure_mgmt_media_services/models/job_inputs.rb'
|
209
|
+
autoload :JobInputAsset, '2020-05-01/generated/azure_mgmt_media_services/models/job_input_asset.rb'
|
210
|
+
autoload :JobInputHttp, '2020-05-01/generated/azure_mgmt_media_services/models/job_input_http.rb'
|
211
|
+
autoload :JobOutputAsset, '2020-05-01/generated/azure_mgmt_media_services/models/job_output_asset.rb'
|
212
|
+
autoload :Job, '2020-05-01/generated/azure_mgmt_media_services/models/job.rb'
|
213
|
+
autoload :StreamingPolicy, '2020-05-01/generated/azure_mgmt_media_services/models/streaming_policy.rb'
|
214
|
+
autoload :StreamingLocator, '2020-05-01/generated/azure_mgmt_media_services/models/streaming_locator.rb'
|
215
|
+
autoload :LiveOutput, '2020-05-01/generated/azure_mgmt_media_services/models/live_output.rb'
|
216
|
+
autoload :LiveEvent, '2020-05-01/generated/azure_mgmt_media_services/models/live_event.rb'
|
217
|
+
autoload :StreamingEndpoint, '2020-05-01/generated/azure_mgmt_media_services/models/streaming_endpoint.rb'
|
218
|
+
autoload :FilterTrackPropertyType, '2020-05-01/generated/azure_mgmt_media_services/models/filter_track_property_type.rb'
|
219
|
+
autoload :FilterTrackPropertyCompareOperation, '2020-05-01/generated/azure_mgmt_media_services/models/filter_track_property_compare_operation.rb'
|
220
|
+
autoload :MetricUnit, '2020-05-01/generated/azure_mgmt_media_services/models/metric_unit.rb'
|
221
|
+
autoload :MetricAggregationType, '2020-05-01/generated/azure_mgmt_media_services/models/metric_aggregation_type.rb'
|
222
|
+
autoload :StorageAccountType, '2020-05-01/generated/azure_mgmt_media_services/models/storage_account_type.rb'
|
223
|
+
autoload :StorageAuthentication, '2020-05-01/generated/azure_mgmt_media_services/models/storage_authentication.rb'
|
224
|
+
autoload :AccountEncryptionKeyType, '2020-05-01/generated/azure_mgmt_media_services/models/account_encryption_key_type.rb'
|
225
|
+
autoload :ManagedIdentityType, '2020-05-01/generated/azure_mgmt_media_services/models/managed_identity_type.rb'
|
226
|
+
autoload :PrivateEndpointConnectionProvisioningState, '2020-05-01/generated/azure_mgmt_media_services/models/private_endpoint_connection_provisioning_state.rb'
|
227
|
+
autoload :PrivateEndpointServiceConnectionStatus, '2020-05-01/generated/azure_mgmt_media_services/models/private_endpoint_service_connection_status.rb'
|
228
|
+
autoload :AssetStorageEncryptionFormat, '2020-05-01/generated/azure_mgmt_media_services/models/asset_storage_encryption_format.rb'
|
229
|
+
autoload :AssetContainerPermission, '2020-05-01/generated/azure_mgmt_media_services/models/asset_container_permission.rb'
|
230
|
+
autoload :ContentKeyPolicyPlayReadyUnknownOutputPassingOption, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_unknown_output_passing_option.rb'
|
231
|
+
autoload :ContentKeyPolicyPlayReadyLicenseType, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license_type.rb'
|
232
|
+
autoload :ContentKeyPolicyPlayReadyContentType, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_type.rb'
|
233
|
+
autoload :ContentKeyPolicyRestrictionTokenType, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_restriction_token_type.rb'
|
234
|
+
autoload :ContentKeyPolicyFairPlayRentalAndLeaseKeyType, '2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_fair_play_rental_and_lease_key_type.rb'
|
235
|
+
autoload :AacAudioProfile, '2020-05-01/generated/azure_mgmt_media_services/models/aac_audio_profile.rb'
|
236
|
+
autoload :StretchMode, '2020-05-01/generated/azure_mgmt_media_services/models/stretch_mode.rb'
|
237
|
+
autoload :VideoSyncMode, '2020-05-01/generated/azure_mgmt_media_services/models/video_sync_mode.rb'
|
238
|
+
autoload :AnalysisResolution, '2020-05-01/generated/azure_mgmt_media_services/models/analysis_resolution.rb'
|
239
|
+
autoload :AudioAnalysisMode, '2020-05-01/generated/azure_mgmt_media_services/models/audio_analysis_mode.rb'
|
240
|
+
autoload :DeinterlaceParity, '2020-05-01/generated/azure_mgmt_media_services/models/deinterlace_parity.rb'
|
241
|
+
autoload :DeinterlaceMode, '2020-05-01/generated/azure_mgmt_media_services/models/deinterlace_mode.rb'
|
242
|
+
autoload :Rotation, '2020-05-01/generated/azure_mgmt_media_services/models/rotation.rb'
|
243
|
+
autoload :H264VideoProfile, '2020-05-01/generated/azure_mgmt_media_services/models/h264video_profile.rb'
|
244
|
+
autoload :EntropyMode, '2020-05-01/generated/azure_mgmt_media_services/models/entropy_mode.rb'
|
245
|
+
autoload :H264Complexity, '2020-05-01/generated/azure_mgmt_media_services/models/h264complexity.rb'
|
246
|
+
autoload :EncoderNamedPreset, '2020-05-01/generated/azure_mgmt_media_services/models/encoder_named_preset.rb'
|
247
|
+
autoload :InsightsType, '2020-05-01/generated/azure_mgmt_media_services/models/insights_type.rb'
|
248
|
+
autoload :OnErrorType, '2020-05-01/generated/azure_mgmt_media_services/models/on_error_type.rb'
|
249
|
+
autoload :Priority, '2020-05-01/generated/azure_mgmt_media_services/models/priority.rb'
|
250
|
+
autoload :JobErrorCode, '2020-05-01/generated/azure_mgmt_media_services/models/job_error_code.rb'
|
251
|
+
autoload :JobErrorCategory, '2020-05-01/generated/azure_mgmt_media_services/models/job_error_category.rb'
|
252
|
+
autoload :JobRetry, '2020-05-01/generated/azure_mgmt_media_services/models/job_retry.rb'
|
253
|
+
autoload :JobState, '2020-05-01/generated/azure_mgmt_media_services/models/job_state.rb'
|
254
|
+
autoload :TrackPropertyType, '2020-05-01/generated/azure_mgmt_media_services/models/track_property_type.rb'
|
255
|
+
autoload :TrackPropertyCompareOperation, '2020-05-01/generated/azure_mgmt_media_services/models/track_property_compare_operation.rb'
|
256
|
+
autoload :StreamingLocatorContentKeyType, '2020-05-01/generated/azure_mgmt_media_services/models/streaming_locator_content_key_type.rb'
|
257
|
+
autoload :StreamingPolicyStreamingProtocol, '2020-05-01/generated/azure_mgmt_media_services/models/streaming_policy_streaming_protocol.rb'
|
258
|
+
autoload :EncryptionScheme, '2020-05-01/generated/azure_mgmt_media_services/models/encryption_scheme.rb'
|
259
|
+
autoload :LiveOutputResourceState, '2020-05-01/generated/azure_mgmt_media_services/models/live_output_resource_state.rb'
|
260
|
+
autoload :LiveEventInputProtocol, '2020-05-01/generated/azure_mgmt_media_services/models/live_event_input_protocol.rb'
|
261
|
+
autoload :LiveEventEncodingType, '2020-05-01/generated/azure_mgmt_media_services/models/live_event_encoding_type.rb'
|
262
|
+
autoload :LiveEventResourceState, '2020-05-01/generated/azure_mgmt_media_services/models/live_event_resource_state.rb'
|
263
|
+
autoload :StreamOptionsFlag, '2020-05-01/generated/azure_mgmt_media_services/models/stream_options_flag.rb'
|
264
|
+
autoload :StreamingEndpointResourceState, '2020-05-01/generated/azure_mgmt_media_services/models/streaming_endpoint_resource_state.rb'
|
265
|
+
end
|
266
|
+
end
|
@@ -0,0 +1,698 @@
|
|
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
|
+
# AccountFilters
|
9
|
+
#
|
10
|
+
class AccountFilters
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the AccountFilters 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 Account Filters
|
26
|
+
#
|
27
|
+
# List Account Filters in the Media Services account.
|
28
|
+
#
|
29
|
+
# @param resource_group_name [String] The name of the resource group within the
|
30
|
+
# Azure subscription.
|
31
|
+
# @param account_name [String] The Media Services account name.
|
32
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
|
+
# will be added to the HTTP request.
|
34
|
+
#
|
35
|
+
# @return [Array<AccountFilter>] operation results.
|
36
|
+
#
|
37
|
+
def list(resource_group_name, account_name, custom_headers:nil)
|
38
|
+
first_page = list_as_lazy(resource_group_name, account_name, custom_headers:custom_headers)
|
39
|
+
first_page.get_all_items
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# List Account Filters
|
44
|
+
#
|
45
|
+
# List Account Filters in the Media Services account.
|
46
|
+
#
|
47
|
+
# @param resource_group_name [String] The name of the resource group within the
|
48
|
+
# Azure subscription.
|
49
|
+
# @param account_name [String] The Media Services account name.
|
50
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
51
|
+
# will be added to the HTTP request.
|
52
|
+
#
|
53
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
54
|
+
#
|
55
|
+
def list_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
56
|
+
list_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
57
|
+
end
|
58
|
+
|
59
|
+
#
|
60
|
+
# List Account Filters
|
61
|
+
#
|
62
|
+
# List Account Filters in the Media Services account.
|
63
|
+
#
|
64
|
+
# @param resource_group_name [String] The name of the resource group within the
|
65
|
+
# Azure subscription.
|
66
|
+
# @param account_name [String] The Media Services account name.
|
67
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
68
|
+
# to the HTTP request.
|
69
|
+
#
|
70
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
|
+
#
|
72
|
+
def list_async(resource_group_name, account_name, custom_headers:nil)
|
73
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
74
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
75
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
76
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
77
|
+
|
78
|
+
|
79
|
+
request_headers = {}
|
80
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
81
|
+
|
82
|
+
# Set Headers
|
83
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
84
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
85
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters'
|
86
|
+
|
87
|
+
request_url = @base_url || @client.base_url
|
88
|
+
|
89
|
+
options = {
|
90
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
91
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name},
|
92
|
+
query_params: {'api-version' => @client.api_version},
|
93
|
+
headers: request_headers.merge(custom_headers || {}),
|
94
|
+
base_url: request_url
|
95
|
+
}
|
96
|
+
promise = @client.make_request_async(:get, path_template, options)
|
97
|
+
|
98
|
+
promise = promise.then do |result|
|
99
|
+
http_response = result.response
|
100
|
+
status_code = http_response.status
|
101
|
+
response_content = http_response.body
|
102
|
+
unless status_code == 200
|
103
|
+
error_model = JSON.load(response_content)
|
104
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
105
|
+
end
|
106
|
+
|
107
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
108
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
109
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
110
|
+
# Deserialize Response
|
111
|
+
if status_code == 200
|
112
|
+
begin
|
113
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
114
|
+
result_mapper = Azure::MediaServices::Mgmt::V2020_05_01::Models::AccountFilterCollection.mapper()
|
115
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
116
|
+
rescue Exception => e
|
117
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
result
|
122
|
+
end
|
123
|
+
|
124
|
+
promise.execute
|
125
|
+
end
|
126
|
+
|
127
|
+
#
|
128
|
+
# Get an Account Filter.
|
129
|
+
#
|
130
|
+
# Get the details of an Account Filter in the Media Services account.
|
131
|
+
#
|
132
|
+
# @param resource_group_name [String] The name of the resource group within the
|
133
|
+
# Azure subscription.
|
134
|
+
# @param account_name [String] The Media Services account name.
|
135
|
+
# @param filter_name [String] The Account Filter name
|
136
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
137
|
+
# will be added to the HTTP request.
|
138
|
+
#
|
139
|
+
# @return [AccountFilter] operation results.
|
140
|
+
#
|
141
|
+
def get(resource_group_name, account_name, filter_name, custom_headers:nil)
|
142
|
+
response = get_async(resource_group_name, account_name, filter_name, custom_headers:custom_headers).value!
|
143
|
+
response.body unless response.nil?
|
144
|
+
end
|
145
|
+
|
146
|
+
#
|
147
|
+
# Get an Account Filter.
|
148
|
+
#
|
149
|
+
# Get the details of an Account Filter in the Media Services account.
|
150
|
+
#
|
151
|
+
# @param resource_group_name [String] The name of the resource group within the
|
152
|
+
# Azure subscription.
|
153
|
+
# @param account_name [String] The Media Services account name.
|
154
|
+
# @param filter_name [String] The Account Filter name
|
155
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
156
|
+
# will be added to the HTTP request.
|
157
|
+
#
|
158
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
159
|
+
#
|
160
|
+
def get_with_http_info(resource_group_name, account_name, filter_name, custom_headers:nil)
|
161
|
+
get_async(resource_group_name, account_name, filter_name, custom_headers:custom_headers).value!
|
162
|
+
end
|
163
|
+
|
164
|
+
#
|
165
|
+
# Get an Account Filter.
|
166
|
+
#
|
167
|
+
# Get the details of an Account Filter in the Media Services account.
|
168
|
+
#
|
169
|
+
# @param resource_group_name [String] The name of the resource group within the
|
170
|
+
# Azure subscription.
|
171
|
+
# @param account_name [String] The Media Services account name.
|
172
|
+
# @param filter_name [String] The Account Filter name
|
173
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
174
|
+
# to the HTTP request.
|
175
|
+
#
|
176
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
177
|
+
#
|
178
|
+
def get_async(resource_group_name, account_name, filter_name, custom_headers:nil)
|
179
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
180
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
181
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
182
|
+
fail ArgumentError, 'filter_name is nil' if filter_name.nil?
|
183
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
184
|
+
|
185
|
+
|
186
|
+
request_headers = {}
|
187
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
188
|
+
|
189
|
+
# Set Headers
|
190
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
191
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
192
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters/{filterName}'
|
193
|
+
|
194
|
+
request_url = @base_url || @client.base_url
|
195
|
+
|
196
|
+
options = {
|
197
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
198
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'filterName' => filter_name},
|
199
|
+
query_params: {'api-version' => @client.api_version},
|
200
|
+
headers: request_headers.merge(custom_headers || {}),
|
201
|
+
base_url: request_url
|
202
|
+
}
|
203
|
+
promise = @client.make_request_async(:get, path_template, options)
|
204
|
+
|
205
|
+
promise = promise.then do |result|
|
206
|
+
http_response = result.response
|
207
|
+
status_code = http_response.status
|
208
|
+
response_content = http_response.body
|
209
|
+
unless status_code == 200 || status_code == 404
|
210
|
+
error_model = JSON.load(response_content)
|
211
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
212
|
+
end
|
213
|
+
|
214
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
215
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
216
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
217
|
+
# Deserialize Response
|
218
|
+
if status_code == 200
|
219
|
+
begin
|
220
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
221
|
+
result_mapper = Azure::MediaServices::Mgmt::V2020_05_01::Models::AccountFilter.mapper()
|
222
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
223
|
+
rescue Exception => e
|
224
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
result
|
229
|
+
end
|
230
|
+
|
231
|
+
promise.execute
|
232
|
+
end
|
233
|
+
|
234
|
+
#
|
235
|
+
# Create or update an Account Filter
|
236
|
+
#
|
237
|
+
# Creates or updates an Account Filter in the Media Services account.
|
238
|
+
#
|
239
|
+
# @param resource_group_name [String] The name of the resource group within the
|
240
|
+
# Azure subscription.
|
241
|
+
# @param account_name [String] The Media Services account name.
|
242
|
+
# @param filter_name [String] The Account Filter name
|
243
|
+
# @param parameters [AccountFilter] The request parameters
|
244
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
245
|
+
# will be added to the HTTP request.
|
246
|
+
#
|
247
|
+
# @return [AccountFilter] operation results.
|
248
|
+
#
|
249
|
+
def create_or_update(resource_group_name, account_name, filter_name, parameters, custom_headers:nil)
|
250
|
+
response = create_or_update_async(resource_group_name, account_name, filter_name, parameters, custom_headers:custom_headers).value!
|
251
|
+
response.body unless response.nil?
|
252
|
+
end
|
253
|
+
|
254
|
+
#
|
255
|
+
# Create or update an Account Filter
|
256
|
+
#
|
257
|
+
# Creates or updates an Account Filter in the Media Services account.
|
258
|
+
#
|
259
|
+
# @param resource_group_name [String] The name of the resource group within the
|
260
|
+
# Azure subscription.
|
261
|
+
# @param account_name [String] The Media Services account name.
|
262
|
+
# @param filter_name [String] The Account Filter name
|
263
|
+
# @param parameters [AccountFilter] The request parameters
|
264
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
265
|
+
# will be added to the HTTP request.
|
266
|
+
#
|
267
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
268
|
+
#
|
269
|
+
def create_or_update_with_http_info(resource_group_name, account_name, filter_name, parameters, custom_headers:nil)
|
270
|
+
create_or_update_async(resource_group_name, account_name, filter_name, parameters, custom_headers:custom_headers).value!
|
271
|
+
end
|
272
|
+
|
273
|
+
#
|
274
|
+
# Create or update an Account Filter
|
275
|
+
#
|
276
|
+
# Creates or updates an Account Filter in the Media Services account.
|
277
|
+
#
|
278
|
+
# @param resource_group_name [String] The name of the resource group within the
|
279
|
+
# Azure subscription.
|
280
|
+
# @param account_name [String] The Media Services account name.
|
281
|
+
# @param filter_name [String] The Account Filter name
|
282
|
+
# @param parameters [AccountFilter] The request parameters
|
283
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
284
|
+
# to the HTTP request.
|
285
|
+
#
|
286
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
287
|
+
#
|
288
|
+
def create_or_update_async(resource_group_name, account_name, filter_name, parameters, custom_headers:nil)
|
289
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
290
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
291
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
292
|
+
fail ArgumentError, 'filter_name is nil' if filter_name.nil?
|
293
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
294
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
295
|
+
|
296
|
+
|
297
|
+
request_headers = {}
|
298
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
299
|
+
|
300
|
+
# Set Headers
|
301
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
302
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
303
|
+
|
304
|
+
# Serialize Request
|
305
|
+
request_mapper = Azure::MediaServices::Mgmt::V2020_05_01::Models::AccountFilter.mapper()
|
306
|
+
request_content = @client.serialize(request_mapper, parameters)
|
307
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
308
|
+
|
309
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters/{filterName}'
|
310
|
+
|
311
|
+
request_url = @base_url || @client.base_url
|
312
|
+
|
313
|
+
options = {
|
314
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
315
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'filterName' => filter_name},
|
316
|
+
query_params: {'api-version' => @client.api_version},
|
317
|
+
body: request_content,
|
318
|
+
headers: request_headers.merge(custom_headers || {}),
|
319
|
+
base_url: request_url
|
320
|
+
}
|
321
|
+
promise = @client.make_request_async(:put, path_template, options)
|
322
|
+
|
323
|
+
promise = promise.then do |result|
|
324
|
+
http_response = result.response
|
325
|
+
status_code = http_response.status
|
326
|
+
response_content = http_response.body
|
327
|
+
unless status_code == 200 || status_code == 201
|
328
|
+
error_model = JSON.load(response_content)
|
329
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
330
|
+
end
|
331
|
+
|
332
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
333
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
334
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
335
|
+
# Deserialize Response
|
336
|
+
if status_code == 200
|
337
|
+
begin
|
338
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
339
|
+
result_mapper = Azure::MediaServices::Mgmt::V2020_05_01::Models::AccountFilter.mapper()
|
340
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
341
|
+
rescue Exception => e
|
342
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
343
|
+
end
|
344
|
+
end
|
345
|
+
# Deserialize Response
|
346
|
+
if status_code == 201
|
347
|
+
begin
|
348
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
349
|
+
result_mapper = Azure::MediaServices::Mgmt::V2020_05_01::Models::AccountFilter.mapper()
|
350
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
351
|
+
rescue Exception => e
|
352
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
353
|
+
end
|
354
|
+
end
|
355
|
+
|
356
|
+
result
|
357
|
+
end
|
358
|
+
|
359
|
+
promise.execute
|
360
|
+
end
|
361
|
+
|
362
|
+
#
|
363
|
+
# Delete an Account Filter.
|
364
|
+
#
|
365
|
+
# Deletes an Account Filter in the Media Services account.
|
366
|
+
#
|
367
|
+
# @param resource_group_name [String] The name of the resource group within the
|
368
|
+
# Azure subscription.
|
369
|
+
# @param account_name [String] The Media Services account name.
|
370
|
+
# @param filter_name [String] The Account Filter name
|
371
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
372
|
+
# will be added to the HTTP request.
|
373
|
+
#
|
374
|
+
#
|
375
|
+
def delete(resource_group_name, account_name, filter_name, custom_headers:nil)
|
376
|
+
response = delete_async(resource_group_name, account_name, filter_name, custom_headers:custom_headers).value!
|
377
|
+
nil
|
378
|
+
end
|
379
|
+
|
380
|
+
#
|
381
|
+
# Delete an Account Filter.
|
382
|
+
#
|
383
|
+
# Deletes an Account Filter in the Media Services account.
|
384
|
+
#
|
385
|
+
# @param resource_group_name [String] The name of the resource group within the
|
386
|
+
# Azure subscription.
|
387
|
+
# @param account_name [String] The Media Services account name.
|
388
|
+
# @param filter_name [String] The Account Filter name
|
389
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
390
|
+
# will be added to the HTTP request.
|
391
|
+
#
|
392
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
393
|
+
#
|
394
|
+
def delete_with_http_info(resource_group_name, account_name, filter_name, custom_headers:nil)
|
395
|
+
delete_async(resource_group_name, account_name, filter_name, custom_headers:custom_headers).value!
|
396
|
+
end
|
397
|
+
|
398
|
+
#
|
399
|
+
# Delete an Account Filter.
|
400
|
+
#
|
401
|
+
# Deletes an Account Filter in the Media Services account.
|
402
|
+
#
|
403
|
+
# @param resource_group_name [String] The name of the resource group within the
|
404
|
+
# Azure subscription.
|
405
|
+
# @param account_name [String] The Media Services account name.
|
406
|
+
# @param filter_name [String] The Account Filter name
|
407
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
408
|
+
# to the HTTP request.
|
409
|
+
#
|
410
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
411
|
+
#
|
412
|
+
def delete_async(resource_group_name, account_name, filter_name, custom_headers:nil)
|
413
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
414
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
415
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
416
|
+
fail ArgumentError, 'filter_name is nil' if filter_name.nil?
|
417
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
418
|
+
|
419
|
+
|
420
|
+
request_headers = {}
|
421
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
422
|
+
|
423
|
+
# Set Headers
|
424
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
425
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
426
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters/{filterName}'
|
427
|
+
|
428
|
+
request_url = @base_url || @client.base_url
|
429
|
+
|
430
|
+
options = {
|
431
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
432
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'filterName' => filter_name},
|
433
|
+
query_params: {'api-version' => @client.api_version},
|
434
|
+
headers: request_headers.merge(custom_headers || {}),
|
435
|
+
base_url: request_url
|
436
|
+
}
|
437
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
438
|
+
|
439
|
+
promise = promise.then do |result|
|
440
|
+
http_response = result.response
|
441
|
+
status_code = http_response.status
|
442
|
+
response_content = http_response.body
|
443
|
+
unless status_code == 200 || status_code == 204
|
444
|
+
error_model = JSON.load(response_content)
|
445
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
446
|
+
end
|
447
|
+
|
448
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
449
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
450
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
451
|
+
|
452
|
+
result
|
453
|
+
end
|
454
|
+
|
455
|
+
promise.execute
|
456
|
+
end
|
457
|
+
|
458
|
+
#
|
459
|
+
# Update an Account Filter
|
460
|
+
#
|
461
|
+
# Updates an existing Account Filter in the Media Services account.
|
462
|
+
#
|
463
|
+
# @param resource_group_name [String] The name of the resource group within the
|
464
|
+
# Azure subscription.
|
465
|
+
# @param account_name [String] The Media Services account name.
|
466
|
+
# @param filter_name [String] The Account Filter name
|
467
|
+
# @param parameters [AccountFilter] The request parameters
|
468
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
469
|
+
# will be added to the HTTP request.
|
470
|
+
#
|
471
|
+
# @return [AccountFilter] operation results.
|
472
|
+
#
|
473
|
+
def update(resource_group_name, account_name, filter_name, parameters, custom_headers:nil)
|
474
|
+
response = update_async(resource_group_name, account_name, filter_name, parameters, custom_headers:custom_headers).value!
|
475
|
+
response.body unless response.nil?
|
476
|
+
end
|
477
|
+
|
478
|
+
#
|
479
|
+
# Update an Account Filter
|
480
|
+
#
|
481
|
+
# Updates an existing Account Filter in the Media Services account.
|
482
|
+
#
|
483
|
+
# @param resource_group_name [String] The name of the resource group within the
|
484
|
+
# Azure subscription.
|
485
|
+
# @param account_name [String] The Media Services account name.
|
486
|
+
# @param filter_name [String] The Account Filter name
|
487
|
+
# @param parameters [AccountFilter] The request parameters
|
488
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
489
|
+
# will be added to the HTTP request.
|
490
|
+
#
|
491
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
492
|
+
#
|
493
|
+
def update_with_http_info(resource_group_name, account_name, filter_name, parameters, custom_headers:nil)
|
494
|
+
update_async(resource_group_name, account_name, filter_name, parameters, custom_headers:custom_headers).value!
|
495
|
+
end
|
496
|
+
|
497
|
+
#
|
498
|
+
# Update an Account Filter
|
499
|
+
#
|
500
|
+
# Updates an existing Account Filter in the Media Services account.
|
501
|
+
#
|
502
|
+
# @param resource_group_name [String] The name of the resource group within the
|
503
|
+
# Azure subscription.
|
504
|
+
# @param account_name [String] The Media Services account name.
|
505
|
+
# @param filter_name [String] The Account Filter name
|
506
|
+
# @param parameters [AccountFilter] The request parameters
|
507
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
508
|
+
# to the HTTP request.
|
509
|
+
#
|
510
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
511
|
+
#
|
512
|
+
def update_async(resource_group_name, account_name, filter_name, parameters, custom_headers:nil)
|
513
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
514
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
515
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
516
|
+
fail ArgumentError, 'filter_name is nil' if filter_name.nil?
|
517
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
518
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
519
|
+
|
520
|
+
|
521
|
+
request_headers = {}
|
522
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
523
|
+
|
524
|
+
# Set Headers
|
525
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
526
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
527
|
+
|
528
|
+
# Serialize Request
|
529
|
+
request_mapper = Azure::MediaServices::Mgmt::V2020_05_01::Models::AccountFilter.mapper()
|
530
|
+
request_content = @client.serialize(request_mapper, parameters)
|
531
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
532
|
+
|
533
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters/{filterName}'
|
534
|
+
|
535
|
+
request_url = @base_url || @client.base_url
|
536
|
+
|
537
|
+
options = {
|
538
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
539
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'filterName' => filter_name},
|
540
|
+
query_params: {'api-version' => @client.api_version},
|
541
|
+
body: request_content,
|
542
|
+
headers: request_headers.merge(custom_headers || {}),
|
543
|
+
base_url: request_url
|
544
|
+
}
|
545
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
546
|
+
|
547
|
+
promise = promise.then do |result|
|
548
|
+
http_response = result.response
|
549
|
+
status_code = http_response.status
|
550
|
+
response_content = http_response.body
|
551
|
+
unless status_code == 200
|
552
|
+
error_model = JSON.load(response_content)
|
553
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
554
|
+
end
|
555
|
+
|
556
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
557
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
558
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
559
|
+
# Deserialize Response
|
560
|
+
if status_code == 200
|
561
|
+
begin
|
562
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
563
|
+
result_mapper = Azure::MediaServices::Mgmt::V2020_05_01::Models::AccountFilter.mapper()
|
564
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
565
|
+
rescue Exception => e
|
566
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
567
|
+
end
|
568
|
+
end
|
569
|
+
|
570
|
+
result
|
571
|
+
end
|
572
|
+
|
573
|
+
promise.execute
|
574
|
+
end
|
575
|
+
|
576
|
+
#
|
577
|
+
# List Account Filters
|
578
|
+
#
|
579
|
+
# List Account Filters in the Media Services account.
|
580
|
+
#
|
581
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
582
|
+
# to List operation.
|
583
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
584
|
+
# will be added to the HTTP request.
|
585
|
+
#
|
586
|
+
# @return [AccountFilterCollection] operation results.
|
587
|
+
#
|
588
|
+
def list_next(next_page_link, custom_headers:nil)
|
589
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
590
|
+
response.body unless response.nil?
|
591
|
+
end
|
592
|
+
|
593
|
+
#
|
594
|
+
# List Account Filters
|
595
|
+
#
|
596
|
+
# List Account Filters in the Media Services account.
|
597
|
+
#
|
598
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
599
|
+
# to List operation.
|
600
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
601
|
+
# will be added to the HTTP request.
|
602
|
+
#
|
603
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
604
|
+
#
|
605
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
606
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
607
|
+
end
|
608
|
+
|
609
|
+
#
|
610
|
+
# List Account Filters
|
611
|
+
#
|
612
|
+
# List Account Filters in the Media Services account.
|
613
|
+
#
|
614
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
615
|
+
# to List operation.
|
616
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
617
|
+
# to the HTTP request.
|
618
|
+
#
|
619
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
620
|
+
#
|
621
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
622
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
623
|
+
|
624
|
+
|
625
|
+
request_headers = {}
|
626
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
627
|
+
|
628
|
+
# Set Headers
|
629
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
630
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
631
|
+
path_template = '{nextLink}'
|
632
|
+
|
633
|
+
request_url = @base_url || @client.base_url
|
634
|
+
|
635
|
+
options = {
|
636
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
637
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
638
|
+
headers: request_headers.merge(custom_headers || {}),
|
639
|
+
base_url: request_url
|
640
|
+
}
|
641
|
+
promise = @client.make_request_async(:get, path_template, options)
|
642
|
+
|
643
|
+
promise = promise.then do |result|
|
644
|
+
http_response = result.response
|
645
|
+
status_code = http_response.status
|
646
|
+
response_content = http_response.body
|
647
|
+
unless status_code == 200
|
648
|
+
error_model = JSON.load(response_content)
|
649
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
650
|
+
end
|
651
|
+
|
652
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
653
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
654
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
655
|
+
# Deserialize Response
|
656
|
+
if status_code == 200
|
657
|
+
begin
|
658
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
659
|
+
result_mapper = Azure::MediaServices::Mgmt::V2020_05_01::Models::AccountFilterCollection.mapper()
|
660
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
661
|
+
rescue Exception => e
|
662
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
663
|
+
end
|
664
|
+
end
|
665
|
+
|
666
|
+
result
|
667
|
+
end
|
668
|
+
|
669
|
+
promise.execute
|
670
|
+
end
|
671
|
+
|
672
|
+
#
|
673
|
+
# List Account Filters
|
674
|
+
#
|
675
|
+
# List Account Filters in the Media Services account.
|
676
|
+
#
|
677
|
+
# @param resource_group_name [String] The name of the resource group within the
|
678
|
+
# Azure subscription.
|
679
|
+
# @param account_name [String] The Media Services account name.
|
680
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
681
|
+
# will be added to the HTTP request.
|
682
|
+
#
|
683
|
+
# @return [AccountFilterCollection] which provide lazy access to pages of the
|
684
|
+
# response.
|
685
|
+
#
|
686
|
+
def list_as_lazy(resource_group_name, account_name, custom_headers:nil)
|
687
|
+
response = list_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
688
|
+
unless response.nil?
|
689
|
+
page = response.body
|
690
|
+
page.next_method = Proc.new do |next_page_link|
|
691
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
692
|
+
end
|
693
|
+
page
|
694
|
+
end
|
695
|
+
end
|
696
|
+
|
697
|
+
end
|
698
|
+
end
|