Sdílet prostřednictvím


ArmAppServiceModelFactory.StaticSitePatch Method

Definition

Initializes a new instance of StaticSitePatch.

public static Azure.ResourceManager.AppService.Models.StaticSitePatch StaticSitePatch (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string defaultHostname = default, Uri repositoryUri = default, string branch = default, System.Collections.Generic.IEnumerable<string> customDomains = default, string repositoryToken = default, Azure.ResourceManager.AppService.Models.StaticSiteBuildProperties buildProperties = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppService.Models.ResponseMessageEnvelopeRemotePrivateEndpointConnection> privateEndpointConnections = default, Azure.ResourceManager.AppService.Models.StagingEnvironmentPolicy? stagingEnvironmentPolicy = default, bool? allowConfigFileUpdates = default, Azure.ResourceManager.AppService.Models.StaticSiteTemplate templateProperties = default, string contentDistributionEndpoint = default, string keyVaultReferenceIdentity = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppService.StaticSiteUserProvidedFunctionAppData> userProvidedFunctionApps = default, string provider = default, string kind = default);
static member StaticSitePatch : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * Uri * string * seq<string> * string * Azure.ResourceManager.AppService.Models.StaticSiteBuildProperties * seq<Azure.ResourceManager.AppService.Models.ResponseMessageEnvelopeRemotePrivateEndpointConnection> * Nullable<Azure.ResourceManager.AppService.Models.StagingEnvironmentPolicy> * Nullable<bool> * Azure.ResourceManager.AppService.Models.StaticSiteTemplate * string * string * seq<Azure.ResourceManager.AppService.StaticSiteUserProvidedFunctionAppData> * string * string -> Azure.ResourceManager.AppService.Models.StaticSitePatch
Public Shared Function StaticSitePatch (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional defaultHostname As String = Nothing, Optional repositoryUri As Uri = Nothing, Optional branch As String = Nothing, Optional customDomains As IEnumerable(Of String) = Nothing, Optional repositoryToken As String = Nothing, Optional buildProperties As StaticSiteBuildProperties = Nothing, Optional privateEndpointConnections As IEnumerable(Of ResponseMessageEnvelopeRemotePrivateEndpointConnection) = Nothing, Optional stagingEnvironmentPolicy As Nullable(Of StagingEnvironmentPolicy) = Nothing, Optional allowConfigFileUpdates As Nullable(Of Boolean) = Nothing, Optional templateProperties As StaticSiteTemplate = Nothing, Optional contentDistributionEndpoint As String = Nothing, Optional keyVaultReferenceIdentity As String = Nothing, Optional userProvidedFunctionApps As IEnumerable(Of StaticSiteUserProvidedFunctionAppData) = Nothing, Optional provider As String = Nothing, Optional kind As String = Nothing) As StaticSitePatch

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

defaultHostname
String

The default autogenerated hostname for the static site.

repositoryUri
Uri

URL for the repository of the static site.

branch
String

The target branch in the repository.

customDomains
IEnumerable<String>

The custom domains associated with this static site.

repositoryToken
String

A user's github repository token. This is used to setup the Github Actions workflow file and API secrets.

buildProperties
StaticSiteBuildProperties

Build properties to configure on the repository.

privateEndpointConnections
IEnumerable<ResponseMessageEnvelopeRemotePrivateEndpointConnection>

Private endpoint connections.

stagingEnvironmentPolicy
Nullable<StagingEnvironmentPolicy>

State indicating whether staging environments are allowed or not allowed for a static web app.

allowConfigFileUpdates
Nullable<Boolean>

<code>false</code> if config file is locked for this static web app; otherwise, <code>true</code>.

templateProperties
StaticSiteTemplate

Template options for generating a new repository.

contentDistributionEndpoint
String

The content distribution endpoint for the static site.

keyVaultReferenceIdentity
String

Identity to use for Key Vault Reference authentication.

userProvidedFunctionApps
IEnumerable<StaticSiteUserProvidedFunctionAppData>

User provided function apps registered with the static site.

provider
String

The provider that submitted the last deployment to the primary environment of the static site.

kind
String

Kind of resource.

Returns

A new StaticSitePatch instance for mocking.

Applies to