azure_mgmt_media_services 0.20.1 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-10-01/generated/azure_mgmt_media_services/media_services_management_client.rb +1 -1
- data/lib/2018-03-30-preview/generated/azure_mgmt_media_services/azure_media_services.rb +1 -1
- data/lib/2018-06-01-preview/generated/azure_mgmt_media_services/azure_media_services.rb +1 -1
- data/lib/2018-07-01/generated/azure_mgmt_media_services/azure_media_services.rb +1 -1
- data/lib/2019-05-01-preview/generated/azure_mgmt_media_services/azure_media_services.rb +1 -1
- data/lib/2020-05-01/generated/azure_mgmt_media_services.rb +266 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/account_filters.rb +698 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/asset_filters.rb +719 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/assets.rb +1069 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/azure_media_services.rb +193 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/content_key_policies.rb +829 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/jobs.rb +826 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/live_events.rb +1509 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/live_outputs.rb +737 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/locations.rb +132 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/mediaservices.rb +1203 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/aac_audio.rb +94 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/aac_audio_profile.rb +17 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/absolute_clip_time.rb +65 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/account_encryption.rb +61 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/account_encryption_key_type.rb +16 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/account_filter.rb +106 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/account_filter_collection.rb +99 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/akamai_access_control.rb +56 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/akamai_signature_header_authentication_key.rb +68 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/analysis_resolution.rb +16 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/api_error.rb +47 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/asset.rb +156 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/asset_collection.rb +99 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/asset_container_permission.rb +17 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/asset_container_sas.rb +54 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/asset_file_encryption_metadata.rb +68 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/asset_filter.rb +106 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/asset_filter_collection.rb +99 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/asset_storage_encryption_format.rb +16 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/asset_streaming_locator.rb +133 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/audio.rb +92 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/audio_analysis_mode.rb +16 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/audio_analyzer_preset.rb +110 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/audio_overlay.rb +98 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/azure_entity_resource.rb +75 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/built_in_standard_encoder_preset.rb +68 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/cbcs_drm_configuration.rb +73 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/cenc_drm_configuration.rb +61 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/check_name_availability_input.rb +58 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/clip_time.rb +48 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/codec.rb +66 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/common_encryption_cbcs.rb +95 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/common_encryption_cenc.rb +95 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy.rb +129 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_clear_key_configuration.rb +50 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_collection.rb +100 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_configuration.rb +51 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_fair_play_configuration.rb +124 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_fair_play_offline_rental_configuration.rb +59 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_fair_play_rental_and_lease_key_type.rb +19 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_open_restriction.rb +51 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_option.rb +87 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_configuration.rb +82 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_encryption_key_from_header.rb +51 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_encryption_key_from_key_identifier.rb +64 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_key_location.rb +49 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_content_type.rb +18 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_explicit_analog_television_restriction.rb +61 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license.rb +154 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license_type.rb +17 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_play_right.rb +195 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_unknown_output_passing_option.rb +18 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_properties.rb +102 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_restriction.rb +49 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_restriction_token_key.rb +49 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_restriction_token_type.rb +17 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_rsa_token_key.rb +72 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_symmetric_token_key.rb +61 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_token_claim.rb +57 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_token_restriction.rb +155 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_unknown_configuration.rb +51 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_unknown_restriction.rb +51 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_widevine_configuration.rb +61 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/content_key_policy_x509certificate_token_key.rb +62 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/copy_audio.rb +58 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/copy_video.rb +59 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/cross_site_access_policies.rb +58 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/default_key.rb +59 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/deinterlace.rb +60 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/deinterlace_mode.rb +16 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/deinterlace_parity.rb +17 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/edge_policies.rb +48 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/edge_usage_data_collection_policy.rb +85 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/edge_usage_data_event_hub.rb +70 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/enabled_protocols.rb +79 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/encoder_named_preset.rb +25 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/encryption_scheme.rb +18 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/entity_name_availability_check_output.rb +69 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/entropy_mode.rb +16 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/envelope_encryption.rb +100 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/face_detector_preset.rb +95 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/filter_track_property_compare_operation.rb +16 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/filter_track_property_condition.rb +71 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/filter_track_property_type.rb +20 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/filter_track_selection.rb +56 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/filters.rb +97 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/first_quality.rb +46 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/format.rb +74 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/h264complexity.rb +17 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/h264layer.rb +189 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/h264video.rb +130 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/h264video_profile.rb +20 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/hls.rb +48 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/image.rb +145 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/image_format.rb +58 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/insights_type.rb +17 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/ipaccess_control.rb +55 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/iprange.rb +68 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job.rb +210 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job_collection.rb +99 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job_error.rb +114 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job_error_category.rb +19 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job_error_code.rb +23 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job_error_detail.rb +59 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job_input.rb +49 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job_input_asset.rb +107 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job_input_clip.rb +117 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job_input_http.rb +110 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job_inputs.rb +72 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job_output.rb +138 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job_output_asset.rb +115 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job_retry.rb +16 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/job_state.rb +21 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/jpg_format.rb +58 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/jpg_image.rb +144 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/jpg_layer.rb +86 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/key_vault_properties.rb +63 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/layer.rb +93 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/list_container_sas_input.rb +59 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/list_content_keys_response.rb +56 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/list_edge_policies_input.rb +47 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/list_paths_response.rb +76 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/list_streaming_locators_response.rb +56 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/live_event.rb +274 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/live_event_action_input.rb +48 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/live_event_encoding.rb +99 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/live_event_encoding_type.rb +17 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/live_event_endpoint.rb +57 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/live_event_input.rb +109 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/live_event_input_access_control.rb +47 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/live_event_input_protocol.rb +16 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/live_event_input_track_selection.rb +72 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/live_event_list_result.rb +110 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/live_event_output_transcription_track.rb +49 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/live_event_preview.rb +113 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/live_event_preview_access_control.rb +47 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/live_event_resource_state.rb +21 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/live_event_transcription.rb +91 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/live_output.rb +185 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/live_output_list_result.rb +111 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/live_output_resource_state.rb +17 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/location.rb +47 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/log_specification.rb +71 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/managed_identity_type.rb +16 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/media_service.rb +155 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/media_service_collection.rb +99 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/media_service_identity.rb +72 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/metric_aggregation_type.rb +17 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/metric_dimension.rb +71 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/metric_specification.rb +137 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/metric_unit.rb +17 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/mp4format.rb +75 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/multi_bitrate_format.rb +84 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/no_encryption.rb +47 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/odata_error.rb +89 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/on_error_type.rb +16 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/operation.rb +81 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/operation_collection.rb +99 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/operation_display.rb +79 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/output_file.rb +59 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb +133 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/png_format.rb +58 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/png_image.rb +128 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/png_layer.rb +74 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/presentation_time_range.rb +102 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/preset.rb +51 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/priority.rb +17 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/private_endpoint.rb +47 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/private_endpoint_connection.rb +101 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/private_endpoint_connection_list_result.rb +57 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/private_endpoint_connection_provisioning_state.rb +18 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/private_endpoint_service_connection_status.rb +17 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/private_link_resource.rb +115 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/private_link_resource_list_result.rb +55 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/private_link_service_connection_state.rb +72 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/properties.rb +48 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/provider.rb +46 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/proxy_resource.rb +63 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/rectangle.rb +88 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/resource.rb +83 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/rotation.rb +20 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/service_specification.rb +77 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/standard_encoder_preset.rb +110 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/storage_account.rb +62 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/storage_account_type.rb +16 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/storage_authentication.rb +16 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/storage_encrypted_asset_decryption_data.rb +68 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/stream_options_flag.rb +16 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_endpoint.rb +285 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_endpoint_access_control.rb +60 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_endpoint_list_result.rb +111 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_endpoint_resource_state.rb +20 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_entity_scale_unit.rb +46 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_locator.rb +199 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_locator_collection.rb +100 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_locator_content_key.rb +116 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_locator_content_key_type.rb +17 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_path.rb +80 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_policy.rb +133 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_policy_collection.rb +99 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_policy_content_key.rb +78 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_policy_content_keys.rb +68 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_policy_fair_play_configuration.rb +64 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_policy_play_ready_configuration.rb +64 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_policy_streaming_protocol.rb +18 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/streaming_policy_widevine_configuration.rb +53 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/stretch_mode.rb +17 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/sync_storage_keys_input.rb +46 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/track_property_compare_operation.rb +16 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/track_property_condition.rb +70 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/track_property_type.rb +16 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/track_selection.rb +56 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/tracked_resource.rb +92 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/transform.rb +123 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/transform_collection.rb +99 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/transform_output.rb +82 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/transport_stream_format.rb +76 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/utc_clip_time.rb +64 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/video.rb +98 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/video_analyzer_preset.rb +103 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/video_layer.rb +156 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/video_overlay.rb +136 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/models/video_sync_mode.rb +18 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/module_definition.rb +9 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/operations.rb +233 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/private_endpoint_connections.rb +449 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/private_link_resources.rb +235 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/streaming_endpoints.rb +1364 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/streaming_locators.rb +808 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/streaming_policies.rb +594 -0
- data/lib/2020-05-01/generated/azure_mgmt_media_services/transforms.rb +710 -0
- data/lib/azure_mgmt_media_services.rb +3 -2
- data/lib/profiles/latest/modules/mediaservices_profile_module.rb +594 -494
- data/lib/version.rb +1 -1
- metadata +245 -3
@@ -0,0 +1,136 @@
|
|
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
|
+
module Models
|
8
|
+
#
|
9
|
+
# Describes the properties of a video overlay.
|
10
|
+
#
|
11
|
+
class VideoOverlay < Overlay
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
|
16
|
+
def initialize
|
17
|
+
@odatatype = "#Microsoft.Media.VideoOverlay"
|
18
|
+
end
|
19
|
+
|
20
|
+
attr_accessor :odatatype
|
21
|
+
|
22
|
+
# @return [Rectangle] The location in the input video where the overlay
|
23
|
+
# is applied.
|
24
|
+
attr_accessor :position
|
25
|
+
|
26
|
+
# @return [Float] The opacity of the overlay. This is a value in the
|
27
|
+
# range [0 - 1.0]. Default is 1.0 which mean the overlay is opaque.
|
28
|
+
attr_accessor :opacity
|
29
|
+
|
30
|
+
# @return [Rectangle] An optional rectangular window used to crop the
|
31
|
+
# overlay image or video.
|
32
|
+
attr_accessor :crop_rectangle
|
33
|
+
|
34
|
+
|
35
|
+
#
|
36
|
+
# Mapper for VideoOverlay class as Ruby Hash.
|
37
|
+
# This will be used for serialization/deserialization.
|
38
|
+
#
|
39
|
+
def self.mapper()
|
40
|
+
{
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
serialized_name: '#Microsoft.Media.VideoOverlay',
|
44
|
+
type: {
|
45
|
+
name: 'Composite',
|
46
|
+
class_name: 'VideoOverlay',
|
47
|
+
model_properties: {
|
48
|
+
input_label: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: true,
|
51
|
+
serialized_name: 'inputLabel',
|
52
|
+
type: {
|
53
|
+
name: 'String'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
start: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'start',
|
60
|
+
type: {
|
61
|
+
name: 'TimeSpan'
|
62
|
+
}
|
63
|
+
},
|
64
|
+
end_property: {
|
65
|
+
client_side_validation: true,
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'end',
|
68
|
+
type: {
|
69
|
+
name: 'TimeSpan'
|
70
|
+
}
|
71
|
+
},
|
72
|
+
fade_in_duration: {
|
73
|
+
client_side_validation: true,
|
74
|
+
required: false,
|
75
|
+
serialized_name: 'fadeInDuration',
|
76
|
+
type: {
|
77
|
+
name: 'TimeSpan'
|
78
|
+
}
|
79
|
+
},
|
80
|
+
fade_out_duration: {
|
81
|
+
client_side_validation: true,
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'fadeOutDuration',
|
84
|
+
type: {
|
85
|
+
name: 'TimeSpan'
|
86
|
+
}
|
87
|
+
},
|
88
|
+
audio_gain_level: {
|
89
|
+
client_side_validation: true,
|
90
|
+
required: false,
|
91
|
+
serialized_name: 'audioGainLevel',
|
92
|
+
type: {
|
93
|
+
name: 'Double'
|
94
|
+
}
|
95
|
+
},
|
96
|
+
odatatype: {
|
97
|
+
client_side_validation: true,
|
98
|
+
required: true,
|
99
|
+
serialized_name: '@odata\\.type',
|
100
|
+
type: {
|
101
|
+
name: 'String'
|
102
|
+
}
|
103
|
+
},
|
104
|
+
position: {
|
105
|
+
client_side_validation: true,
|
106
|
+
required: false,
|
107
|
+
serialized_name: 'position',
|
108
|
+
type: {
|
109
|
+
name: 'Composite',
|
110
|
+
class_name: 'Rectangle'
|
111
|
+
}
|
112
|
+
},
|
113
|
+
opacity: {
|
114
|
+
client_side_validation: true,
|
115
|
+
required: false,
|
116
|
+
serialized_name: 'opacity',
|
117
|
+
type: {
|
118
|
+
name: 'Double'
|
119
|
+
}
|
120
|
+
},
|
121
|
+
crop_rectangle: {
|
122
|
+
client_side_validation: true,
|
123
|
+
required: false,
|
124
|
+
serialized_name: 'cropRectangle',
|
125
|
+
type: {
|
126
|
+
name: 'Composite',
|
127
|
+
class_name: 'Rectangle'
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
136
|
+
end
|
@@ -0,0 +1,18 @@
|
|
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
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for VideoSyncMode
|
10
|
+
#
|
11
|
+
module VideoSyncMode
|
12
|
+
Auto = "Auto"
|
13
|
+
Passthrough = "Passthrough"
|
14
|
+
Cfr = "Cfr"
|
15
|
+
Vfr = "Vfr"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,9 @@
|
|
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 end
|
7
|
+
module Azure::MediaServices end
|
8
|
+
module Azure::MediaServices::Mgmt end
|
9
|
+
module Azure::MediaServices::Mgmt::V2020_05_01 end
|
@@ -0,0 +1,233 @@
|
|
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
|
+
# Operations
|
9
|
+
#
|
10
|
+
class Operations
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Operations 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 Operations
|
26
|
+
#
|
27
|
+
# Lists all the Media Services operations.
|
28
|
+
#
|
29
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
30
|
+
# will be added to the HTTP request.
|
31
|
+
#
|
32
|
+
# @return [Array<Operation>] operation results.
|
33
|
+
#
|
34
|
+
def list(custom_headers:nil)
|
35
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
36
|
+
first_page.get_all_items
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# List Operations
|
41
|
+
#
|
42
|
+
# Lists all the Media Services operations.
|
43
|
+
#
|
44
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
45
|
+
# will be added to the HTTP request.
|
46
|
+
#
|
47
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
48
|
+
#
|
49
|
+
def list_with_http_info(custom_headers:nil)
|
50
|
+
list_async(custom_headers:custom_headers).value!
|
51
|
+
end
|
52
|
+
|
53
|
+
#
|
54
|
+
# List Operations
|
55
|
+
#
|
56
|
+
# Lists all the Media Services operations.
|
57
|
+
#
|
58
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
59
|
+
# to the HTTP request.
|
60
|
+
#
|
61
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
62
|
+
#
|
63
|
+
def list_async(custom_headers:nil)
|
64
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
65
|
+
|
66
|
+
|
67
|
+
request_headers = {}
|
68
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
69
|
+
|
70
|
+
# Set Headers
|
71
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
72
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
73
|
+
path_template = 'providers/Microsoft.Media/operations'
|
74
|
+
|
75
|
+
request_url = @base_url || @client.base_url
|
76
|
+
|
77
|
+
options = {
|
78
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
79
|
+
query_params: {'api-version' => @client.api_version},
|
80
|
+
headers: request_headers.merge(custom_headers || {}),
|
81
|
+
base_url: request_url
|
82
|
+
}
|
83
|
+
promise = @client.make_request_async(:get, path_template, options)
|
84
|
+
|
85
|
+
promise = promise.then do |result|
|
86
|
+
http_response = result.response
|
87
|
+
status_code = http_response.status
|
88
|
+
response_content = http_response.body
|
89
|
+
unless status_code == 200
|
90
|
+
error_model = JSON.load(response_content)
|
91
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
92
|
+
end
|
93
|
+
|
94
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
95
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
96
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
97
|
+
# Deserialize Response
|
98
|
+
if status_code == 200
|
99
|
+
begin
|
100
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
101
|
+
result_mapper = Azure::MediaServices::Mgmt::V2020_05_01::Models::OperationCollection.mapper()
|
102
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
103
|
+
rescue Exception => e
|
104
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
result
|
109
|
+
end
|
110
|
+
|
111
|
+
promise.execute
|
112
|
+
end
|
113
|
+
|
114
|
+
#
|
115
|
+
# List Operations
|
116
|
+
#
|
117
|
+
# Lists all the Media Services operations.
|
118
|
+
#
|
119
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
120
|
+
# to List operation.
|
121
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
122
|
+
# will be added to the HTTP request.
|
123
|
+
#
|
124
|
+
# @return [OperationCollection] operation results.
|
125
|
+
#
|
126
|
+
def list_next(next_page_link, custom_headers:nil)
|
127
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
128
|
+
response.body unless response.nil?
|
129
|
+
end
|
130
|
+
|
131
|
+
#
|
132
|
+
# List Operations
|
133
|
+
#
|
134
|
+
# Lists all the Media Services operations.
|
135
|
+
#
|
136
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
137
|
+
# to List operation.
|
138
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
139
|
+
# will be added to the HTTP request.
|
140
|
+
#
|
141
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
142
|
+
#
|
143
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
144
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
145
|
+
end
|
146
|
+
|
147
|
+
#
|
148
|
+
# List Operations
|
149
|
+
#
|
150
|
+
# Lists all the Media Services operations.
|
151
|
+
#
|
152
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
153
|
+
# to List operation.
|
154
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
155
|
+
# to the HTTP request.
|
156
|
+
#
|
157
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
158
|
+
#
|
159
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
160
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
161
|
+
|
162
|
+
|
163
|
+
request_headers = {}
|
164
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
165
|
+
|
166
|
+
# Set Headers
|
167
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
168
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
169
|
+
path_template = '{nextLink}'
|
170
|
+
|
171
|
+
request_url = @base_url || @client.base_url
|
172
|
+
|
173
|
+
options = {
|
174
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
175
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
176
|
+
headers: request_headers.merge(custom_headers || {}),
|
177
|
+
base_url: request_url
|
178
|
+
}
|
179
|
+
promise = @client.make_request_async(:get, path_template, options)
|
180
|
+
|
181
|
+
promise = promise.then do |result|
|
182
|
+
http_response = result.response
|
183
|
+
status_code = http_response.status
|
184
|
+
response_content = http_response.body
|
185
|
+
unless status_code == 200
|
186
|
+
error_model = JSON.load(response_content)
|
187
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
188
|
+
end
|
189
|
+
|
190
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
191
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
192
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
193
|
+
# Deserialize Response
|
194
|
+
if status_code == 200
|
195
|
+
begin
|
196
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
197
|
+
result_mapper = Azure::MediaServices::Mgmt::V2020_05_01::Models::OperationCollection.mapper()
|
198
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
199
|
+
rescue Exception => e
|
200
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
result
|
205
|
+
end
|
206
|
+
|
207
|
+
promise.execute
|
208
|
+
end
|
209
|
+
|
210
|
+
#
|
211
|
+
# List Operations
|
212
|
+
#
|
213
|
+
# Lists all the Media Services operations.
|
214
|
+
#
|
215
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
216
|
+
# will be added to the HTTP request.
|
217
|
+
#
|
218
|
+
# @return [OperationCollection] which provide lazy access to pages of the
|
219
|
+
# response.
|
220
|
+
#
|
221
|
+
def list_as_lazy(custom_headers:nil)
|
222
|
+
response = list_async(custom_headers:custom_headers).value!
|
223
|
+
unless response.nil?
|
224
|
+
page = response.body
|
225
|
+
page.next_method = Proc.new do |next_page_link|
|
226
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
227
|
+
end
|
228
|
+
page
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
end
|
233
|
+
end
|
@@ -0,0 +1,449 @@
|
|
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
|
+
# PrivateEndpointConnections
|
9
|
+
#
|
10
|
+
class PrivateEndpointConnections
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the PrivateEndpointConnections 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
|
+
# Get all private endpoint connections.
|
26
|
+
#
|
27
|
+
# Get all private endpoint connections.
|
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 [PrivateEndpointConnectionListResult] operation results.
|
36
|
+
#
|
37
|
+
def list(resource_group_name, account_name, custom_headers:nil)
|
38
|
+
response = list_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
39
|
+
response.body unless response.nil?
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Get all private endpoint connections.
|
44
|
+
#
|
45
|
+
# Get all private endpoint connections.
|
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
|
+
# Get all private endpoint connections.
|
61
|
+
#
|
62
|
+
# Get all private endpoint connections.
|
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}/privateEndpointConnections'
|
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::PrivateEndpointConnectionListResult.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 private endpoint connection.
|
129
|
+
#
|
130
|
+
# Get private endpoint connection.
|
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 name [String]
|
136
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
137
|
+
# will be added to the HTTP request.
|
138
|
+
#
|
139
|
+
# @return [PrivateEndpointConnection] operation results.
|
140
|
+
#
|
141
|
+
def get(resource_group_name, account_name, name, custom_headers:nil)
|
142
|
+
response = get_async(resource_group_name, account_name, name, custom_headers:custom_headers).value!
|
143
|
+
response.body unless response.nil?
|
144
|
+
end
|
145
|
+
|
146
|
+
#
|
147
|
+
# Get private endpoint connection.
|
148
|
+
#
|
149
|
+
# Get private endpoint connection.
|
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 name [String]
|
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, name, custom_headers:nil)
|
161
|
+
get_async(resource_group_name, account_name, name, custom_headers:custom_headers).value!
|
162
|
+
end
|
163
|
+
|
164
|
+
#
|
165
|
+
# Get private endpoint connection.
|
166
|
+
#
|
167
|
+
# Get private endpoint connection.
|
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 name [String]
|
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, 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, 'name is nil' if 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}/privateEndpointConnections/{name}'
|
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,'name' => 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
|
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::PrivateEndpointConnection.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
|
+
# Update private endpoint connection.
|
236
|
+
#
|
237
|
+
# Update private endpoint connection.
|
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 name [String]
|
243
|
+
# @param parameters [PrivateEndpointConnection] 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 [PrivateEndpointConnection] operation results.
|
248
|
+
#
|
249
|
+
def create_or_update(resource_group_name, account_name, name, parameters, custom_headers:nil)
|
250
|
+
response = create_or_update_async(resource_group_name, account_name, name, parameters, custom_headers:custom_headers).value!
|
251
|
+
response.body unless response.nil?
|
252
|
+
end
|
253
|
+
|
254
|
+
#
|
255
|
+
# Update private endpoint connection.
|
256
|
+
#
|
257
|
+
# Update private endpoint connection.
|
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 name [String]
|
263
|
+
# @param parameters [PrivateEndpointConnection] 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, name, parameters, custom_headers:nil)
|
270
|
+
create_or_update_async(resource_group_name, account_name, name, parameters, custom_headers:custom_headers).value!
|
271
|
+
end
|
272
|
+
|
273
|
+
#
|
274
|
+
# Update private endpoint connection.
|
275
|
+
#
|
276
|
+
# Update private endpoint connection.
|
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 name [String]
|
282
|
+
# @param parameters [PrivateEndpointConnection] 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, 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, 'name is nil' if 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::PrivateEndpointConnection.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}/privateEndpointConnections/{name}'
|
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,'name' => 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
|
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::PrivateEndpointConnection.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
|
+
|
346
|
+
result
|
347
|
+
end
|
348
|
+
|
349
|
+
promise.execute
|
350
|
+
end
|
351
|
+
|
352
|
+
#
|
353
|
+
# Delete private endpoint connection.
|
354
|
+
#
|
355
|
+
# Delete private endpoint connection.
|
356
|
+
#
|
357
|
+
# @param resource_group_name [String] The name of the resource group within the
|
358
|
+
# Azure subscription.
|
359
|
+
# @param account_name [String] The Media Services account name.
|
360
|
+
# @param name [String]
|
361
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
362
|
+
# will be added to the HTTP request.
|
363
|
+
#
|
364
|
+
#
|
365
|
+
def delete(resource_group_name, account_name, name, custom_headers:nil)
|
366
|
+
response = delete_async(resource_group_name, account_name, name, custom_headers:custom_headers).value!
|
367
|
+
nil
|
368
|
+
end
|
369
|
+
|
370
|
+
#
|
371
|
+
# Delete private endpoint connection.
|
372
|
+
#
|
373
|
+
# Delete private endpoint connection.
|
374
|
+
#
|
375
|
+
# @param resource_group_name [String] The name of the resource group within the
|
376
|
+
# Azure subscription.
|
377
|
+
# @param account_name [String] The Media Services account name.
|
378
|
+
# @param name [String]
|
379
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
380
|
+
# will be added to the HTTP request.
|
381
|
+
#
|
382
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
383
|
+
#
|
384
|
+
def delete_with_http_info(resource_group_name, account_name, name, custom_headers:nil)
|
385
|
+
delete_async(resource_group_name, account_name, name, custom_headers:custom_headers).value!
|
386
|
+
end
|
387
|
+
|
388
|
+
#
|
389
|
+
# Delete private endpoint connection.
|
390
|
+
#
|
391
|
+
# Delete private endpoint connection.
|
392
|
+
#
|
393
|
+
# @param resource_group_name [String] The name of the resource group within the
|
394
|
+
# Azure subscription.
|
395
|
+
# @param account_name [String] The Media Services account name.
|
396
|
+
# @param name [String]
|
397
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
398
|
+
# to the HTTP request.
|
399
|
+
#
|
400
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
401
|
+
#
|
402
|
+
def delete_async(resource_group_name, account_name, name, custom_headers:nil)
|
403
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
404
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
405
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
406
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
407
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
408
|
+
|
409
|
+
|
410
|
+
request_headers = {}
|
411
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
412
|
+
|
413
|
+
# Set Headers
|
414
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
415
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
416
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections/{name}'
|
417
|
+
|
418
|
+
request_url = @base_url || @client.base_url
|
419
|
+
|
420
|
+
options = {
|
421
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
422
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'name' => name},
|
423
|
+
query_params: {'api-version' => @client.api_version},
|
424
|
+
headers: request_headers.merge(custom_headers || {}),
|
425
|
+
base_url: request_url
|
426
|
+
}
|
427
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
428
|
+
|
429
|
+
promise = promise.then do |result|
|
430
|
+
http_response = result.response
|
431
|
+
status_code = http_response.status
|
432
|
+
response_content = http_response.body
|
433
|
+
unless status_code == 200
|
434
|
+
error_model = JSON.load(response_content)
|
435
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
436
|
+
end
|
437
|
+
|
438
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
439
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
440
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
441
|
+
|
442
|
+
result
|
443
|
+
end
|
444
|
+
|
445
|
+
promise.execute
|
446
|
+
end
|
447
|
+
|
448
|
+
end
|
449
|
+
end
|