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
}
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewAuthProviderID returns a new AuthProviderId struct.
NewBuildDatabaseConnectionID returns a new BuildDatabaseConnectionId struct.
NewBuildID returns a new BuildId struct.
NewBuildLinkedBackendID returns a new BuildLinkedBackendId struct.
NewBuildUserProvidedFunctionAppID returns a new BuildUserProvidedFunctionAppId struct.
NewCustomDomainID returns a new CustomDomainId struct.
NewDatabaseConnectionID returns a new DatabaseConnectionId struct.
NewLinkedBackendID returns a new LinkedBackendId struct.
NewProviderLocationID returns a new ProviderLocationId struct.
NewStaticSiteID returns a new StaticSiteId struct.
NewStaticSitePrivateEndpointConnectionID returns a new StaticSitePrivateEndpointConnectionId struct.
No description provided by the author
NewUserID returns a new UserId struct.
NewUserProvidedFunctionAppID returns a new UserProvidedFunctionAppId struct.
ParseAuthProviderID parses 'input' into a AuthProviderId.
ParseAuthProviderIDInsensitively parses 'input' case-insensitively into a AuthProviderId note: this method should only be used for API response data and not user input.
ParseBuildDatabaseConnectionID parses 'input' into a BuildDatabaseConnectionId.
ParseBuildDatabaseConnectionIDInsensitively parses 'input' case-insensitively into a BuildDatabaseConnectionId note: this method should only be used for API response data and not user input.
ParseBuildID parses 'input' into a BuildId.
ParseBuildIDInsensitively parses 'input' case-insensitively into a BuildId note: this method should only be used for API response data and not user input.
ParseBuildLinkedBackendID parses 'input' into a BuildLinkedBackendId.
ParseBuildLinkedBackendIDInsensitively parses 'input' case-insensitively into a BuildLinkedBackendId note: this method should only be used for API response data and not user input.
ParseBuildUserProvidedFunctionAppID parses 'input' into a BuildUserProvidedFunctionAppId.
ParseBuildUserProvidedFunctionAppIDInsensitively parses 'input' case-insensitively into a BuildUserProvidedFunctionAppId note: this method should only be used for API response data and not user input.
ParseCustomDomainID parses 'input' into a CustomDomainId.
ParseCustomDomainIDInsensitively parses 'input' case-insensitively into a CustomDomainId note: this method should only be used for API response data and not user input.
ParseDatabaseConnectionID parses 'input' into a DatabaseConnectionId.
ParseDatabaseConnectionIDInsensitively parses 'input' case-insensitively into a DatabaseConnectionId note: this method should only be used for API response data and not user input.
ParseLinkedBackendID parses 'input' into a LinkedBackendId.
ParseLinkedBackendIDInsensitively parses 'input' case-insensitively into a LinkedBackendId note: this method should only be used for API response data and not user input.
ParseProviderLocationID parses 'input' into a ProviderLocationId.
ParseProviderLocationIDInsensitively parses 'input' case-insensitively into a ProviderLocationId note: this method should only be used for API response data and not user input.
ParseStaticSiteID parses 'input' into a StaticSiteId.
ParseStaticSiteIDInsensitively parses 'input' case-insensitively into a StaticSiteId note: this method should only be used for API response data and not user input.
ParseStaticSitePrivateEndpointConnectionID parses 'input' into a StaticSitePrivateEndpointConnectionId.
ParseStaticSitePrivateEndpointConnectionIDInsensitively parses 'input' case-insensitively into a StaticSitePrivateEndpointConnectionId note: this method should only be used for API response data and not user input.
ParseUserID parses 'input' into a UserId.
ParseUserIDInsensitively parses 'input' case-insensitively into a UserId note: this method should only be used for API response data and not user input.
ParseUserProvidedFunctionAppID parses 'input' into a UserProvidedFunctionAppId.
ParseUserProvidedFunctionAppIDInsensitively parses 'input' case-insensitively into a UserProvidedFunctionAppId note: this method should only be used for API response data and not user input.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ValidateAuthProviderID checks that 'input' can be parsed as a Auth Provider ID.
ValidateBuildDatabaseConnectionID checks that 'input' can be parsed as a Build Database Connection ID.
ValidateBuildID checks that 'input' can be parsed as a Build ID.
ValidateBuildLinkedBackendID checks that 'input' can be parsed as a Build Linked Backend ID.
ValidateBuildUserProvidedFunctionAppID checks that 'input' can be parsed as a Build User Provided Function App ID.
ValidateCustomDomainID checks that 'input' can be parsed as a Custom Domain ID.
ValidateDatabaseConnectionID checks that 'input' can be parsed as a Database Connection ID.
ValidateLinkedBackendID checks that 'input' can be parsed as a Linked Backend ID.
ValidateProviderLocationID checks that 'input' can be parsed as a Provider Location ID.
ValidateStaticSiteID checks that 'input' can be parsed as a Static Site ID.
ValidateStaticSitePrivateEndpointConnectionID checks that 'input' can be parsed as a Static Site Private Endpoint Connection ID.
ValidateUserID checks that 'input' can be parsed as a User ID.
ValidateUserProvidedFunctionAppID checks that 'input' can be parsed as a User Provided Function App ID.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
AuthProviderId is a struct representing the Resource ID for a Auth Provider.
BuildDatabaseConnectionId is a struct representing the Resource ID for a Build Database Connection.
BuildId is a struct representing the Resource ID for a Build.
BuildLinkedBackendId is a struct representing the Resource ID for a Build Linked Backend.
BuildUserProvidedFunctionAppId is a struct representing the Resource ID for a Build User Provided Function App.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CustomDomainId is a struct representing the Resource ID for a Custom Domain.
No description provided by the author
DatabaseConnectionId is a struct representing the Resource ID for a Database Connection.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LinkedBackendId is a struct representing the Resource ID for a Linked Backend.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ProviderLocationId is a struct representing the Resource ID for a Provider Location.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StaticSiteId is a struct representing the Resource ID for a Static Site.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StaticSitePrivateEndpointConnectionId is a struct representing the Resource ID for a Static Site Private Endpoint Connection.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UserId is a struct representing the Resource ID for a User.
UserProvidedFunctionAppId is a struct representing the Resource ID for a User Provided Function App.
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author