README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/storage/2022-05-01/queueserviceproperties
Documentation
The queueserviceproperties
SDK allows for interaction with the Azure Resource Manager Service storage
(API Version 2022-05-01
).
This readme covers example usages, but further information on using this SDK can be found in the project root.
Import Path
import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2022-05-01/queueserviceproperties"
Client Initialization
client := queueserviceproperties.NewQueueServicePropertiesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: QueueServicePropertiesClient.QueueServicesGetServiceProperties
ctx := context.TODO()
id := queueserviceproperties.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue")
read, err := client.QueueServicesGetServiceProperties(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: QueueServicePropertiesClient.QueueServicesList
ctx := context.TODO()
id := queueserviceproperties.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue")
read, err := client.QueueServicesList(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: QueueServicePropertiesClient.QueueServicesSetServiceProperties
ctx := context.TODO()
id := queueserviceproperties.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue")
payload := queueserviceproperties.QueueServiceProperties{
// ...
}
read, err := client.QueueServicesSetServiceProperties(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation ¶
Index ¶
- func PossibleValuesForAllowedMethods() []string
- func ValidateStorageAccountID(input interface{}, key string) (warnings []string, errors []error)
- type AllowedMethods
- type CorsRule
- type CorsRules
- type ListQueueServices
- type QueueServiceProperties
- type QueueServicePropertiesClient
- func (c QueueServicePropertiesClient) QueueServicesGetServiceProperties(ctx context.Context, id StorageAccountId) (result QueueServicesGetServicePropertiesOperationResponse, err error)
- func (c QueueServicePropertiesClient) QueueServicesList(ctx context.Context, id StorageAccountId) (result QueueServicesListOperationResponse, err error)
- func (c QueueServicePropertiesClient) QueueServicesSetServiceProperties(ctx context.Context, id StorageAccountId, input QueueServiceProperties) (result QueueServicesSetServicePropertiesOperationResponse, err error)
- type QueueServicePropertiesProperties
- type QueueServicesGetServicePropertiesOperationResponse
- type QueueServicesListOperationResponse
- type QueueServicesSetServicePropertiesOperationResponse
- type StorageAccountId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAllowedMethods ¶
func PossibleValuesForAllowedMethods() []string
func ValidateStorageAccountID ¶
ValidateStorageAccountID checks that 'input' can be parsed as a Storage Account ID
Types ¶
type AllowedMethods ¶
type AllowedMethods string
const ( AllowedMethodsDELETE AllowedMethods = "DELETE" AllowedMethodsGET AllowedMethods = "GET" AllowedMethodsHEAD AllowedMethods = "HEAD" AllowedMethodsMERGE AllowedMethods = "MERGE" AllowedMethodsOPTIONS AllowedMethods = "OPTIONS" AllowedMethodsPATCH AllowedMethods = "PATCH" AllowedMethodsPOST AllowedMethods = "POST" AllowedMethodsPUT AllowedMethods = "PUT" )
type CorsRule ¶
type CorsRule struct { AllowedHeaders []string `json:"allowedHeaders"` AllowedMethods []AllowedMethods `json:"allowedMethods"` AllowedOrigins []string `json:"allowedOrigins"` ExposedHeaders []string `json:"exposedHeaders"` MaxAgeInSeconds int64 `json:"maxAgeInSeconds"` }
type ListQueueServices ¶
type ListQueueServices struct {
Value *[]QueueServiceProperties `json:"value,omitempty"`
}
type QueueServiceProperties ¶
type QueueServiceProperties struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *QueueServicePropertiesProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type QueueServicePropertiesClient ¶
type QueueServicePropertiesClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewQueueServicePropertiesClientWithBaseURI ¶
func NewQueueServicePropertiesClientWithBaseURI(endpoint string) QueueServicePropertiesClient
func (QueueServicePropertiesClient) QueueServicesGetServiceProperties ¶
func (c QueueServicePropertiesClient) QueueServicesGetServiceProperties(ctx context.Context, id StorageAccountId) (result QueueServicesGetServicePropertiesOperationResponse, err error)
QueueServicesGetServiceProperties ...
func (QueueServicePropertiesClient) QueueServicesList ¶
func (c QueueServicePropertiesClient) QueueServicesList(ctx context.Context, id StorageAccountId) (result QueueServicesListOperationResponse, err error)
QueueServicesList ...
func (QueueServicePropertiesClient) QueueServicesSetServiceProperties ¶
func (c QueueServicePropertiesClient) QueueServicesSetServiceProperties(ctx context.Context, id StorageAccountId, input QueueServiceProperties) (result QueueServicesSetServicePropertiesOperationResponse, err error)
QueueServicesSetServiceProperties ...
type QueueServicePropertiesProperties ¶
type QueueServicePropertiesProperties struct {
Cors *CorsRules `json:"cors,omitempty"`
}
type QueueServicesGetServicePropertiesOperationResponse ¶
type QueueServicesGetServicePropertiesOperationResponse struct { HttpResponse *http.Response Model *QueueServiceProperties }
type QueueServicesListOperationResponse ¶
type QueueServicesListOperationResponse struct { HttpResponse *http.Response Model *ListQueueServices }
type QueueServicesSetServicePropertiesOperationResponse ¶
type QueueServicesSetServicePropertiesOperationResponse struct { HttpResponse *http.Response Model *QueueServiceProperties }
type StorageAccountId ¶
type StorageAccountId struct { SubscriptionId string ResourceGroupName string StorageAccountName string }
StorageAccountId is a struct representing the Resource ID for a Storage Account
func NewStorageAccountID ¶
func NewStorageAccountID(subscriptionId string, resourceGroupName string, storageAccountName string) StorageAccountId
NewStorageAccountID returns a new StorageAccountId struct
func ParseStorageAccountID ¶
func ParseStorageAccountID(input string) (*StorageAccountId, error)
ParseStorageAccountID parses 'input' into a StorageAccountId
func ParseStorageAccountIDInsensitively ¶
func ParseStorageAccountIDInsensitively(input string) (*StorageAccountId, error)
ParseStorageAccountIDInsensitively parses 'input' case-insensitively into a StorageAccountId note: this method should only be used for API response data and not user input
func (StorageAccountId) ID ¶
func (id StorageAccountId) ID() string
ID returns the formatted Storage Account ID
func (StorageAccountId) Segments ¶
func (id StorageAccountId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Storage Account ID
func (StorageAccountId) String ¶
func (id StorageAccountId) String() string
String returns a human-readable description of this Storage Account ID
Source Files ¶
- client.go
- constants.go
- id_storageaccount.go
- method_queueservicesgetserviceproperties_autorest.go
- method_queueserviceslist_autorest.go
- method_queueservicessetserviceproperties_autorest.go
- model_corsrule.go
- model_corsrules.go
- model_listqueueservices.go
- model_queueserviceproperties.go
- model_queueservicepropertiesproperties.go
- version.go