Class SiteDeploymentResource
A Class representing a SiteDeployment along with the instance operations that can be performed on it. If you have a Azure.Core.ResourceIdentifier you can construct a SiteDeploymentResource from an instance of Azure.ResourceManager.ArmClient using the GetSiteDeploymentResource method. Otherwise you can get one from its parent resource WebSiteResource using the GetSiteDeployment method.
Inheritance
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.ResourceManager.AppService.dll
Syntax
public class SiteDeploymentResource : Azure.ResourceManager.ArmResource
Constructors
SiteDeploymentResource()
Initializes a new instance of the SiteDeploymentResource class for mocking.
Declaration
protected SiteDeploymentResource ();
Fields
ResourceType
Gets the resource type for the operations.
Declaration
public static readonly Azure.Core.ResourceType ResourceType;
Field Value
Azure.Core.ResourceType
|
Properties
Data
Gets the data representing this Feature.
Declaration
public virtual Azure.ResourceManager.AppService.DeploymentData Data { get; }
Property Value
DeploymentData
|
Exceptions
System.InvalidOperationException
Throws if there is no data loaded in the current instance. |
HasData
Gets whether or not the current instance has data.
Declaration
public virtual bool HasData { get; }
Property Value
System.Boolean
|
Methods
CreateResourceIdentifier(String, String, String, String)
Generate the resource identifier of a SiteDeploymentResource instance.
Declaration
public static Azure.Core.ResourceIdentifier CreateResourceIdentifier (string subscriptionId, string resourceGroupName, string name, string id);
Parameters
System.String
subscriptionId
|
System.String
resourceGroupName
|
System.String
name
|
System.String
id
|
Returns
Azure.Core.ResourceIdentifier
|
Delete(WaitUntil, CancellationToken)
Description for Delete a deployment by its ID for an app, or a deployment slot. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id} Operation Id: WebApps_DeleteDeployment
Declaration
public virtual Azure.ResourceManager.ArmOperation Delete (Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = null);
Parameters
Azure.WaitUntil
waitUntil
Azure.WaitUntil.Completed if the method should wait to return until the long-running operation has completed on the service; Azure.WaitUntil.Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. |
System.Threading.CancellationToken
cancellationToken
The cancellation token to use. |
Returns
Azure.ResourceManager.ArmOperation
|
DeleteAsync(WaitUntil, CancellationToken)
Description for Delete a deployment by its ID for an app, or a deployment slot. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id} Operation Id: WebApps_DeleteDeployment
Declaration
[System.Diagnostics.DebuggerStepThrough]
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> DeleteAsync (Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = null);
Parameters
Azure.WaitUntil
waitUntil
Azure.WaitUntil.Completed if the method should wait to return until the long-running operation has completed on the service; Azure.WaitUntil.Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. |
System.Threading.CancellationToken
cancellationToken
The cancellation token to use. |
Returns
System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
|
Get(CancellationToken)
Description for Get a deployment by its ID for an app, or a deployment slot. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id} Operation Id: WebApps_GetDeployment
Declaration
public virtual Azure.Response<Azure.ResourceManager.AppService.SiteDeploymentResource> Get (System.Threading.CancellationToken cancellationToken = null);
Parameters
System.Threading.CancellationToken
cancellationToken
The cancellation token to use. |
Returns
Azure.Response<SiteDeploymentResource>
|
GetAsync(CancellationToken)
Description for Get a deployment by its ID for an app, or a deployment slot. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id} Operation Id: WebApps_GetDeployment
Declaration
[System.Diagnostics.DebuggerStepThrough]
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.SiteDeploymentResource>> GetAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
System.Threading.CancellationToken
cancellationToken
The cancellation token to use. |
Returns
System.Threading.Tasks.Task<Azure.Response<SiteDeploymentResource>>
|
GetDeploymentLog(CancellationToken)
Description for List deployment log for specific deployment for an app, or a deployment slot. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id}/log Operation Id: WebApps_ListDeploymentLog
Declaration
public virtual Azure.Response<Azure.ResourceManager.AppService.SiteDeploymentResource> GetDeploymentLog (System.Threading.CancellationToken cancellationToken = null);
Parameters
System.Threading.CancellationToken
cancellationToken
The cancellation token to use. |
Returns
Azure.Response<SiteDeploymentResource>
|
GetDeploymentLogAsync(CancellationToken)
Description for List deployment log for specific deployment for an app, or a deployment slot. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id}/log Operation Id: WebApps_ListDeploymentLog
Declaration
[System.Diagnostics.DebuggerStepThrough]
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.SiteDeploymentResource>> GetDeploymentLogAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
System.Threading.CancellationToken
cancellationToken
The cancellation token to use. |
Returns
System.Threading.Tasks.Task<Azure.Response<SiteDeploymentResource>>
|
Update(WaitUntil, DeploymentData, CancellationToken)
Description for Create a deployment for an app, or a deployment slot. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id} Operation Id: WebApps_CreateDeployment
Declaration
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppService.SiteDeploymentResource> Update (Azure.WaitUntil waitUntil, Azure.ResourceManager.AppService.DeploymentData data, System.Threading.CancellationToken cancellationToken = null);
Parameters
Azure.WaitUntil
waitUntil
Azure.WaitUntil.Completed if the method should wait to return until the long-running operation has completed on the service; Azure.WaitUntil.Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. |
DeploymentData
data
Deployment details. |
System.Threading.CancellationToken
cancellationToken
The cancellation token to use. |
Returns
Azure.ResourceManager.ArmOperation<SiteDeploymentResource>
|
Exceptions
System.ArgumentNullException
|
UpdateAsync(WaitUntil, DeploymentData, CancellationToken)
Description for Create a deployment for an app, or a deployment slot. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id} Operation Id: WebApps_CreateDeployment
Declaration
[System.Diagnostics.DebuggerStepThrough]
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppService.SiteDeploymentResource>> UpdateAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.AppService.DeploymentData data, System.Threading.CancellationToken cancellationToken = null);
Parameters
Azure.WaitUntil
waitUntil
Azure.WaitUntil.Completed if the method should wait to return until the long-running operation has completed on the service; Azure.WaitUntil.Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. |
DeploymentData
data
Deployment details. |
System.Threading.CancellationToken
cancellationToken
The cancellation token to use. |
Returns
System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<SiteDeploymentResource>>
|
Exceptions
System.ArgumentNullException
|