Documentation ¶
Index ¶
- type APIKey
- type APIKeyListResult
- type ActionsRequired
- type CheckNameAvailabilityParameters
- type ConfigurationResourceType
- type ConfigurationStore
- type ConfigurationStoreListResult
- type ConfigurationStoreProperties
- type ConfigurationStorePropertiesUpdateParameters
- type ConfigurationStoreUpdateParameters
- type ConfigurationStoresClient
- func (client *ConfigurationStoresClient) BeginCreate(ctx context.Context, resourceGroupName string, configStoreName string, ...) (*armruntime.Poller[ConfigurationStoresClientCreateResponse], error)
- func (client *ConfigurationStoresClient) BeginDelete(ctx context.Context, resourceGroupName string, configStoreName string, ...) (*armruntime.Poller[ConfigurationStoresClientDeleteResponse], error)
- func (client *ConfigurationStoresClient) BeginPurgeDeleted(ctx context.Context, location string, configStoreName string, ...) (*armruntime.Poller[ConfigurationStoresClientPurgeDeletedResponse], error)
- func (client *ConfigurationStoresClient) BeginUpdate(ctx context.Context, resourceGroupName string, configStoreName string, ...) (*armruntime.Poller[ConfigurationStoresClientUpdateResponse], error)
- func (client *ConfigurationStoresClient) Get(ctx context.Context, resourceGroupName string, configStoreName string, ...) (ConfigurationStoresClientGetResponse, error)
- func (client *ConfigurationStoresClient) GetDeleted(ctx context.Context, location string, configStoreName string, ...) (ConfigurationStoresClientGetDeletedResponse, error)
- func (client *ConfigurationStoresClient) List(options *ConfigurationStoresClientListOptions) *runtime.Pager[ConfigurationStoresClientListResponse]
- func (client *ConfigurationStoresClient) ListByResourceGroup(resourceGroupName string, ...) *runtime.Pager[ConfigurationStoresClientListByResourceGroupResponse]
- func (client *ConfigurationStoresClient) ListDeleted(options *ConfigurationStoresClientListDeletedOptions) *runtime.Pager[ConfigurationStoresClientListDeletedResponse]
- func (client *ConfigurationStoresClient) ListKeys(resourceGroupName string, configStoreName string, ...) *runtime.Pager[ConfigurationStoresClientListKeysResponse]
- func (client *ConfigurationStoresClient) RegenerateKey(ctx context.Context, resourceGroupName string, configStoreName string, ...) (ConfigurationStoresClientRegenerateKeyResponse, error)
- type ConfigurationStoresClientBeginCreateOptions
- type ConfigurationStoresClientBeginDeleteOptions
- type ConfigurationStoresClientBeginPurgeDeletedOptions
- type ConfigurationStoresClientBeginUpdateOptions
- type ConfigurationStoresClientCreateResponse
- type ConfigurationStoresClientDeleteResponse
- type ConfigurationStoresClientGetDeletedOptions
- type ConfigurationStoresClientGetDeletedResponse
- type ConfigurationStoresClientGetOptions
- type ConfigurationStoresClientGetResponse
- type ConfigurationStoresClientListByResourceGroupOptions
- type ConfigurationStoresClientListByResourceGroupResponse
- type ConfigurationStoresClientListDeletedOptions
- type ConfigurationStoresClientListDeletedResponse
- type ConfigurationStoresClientListKeysOptions
- type ConfigurationStoresClientListKeysResponse
- type ConfigurationStoresClientListOptions
- type ConfigurationStoresClientListResponse
- type ConfigurationStoresClientPurgeDeletedResponse
- type ConfigurationStoresClientRegenerateKeyOptions
- type ConfigurationStoresClientRegenerateKeyResponse
- type ConfigurationStoresClientUpdateResponse
- type ConnectionStatus
- type CreateMode
- type CreatedByType
- type DeletedConfigurationStore
- type DeletedConfigurationStoreListResult
- type DeletedConfigurationStoreProperties
- type EncryptionProperties
- type ErrorAdditionalInfo
- type ErrorDetails
- type ErrorResponse
- type IdentityType
- type KeyValue
- type KeyValueListResult
- type KeyValueProperties
- type KeyValuesClient
- func (client *KeyValuesClient) BeginDelete(ctx context.Context, resourceGroupName string, configStoreName string, ...) (*armruntime.Poller[KeyValuesClientDeleteResponse], error)
- func (client *KeyValuesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, configStoreName string, ...) (KeyValuesClientCreateOrUpdateResponse, error)
- func (client *KeyValuesClient) Get(ctx context.Context, resourceGroupName string, configStoreName string, ...) (KeyValuesClientGetResponse, error)
- func (client *KeyValuesClient) ListByConfigurationStore(resourceGroupName string, configStoreName string, ...) *runtime.Pager[KeyValuesClientListByConfigurationStoreResponse]
- type KeyValuesClientBeginDeleteOptions
- type KeyValuesClientCreateOrUpdateOptions
- type KeyValuesClientCreateOrUpdateResponse
- type KeyValuesClientDeleteResponse
- type KeyValuesClientGetOptions
- type KeyValuesClientGetResponse
- type KeyValuesClientListByConfigurationStoreOptions
- type KeyValuesClientListByConfigurationStoreResponse
- type KeyVaultProperties
- type LogSpecification
- type MetricDimension
- type MetricSpecification
- type NameAvailabilityStatus
- type OperationDefinition
- type OperationDefinitionDisplay
- type OperationDefinitionListResult
- type OperationProperties
- type OperationsClient
- func (client *OperationsClient) CheckNameAvailability(ctx context.Context, ...) (OperationsClientCheckNameAvailabilityResponse, error)
- func (client *OperationsClient) List(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
- func (client *OperationsClient) RegionalCheckNameAvailability(ctx context.Context, location string, ...) (OperationsClientRegionalCheckNameAvailabilityResponse, error)
- type OperationsClientCheckNameAvailabilityOptions
- type OperationsClientCheckNameAvailabilityResponse
- type OperationsClientListOptions
- type OperationsClientListResponse
- type OperationsClientRegionalCheckNameAvailabilityOptions
- type OperationsClientRegionalCheckNameAvailabilityResponse
- type PrivateEndpoint
- type PrivateEndpointConnection
- type PrivateEndpointConnectionListResult
- type PrivateEndpointConnectionProperties
- type PrivateEndpointConnectionReference
- type PrivateEndpointConnectionsClient
- func (client *PrivateEndpointConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, configStoreName string, ...) (*armruntime.Poller[PrivateEndpointConnectionsClientCreateOrUpdateResponse], ...)
- func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, configStoreName string, ...) (*armruntime.Poller[PrivateEndpointConnectionsClientDeleteResponse], error)
- func (client *PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, configStoreName string, ...) (PrivateEndpointConnectionsClientGetResponse, error)
- func (client *PrivateEndpointConnectionsClient) ListByConfigurationStore(resourceGroupName string, configStoreName string, ...) ...
- type PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions
- type PrivateEndpointConnectionsClientBeginDeleteOptions
- type PrivateEndpointConnectionsClientCreateOrUpdateResponse
- type PrivateEndpointConnectionsClientDeleteResponse
- type PrivateEndpointConnectionsClientGetOptions
- type PrivateEndpointConnectionsClientGetResponse
- type PrivateEndpointConnectionsClientListByConfigurationStoreOptions
- type PrivateEndpointConnectionsClientListByConfigurationStoreResponse
- type PrivateLinkResource
- type PrivateLinkResourceListResult
- type PrivateLinkResourceProperties
- type PrivateLinkResourcesClient
- func (client *PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, configStoreName string, ...) (PrivateLinkResourcesClientGetResponse, error)
- func (client *PrivateLinkResourcesClient) ListByConfigurationStore(resourceGroupName string, configStoreName string, ...) *runtime.Pager[PrivateLinkResourcesClientListByConfigurationStoreResponse]
- type PrivateLinkResourcesClientGetOptions
- type PrivateLinkResourcesClientGetResponse
- type PrivateLinkResourcesClientListByConfigurationStoreOptions
- type PrivateLinkResourcesClientListByConfigurationStoreResponse
- type PrivateLinkServiceConnectionState
- type ProvisioningState
- type PublicNetworkAccess
- type RegenerateKeyParameters
- type Resource
- type ResourceIdentity
- type SKU
- type ServiceSpecification
- type SystemData
- type TrackedResource
- type UserIdentity
Examples ¶
- ConfigurationStoresClient.BeginCreate
- ConfigurationStoresClient.BeginDelete
- ConfigurationStoresClient.BeginPurgeDeleted
- ConfigurationStoresClient.BeginUpdate
- ConfigurationStoresClient.Get
- ConfigurationStoresClient.GetDeleted
- ConfigurationStoresClient.List
- ConfigurationStoresClient.ListByResourceGroup
- ConfigurationStoresClient.ListDeleted
- ConfigurationStoresClient.ListKeys
- ConfigurationStoresClient.RegenerateKey
- KeyValuesClient.BeginDelete
- KeyValuesClient.CreateOrUpdate
- KeyValuesClient.Get
- KeyValuesClient.ListByConfigurationStore
- OperationsClient.CheckNameAvailability
- OperationsClient.RegionalCheckNameAvailability
- PrivateEndpointConnectionsClient.BeginCreateOrUpdate
- PrivateEndpointConnectionsClient.BeginDelete
- PrivateEndpointConnectionsClient.Get
- PrivateEndpointConnectionsClient.ListByConfigurationStore
- PrivateLinkResourcesClient.Get
- PrivateLinkResourcesClient.ListByConfigurationStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKey ¶
type APIKey struct { // READ-ONLY; A connection string that can be used by supporting clients for authentication. ConnectionString *string `json:"connectionString,omitempty" azure:"ro"` // READ-ONLY; The key ID. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The last time any of the key's properties were modified. LastModified *time.Time `json:"lastModified,omitempty" azure:"ro"` // READ-ONLY; A name for the key describing its usage. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Whether this key can only be used for read operations. ReadOnly *bool `json:"readOnly,omitempty" azure:"ro"` // READ-ONLY; The value of the key that is used for authentication purposes. Value *string `json:"value,omitempty" azure:"ro"` }
APIKey - An API key used for authenticating with a configuration store endpoint.
func (APIKey) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type APIKey.
func (*APIKey) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type APIKey.
type APIKeyListResult ¶
type APIKeyListResult struct { // The URI that can be used to request the next set of paged results. NextLink *string `json:"nextLink,omitempty"` // The collection value. Value []*APIKey `json:"value,omitempty"` }
APIKeyListResult - The result of a request to list API keys.
func (APIKeyListResult) MarshalJSON ¶
func (a APIKeyListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type APIKeyListResult.
type ActionsRequired ¶
type ActionsRequired string
ActionsRequired - Any action that is required beyond basic workflow (approve/ reject/ disconnect)
const ( ActionsRequiredNone ActionsRequired = "None" ActionsRequiredRecreate ActionsRequired = "Recreate" )
func PossibleActionsRequiredValues ¶
func PossibleActionsRequiredValues() []ActionsRequired
PossibleActionsRequiredValues returns the possible values for the ActionsRequired const type.
type CheckNameAvailabilityParameters ¶
type CheckNameAvailabilityParameters struct { // REQUIRED; The name to check for availability. Name *string `json:"name,omitempty"` // REQUIRED; The resource type to check for name availability. Type *ConfigurationResourceType `json:"type,omitempty"` }
CheckNameAvailabilityParameters - Parameters used for checking whether a resource name is available.
type ConfigurationResourceType ¶
type ConfigurationResourceType string
ConfigurationResourceType - The resource type to check for name availability.
const (
ConfigurationResourceTypeMicrosoftAppConfigurationConfigurationStores ConfigurationResourceType = "Microsoft.AppConfiguration/configurationStores"
)
func PossibleConfigurationResourceTypeValues ¶
func PossibleConfigurationResourceTypeValues() []ConfigurationResourceType
PossibleConfigurationResourceTypeValues returns the possible values for the ConfigurationResourceType const type.
type ConfigurationStore ¶
type ConfigurationStore struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // REQUIRED; The sku of the configuration store. SKU *SKU `json:"sku,omitempty"` // The managed identity information, if configured. Identity *ResourceIdentity `json:"identity,omitempty"` // The properties of a configuration store. Properties *ConfigurationStoreProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Resource system metadata. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
ConfigurationStore - The configuration store along with all resource properties. The Configuration Store will have all information to begin utilizing it.
func (ConfigurationStore) MarshalJSON ¶
func (c ConfigurationStore) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationStore.
type ConfigurationStoreListResult ¶
type ConfigurationStoreListResult struct { // The URI that can be used to request the next set of paged results. NextLink *string `json:"nextLink,omitempty"` // The collection value. Value []*ConfigurationStore `json:"value,omitempty"` }
ConfigurationStoreListResult - The result of a request to list configuration stores.
func (ConfigurationStoreListResult) MarshalJSON ¶
func (c ConfigurationStoreListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationStoreListResult.
type ConfigurationStoreProperties ¶
type ConfigurationStoreProperties struct { // Indicates whether the configuration store need to be recovered. CreateMode *CreateMode `json:"createMode,omitempty"` // Disables all authentication methods other than AAD authentication. DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` // Property specifying whether protection against purge is enabled for this configuration store. EnablePurgeProtection *bool `json:"enablePurgeProtection,omitempty"` // The encryption settings of the configuration store. Encryption *EncryptionProperties `json:"encryption,omitempty"` // Control permission for data plane traffic coming from public networks while private endpoint is enabled. PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` // The amount of time in days that the configuration store will be retained when it is soft deleted. SoftDeleteRetentionInDays *int32 `json:"softDeleteRetentionInDays,omitempty"` // READ-ONLY; The creation date of configuration store. CreationDate *time.Time `json:"creationDate,omitempty" azure:"ro"` // READ-ONLY; The DNS endpoint where the configuration store API will be available. Endpoint *string `json:"endpoint,omitempty" azure:"ro"` // READ-ONLY; The list of private endpoint connections that are set up for this resource. PrivateEndpointConnections []*PrivateEndpointConnectionReference `json:"privateEndpointConnections,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the configuration store. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ConfigurationStoreProperties - The properties of a configuration store.
func (ConfigurationStoreProperties) MarshalJSON ¶
func (c ConfigurationStoreProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationStoreProperties.
func (*ConfigurationStoreProperties) UnmarshalJSON ¶
func (c *ConfigurationStoreProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ConfigurationStoreProperties.
type ConfigurationStorePropertiesUpdateParameters ¶
type ConfigurationStorePropertiesUpdateParameters struct { // Disables all authentication methods other than AAD authentication. DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` // Property specifying whether protection against purge is enabled for this configuration store. EnablePurgeProtection *bool `json:"enablePurgeProtection,omitempty"` // The encryption settings of the configuration store. Encryption *EncryptionProperties `json:"encryption,omitempty"` // Control permission for data plane traffic coming from public networks while private endpoint is enabled. PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` }
ConfigurationStorePropertiesUpdateParameters - The properties for updating a configuration store.
type ConfigurationStoreUpdateParameters ¶
type ConfigurationStoreUpdateParameters struct { // The managed identity information for the configuration store. Identity *ResourceIdentity `json:"identity,omitempty"` // The properties for updating a configuration store. Properties *ConfigurationStorePropertiesUpdateParameters `json:"properties,omitempty"` // The SKU of the configuration store. SKU *SKU `json:"sku,omitempty"` // The ARM resource tags. Tags map[string]*string `json:"tags,omitempty"` }
ConfigurationStoreUpdateParameters - The parameters for updating a configuration store.
func (ConfigurationStoreUpdateParameters) MarshalJSON ¶
func (c ConfigurationStoreUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConfigurationStoreUpdateParameters.
type ConfigurationStoresClient ¶
type ConfigurationStoresClient struct {
// contains filtered or unexported fields
}
ConfigurationStoresClient contains the methods for the ConfigurationStores group. Don't use this type directly, use NewConfigurationStoresClient() instead.
func NewConfigurationStoresClient ¶
func NewConfigurationStoresClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ConfigurationStoresClient, error)
NewConfigurationStoresClient creates a new instance of ConfigurationStoresClient with the specified values. subscriptionID - The Microsoft Azure subscription ID. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ConfigurationStoresClient) BeginCreate ¶
func (client *ConfigurationStoresClient) BeginCreate(ctx context.Context, resourceGroupName string, configStoreName string, configStoreCreationParameters ConfigurationStore, options *ConfigurationStoresClientBeginCreateOptions) (*armruntime.Poller[ConfigurationStoresClientCreateResponse], error)
BeginCreate - Creates a configuration store with the specified parameters. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group to which the container registry belongs. configStoreName - The name of the configuration store. configStoreCreationParameters - The parameters for creating a configuration store. options - ConfigurationStoresClientBeginCreateOptions contains the optional parameters for the ConfigurationStoresClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresCreate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armappconfiguration.NewConfigurationStoresClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginCreate(ctx, "<resource-group-name>", "<config-store-name>", armappconfiguration.ConfigurationStore{ Location: to.Ptr("<location>"), Tags: map[string]*string{ "myTag": to.Ptr("myTagValue"), }, SKU: &armappconfiguration.SKU{ Name: to.Ptr("<name>"), }, }, &armappconfiguration.ConfigurationStoresClientBeginCreateOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ConfigurationStoresClient) BeginDelete ¶
func (client *ConfigurationStoresClient) BeginDelete(ctx context.Context, resourceGroupName string, configStoreName string, options *ConfigurationStoresClientBeginDeleteOptions) (*armruntime.Poller[ConfigurationStoresClientDeleteResponse], error)
BeginDelete - Deletes a configuration store. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group to which the container registry belongs. configStoreName - The name of the configuration store. options - ConfigurationStoresClientBeginDeleteOptions contains the optional parameters for the ConfigurationStoresClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresDelete.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armappconfiguration.NewConfigurationStoresClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<config-store-name>", &armappconfiguration.ConfigurationStoresClientBeginDeleteOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } }
Output:
func (*ConfigurationStoresClient) BeginPurgeDeleted ¶ added in v0.3.0
func (client *ConfigurationStoresClient) BeginPurgeDeleted(ctx context.Context, location string, configStoreName string, options *ConfigurationStoresClientBeginPurgeDeletedOptions) (*armruntime.Poller[ConfigurationStoresClientPurgeDeletedResponse], error)
BeginPurgeDeleted - Permanently deletes the specified configuration store. If the operation fails it returns an *azcore.ResponseError type. location - The location in which uniqueness will be verified. configStoreName - The name of the configuration store. options - ConfigurationStoresClientBeginPurgeDeletedOptions contains the optional parameters for the ConfigurationStoresClient.BeginPurgeDeleted method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/DeletedConfigurationStoresPurge.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armappconfiguration.NewConfigurationStoresClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginPurgeDeleted(ctx, "<location>", "<config-store-name>", &armappconfiguration.ConfigurationStoresClientBeginPurgeDeletedOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } }
Output:
func (*ConfigurationStoresClient) BeginUpdate ¶
func (client *ConfigurationStoresClient) BeginUpdate(ctx context.Context, resourceGroupName string, configStoreName string, configStoreUpdateParameters ConfigurationStoreUpdateParameters, options *ConfigurationStoresClientBeginUpdateOptions) (*armruntime.Poller[ConfigurationStoresClientUpdateResponse], error)
BeginUpdate - Updates a configuration store with the specified parameters. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group to which the container registry belongs. configStoreName - The name of the configuration store. configStoreUpdateParameters - The parameters for updating a configuration store. options - ConfigurationStoresClientBeginUpdateOptions contains the optional parameters for the ConfigurationStoresClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresUpdate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armappconfiguration.NewConfigurationStoresClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginUpdate(ctx, "<resource-group-name>", "<config-store-name>", armappconfiguration.ConfigurationStoreUpdateParameters{ SKU: &armappconfiguration.SKU{ Name: to.Ptr("<name>"), }, Tags: map[string]*string{ "Category": to.Ptr("Marketing"), }, }, &armappconfiguration.ConfigurationStoresClientBeginUpdateOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ConfigurationStoresClient) Get ¶
func (client *ConfigurationStoresClient) Get(ctx context.Context, resourceGroupName string, configStoreName string, options *ConfigurationStoresClientGetOptions) (ConfigurationStoresClientGetResponse, error)
Get - Gets the properties of the specified configuration store. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group to which the container registry belongs. configStoreName - The name of the configuration store. options - ConfigurationStoresClientGetOptions contains the optional parameters for the ConfigurationStoresClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armappconfiguration.NewConfigurationStoresClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<config-store-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ConfigurationStoresClient) GetDeleted ¶ added in v0.3.0
func (client *ConfigurationStoresClient) GetDeleted(ctx context.Context, location string, configStoreName string, options *ConfigurationStoresClientGetDeletedOptions) (ConfigurationStoresClientGetDeletedResponse, error)
GetDeleted - Gets a deleted Azure app configuration store. If the operation fails it returns an *azcore.ResponseError type. location - The location in which uniqueness will be verified. configStoreName - The name of the configuration store. options - ConfigurationStoresClientGetDeletedOptions contains the optional parameters for the ConfigurationStoresClient.GetDeleted method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/DeletedConfigurationStoresGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armappconfiguration.NewConfigurationStoresClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.GetDeleted(ctx, "<location>", "<config-store-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*ConfigurationStoresClient) List ¶
func (client *ConfigurationStoresClient) List(options *ConfigurationStoresClientListOptions) *runtime.Pager[ConfigurationStoresClientListResponse]
List - Lists the configuration stores for a given subscription. If the operation fails it returns an *azcore.ResponseError type. options - ConfigurationStoresClientListOptions contains the optional parameters for the ConfigurationStoresClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armappconfiguration.NewConfigurationStoresClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(&armappconfiguration.ConfigurationStoresClientListOptions{SkipToken: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ConfigurationStoresClient) ListByResourceGroup ¶
func (client *ConfigurationStoresClient) ListByResourceGroup(resourceGroupName string, options *ConfigurationStoresClientListByResourceGroupOptions) *runtime.Pager[ConfigurationStoresClientListByResourceGroupResponse]
ListByResourceGroup - Lists the configuration stores for a given resource group. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group to which the container registry belongs. options - ConfigurationStoresClientListByResourceGroupOptions contains the optional parameters for the ConfigurationStoresClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armappconfiguration.NewConfigurationStoresClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByResourceGroup("<resource-group-name>", &armappconfiguration.ConfigurationStoresClientListByResourceGroupOptions{SkipToken: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ConfigurationStoresClient) ListDeleted ¶ added in v0.3.0
func (client *ConfigurationStoresClient) ListDeleted(options *ConfigurationStoresClientListDeletedOptions) *runtime.Pager[ConfigurationStoresClientListDeletedResponse]
ListDeleted - Gets information about the deleted configuration stores in a subscription. If the operation fails it returns an *azcore.ResponseError type. options - ConfigurationStoresClientListDeletedOptions contains the optional parameters for the ConfigurationStoresClient.ListDeleted method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/DeletedConfigurationStoresList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armappconfiguration.NewConfigurationStoresClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListDeleted(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ConfigurationStoresClient) ListKeys ¶
func (client *ConfigurationStoresClient) ListKeys(resourceGroupName string, configStoreName string, options *ConfigurationStoresClientListKeysOptions) *runtime.Pager[ConfigurationStoresClientListKeysResponse]
ListKeys - Lists the access key for the specified configuration store. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group to which the container registry belongs. configStoreName - The name of the configuration store. options - ConfigurationStoresClientListKeysOptions contains the optional parameters for the ConfigurationStoresClient.ListKeys method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresListKeys.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armappconfiguration.NewConfigurationStoresClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListKeys("<resource-group-name>", "<config-store-name>", &armappconfiguration.ConfigurationStoresClientListKeysOptions{SkipToken: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*ConfigurationStoresClient) RegenerateKey ¶
func (client *ConfigurationStoresClient) RegenerateKey(ctx context.Context, resourceGroupName string, configStoreName string, regenerateKeyParameters RegenerateKeyParameters, options *ConfigurationStoresClientRegenerateKeyOptions) (ConfigurationStoresClientRegenerateKeyResponse, error)
RegenerateKey - Regenerates an access key for the specified configuration store. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group to which the container registry belongs. configStoreName - The name of the configuration store. regenerateKeyParameters - The parameters for regenerating an access key. options - ConfigurationStoresClientRegenerateKeyOptions contains the optional parameters for the ConfigurationStoresClient.RegenerateKey method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresRegenerateKey.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armappconfiguration.NewConfigurationStoresClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.RegenerateKey(ctx, "<resource-group-name>", "<config-store-name>", armappconfiguration.RegenerateKeyParameters{ ID: to.Ptr("<id>"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type ConfigurationStoresClientBeginCreateOptions ¶ added in v0.2.0
type ConfigurationStoresClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ConfigurationStoresClientBeginCreateOptions contains the optional parameters for the ConfigurationStoresClient.BeginCreate method.
type ConfigurationStoresClientBeginDeleteOptions ¶ added in v0.2.0
type ConfigurationStoresClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ConfigurationStoresClientBeginDeleteOptions contains the optional parameters for the ConfigurationStoresClient.BeginDelete method.
type ConfigurationStoresClientBeginPurgeDeletedOptions ¶ added in v0.3.0
type ConfigurationStoresClientBeginPurgeDeletedOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ConfigurationStoresClientBeginPurgeDeletedOptions contains the optional parameters for the ConfigurationStoresClient.BeginPurgeDeleted method.
type ConfigurationStoresClientBeginUpdateOptions ¶ added in v0.2.0
type ConfigurationStoresClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ConfigurationStoresClientBeginUpdateOptions contains the optional parameters for the ConfigurationStoresClient.BeginUpdate method.
type ConfigurationStoresClientCreateResponse ¶ added in v0.2.0
type ConfigurationStoresClientCreateResponse struct {
ConfigurationStore
}
ConfigurationStoresClientCreateResponse contains the response from method ConfigurationStoresClient.Create.
type ConfigurationStoresClientDeleteResponse ¶ added in v0.2.0
type ConfigurationStoresClientDeleteResponse struct { }
ConfigurationStoresClientDeleteResponse contains the response from method ConfigurationStoresClient.Delete.
type ConfigurationStoresClientGetDeletedOptions ¶ added in v0.3.0
type ConfigurationStoresClientGetDeletedOptions struct { }
ConfigurationStoresClientGetDeletedOptions contains the optional parameters for the ConfigurationStoresClient.GetDeleted method.
type ConfigurationStoresClientGetDeletedResponse ¶ added in v0.3.0
type ConfigurationStoresClientGetDeletedResponse struct {
DeletedConfigurationStore
}
ConfigurationStoresClientGetDeletedResponse contains the response from method ConfigurationStoresClient.GetDeleted.
type ConfigurationStoresClientGetOptions ¶ added in v0.2.0
type ConfigurationStoresClientGetOptions struct { }
ConfigurationStoresClientGetOptions contains the optional parameters for the ConfigurationStoresClient.Get method.
type ConfigurationStoresClientGetResponse ¶ added in v0.2.0
type ConfigurationStoresClientGetResponse struct {
ConfigurationStore
}
ConfigurationStoresClientGetResponse contains the response from method ConfigurationStoresClient.Get.
type ConfigurationStoresClientListByResourceGroupOptions ¶ added in v0.2.0
type ConfigurationStoresClientListByResourceGroupOptions struct { // A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains // a nextLink element, the value of the nextLink element will include a // skipToken parameter that specifies a starting point to use for subsequent calls. SkipToken *string }
ConfigurationStoresClientListByResourceGroupOptions contains the optional parameters for the ConfigurationStoresClient.ListByResourceGroup method.
type ConfigurationStoresClientListByResourceGroupResponse ¶ added in v0.2.0
type ConfigurationStoresClientListByResourceGroupResponse struct {
ConfigurationStoreListResult
}
ConfigurationStoresClientListByResourceGroupResponse contains the response from method ConfigurationStoresClient.ListByResourceGroup.
type ConfigurationStoresClientListDeletedOptions ¶ added in v0.3.0
type ConfigurationStoresClientListDeletedOptions struct { }
ConfigurationStoresClientListDeletedOptions contains the optional parameters for the ConfigurationStoresClient.ListDeleted method.
type ConfigurationStoresClientListDeletedResponse ¶ added in v0.3.0
type ConfigurationStoresClientListDeletedResponse struct {
DeletedConfigurationStoreListResult
}
ConfigurationStoresClientListDeletedResponse contains the response from method ConfigurationStoresClient.ListDeleted.
type ConfigurationStoresClientListKeysOptions ¶ added in v0.2.0
type ConfigurationStoresClientListKeysOptions struct { // A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains // a nextLink element, the value of the nextLink element will include a // skipToken parameter that specifies a starting point to use for subsequent calls. SkipToken *string }
ConfigurationStoresClientListKeysOptions contains the optional parameters for the ConfigurationStoresClient.ListKeys method.
type ConfigurationStoresClientListKeysResponse ¶ added in v0.2.0
type ConfigurationStoresClientListKeysResponse struct {
APIKeyListResult
}
ConfigurationStoresClientListKeysResponse contains the response from method ConfigurationStoresClient.ListKeys.
type ConfigurationStoresClientListOptions ¶ added in v0.2.0
type ConfigurationStoresClientListOptions struct { // A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains // a nextLink element, the value of the nextLink element will include a // skipToken parameter that specifies a starting point to use for subsequent calls. SkipToken *string }
ConfigurationStoresClientListOptions contains the optional parameters for the ConfigurationStoresClient.List method.
type ConfigurationStoresClientListResponse ¶ added in v0.2.0
type ConfigurationStoresClientListResponse struct {
ConfigurationStoreListResult
}
ConfigurationStoresClientListResponse contains the response from method ConfigurationStoresClient.List.
type ConfigurationStoresClientPurgeDeletedResponse ¶ added in v0.3.0
type ConfigurationStoresClientPurgeDeletedResponse struct { }
ConfigurationStoresClientPurgeDeletedResponse contains the response from method ConfigurationStoresClient.PurgeDeleted.
type ConfigurationStoresClientRegenerateKeyOptions ¶ added in v0.2.0
type ConfigurationStoresClientRegenerateKeyOptions struct { }
ConfigurationStoresClientRegenerateKeyOptions contains the optional parameters for the ConfigurationStoresClient.RegenerateKey method.
type ConfigurationStoresClientRegenerateKeyResponse ¶ added in v0.2.0
type ConfigurationStoresClientRegenerateKeyResponse struct {
APIKey
}
ConfigurationStoresClientRegenerateKeyResponse contains the response from method ConfigurationStoresClient.RegenerateKey.
type ConfigurationStoresClientUpdateResponse ¶ added in v0.2.0
type ConfigurationStoresClientUpdateResponse struct {
ConfigurationStore
}
ConfigurationStoresClientUpdateResponse contains the response from method ConfigurationStoresClient.Update.
type ConnectionStatus ¶
type ConnectionStatus string
ConnectionStatus - The private link service connection status.
const ( ConnectionStatusApproved ConnectionStatus = "Approved" ConnectionStatusDisconnected ConnectionStatus = "Disconnected" ConnectionStatusPending ConnectionStatus = "Pending" ConnectionStatusRejected ConnectionStatus = "Rejected" )
func PossibleConnectionStatusValues ¶
func PossibleConnectionStatusValues() []ConnectionStatus
PossibleConnectionStatusValues returns the possible values for the ConnectionStatus const type.
type CreateMode ¶ added in v0.3.0
type CreateMode string
CreateMode - Indicates whether the configuration store need to be recovered.
const ( CreateModeRecover CreateMode = "Recover" CreateModeDefault CreateMode = "Default" )
func PossibleCreateModeValues ¶ added in v0.3.0
func PossibleCreateModeValues() []CreateMode
PossibleCreateModeValues returns the possible values for the CreateMode const type.
type CreatedByType ¶
type CreatedByType string
CreatedByType - The type of identity that created the resource.
const ( CreatedByTypeApplication CreatedByType = "Application" CreatedByTypeKey CreatedByType = "Key" CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type DeletedConfigurationStore ¶ added in v0.3.0
type DeletedConfigurationStore struct { // Properties of the deleted configuration store Properties *DeletedConfigurationStoreProperties `json:"properties,omitempty"` // READ-ONLY; The resource ID for the deleted configuration store. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the configuration store. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The resource type of the configuration store. Type *string `json:"type,omitempty" azure:"ro"` }
DeletedConfigurationStore - Deleted configuration store information with extended details.
type DeletedConfigurationStoreListResult ¶ added in v0.3.0
type DeletedConfigurationStoreListResult struct { // The URL to get the next set of deleted configuration stores. NextLink *string `json:"nextLink,omitempty"` // The list of deleted configuration store. Value []*DeletedConfigurationStore `json:"value,omitempty"` }
DeletedConfigurationStoreListResult - List of deleted configuration stores
func (DeletedConfigurationStoreListResult) MarshalJSON ¶ added in v0.3.0
func (d DeletedConfigurationStoreListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DeletedConfigurationStoreListResult.
type DeletedConfigurationStoreProperties ¶ added in v0.3.0
type DeletedConfigurationStoreProperties struct { // READ-ONLY; The resource id of the original configuration store. ConfigurationStoreID *string `json:"configurationStoreId,omitempty" azure:"ro"` // READ-ONLY; The deleted date. DeletionDate *time.Time `json:"deletionDate,omitempty" azure:"ro"` // READ-ONLY; The location of the original configuration store. Location *string `json:"location,omitempty" azure:"ro"` // READ-ONLY; Purge protection status of the original configuration store. PurgeProtectionEnabled *bool `json:"purgeProtectionEnabled,omitempty" azure:"ro"` // READ-ONLY; The scheduled purged date. ScheduledPurgeDate *time.Time `json:"scheduledPurgeDate,omitempty" azure:"ro"` // READ-ONLY; Tags of the original configuration store. Tags map[string]*string `json:"tags,omitempty" azure:"ro"` }
DeletedConfigurationStoreProperties - Properties of the deleted configuration store.
func (DeletedConfigurationStoreProperties) MarshalJSON ¶ added in v0.3.0
func (d DeletedConfigurationStoreProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DeletedConfigurationStoreProperties.
func (*DeletedConfigurationStoreProperties) UnmarshalJSON ¶ added in v0.3.0
func (d *DeletedConfigurationStoreProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DeletedConfigurationStoreProperties.
type EncryptionProperties ¶
type EncryptionProperties struct { // Key vault properties. KeyVaultProperties *KeyVaultProperties `json:"keyVaultProperties,omitempty"` }
EncryptionProperties - The encryption settings for a configuration store.
type ErrorAdditionalInfo ¶
type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. Info interface{} `json:"info,omitempty" azure:"ro"` // READ-ONLY; The additional info type. Type *string `json:"type,omitempty" azure:"ro"` }
ErrorAdditionalInfo - The resource management error additional info.
type ErrorDetails ¶
type ErrorDetails struct { // READ-ONLY; The error additional info. AdditionalInfo []*ErrorAdditionalInfo `json:"additionalInfo,omitempty" azure:"ro"` // READ-ONLY; Error code. Code *string `json:"code,omitempty" azure:"ro"` // READ-ONLY; Error message indicating why the operation failed. Message *string `json:"message,omitempty" azure:"ro"` }
ErrorDetails - The details of the error.
func (ErrorDetails) MarshalJSON ¶
func (e ErrorDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorDetails.
type ErrorResponse ¶
type ErrorResponse struct { // The details of the error. Error *ErrorDetails `json:"error,omitempty"` }
ErrorResponse - Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.
type IdentityType ¶
type IdentityType string
IdentityType - The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identities.
const ( IdentityTypeNone IdentityType = "None" IdentityTypeSystemAssigned IdentityType = "SystemAssigned" IdentityTypeSystemAssignedUserAssigned IdentityType = "SystemAssigned, UserAssigned" IdentityTypeUserAssigned IdentityType = "UserAssigned" )
func PossibleIdentityTypeValues ¶
func PossibleIdentityTypeValues() []IdentityType
PossibleIdentityTypeValues returns the possible values for the IdentityType const type.
type KeyValue ¶
type KeyValue struct { // All key-value properties. Properties *KeyValueProperties `json:"properties,omitempty"` // READ-ONLY; The resource ID. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
KeyValue - The key-value resource along with all resource properties.
type KeyValueListResult ¶
type KeyValueListResult struct { // The URI that can be used to request the next set of paged results. NextLink *string `json:"nextLink,omitempty"` // The collection value. Value []*KeyValue `json:"value,omitempty"` }
KeyValueListResult - The result of a request to list key-values.
func (KeyValueListResult) MarshalJSON ¶
func (k KeyValueListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type KeyValueListResult.
type KeyValueProperties ¶
type KeyValueProperties struct { // The content type of the key-value's value. Providing a proper content-type can enable transformations of values when they // are retrieved by applications. ContentType *string `json:"contentType,omitempty"` // A dictionary of tags that can help identify what a key-value may be applicable for. Tags map[string]*string `json:"tags,omitempty"` // The value of the key-value. Value *string `json:"value,omitempty"` // READ-ONLY; An ETag indicating the state of a key-value within a configuration store. ETag *string `json:"eTag,omitempty" azure:"ro"` // READ-ONLY; The primary identifier of a key-value. The key is used in unison with the label to uniquely identify a key-value. Key *string `json:"key,omitempty" azure:"ro"` // READ-ONLY; A value used to group key-values. The label is used in unison with the key to uniquely identify a key-value. Label *string `json:"label,omitempty" azure:"ro"` // READ-ONLY; The last time a modifying operation was performed on the given key-value. LastModified *time.Time `json:"lastModified,omitempty" azure:"ro"` // READ-ONLY; A value indicating whether the key-value is locked. A locked key-value may not be modified until it is unlocked. Locked *bool `json:"locked,omitempty" azure:"ro"` }
KeyValueProperties - All key-value properties.
func (KeyValueProperties) MarshalJSON ¶
func (k KeyValueProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type KeyValueProperties.
func (*KeyValueProperties) UnmarshalJSON ¶
func (k *KeyValueProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type KeyValueProperties.
type KeyValuesClient ¶
type KeyValuesClient struct {
// contains filtered or unexported fields
}
KeyValuesClient contains the methods for the KeyValues group. Don't use this type directly, use NewKeyValuesClient() instead.
func NewKeyValuesClient ¶
func NewKeyValuesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*KeyValuesClient, error)
NewKeyValuesClient creates a new instance of KeyValuesClient with the specified values. subscriptionID - The Microsoft Azure subscription ID. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*KeyValuesClient) BeginDelete ¶
func (client *KeyValuesClient) BeginDelete(ctx context.Context, resourceGroupName string, configStoreName string, keyValueName string, options *KeyValuesClientBeginDeleteOptions) (*armruntime.Poller[KeyValuesClientDeleteResponse], error)
BeginDelete - Deletes a key-value. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group to which the container registry belongs. configStoreName - The name of the configuration store. keyValueName - Identifier of key and label combination. Key and label are joined by $ character. Label is optional. options - KeyValuesClientBeginDeleteOptions contains the optional parameters for the KeyValuesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresDeleteKeyValue.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armappconfiguration.NewKeyValuesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<config-store-name>", "<key-value-name>", &armappconfiguration.KeyValuesClientBeginDeleteOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } }
Output:
func (*KeyValuesClient) CreateOrUpdate ¶
func (client *KeyValuesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, configStoreName string, keyValueName string, options *KeyValuesClientCreateOrUpdateOptions) (KeyValuesClientCreateOrUpdateResponse, error)
CreateOrUpdate - Creates a key-value. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group to which the container registry belongs. configStoreName - The name of the configuration store. keyValueName - Identifier of key and label combination. Key and label are joined by $ character. Label is optional. options - KeyValuesClientCreateOrUpdateOptions contains the optional parameters for the KeyValuesClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresCreateKeyValue.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armappconfiguration.NewKeyValuesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.CreateOrUpdate(ctx, "<resource-group-name>", "<config-store-name>", "<key-value-name>", &armappconfiguration.KeyValuesClientCreateOrUpdateOptions{KeyValueParameters: &armappconfiguration.KeyValue{ Properties: &armappconfiguration.KeyValueProperties{ Tags: map[string]*string{ "tag1": to.Ptr("tagValue1"), "tag2": to.Ptr("tagValue2"), }, Value: to.Ptr("<value>"), }, }, }) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*KeyValuesClient) Get ¶
func (client *KeyValuesClient) Get(ctx context.Context, resourceGroupName string, configStoreName string, keyValueName string, options *KeyValuesClientGetOptions) (KeyValuesClientGetResponse, error)
Get - Gets the properties of the specified key-value. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group to which the container registry belongs. configStoreName - The name of the configuration store. keyValueName - Identifier of key and label combination. Key and label are joined by $ character. Label is optional. options - KeyValuesClientGetOptions contains the optional parameters for the KeyValuesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresGetKeyValue.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armappconfiguration.NewKeyValuesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<config-store-name>", "<key-value-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*KeyValuesClient) ListByConfigurationStore ¶
func (client *KeyValuesClient) ListByConfigurationStore(resourceGroupName string, configStoreName string, options *KeyValuesClientListByConfigurationStoreOptions) *runtime.Pager[KeyValuesClientListByConfigurationStoreResponse]
ListByConfigurationStore - Lists the key-values for a given configuration store. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group to which the container registry belongs. configStoreName - The name of the configuration store. options - KeyValuesClientListByConfigurationStoreOptions contains the optional parameters for the KeyValuesClient.ListByConfigurationStore method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresListKeyValues.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armappconfiguration.NewKeyValuesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByConfigurationStore("<resource-group-name>", "<config-store-name>", &armappconfiguration.KeyValuesClientListByConfigurationStoreOptions{SkipToken: nil}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type KeyValuesClientBeginDeleteOptions ¶ added in v0.2.0
type KeyValuesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
KeyValuesClientBeginDeleteOptions contains the optional parameters for the KeyValuesClient.BeginDelete method.
type KeyValuesClientCreateOrUpdateOptions ¶ added in v0.2.0
type KeyValuesClientCreateOrUpdateOptions struct { // The parameters for creating a key-value. KeyValueParameters *KeyValue }
KeyValuesClientCreateOrUpdateOptions contains the optional parameters for the KeyValuesClient.CreateOrUpdate method.
type KeyValuesClientCreateOrUpdateResponse ¶ added in v0.2.0
type KeyValuesClientCreateOrUpdateResponse struct {
KeyValue
}
KeyValuesClientCreateOrUpdateResponse contains the response from method KeyValuesClient.CreateOrUpdate.
type KeyValuesClientDeleteResponse ¶ added in v0.2.0
type KeyValuesClientDeleteResponse struct { }
KeyValuesClientDeleteResponse contains the response from method KeyValuesClient.Delete.
type KeyValuesClientGetOptions ¶ added in v0.2.0
type KeyValuesClientGetOptions struct { }
KeyValuesClientGetOptions contains the optional parameters for the KeyValuesClient.Get method.
type KeyValuesClientGetResponse ¶ added in v0.2.0
type KeyValuesClientGetResponse struct {
KeyValue
}
KeyValuesClientGetResponse contains the response from method KeyValuesClient.Get.
type KeyValuesClientListByConfigurationStoreOptions ¶ added in v0.2.0
type KeyValuesClientListByConfigurationStoreOptions struct { // A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains // a nextLink element, the value of the nextLink element will include a // skipToken parameter that specifies a starting point to use for subsequent calls. SkipToken *string }
KeyValuesClientListByConfigurationStoreOptions contains the optional parameters for the KeyValuesClient.ListByConfigurationStore method.
type KeyValuesClientListByConfigurationStoreResponse ¶ added in v0.2.0
type KeyValuesClientListByConfigurationStoreResponse struct {
KeyValueListResult
}
KeyValuesClientListByConfigurationStoreResponse contains the response from method KeyValuesClient.ListByConfigurationStore.
type KeyVaultProperties ¶
type KeyVaultProperties struct { // The client id of the identity which will be used to access key vault. IdentityClientID *string `json:"identityClientId,omitempty"` // The URI of the key vault key used to encrypt data. KeyIdentifier *string `json:"keyIdentifier,omitempty"` }
KeyVaultProperties - Settings concerning key vault encryption for a configuration store.
type LogSpecification ¶
type LogSpecification struct { // Blob duration of the log BlobDuration *string `json:"blobDuration,omitempty"` // Localized friendly display name of the log DisplayName *string `json:"displayName,omitempty"` // Name of the log Name *string `json:"name,omitempty"` }
LogSpecification - Specifications of the Log for Azure Monitoring
type MetricDimension ¶
type MetricDimension struct { // Localized friendly display name of the dimension DisplayName *string `json:"displayName,omitempty"` // Internal name of the dimension. InternalName *string `json:"internalName,omitempty"` // Name of the dimension Name *string `json:"name,omitempty"` }
MetricDimension - Specifications of the Dimension of metrics
type MetricSpecification ¶
type MetricSpecification struct { // Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. AggregationType *string `json:"aggregationType,omitempty"` // Dimensions of the metric Dimensions []*MetricDimension `json:"dimensions,omitempty"` // Localized friendly description of the metric DisplayDescription *string `json:"displayDescription,omitempty"` // Localized friendly display name of the metric DisplayName *string `json:"displayName,omitempty"` // Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published. FillGapWithZero *bool `json:"fillGapWithZero,omitempty"` // Internal metric name. InternalMetricName *string `json:"internalMetricName,omitempty"` // Name of the metric Name *string `json:"name,omitempty"` // Unit that makes sense for the metric Unit *string `json:"unit,omitempty"` }
MetricSpecification - Specifications of the Metrics for Azure Monitoring
func (MetricSpecification) MarshalJSON ¶
func (m MetricSpecification) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MetricSpecification.
type NameAvailabilityStatus ¶
type NameAvailabilityStatus struct { // READ-ONLY; If any, the error message that provides more detail for the reason that the name is not available. Message *string `json:"message,omitempty" azure:"ro"` // READ-ONLY; The value indicating whether the resource name is available. NameAvailable *bool `json:"nameAvailable,omitempty" azure:"ro"` // READ-ONLY; If any, the reason that the name is not available. Reason *string `json:"reason,omitempty" azure:"ro"` }
NameAvailabilityStatus - The result of a request to check the availability of a resource name.
type OperationDefinition ¶
type OperationDefinition struct { // The display information for the configuration store operation. Display *OperationDefinitionDisplay `json:"display,omitempty"` // Indicates whether the operation is a data action IsDataAction *bool `json:"isDataAction,omitempty"` // Operation name: {provider}/{resource}/{operation}. Name *string `json:"name,omitempty"` // Origin of the operation Origin *string `json:"origin,omitempty"` // Properties of the operation Properties *OperationProperties `json:"properties,omitempty"` }
OperationDefinition - The definition of a configuration store operation.
type OperationDefinitionDisplay ¶
type OperationDefinitionDisplay struct { // The description for the operation. Description *string `json:"description,omitempty"` // The operation that users can perform. Operation *string `json:"operation,omitempty"` // The resource on which the operation is performed. Resource *string `json:"resource,omitempty"` // READ-ONLY; The resource provider name: Microsoft App Configuration." Provider *string `json:"provider,omitempty" azure:"ro"` }
OperationDefinitionDisplay - The display information for a configuration store operation.
type OperationDefinitionListResult ¶
type OperationDefinitionListResult struct { // The URI that can be used to request the next set of paged results. NextLink *string `json:"nextLink,omitempty"` // The collection value. Value []*OperationDefinition `json:"value,omitempty"` }
OperationDefinitionListResult - The result of a request to list configuration store operations.
func (OperationDefinitionListResult) MarshalJSON ¶
func (o OperationDefinitionListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDefinitionListResult.
type OperationProperties ¶
type OperationProperties struct { // Service specifications of the operation ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"` }
OperationProperties - Extra Operation properties
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values. subscriptionID - The Microsoft Azure subscription ID. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*OperationsClient) CheckNameAvailability ¶
func (client *OperationsClient) CheckNameAvailability(ctx context.Context, checkNameAvailabilityParameters CheckNameAvailabilityParameters, options *OperationsClientCheckNameAvailabilityOptions) (OperationsClientCheckNameAvailabilityResponse, error)
CheckNameAvailability - Checks whether the configuration store name is available for use. If the operation fails it returns an *azcore.ResponseError type. checkNameAvailabilityParameters - The object containing information for the availability request. options - OperationsClientCheckNameAvailabilityOptions contains the optional parameters for the OperationsClient.CheckNameAvailability method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/CheckNameAvailable.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armappconfiguration.NewOperationsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.CheckNameAvailability(ctx, armappconfiguration.CheckNameAvailabilityParameters{ Name: to.Ptr("<name>"), Type: to.Ptr(armappconfiguration.ConfigurationResourceTypeMicrosoftAppConfigurationConfigurationStores), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*OperationsClient) List ¶
func (client *OperationsClient) List(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
List - Lists the operations available from this provider. If the operation fails it returns an *azcore.ResponseError type. options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
func (*OperationsClient) RegionalCheckNameAvailability ¶ added in v0.3.0
func (client *OperationsClient) RegionalCheckNameAvailability(ctx context.Context, location string, checkNameAvailabilityParameters CheckNameAvailabilityParameters, options *OperationsClientRegionalCheckNameAvailabilityOptions) (OperationsClientRegionalCheckNameAvailabilityResponse, error)
RegionalCheckNameAvailability - Checks whether the configuration store name is available for use. If the operation fails it returns an *azcore.ResponseError type. location - The location in which uniqueness will be verified. checkNameAvailabilityParameters - The object containing information for the availability request. options - OperationsClientRegionalCheckNameAvailabilityOptions contains the optional parameters for the OperationsClient.RegionalCheckNameAvailability method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/RegionalCheckNameAvailable.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armappconfiguration.NewOperationsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.RegionalCheckNameAvailability(ctx, "<location>", armappconfiguration.CheckNameAvailabilityParameters{ Name: to.Ptr("<name>"), Type: to.Ptr(armappconfiguration.ConfigurationResourceTypeMicrosoftAppConfigurationConfigurationStores), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type OperationsClientCheckNameAvailabilityOptions ¶ added in v0.2.0
type OperationsClientCheckNameAvailabilityOptions struct { }
OperationsClientCheckNameAvailabilityOptions contains the optional parameters for the OperationsClient.CheckNameAvailability method.
type OperationsClientCheckNameAvailabilityResponse ¶ added in v0.2.0
type OperationsClientCheckNameAvailabilityResponse struct {
NameAvailabilityStatus
}
OperationsClientCheckNameAvailabilityResponse contains the response from method OperationsClient.CheckNameAvailability.
type OperationsClientListOptions ¶ added in v0.2.0
type OperationsClientListOptions struct { // A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains // a nextLink element, the value of the nextLink element will include a // skipToken parameter that specifies a starting point to use for subsequent calls. SkipToken *string }
OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListResponse ¶ added in v0.2.0
type OperationsClientListResponse struct {
OperationDefinitionListResult
}
OperationsClientListResponse contains the response from method OperationsClient.List.
type OperationsClientRegionalCheckNameAvailabilityOptions ¶ added in v0.3.0
type OperationsClientRegionalCheckNameAvailabilityOptions struct { }
OperationsClientRegionalCheckNameAvailabilityOptions contains the optional parameters for the OperationsClient.RegionalCheckNameAvailability method.
type OperationsClientRegionalCheckNameAvailabilityResponse ¶ added in v0.3.0
type OperationsClientRegionalCheckNameAvailabilityResponse struct {
NameAvailabilityStatus
}
OperationsClientRegionalCheckNameAvailabilityResponse contains the response from method OperationsClient.RegionalCheckNameAvailability.
type PrivateEndpoint ¶
type PrivateEndpoint struct { // The resource Id for private endpoint ID *string `json:"id,omitempty"` }
PrivateEndpoint - Private endpoint which a connection belongs to.
type PrivateEndpointConnection ¶
type PrivateEndpointConnection struct { // The properties of a private endpoint. Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` // READ-ONLY; The resource ID. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
PrivateEndpointConnection - A private endpoint connection
type PrivateEndpointConnectionListResult ¶
type PrivateEndpointConnectionListResult struct { // The URI that can be used to request the next set of paged results. NextLink *string `json:"nextLink,omitempty"` // The collection value. Value []*PrivateEndpointConnection `json:"value,omitempty"` }
PrivateEndpointConnectionListResult - A list of private endpoint connections
func (PrivateEndpointConnectionListResult) MarshalJSON ¶
func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult.
type PrivateEndpointConnectionProperties ¶
type PrivateEndpointConnectionProperties struct { // REQUIRED; A collection of information about the state of the connection between service consumer and provider. PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` // The resource of private endpoint. PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` // READ-ONLY; The provisioning status of the private endpoint connection. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
PrivateEndpointConnectionProperties - Properties of a private endpoint connection.
type PrivateEndpointConnectionReference ¶
type PrivateEndpointConnectionReference struct { // The properties of a private endpoint connection. Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` // READ-ONLY; The resource ID. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
PrivateEndpointConnectionReference - A reference to a related private endpoint connection.
type PrivateEndpointConnectionsClient ¶
type PrivateEndpointConnectionsClient struct {
// contains filtered or unexported fields
}
PrivateEndpointConnectionsClient contains the methods for the PrivateEndpointConnections group. Don't use this type directly, use NewPrivateEndpointConnectionsClient() instead.
func NewPrivateEndpointConnectionsClient ¶
func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsClient, error)
NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient with the specified values. subscriptionID - The Microsoft Azure subscription ID. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*PrivateEndpointConnectionsClient) BeginCreateOrUpdate ¶
func (client *PrivateEndpointConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, configStoreName string, privateEndpointConnectionName string, privateEndpointConnection PrivateEndpointConnection, options *PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions) (*armruntime.Poller[PrivateEndpointConnectionsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Update the state of the specified private endpoint connection associated with the configuration store. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group to which the container registry belongs. configStoreName - The name of the configuration store. privateEndpointConnectionName - Private endpoint connection name privateEndpointConnection - The private endpoint connection properties. options - PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresCreatePrivateEndpointConnection.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armappconfiguration.NewPrivateEndpointConnectionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<config-store-name>", "<private-endpoint-connection-name>", armappconfiguration.PrivateEndpointConnection{ Properties: &armappconfiguration.PrivateEndpointConnectionProperties{ PrivateLinkServiceConnectionState: &armappconfiguration.PrivateLinkServiceConnectionState{ Description: to.Ptr("<description>"), Status: to.Ptr(armappconfiguration.ConnectionStatusApproved), }, }, }, &armappconfiguration.PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } // TODO: use response item _ = res }
Output:
func (*PrivateEndpointConnectionsClient) BeginDelete ¶
func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, configStoreName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*armruntime.Poller[PrivateEndpointConnectionsClientDeleteResponse], error)
BeginDelete - Deletes a private endpoint connection. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group to which the container registry belongs. configStoreName - The name of the configuration store. privateEndpointConnectionName - Private endpoint connection name options - PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresDeletePrivateEndpointConnection.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armappconfiguration.NewPrivateEndpointConnectionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<config-store-name>", "<private-endpoint-connection-name>", &armappconfiguration.PrivateEndpointConnectionsClientBeginDeleteOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } }
Output:
func (*PrivateEndpointConnectionsClient) Get ¶
func (client *PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, configStoreName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientGetOptions) (PrivateEndpointConnectionsClientGetResponse, error)
Get - Gets the specified private endpoint connection associated with the configuration store. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group to which the container registry belongs. configStoreName - The name of the configuration store. privateEndpointConnectionName - Private endpoint connection name options - PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresGetPrivateEndpointConnection.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armappconfiguration.NewPrivateEndpointConnectionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<config-store-name>", "<private-endpoint-connection-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*PrivateEndpointConnectionsClient) ListByConfigurationStore ¶
func (client *PrivateEndpointConnectionsClient) ListByConfigurationStore(resourceGroupName string, configStoreName string, options *PrivateEndpointConnectionsClientListByConfigurationStoreOptions) *runtime.Pager[PrivateEndpointConnectionsClientListByConfigurationStoreResponse]
ListByConfigurationStore - Lists all private endpoint connections for a configuration store. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group to which the container registry belongs. configStoreName - The name of the configuration store. options - PrivateEndpointConnectionsClientListByConfigurationStoreOptions contains the optional parameters for the PrivateEndpointConnectionsClient.ListByConfigurationStore method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/ConfigurationStoresListPrivateEndpointConnections.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armappconfiguration.NewPrivateEndpointConnectionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByConfigurationStore("<resource-group-name>", "<config-store-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions ¶ added in v0.2.0
type PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginCreateOrUpdate method.
type PrivateEndpointConnectionsClientBeginDeleteOptions ¶ added in v0.2.0
type PrivateEndpointConnectionsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete method.
type PrivateEndpointConnectionsClientCreateOrUpdateResponse ¶ added in v0.2.0
type PrivateEndpointConnectionsClientCreateOrUpdateResponse struct {
PrivateEndpointConnection
}
PrivateEndpointConnectionsClientCreateOrUpdateResponse contains the response from method PrivateEndpointConnectionsClient.CreateOrUpdate.
type PrivateEndpointConnectionsClientDeleteResponse ¶ added in v0.2.0
type PrivateEndpointConnectionsClientDeleteResponse struct { }
PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.Delete.
type PrivateEndpointConnectionsClientGetOptions ¶ added in v0.2.0
type PrivateEndpointConnectionsClientGetOptions struct { }
PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get method.
type PrivateEndpointConnectionsClientGetResponse ¶ added in v0.2.0
type PrivateEndpointConnectionsClientGetResponse struct {
PrivateEndpointConnection
}
PrivateEndpointConnectionsClientGetResponse contains the response from method PrivateEndpointConnectionsClient.Get.
type PrivateEndpointConnectionsClientListByConfigurationStoreOptions ¶ added in v0.2.0
type PrivateEndpointConnectionsClientListByConfigurationStoreOptions struct { }
PrivateEndpointConnectionsClientListByConfigurationStoreOptions contains the optional parameters for the PrivateEndpointConnectionsClient.ListByConfigurationStore method.
type PrivateEndpointConnectionsClientListByConfigurationStoreResponse ¶ added in v0.2.0
type PrivateEndpointConnectionsClientListByConfigurationStoreResponse struct {
PrivateEndpointConnectionListResult
}
PrivateEndpointConnectionsClientListByConfigurationStoreResponse contains the response from method PrivateEndpointConnectionsClient.ListByConfigurationStore.
type PrivateLinkResource ¶
type PrivateLinkResource struct { // Private link resource properties. Properties *PrivateLinkResourceProperties `json:"properties,omitempty"` // READ-ONLY; The resource ID. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. Type *string `json:"type,omitempty" azure:"ro"` }
PrivateLinkResource - A resource that supports private link capabilities.
type PrivateLinkResourceListResult ¶
type PrivateLinkResourceListResult struct { // The URI that can be used to request the next set of paged results. NextLink *string `json:"nextLink,omitempty"` // The collection value. Value []*PrivateLinkResource `json:"value,omitempty"` }
PrivateLinkResourceListResult - A list of private link resources.
func (PrivateLinkResourceListResult) MarshalJSON ¶
func (p PrivateLinkResourceListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceListResult.
type PrivateLinkResourceProperties ¶
type PrivateLinkResourceProperties struct { // READ-ONLY; The private link resource group id. GroupID *string `json:"groupId,omitempty" azure:"ro"` // READ-ONLY; The private link resource required member names. RequiredMembers []*string `json:"requiredMembers,omitempty" azure:"ro"` // READ-ONLY; The list of required DNS zone names of the private link resource. RequiredZoneNames []*string `json:"requiredZoneNames,omitempty" azure:"ro"` }
PrivateLinkResourceProperties - Properties of a private link resource.
func (PrivateLinkResourceProperties) MarshalJSON ¶
func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties.
type PrivateLinkResourcesClient ¶
type PrivateLinkResourcesClient struct {
// contains filtered or unexported fields
}
PrivateLinkResourcesClient contains the methods for the PrivateLinkResources group. Don't use this type directly, use NewPrivateLinkResourcesClient() instead.
func NewPrivateLinkResourcesClient ¶
func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesClient, error)
NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient with the specified values. subscriptionID - The Microsoft Azure subscription ID. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*PrivateLinkResourcesClient) Get ¶
func (client *PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, configStoreName string, groupName string, options *PrivateLinkResourcesClientGetOptions) (PrivateLinkResourcesClientGetResponse, error)
Get - Gets a private link resource that need to be created for a configuration store. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group to which the container registry belongs. configStoreName - The name of the configuration store. groupName - The name of the private link resource group. options - PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/PrivateLinkResourceGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armappconfiguration.NewPrivateLinkResourcesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<config-store-name>", "<group-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*PrivateLinkResourcesClient) ListByConfigurationStore ¶
func (client *PrivateLinkResourcesClient) ListByConfigurationStore(resourceGroupName string, configStoreName string, options *PrivateLinkResourcesClientListByConfigurationStoreOptions) *runtime.Pager[PrivateLinkResourcesClientListByConfigurationStoreResponse]
ListByConfigurationStore - Gets the private link resources that need to be created for a configuration store. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group to which the container registry belongs. configStoreName - The name of the configuration store. options - PrivateLinkResourcesClientListByConfigurationStoreOptions contains the optional parameters for the PrivateLinkResourcesClient.ListByConfigurationStore method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/PrivateLinkResourcesListByConfigurationStore.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armappconfiguration.NewPrivateLinkResourcesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByConfigurationStore("<resource-group-name>", "<config-store-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type PrivateLinkResourcesClientGetOptions ¶ added in v0.2.0
type PrivateLinkResourcesClientGetOptions struct { }
PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get method.
type PrivateLinkResourcesClientGetResponse ¶ added in v0.2.0
type PrivateLinkResourcesClientGetResponse struct {
PrivateLinkResource
}
PrivateLinkResourcesClientGetResponse contains the response from method PrivateLinkResourcesClient.Get.
type PrivateLinkResourcesClientListByConfigurationStoreOptions ¶ added in v0.2.0
type PrivateLinkResourcesClientListByConfigurationStoreOptions struct { }
PrivateLinkResourcesClientListByConfigurationStoreOptions contains the optional parameters for the PrivateLinkResourcesClient.ListByConfigurationStore method.
type PrivateLinkResourcesClientListByConfigurationStoreResponse ¶ added in v0.2.0
type PrivateLinkResourcesClientListByConfigurationStoreResponse struct {
PrivateLinkResourceListResult
}
PrivateLinkResourcesClientListByConfigurationStoreResponse contains the response from method PrivateLinkResourcesClient.ListByConfigurationStore.
type PrivateLinkServiceConnectionState ¶
type PrivateLinkServiceConnectionState struct { // The private link service connection description. Description *string `json:"description,omitempty"` // The private link service connection status. Status *ConnectionStatus `json:"status,omitempty"` // READ-ONLY; Any action that is required beyond basic workflow (approve/ reject/ disconnect) ActionsRequired *ActionsRequired `json:"actionsRequired,omitempty" azure:"ro"` }
PrivateLinkServiceConnectionState - The state of a private link service connection.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState - The provisioning state of the configuration store.
const ( ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
type PublicNetworkAccess ¶
type PublicNetworkAccess string
PublicNetworkAccess - Control permission for data plane traffic coming from public networks while private endpoint is enabled.
const ( PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled" PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled" )
func PossiblePublicNetworkAccessValues ¶
func PossiblePublicNetworkAccessValues() []PublicNetworkAccess
PossiblePublicNetworkAccessValues returns the possible values for the PublicNetworkAccess const type.
type RegenerateKeyParameters ¶
type RegenerateKeyParameters struct { // The id of the key to regenerate. ID *string `json:"id,omitempty"` }
RegenerateKeyParameters - The parameters used to regenerate an API key.
type Resource ¶
type Resource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
Resource - Common fields that are returned in the response for all Azure Resource Manager resources
type ResourceIdentity ¶
type ResourceIdentity struct { // The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity // and a set of user-assigned identities. The type 'None' will remove any // identities. Type *IdentityType `json:"type,omitempty"` // The list of user-assigned identities associated with the resource. The user-assigned identity dictionary keys will be ARM // resource ids in the form: // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. UserAssignedIdentities map[string]*UserIdentity `json:"userAssignedIdentities,omitempty"` // READ-ONLY; The principal id of the identity. This property will only be provided for a system-assigned identity. PrincipalID *string `json:"principalId,omitempty" azure:"ro"` // READ-ONLY; The tenant id associated with the resource's identity. This property will only be provided for a system-assigned // identity. TenantID *string `json:"tenantId,omitempty" azure:"ro"` }
ResourceIdentity - An identity that can be associated with a resource.
func (ResourceIdentity) MarshalJSON ¶
func (r ResourceIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceIdentity.
type SKU ¶
type SKU struct { // REQUIRED; The SKU name of the configuration store. Name *string `json:"name,omitempty"` }
SKU - Describes a configuration store SKU.
type ServiceSpecification ¶
type ServiceSpecification struct { // Specifications of the Log for Azure Monitoring LogSpecifications []*LogSpecification `json:"logSpecifications,omitempty"` // Specifications of the Metrics for Azure Monitoring MetricSpecifications []*MetricSpecification `json:"metricSpecifications,omitempty"` }
ServiceSpecification - Service specification payload
func (ServiceSpecification) MarshalJSON ¶
func (s ServiceSpecification) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceSpecification.
type SystemData ¶
type SystemData struct { // The timestamp of resource creation (UTC). CreatedAt *time.Time `json:"createdAt,omitempty"` // The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // The type of identity that created the resource. CreatedByType *CreatedByType `json:"createdByType,omitempty"` // The timestamp of resource last modification (UTC) LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` // The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // The type of identity that last modified the resource. LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` }
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.
type TrackedResource ¶
type TrackedResource struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
func (TrackedResource) MarshalJSON ¶
func (t TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrackedResource.
type UserIdentity ¶
type UserIdentity struct { // READ-ONLY; The client ID of the user-assigned identity. ClientID *string `json:"clientId,omitempty" azure:"ro"` // READ-ONLY; The principal ID of the user-assigned identity. PrincipalID *string `json:"principalId,omitempty" azure:"ro"` }
UserIdentity - A resource identity that is managed by the user of the service.
Source Files ¶
- build.go
- zz_generated_configurationstores_client.go
- zz_generated_constants.go
- zz_generated_keyvalues_client.go
- zz_generated_models.go
- zz_generated_models_serde.go
- zz_generated_operations_client.go
- zz_generated_privateendpointconnections_client.go
- zz_generated_privatelinkresources_client.go
- zz_generated_response_types.go
- zz_generated_time_rfc3339.go