azure_mgmt_media_services 0.21.0 → 0.21.1
Sign up to get free protection for your applications and to get access to all the features.
- 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/2020-05-01/generated/azure_mgmt_media_services.rb +96 -72
- data/lib/2020-05-01/generated/azure_mgmt_media_services/azure_media_services.rb +1 -1
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/account_filter.rb +13 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/asset.rb +13 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/asset_filter.rb +13 -0
- data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/aac_audio_profile.rb → 2020-05-01/generated/azure_mgmt_media_services/models/attribute_filter.rb} +7 -6
- data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/copy_audio.rb → 2020-05-01/generated/azure_mgmt_media_services/models/audio_track_descriptor.rb} +20 -13
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/azure_entity_resource.rb +3 -1
- data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/priority.rb → 2020-05-01/generated/azure_mgmt_media_services/models/blur_type.rb} +6 -4
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/built_in_standard_encoder_preset.rb +3 -1
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/channel_mapping.rb +22 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/codec.rb +1 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy.rb +13 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/created_by_type.rb +18 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/encoder_named_preset.rb +5 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/face_detector_preset.rb +33 -1
- data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_input_protocol.rb → 2020-05-01/generated/azure_mgmt_media_services/models/face_redactor_mode.rb} +6 -5
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/format.rb +2 -2
- data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_configuration.rb → 2020-05-01/generated/azure_mgmt_media_services/models/from_all_input_file.rb} +20 -30
- data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/mp4format.rb → 2020-05-01/generated/azure_mgmt_media_services/models/from_each_input_file.rb} +24 -27
- data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/h264complexity.rb → 2020-05-01/generated/azure_mgmt_media_services/models/h265complexity.rb} +3 -3
- data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/h264layer.rb → 2020-05-01/generated/azure_mgmt_media_services/models/h265layer.rb} +10 -24
- data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/h264video.rb → 2020-05-01/generated/azure_mgmt_media_services/models/h265video.rb} +27 -17
- data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/video_layer.rb → 2020-05-01/generated/azure_mgmt_media_services/models/h265video_layer.rb} +12 -11
- data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/entropy_mode.rb → 2020-05-01/generated/azure_mgmt_media_services/models/h265video_profile.rb} +5 -5
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/input_definition.rb +72 -0
- data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/transport_stream_format.rb → 2020-05-01/generated/azure_mgmt_media_services/models/input_file.rb} +30 -24
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job.rb +13 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job_input.rb +1 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job_input_asset.rb +19 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job_input_clip.rb +24 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job_input_http.rb +19 -0
- data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/job_inputs.rb → 2020-05-01/generated/azure_mgmt_media_services/models/job_input_sequence.rb} +11 -12
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/layer.rb +2 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/live_event.rb +13 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/media_service.rb +13 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/metric_specification.rb +13 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb +4 -3
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/proxy_resource.rb +4 -2
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/resource.rb +8 -5
- data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/job_output_asset.rb → 2020-05-01/generated/azure_mgmt_media_services/models/select_audio_track_by_attribute.rb} +34 -35
- data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/png_layer.rb → 2020-05-01/generated/azure_mgmt_media_services/models/select_audio_track_by_id.rb} +18 -23
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/select_video_track_by_attribute.rb +91 -0
- data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/image_format.rb → 2020-05-01/generated/azure_mgmt_media_services/models/select_video_track_by_id.rb} +15 -12
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_endpoint.rb +13 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_locator.rb +13 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_policy.rb +13 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/system_data.rb +105 -0
- data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/job_retry.rb → 2020-05-01/generated/azure_mgmt_media_services/models/track_attribute.rb} +5 -5
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/track_descriptor.rb +52 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/tracked_resource.rb +4 -1
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/transform.rb +13 -0
- data/lib/{2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_clear_key_configuration.rb → 2020-05-01/generated/azure_mgmt_media_services/models/video_track_descriptor.rb} +7 -7
- data/lib/azure_mgmt_media_services.rb +0 -1
- data/lib/profiles/latest/modules/mediaservices_profile_module.rb +336 -240
- data/lib/version.rb +1 -1
- metadata +26 -220
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services.rb +0 -242
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/account_filters.rb +0 -698
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/asset_filters.rb +0 -719
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/assets.rb +0 -1069
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/azure_media_services.rb +0 -180
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/content_key_policies.rb +0 -829
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/jobs.rb +0 -826
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/live_events.rb +0 -1308
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/live_outputs.rb +0 -716
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/locations.rb +0 -132
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/mediaservices.rb +0 -1089
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/aac_audio.rb +0 -94
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/absolute_clip_time.rb +0 -65
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/account_filter.rb +0 -106
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/account_filter_collection.rb +0 -99
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/akamai_access_control.rb +0 -56
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/akamai_signature_header_authentication_key.rb +0 -68
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/analysis_resolution.rb +0 -16
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/api_error.rb +0 -47
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/asset.rb +0 -156
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/asset_collection.rb +0 -99
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/asset_container_permission.rb +0 -17
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/asset_container_sas.rb +0 -54
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/asset_file_encryption_metadata.rb +0 -68
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/asset_filter.rb +0 -106
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/asset_filter_collection.rb +0 -99
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/asset_storage_encryption_format.rb +0 -16
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/asset_streaming_locator.rb +0 -133
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/audio.rb +0 -92
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/audio_analyzer_preset.rb +0 -79
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/audio_overlay.rb +0 -98
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/built_in_standard_encoder_preset.rb +0 -67
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/cbcs_drm_configuration.rb +0 -73
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/cenc_drm_configuration.rb +0 -61
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/check_name_availability_input.rb +0 -58
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/clip_time.rb +0 -47
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/codec.rb +0 -66
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/common_encryption_cbcs.rb +0 -95
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/common_encryption_cenc.rb +0 -95
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy.rb +0 -129
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_collection.rb +0 -100
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_configuration.rb +0 -51
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_fair_play_configuration.rb +0 -111
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_fair_play_rental_and_lease_key_type.rb +0 -18
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_open_restriction.rb +0 -51
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_option.rb +0 -87
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_encryption_key_from_header.rb +0 -51
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_encryption_key_from_key_identifier.rb +0 -64
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_key_location.rb +0 -49
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_type.rb +0 -18
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_explicit_analog_television_restriction.rb +0 -61
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license.rb +0 -154
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license_type.rb +0 -17
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_play_right.rb +0 -195
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_unknown_output_passing_option.rb +0 -18
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_properties.rb +0 -102
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_restriction.rb +0 -49
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_restriction_token_key.rb +0 -49
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_restriction_token_type.rb +0 -17
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_rsa_token_key.rb +0 -72
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_symmetric_token_key.rb +0 -61
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_token_claim.rb +0 -57
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_token_restriction.rb +0 -155
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_unknown_configuration.rb +0 -51
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_unknown_restriction.rb +0 -51
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_widevine_configuration.rb +0 -61
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_x509certificate_token_key.rb +0 -62
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/copy_video.rb +0 -59
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/cross_site_access_policies.rb +0 -58
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/default_key.rb +0 -59
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/deinterlace.rb +0 -60
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/deinterlace_mode.rb +0 -16
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/deinterlace_parity.rb +0 -17
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/enabled_protocols.rb +0 -79
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/encoder_named_preset.rb +0 -23
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/encryption_scheme.rb +0 -18
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/entity_name_availability_check_output.rb +0 -69
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/envelope_encryption.rb +0 -100
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/face_detector_preset.rb +0 -75
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/filter_track_property_compare_operation.rb +0 -16
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/filter_track_property_condition.rb +0 -71
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/filter_track_property_type.rb +0 -20
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/filter_track_selection.rb +0 -56
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/filters.rb +0 -97
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/first_quality.rb +0 -46
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/format.rb +0 -69
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/h264video_profile.rb +0 -20
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/hls.rb +0 -47
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/image.rb +0 -120
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/insights_type.rb +0 -17
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/ipaccess_control.rb +0 -55
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/iprange.rb +0 -68
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job.rb +0 -184
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job_collection.rb +0 -99
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job_error.rb +0 -114
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job_error_category.rb +0 -19
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job_error_code.rb +0 -23
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job_error_detail.rb +0 -59
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job_input.rb +0 -49
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job_input_asset.rb +0 -107
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job_input_clip.rb +0 -117
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job_input_http.rb +0 -110
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job_output.rb +0 -112
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/job_state.rb +0 -21
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/jpg_format.rb +0 -58
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/jpg_image.rb +0 -120
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/jpg_layer.rb +0 -86
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/layer.rb +0 -93
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/list_container_sas_input.rb +0 -59
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/list_content_keys_response.rb +0 -56
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/list_paths_response.rb +0 -76
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/list_streaming_locators_response.rb +0 -56
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event.rb +0 -248
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_action_input.rb +0 -46
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_encoding.rb +0 -60
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_encoding_type.rb +0 -18
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_endpoint.rb +0 -57
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_input.rb +0 -107
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_input_access_control.rb +0 -47
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_input_track_selection.rb +0 -68
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_list_result.rb +0 -110
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_output_transcription_track.rb +0 -47
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_preview.rb +0 -112
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_preview_access_control.rb +0 -47
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_resource_state.rb +0 -19
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_event_transcription.rb +0 -87
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_output.rb +0 -181
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_output_list_result.rb +0 -111
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/live_output_resource_state.rb +0 -17
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/location.rb +0 -47
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/media_service.rb +0 -118
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/media_service_collection.rb +0 -99
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/metric.rb +0 -118
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/metric_aggregation_type.rb +0 -17
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/metric_dimension.rb +0 -71
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/metric_properties.rb +0 -48
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/metric_unit.rb +0 -17
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/multi_bitrate_format.rb +0 -84
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/no_encryption.rb +0 -47
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/odata_error.rb +0 -89
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/on_error_type.rb +0 -16
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/operation.rb +0 -81
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/operation_collection.rb +0 -99
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/operation_display.rb +0 -79
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/output_file.rb +0 -59
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/overlay.rb +0 -132
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/png_format.rb +0 -58
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/png_image.rb +0 -120
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/presentation_time_range.rb +0 -102
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/preset.rb +0 -51
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/provider.rb +0 -46
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/proxy_resource.rb +0 -62
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/rectangle.rb +0 -88
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/resource.rb +0 -80
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/rotation.rb +0 -20
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/service_specification.rb +0 -56
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/standard_encoder_preset.rb +0 -110
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/storage_account.rb +0 -62
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/storage_account_type.rb +0 -16
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/storage_encrypted_asset_decryption_data.rb +0 -68
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/stream_options_flag.rb +0 -16
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_endpoint.rb +0 -286
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_endpoint_access_control.rb +0 -60
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_endpoint_list_result.rb +0 -111
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_endpoint_resource_state.rb +0 -20
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_entity_scale_unit.rb +0 -46
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_locator.rb +0 -199
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_locator_collection.rb +0 -100
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_locator_content_key.rb +0 -116
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_locator_content_key_type.rb +0 -17
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_path.rb +0 -80
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_policy.rb +0 -133
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_policy_collection.rb +0 -99
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_policy_content_key.rb +0 -78
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_policy_content_keys.rb +0 -68
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_policy_fair_play_configuration.rb +0 -64
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_policy_play_ready_configuration.rb +0 -64
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_policy_streaming_protocol.rb +0 -18
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/streaming_policy_widevine_configuration.rb +0 -53
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/stretch_mode.rb +0 -17
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/subscription_media_service.rb +0 -118
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/subscription_media_service_collection.rb +0 -100
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/sync_storage_keys_input.rb +0 -46
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/track_property_compare_operation.rb +0 -16
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/track_property_condition.rb +0 -70
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/track_property_type.rb +0 -16
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/track_selection.rb +0 -56
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/tracked_resource.rb +0 -92
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/transform.rb +0 -123
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/transform_collection.rb +0 -99
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/transform_output.rb +0 -82
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/video.rb +0 -85
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/video_analyzer_preset.rb +0 -79
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/video_overlay.rb +0 -136
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/module_definition.rb +0 -9
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/operations.rb +0 -233
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/streaming_endpoints.rb +0 -1331
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/streaming_locators.rb +0 -808
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/streaming_policies.rb +0 -594
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/transforms.rb +0 -710
@@ -1,698 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::MediaServices::Mgmt::V2019_05_01_preview
|
7
|
-
#
|
8
|
-
# 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
|
-
api_version = '2018-07-01'
|
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' => 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::V2019_05_01_preview::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
|
-
api_version = '2018-07-01'
|
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' => 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::V2019_05_01_preview::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
|
-
api_version = '2018-07-01'
|
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::V2019_05_01_preview::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' => 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::V2019_05_01_preview::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::V2019_05_01_preview::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
|
-
api_version = '2018-07-01'
|
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' => 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
|
-
api_version = '2018-07-01'
|
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::V2019_05_01_preview::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' => 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::V2019_05_01_preview::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::V2019_05_01_preview::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
|