C# 클래스 Elastacloud.AzureManagement.Fluent.Clients.WebsiteClient

A client used to manage all aspects of a windows azure website
상속: IWebsiteClient
파일 보기 프로젝트 열기: azurecoder/fluent-management 1 사용 예제들

공개 메소드들

메소드 설명
Create ( Website website, ScmType scm = ScmType.LocalGit ) : void

Creates a default website with nothing deployed

CreateFromBitBucket ( Website website, GitDetails gitDetails ) : void

As above but using BitBucket instead

CreateFromGithub ( Website website, GitDetails gitDetails ) : void

Creates a website given github credentials

Delete ( ) : void

Deletes a website with the current context

GetWebsiteMetricsPerInterval ( System.TimeSpan span ) : List

Gets the website metrics in the requested interval backwards from datetime.now

List ( ) : List

Returns a list of websites

Restart ( ) : void

Restarts the website from a stopped state

Stop ( ) : void

Stops the website if it is currently running

Update ( ) : void

Updates the config with the current compute config

WebsiteClient ( string subscriptionId, X509Certificate2 certificate, string siteName = null ) : System

Used to construct a windows azure website client

비공개 메소드들

메소드 설명
GetWebsiteIfExists ( ) : Website
SetScalePotential ( Website website ) : void
ValidateWebSpace ( string webSpace ) : void

메소드 상세

Create() 공개 메소드

Creates a default website with nothing deployed
public Create ( Website website, ScmType scm = ScmType.LocalGit ) : void
website Elastacloud.AzureManagement.Fluent.Types.Websites.Website the website which will be created
scm ScmType
리턴 void

CreateFromBitBucket() 공개 메소드

As above but using BitBucket instead
public CreateFromBitBucket ( Website website, GitDetails gitDetails ) : void
website Elastacloud.AzureManagement.Fluent.Types.Websites.Website
gitDetails Elastacloud.AzureManagement.Fluent.Types.Websites.GitDetails
리턴 void

CreateFromGithub() 공개 메소드

Creates a website given github credentials
public CreateFromGithub ( Website website, GitDetails gitDetails ) : void
website Elastacloud.AzureManagement.Fluent.Types.Websites.Website
gitDetails Elastacloud.AzureManagement.Fluent.Types.Websites.GitDetails the details of the github repo
리턴 void

Delete() 공개 메소드

Deletes a website with the current context
public Delete ( ) : void
리턴 void

GetWebsiteMetricsPerInterval() 공개 메소드

Gets the website metrics in the requested interval backwards from datetime.now
public GetWebsiteMetricsPerInterval ( System.TimeSpan span ) : List
span System.TimeSpan
리턴 List

List() 공개 메소드

Returns a list of websites
public List ( ) : List
리턴 List

Restart() 공개 메소드

Restarts the website from a stopped state
public Restart ( ) : void
리턴 void

Stop() 공개 메소드

Stops the website if it is currently running
public Stop ( ) : void
리턴 void

Update() 공개 메소드

Updates the config with the current compute config
public Update ( ) : void
리턴 void

WebsiteClient() 공개 메소드

Used to construct a windows azure website client
public WebsiteClient ( string subscriptionId, X509Certificate2 certificate, string siteName = null ) : System
subscriptionId string the subscription id
certificate System.Security.Cryptography.X509Certificates.X509Certificate2 The management certificate
siteName string The sitename used to get a context for
리턴 System