queueserviceproperties

package
v0.20240109.1065418 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties Documentation

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

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

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-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

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAllowedMethods

func PossibleValuesForAllowedMethods() []string

Types

type AllowedMethods

type AllowedMethods string
const (
	AllowedMethodsCONNECT AllowedMethods = "CONNECT"
	AllowedMethodsDELETE  AllowedMethods = "DELETE"
	AllowedMethodsGET     AllowedMethods = "GET"
	AllowedMethodsHEAD    AllowedMethods = "HEAD"
	AllowedMethodsMERGE   AllowedMethods = "MERGE"
	AllowedMethodsOPTIONS AllowedMethods = "OPTIONS"
	AllowedMethodsPATCH   AllowedMethods = "PATCH"
	AllowedMethodsPOST    AllowedMethods = "POST"
	AllowedMethodsPUT     AllowedMethods = "PUT"
	AllowedMethodsTRACE   AllowedMethods = "TRACE"
)

func (*AllowedMethods) UnmarshalJSON added in v0.20231114.1115341

func (s *AllowedMethods) UnmarshalJSON(bytes []byte) error

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 CorsRules

type CorsRules struct {
	CorsRules *[]CorsRule `json:"corsRules,omitempty"`
}

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 *resourcemanager.Client
}

func NewQueueServicePropertiesClientWithBaseURI

func NewQueueServicePropertiesClientWithBaseURI(sdkApi sdkEnv.Api) (*QueueServicePropertiesClient, error)

func (QueueServicePropertiesClient) QueueServicesGetServiceProperties

QueueServicesGetServiceProperties ...

func (QueueServicePropertiesClient) QueueServicesList

QueueServicesList ...

func (QueueServicePropertiesClient) QueueServicesSetServiceProperties

QueueServicesSetServiceProperties ...

type QueueServicePropertiesProperties

type QueueServicePropertiesProperties struct {
	Cors *CorsRules `json:"cors,omitempty"`
}

type QueueServicesGetServicePropertiesOperationResponse

type QueueServicesGetServicePropertiesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *QueueServiceProperties
}

type QueueServicesListOperationResponse

type QueueServicesListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ListQueueServices
}

type QueueServicesSetServicePropertiesOperationResponse

type QueueServicesSetServicePropertiesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *QueueServiceProperties
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL