package
0.20240715.1103416
Repository: https://github.com/hashicorp/go-azure-sdk.git
Documentation: pkg.go.dev

# README

github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites Documentation

The staticsites SDK allows for interaction with the Azure Resource Manager Service web (API Version 2023-01-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites"

Client Initialization

client := staticsites.NewStaticSitesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: StaticSitesClient.ApproveOrRejectPrivateEndpointConnection

ctx := context.TODO()
id := staticsites.NewStaticSitePrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "privateEndpointConnectionValue")

payload := staticsites.RemotePrivateEndpointConnectionARMResource{
	// ...
}


if err := client.ApproveOrRejectPrivateEndpointConnectionThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: StaticSitesClient.CreateOrUpdateBasicAuth

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

payload := staticsites.StaticSiteBasicAuthPropertiesARMResource{
	// ...
}


read, err := client.CreateOrUpdateBasicAuth(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.CreateOrUpdateBuildDatabaseConnection

ctx := context.TODO()
id := staticsites.NewBuildDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "databaseConnectionValue")

payload := staticsites.DatabaseConnection{
	// ...
}


read, err := client.CreateOrUpdateBuildDatabaseConnection(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.CreateOrUpdateDatabaseConnection

ctx := context.TODO()
id := staticsites.NewDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "databaseConnectionValue")

payload := staticsites.DatabaseConnection{
	// ...
}


