/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the mediapackage-vod-2018-11-07.normal.json service model.
*/
using System;
using System.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.MediaPackageVod.Model;
using Amazon.MediaPackageVod.Model.Internal.MarshallTransformations;
using Amazon.MediaPackageVod.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.MediaPackageVod
{
///
/// Implementation for accessing MediaPackageVod
///
/// AWS Elemental MediaPackage VOD
///
public partial class AmazonMediaPackageVodClient : AmazonServiceClient, IAmazonMediaPackageVod
{
private static IServiceMetadata serviceMetadata = new AmazonMediaPackageVodMetadata();
#region Constructors
///
/// Constructs AmazonMediaPackageVodClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
public AmazonMediaPackageVodClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonMediaPackageVodConfig()) { }
///
/// Constructs AmazonMediaPackageVodClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The region to connect.
public AmazonMediaPackageVodClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonMediaPackageVodConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonMediaPackageVodClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The AmazonMediaPackageVodClient Configuration Object
public AmazonMediaPackageVodClient(AmazonMediaPackageVodConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonMediaPackageVodClient with AWS Credentials
///
/// AWS Credentials
public AmazonMediaPackageVodClient(AWSCredentials credentials)
: this(credentials, new AmazonMediaPackageVodConfig())
{
}
///
/// Constructs AmazonMediaPackageVodClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonMediaPackageVodClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonMediaPackageVodConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonMediaPackageVodClient with AWS Credentials and an
/// AmazonMediaPackageVodClient Configuration object.
///
/// AWS Credentials
/// The AmazonMediaPackageVodClient Configuration Object
public AmazonMediaPackageVodClient(AWSCredentials credentials, AmazonMediaPackageVodConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonMediaPackageVodClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonMediaPackageVodClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonMediaPackageVodConfig())
{
}
///
/// Constructs AmazonMediaPackageVodClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonMediaPackageVodClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonMediaPackageVodConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonMediaPackageVodClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonMediaPackageVodClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonMediaPackageVodClient Configuration Object
public AmazonMediaPackageVodClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonMediaPackageVodConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonMediaPackageVodClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonMediaPackageVodClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMediaPackageVodConfig())
{
}
///
/// Constructs AmazonMediaPackageVodClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The region to connect.
public AmazonMediaPackageVodClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMediaPackageVodConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonMediaPackageVodClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonMediaPackageVodClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonMediaPackageVodClient Configuration Object
public AmazonMediaPackageVodClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonMediaPackageVodConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private IMediaPackageVodPaginatorFactory _paginators;
///
/// Paginators for the service
///
public IMediaPackageVodPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new MediaPackageVodPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customizes the runtime pipeline.
///
/// Runtime pipeline for the current client.
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonMediaPackageVodEndpointResolver());
}
///
/// Capture metadata for the service.
///
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
///
/// Disposes the service client.
///
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region ConfigureLogs
internal virtual ConfigureLogsResponse ConfigureLogs(ConfigureLogsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ConfigureLogsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ConfigureLogsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Changes the packaging group's properities to configure log subscription
///
/// Container for the necessary parameters to execute the ConfigureLogs service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ConfigureLogs service method, as returned by MediaPackageVod.
///
/// The client is not authorized to access the requested resource.
///
///
/// An unexpected error occurred.
///
///
/// The requested resource does not exist.
///
///
/// An unexpected error occurred.
///
///
/// The client has exceeded their resource or throttling limits.
///
///
/// The parameters sent in the request are not valid.
///
/// REST API Reference for ConfigureLogs Operation
public virtual Task ConfigureLogsAsync(ConfigureLogsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ConfigureLogsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ConfigureLogsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateAsset
internal virtual CreateAssetResponse CreateAsset(CreateAssetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAssetRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAssetResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a new MediaPackage VOD Asset resource.
///
/// Container for the necessary parameters to execute the CreateAsset service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateAsset service method, as returned by MediaPackageVod.
///
/// The client is not authorized to access the requested resource.
///
///
/// An unexpected error occurred.
///
///
/// The requested resource does not exist.
///
///
/// An unexpected error occurred.
///
///
/// The client has exceeded their resource or throttling limits.
///
///
/// The parameters sent in the request are not valid.
///
/// REST API Reference for CreateAsset Operation
public virtual Task CreateAssetAsync(CreateAssetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAssetRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAssetResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreatePackagingConfiguration
internal virtual CreatePackagingConfigurationResponse CreatePackagingConfiguration(CreatePackagingConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreatePackagingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreatePackagingConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a new MediaPackage VOD PackagingConfiguration resource.
///
/// Container for the necessary parameters to execute the CreatePackagingConfiguration service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreatePackagingConfiguration service method, as returned by MediaPackageVod.
///
/// The client is not authorized to access the requested resource.
///
///
/// An unexpected error occurred.
///
///
/// The requested resource does not exist.
///
///
/// An unexpected error occurred.
///
///
/// The client has exceeded their resource or throttling limits.
///
///
/// The parameters sent in the request are not valid.
///
/// REST API Reference for CreatePackagingConfiguration Operation
public virtual Task CreatePackagingConfigurationAsync(CreatePackagingConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreatePackagingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreatePackagingConfigurationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreatePackagingGroup
internal virtual CreatePackagingGroupResponse CreatePackagingGroup(CreatePackagingGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreatePackagingGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreatePackagingGroupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a new MediaPackage VOD PackagingGroup resource.
///
/// Container for the necessary parameters to execute the CreatePackagingGroup service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreatePackagingGroup service method, as returned by MediaPackageVod.
///
/// The client is not authorized to access the requested resource.
///
///
/// An unexpected error occurred.
///
///
/// The requested resource does not exist.
///
///
/// An unexpected error occurred.
///
///
/// The client has exceeded their resource or throttling limits.
///
///
/// The parameters sent in the request are not valid.
///
/// REST API Reference for CreatePackagingGroup Operation
public virtual Task CreatePackagingGroupAsync(CreatePackagingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreatePackagingGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreatePackagingGroupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteAsset
internal virtual DeleteAssetResponse DeleteAsset(DeleteAssetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAssetRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAssetResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes an existing MediaPackage VOD Asset resource.
///
/// Container for the necessary parameters to execute the DeleteAsset service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteAsset service method, as returned by MediaPackageVod.
///
/// The client is not authorized to access the requested resource.
///
///
/// An unexpected error occurred.
///
///
/// The requested resource does not exist.
///
///
/// An unexpected error occurred.
///
///
/// The client has exceeded their resource or throttling limits.
///
///
/// The parameters sent in the request are not valid.
///
/// REST API Reference for DeleteAsset Operation
public virtual Task DeleteAssetAsync(DeleteAssetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAssetRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAssetResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeletePackagingConfiguration
internal virtual DeletePackagingConfigurationResponse DeletePackagingConfiguration(DeletePackagingConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeletePackagingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeletePackagingConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a MediaPackage VOD PackagingConfiguration resource.
///
/// Container for the necessary parameters to execute the DeletePackagingConfiguration service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeletePackagingConfiguration service method, as returned by MediaPackageVod.
///
/// The client is not authorized to access the requested resource.
///
///
/// An unexpected error occurred.
///
///
/// The requested resource does not exist.
///
///
/// An unexpected error occurred.
///
///
/// The client has exceeded their resource or throttling limits.
///
///
/// The parameters sent in the request are not valid.
///
/// REST API Reference for DeletePackagingConfiguration Operation
public virtual Task DeletePackagingConfigurationAsync(DeletePackagingConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeletePackagingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeletePackagingConfigurationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeletePackagingGroup
internal virtual DeletePackagingGroupResponse DeletePackagingGroup(DeletePackagingGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeletePackagingGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeletePackagingGroupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a MediaPackage VOD PackagingGroup resource.
///
/// Container for the necessary parameters to execute the DeletePackagingGroup service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeletePackagingGroup service method, as returned by MediaPackageVod.
///
/// The client is not authorized to access the requested resource.
///
///
/// An unexpected error occurred.
///
///
/// The requested resource does not exist.
///
///
/// An unexpected error occurred.
///
///
/// The client has exceeded their resource or throttling limits.
///
///
/// The parameters sent in the request are not valid.
///
/// REST API Reference for DeletePackagingGroup Operation
public virtual Task DeletePackagingGroupAsync(DeletePackagingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeletePackagingGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeletePackagingGroupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeAsset
internal virtual DescribeAssetResponse DescribeAsset(DescribeAssetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAssetRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAssetResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a description of a MediaPackage VOD Asset resource.
///
/// Container for the necessary parameters to execute the DescribeAsset service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeAsset service method, as returned by MediaPackageVod.
///
/// The client is not authorized to access the requested resource.
///
///
/// An unexpected error occurred.
///
///
/// The requested resource does not exist.
///
///
/// An unexpected error occurred.
///
///
/// The client has exceeded their resource or throttling limits.
///
///
/// The parameters sent in the request are not valid.
///
/// REST API Reference for DescribeAsset Operation
public virtual Task DescribeAssetAsync(DescribeAssetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAssetRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAssetResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribePackagingConfiguration
internal virtual DescribePackagingConfigurationResponse DescribePackagingConfiguration(DescribePackagingConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribePackagingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribePackagingConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a description of a MediaPackage VOD PackagingConfiguration resource.
///
/// Container for the necessary parameters to execute the DescribePackagingConfiguration service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribePackagingConfiguration service method, as returned by MediaPackageVod.
///
/// The client is not authorized to access the requested resource.
///
///
/// An unexpected error occurred.
///
///
/// The requested resource does not exist.
///
///
/// An unexpected error occurred.
///
///
/// The client has exceeded their resource or throttling limits.
///
///
/// The parameters sent in the request are not valid.
///
/// REST API Reference for DescribePackagingConfiguration Operation
public virtual Task DescribePackagingConfigurationAsync(DescribePackagingConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribePackagingConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribePackagingConfigurationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribePackagingGroup
internal virtual DescribePackagingGroupResponse DescribePackagingGroup(DescribePackagingGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribePackagingGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribePackagingGroupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a description of a MediaPackage VOD PackagingGroup resource.
///
/// Container for the necessary parameters to execute the DescribePackagingGroup service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribePackagingGroup service method, as returned by MediaPackageVod.
///
/// The client is not authorized to access the requested resource.
///
///
/// An unexpected error occurred.
///
///
/// The requested resource does not exist.
///
///
/// An unexpected error occurred.
///
///
/// The client has exceeded their resource or throttling limits.
///
///
/// The parameters sent in the request are not valid.
///
/// REST API Reference for DescribePackagingGroup Operation
public virtual Task DescribePackagingGroupAsync(DescribePackagingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribePackagingGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribePackagingGroupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListAssets
internal virtual ListAssetsResponse ListAssets(ListAssetsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAssetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAssetsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a collection of MediaPackage VOD Asset resources.
///
/// Container for the necessary parameters to execute the ListAssets service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListAssets service method, as returned by MediaPackageVod.
///
/// The client is not authorized to access the requested resource.
///
///
/// An unexpected error occurred.
///
///
/// The requested resource does not exist.
///
///
/// An unexpected error occurred.
///
///
/// The client has exceeded their resource or throttling limits.
///
///
/// The parameters sent in the request are not valid.
///
/// REST API Reference for ListAssets Operation
public virtual Task ListAssetsAsync(ListAssetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAssetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAssetsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListPackagingConfigurations
internal virtual ListPackagingConfigurationsResponse ListPackagingConfigurations(ListPackagingConfigurationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPackagingConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPackagingConfigurationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a collection of MediaPackage VOD PackagingConfiguration resources.
///
/// Container for the necessary parameters to execute the ListPackagingConfigurations service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListPackagingConfigurations service method, as returned by MediaPackageVod.
///
/// The client is not authorized to access the requested resource.
///
///
/// An unexpected error occurred.
///
///
/// The requested resource does not exist.
///
///
/// An unexpected error occurred.
///
///
/// The client has exceeded their resource or throttling limits.
///
///
/// The parameters sent in the request are not valid.
///
/// REST API Reference for ListPackagingConfigurations Operation
public virtual Task ListPackagingConfigurationsAsync(ListPackagingConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPackagingConfigurationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPackagingConfigurationsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListPackagingGroups
internal virtual ListPackagingGroupsResponse ListPackagingGroups(ListPackagingGroupsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPackagingGroupsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPackagingGroupsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a collection of MediaPackage VOD PackagingGroup resources.
///
/// Container for the necessary parameters to execute the ListPackagingGroups service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListPackagingGroups service method, as returned by MediaPackageVod.
///
/// The client is not authorized to access the requested resource.
///
///
/// An unexpected error occurred.
///
///
/// The requested resource does not exist.
///
///
/// An unexpected error occurred.
///
///
/// The client has exceeded their resource or throttling limits.
///
///
/// The parameters sent in the request are not valid.
///
/// REST API Reference for ListPackagingGroups Operation
public virtual Task ListPackagingGroupsAsync(ListPackagingGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPackagingGroupsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPackagingGroupsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a list of the tags assigned to the specified resource.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTagsForResource service method, as returned by MediaPackageVod.
/// REST API Reference for ListTagsForResource Operation
public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region TagResource
internal virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Adds tags to the specified resource. You can specify one or more tags to add.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the TagResource service method, as returned by MediaPackageVod.
/// REST API Reference for TagResource Operation
public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UntagResource
internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Removes tags from the specified resource. You can specify one or more tags to remove.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UntagResource service method, as returned by MediaPackageVod.
/// REST API Reference for UntagResource Operation
public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdatePackagingGroup
internal virtual UpdatePackagingGroupResponse UpdatePackagingGroup(UpdatePackagingGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdatePackagingGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdatePackagingGroupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates a specific packaging group. You can't change the id attribute or any other
/// system-generated attributes.
///
/// Container for the necessary parameters to execute the UpdatePackagingGroup service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdatePackagingGroup service method, as returned by MediaPackageVod.
///
/// The client is not authorized to access the requested resource.
///
///
/// An unexpected error occurred.
///
///
/// The requested resource does not exist.
///
///
/// An unexpected error occurred.
///
///
/// The client has exceeded their resource or throttling limits.
///
///
/// The parameters sent in the request are not valid.
///
/// REST API Reference for UpdatePackagingGroup Operation
public virtual Task UpdatePackagingGroupAsync(UpdatePackagingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdatePackagingGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdatePackagingGroupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}