read, err := client.CreateOrUpdateDatabaseConnection(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.CreateOrUpdateStaticSite

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

payload := staticsites.StaticSiteARMResource{
	// ...
}


if err := client.CreateOrUpdateStaticSiteThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: StaticSitesClient.CreateOrUpdateStaticSiteAppSettings

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

payload := staticsites.StringDictionary{
	// ...
}


read, err := client.CreateOrUpdateStaticSiteAppSettings(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.CreateOrUpdateStaticSiteBuildAppSettings

ctx := context.TODO()
id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue")

payload := staticsites.StringDictionary{
	// ...
}


read, err := client.CreateOrUpdateStaticSiteBuildAppSettings(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.CreateOrUpdateStaticSiteBuildFunctionAppSettings

ctx := context.TODO()
id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue")

payload := staticsites.StringDictionary{
	// ...
}


read, err := client.CreateOrUpdateStaticSiteBuildFunctionAppSettings(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.CreateOrUpdateStaticSiteCustomDomain

ctx := context.TODO()
id := staticsites.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "customDomainValue")

payload := staticsites.StaticSiteCustomDomainRequestPropertiesARMResource{
	// ...
}


if err := client.CreateOrUpdateStaticSiteCustomDomainThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: StaticSitesClient.CreateOrUpdateStaticSiteFunctionAppSettings

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

payload := staticsites.StringDictionary{
	// ...
}


read, err := client.CreateOrUpdateStaticSiteFunctionAppSettings(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.CreateUserRolesInvitationLink

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

payload := staticsites.StaticSiteUserInvitationRequestResource{
	// ...
}


read, err := client.CreateUserRolesInvitationLink(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.CreateZipDeploymentForStaticSite

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

payload := staticsites.StaticSiteZipDeploymentARMResource{
	// ...
}


if err := client.CreateZipDeploymentForStaticSiteThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: StaticSitesClient.CreateZipDeploymentForStaticSiteBuild

ctx := context.TODO()
id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue")

payload := staticsites.StaticSiteZipDeploymentARMResource{
	// ...
}


if err := client.CreateZipDeploymentForStaticSiteBuildThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: StaticSitesClient.DeleteBuildDatabaseConnection

ctx := context.TODO()
id := staticsites.NewBuildDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "databaseConnectionValue")

read, err := client.DeleteBuildDatabaseConnection(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.DeleteDatabaseConnection

ctx := context.TODO()
id := staticsites.NewDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "databaseConnectionValue")

read, err := client.DeleteDatabaseConnection(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.DeletePrivateEndpointConnection

ctx := context.TODO()
id := staticsites.NewStaticSitePrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "privateEndpointConnectionValue")

if err := client.DeletePrivateEndpointConnectionThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: StaticSitesClient.DeleteStaticSite

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

if err := client.DeleteStaticSiteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: StaticSitesClient.DeleteStaticSiteBuild

ctx := context.TODO()
id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue")

if err := client.DeleteStaticSiteBuildThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: StaticSitesClient.DeleteStaticSiteCustomDomain

ctx := context.TODO()
id := staticsites.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "customDomainValue")

if err := client.DeleteStaticSiteCustomDomainThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: StaticSitesClient.DeleteStaticSiteUser

ctx := context.TODO()
id := staticsites.NewUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "authProviderValue", "userValue")

read, err := client.DeleteStaticSiteUser(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.DetachStaticSite

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

if err := client.DetachStaticSiteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: StaticSitesClient.DetachUserProvidedFunctionAppFromStaticSite

ctx := context.TODO()
id := staticsites.NewUserProvidedFunctionAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "userProvidedFunctionAppValue")

read, err := client.DetachUserProvidedFunctionAppFromStaticSite(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.DetachUserProvidedFunctionAppFromStaticSiteBuild

ctx := context.TODO()
id := staticsites.NewBuildUserProvidedFunctionAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "userProvidedFunctionAppValue")

read, err := client.DetachUserProvidedFunctionAppFromStaticSiteBuild(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.GetBasicAuth

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

read, err := client.GetBasicAuth(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.GetBuildDatabaseConnection

ctx := context.TODO()
id := staticsites.NewBuildDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "databaseConnectionValue")

read, err := client.GetBuildDatabaseConnection(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.GetBuildDatabaseConnectionWithDetails

ctx := context.TODO()
id := staticsites.NewBuildDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "databaseConnectionValue")

read, err := client.GetBuildDatabaseConnectionWithDetails(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.GetBuildDatabaseConnections

ctx := context.TODO()
id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue")

// alternatively `client.GetBuildDatabaseConnections(ctx, id)` can be used to do batched pagination
items, err := client.GetBuildDatabaseConnectionsComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: StaticSitesClient.GetBuildDatabaseConnectionsWithDetails

ctx := context.TODO()
id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue")

// alternatively `client.GetBuildDatabaseConnectionsWithDetails(ctx, id)` can be used to do batched pagination
items, err := client.GetBuildDatabaseConnectionsWithDetailsComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: StaticSitesClient.GetDatabaseConnection

ctx := context.TODO()
id := staticsites.NewDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "databaseConnectionValue")

read, err := client.GetDatabaseConnection(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.GetDatabaseConnectionWithDetails

ctx := context.TODO()
id := staticsites.NewDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "databaseConnectionValue")

read, err := client.GetDatabaseConnectionWithDetails(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.GetDatabaseConnections

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

// alternatively `client.GetDatabaseConnections(ctx, id)` can be used to do batched pagination
items, err := client.GetDatabaseConnectionsComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: StaticSitesClient.GetDatabaseConnectionsWithDetails

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

// alternatively `client.GetDatabaseConnectionsWithDetails(ctx, id)` can be used to do batched pagination
items, err := client.GetDatabaseConnectionsWithDetailsComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: StaticSitesClient.GetLinkedBackend

ctx := context.TODO()
id := staticsites.NewLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "linkedBackendValue")

read, err := client.GetLinkedBackend(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.GetLinkedBackendForBuild

ctx := context.TODO()
id := staticsites.NewBuildLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "linkedBackendValue")

read, err := client.GetLinkedBackendForBuild(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.GetLinkedBackends

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

// alternatively `client.GetLinkedBackends(ctx, id)` can be used to do batched pagination
items, err := client.GetLinkedBackendsComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: StaticSitesClient.GetLinkedBackendsForBuild

ctx := context.TODO()
id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue")

// alternatively `client.GetLinkedBackendsForBuild(ctx, id)` can be used to do batched pagination
items, err := client.GetLinkedBackendsForBuildComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: StaticSitesClient.GetPrivateEndpointConnection

ctx := context.TODO()
id := staticsites.NewStaticSitePrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "privateEndpointConnectionValue")

read, err := client.GetPrivateEndpointConnection(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.GetPrivateEndpointConnectionList

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

// alternatively `client.GetPrivateEndpointConnectionList(ctx, id)` can be used to do batched pagination
items, err := client.GetPrivateEndpointConnectionListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: StaticSitesClient.GetPrivateLinkResources

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

read, err := client.GetPrivateLinkResources(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.GetStaticSite

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

read, err := client.GetStaticSite(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.GetStaticSiteBuild

ctx := context.TODO()
id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue")

read, err := client.GetStaticSiteBuild(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.GetStaticSiteBuilds

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

// alternatively `client.GetStaticSiteBuilds(ctx, id)` can be used to do batched pagination
items, err := client.GetStaticSiteBuildsComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: StaticSitesClient.GetStaticSiteCustomDomain

ctx := context.TODO()
id := staticsites.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "customDomainValue")

read, err := client.GetStaticSiteCustomDomain(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.GetStaticSitesByResourceGroup

ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

// alternatively `client.GetStaticSitesByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.GetStaticSitesByResourceGroupComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: StaticSitesClient.GetUserProvidedFunctionAppForStaticSite

ctx := context.TODO()
id := staticsites.NewUserProvidedFunctionAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "userProvidedFunctionAppValue")

read, err := client.GetUserProvidedFunctionAppForStaticSite(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.GetUserProvidedFunctionAppForStaticSiteBuild

ctx := context.TODO()
id := staticsites.NewBuildUserProvidedFunctionAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "userProvidedFunctionAppValue")

read, err := client.GetUserProvidedFunctionAppForStaticSiteBuild(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.GetUserProvidedFunctionAppsForStaticSite

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

// alternatively `client.GetUserProvidedFunctionAppsForStaticSite(ctx, id)` can be used to do batched pagination
items, err := client.GetUserProvidedFunctionAppsForStaticSiteComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: StaticSitesClient.GetUserProvidedFunctionAppsForStaticSiteBuild

ctx := context.TODO()
id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue")

// alternatively `client.GetUserProvidedFunctionAppsForStaticSiteBuild(ctx, id)` can be used to do batched pagination
items, err := client.GetUserProvidedFunctionAppsForStaticSiteBuildComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: StaticSitesClient.LinkBackend

ctx := context.TODO()
id := staticsites.NewLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "linkedBackendValue")

payload := staticsites.StaticSiteLinkedBackendARMResource{
	// ...
}


if err := client.LinkBackendThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: StaticSitesClient.LinkBackendToBuild

ctx := context.TODO()
id := staticsites.NewBuildLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "linkedBackendValue")

payload := staticsites.StaticSiteLinkedBackendARMResource{
	// ...
}


if err := client.LinkBackendToBuildThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: StaticSitesClient.List

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: StaticSitesClient.ListBasicAuth

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

// alternatively `client.ListBasicAuth(ctx, id)` can be used to do batched pagination
items, err := client.ListBasicAuthComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: StaticSitesClient.ListStaticSiteAppSettings

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

read, err := client.ListStaticSiteAppSettings(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.ListStaticSiteBuildAppSettings

ctx := context.TODO()
id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue")

read, err := client.ListStaticSiteBuildAppSettings(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.ListStaticSiteBuildFunctionAppSettings

ctx := context.TODO()
id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue")

read, err := client.ListStaticSiteBuildFunctionAppSettings(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.ListStaticSiteBuildFunctions

ctx := context.TODO()
id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue")

// alternatively `client.ListStaticSiteBuildFunctions(ctx, id)` can be used to do batched pagination
items, err := client.ListStaticSiteBuildFunctionsComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: StaticSitesClient.ListStaticSiteConfiguredRoles

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

read, err := client.ListStaticSiteConfiguredRoles(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.ListStaticSiteCustomDomains

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

// alternatively `client.ListStaticSiteCustomDomains(ctx, id)` can be used to do batched pagination
items, err := client.ListStaticSiteCustomDomainsComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: StaticSitesClient.ListStaticSiteFunctionAppSettings

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

read, err := client.ListStaticSiteFunctionAppSettings(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.ListStaticSiteFunctions

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

// alternatively `client.ListStaticSiteFunctions(ctx, id)` can be used to do batched pagination
items, err := client.ListStaticSiteFunctionsComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: StaticSitesClient.ListStaticSiteSecrets

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

read, err := client.ListStaticSiteSecrets(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.ListStaticSiteUsers

ctx := context.TODO()
id := staticsites.NewAuthProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "authProviderValue")

// alternatively `client.ListStaticSiteUsers(ctx, id)` can be used to do batched pagination
items, err := client.ListStaticSiteUsersComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: StaticSitesClient.PreviewWorkflow

ctx := context.TODO()
id := staticsites.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "locationValue")

payload := staticsites.StaticSitesWorkflowPreviewRequest{
	// ...
}


read, err := client.PreviewWorkflow(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.RegisterUserProvidedFunctionAppWithStaticSite

ctx := context.TODO()
id := staticsites.NewUserProvidedFunctionAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "userProvidedFunctionAppValue")

payload := staticsites.StaticSiteUserProvidedFunctionAppARMResource{
	// ...
}


if err := client.RegisterUserProvidedFunctionAppWithStaticSiteThenPoll(ctx, id, payload, staticsites.DefaultRegisterUserProvidedFunctionAppWithStaticSiteOperationOptions()); err != nil {
	// handle the error
}

Example Usage: StaticSitesClient.RegisterUserProvidedFunctionAppWithStaticSiteBuild

ctx := context.TODO()
id := staticsites.NewBuildUserProvidedFunctionAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "userProvidedFunctionAppValue")

payload := staticsites.StaticSiteUserProvidedFunctionAppARMResource{
	// ...
}


if err := client.RegisterUserProvidedFunctionAppWithStaticSiteBuildThenPoll(ctx, id, payload, staticsites.DefaultRegisterUserProvidedFunctionAppWithStaticSiteBuildOperationOptions()); err != nil {
	// handle the error
}

Example Usage: StaticSitesClient.ResetStaticSiteApiKey

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

payload := staticsites.StaticSiteResetPropertiesARMResource{
	// ...
}


read, err := client.ResetStaticSiteApiKey(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.UnlinkBackend

ctx := context.TODO()
id := staticsites.NewLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "linkedBackendValue")

read, err := client.UnlinkBackend(ctx, id, staticsites.DefaultUnlinkBackendOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.UnlinkBackendFromBuild

ctx := context.TODO()
id := staticsites.NewBuildLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "linkedBackendValue")

read, err := client.UnlinkBackendFromBuild(ctx, id, staticsites.DefaultUnlinkBackendFromBuildOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.UpdateBuildDatabaseConnection

ctx := context.TODO()
id := staticsites.NewBuildDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "databaseConnectionValue")

payload := staticsites.DatabaseConnectionPatchRequest{
	// ...
}


read, err := client.UpdateBuildDatabaseConnection(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.UpdateDatabaseConnection

ctx := context.TODO()
id := staticsites.NewDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "databaseConnectionValue")

payload := staticsites.DatabaseConnectionPatchRequest{
	// ...
}


read, err := client.UpdateDatabaseConnection(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.UpdateStaticSite

ctx := context.TODO()
id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue")

payload := staticsites.StaticSitePatchResource{
	// ...
}


read, err := client.UpdateStaticSite(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.UpdateStaticSiteUser

ctx := context.TODO()
id := staticsites.NewUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "authProviderValue", "userValue")

payload := staticsites.StaticSiteUserARMResource{
	// ...
}


read, err := client.UpdateStaticSiteUser(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StaticSitesClient.ValidateBackend

ctx := context.TODO()
id := staticsites.NewLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "linkedBackendValue")

payload := staticsites.StaticSiteLinkedBackendARMResource{
	// ...
}


if err := client.ValidateBackendThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: StaticSitesClient.ValidateBackendForBuild

ctx := context.TODO()
id := staticsites.NewBuildLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "linkedBackendValue")

payload := staticsites.StaticSiteLinkedBackendARMResource{
	// ...
}


if err := client.ValidateBackendForBuildThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: StaticSitesClient.ValidateCustomDomainCanBeAddedToStaticSite

ctx := context.TODO()
id := staticsites.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "customDomainValue")

payload := staticsites.StaticSiteCustomDomainRequestPropertiesARMResource{
	// ...
}


if err := client.ValidateCustomDomainCanBeAddedToStaticSiteThenPoll(ctx, id, payload); err != nil {
	// handle the error
}