README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties
Documentation
The tableserviceproperties
SDK allows for interaction with Azure Resource Manager storage
(API Version 2023-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/tableserviceproperties"
Client Initialization
client := tableserviceproperties.NewTableServicePropertiesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: TableServicePropertiesClient.TableServicesGetServiceProperties
ctx := context.TODO()
id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName")
read, err := client.TableServicesGetServiceProperties(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: TableServicePropertiesClient.TableServicesList
ctx := context.TODO()
id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName")
read, err := client.TableServicesList(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: TableServicePropertiesClient.TableServicesSetServiceProperties
ctx := context.TODO()
id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName")
payload := tableserviceproperties.TableServiceProperties{
// ...
}
read, err := client.TableServicesSetServiceProperties(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
- type AllowedMethods
- type CorsRule
- type CorsRules
- type ListTableServices
- type TableServiceProperties
- type TableServicePropertiesClient
- func (c TableServicePropertiesClient) TableServicesGetServiceProperties(ctx context.Context, id commonids.StorageAccountId) (result TableServicesGetServicePropertiesOperationResponse, err error)
- func (c TableServicePropertiesClient) TableServicesList(ctx context.Context, id commonids.StorageAccountId) (result TableServicesListOperationResponse, err error)
- func (c TableServicePropertiesClient) TableServicesSetServiceProperties(ctx context.Context, id commonids.StorageAccountId, ...) (result TableServicesSetServicePropertiesOperationResponse, err error)
- type TableServicePropertiesProperties
- type TableServicesGetServicePropertiesOperationResponse
- type TableServicesListOperationResponse
- type TableServicesSetServicePropertiesOperationResponse
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 ¶
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 ListTableServices ¶
type ListTableServices struct {
Value *[]TableServiceProperties `json:"value,omitempty"`
}
type TableServiceProperties ¶
type TableServiceProperties struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *TableServicePropertiesProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type TableServicePropertiesClient ¶
type TableServicePropertiesClient struct {
Client *resourcemanager.Client
}
func NewTableServicePropertiesClientWithBaseURI ¶
func NewTableServicePropertiesClientWithBaseURI(sdkApi sdkEnv.Api) (*TableServicePropertiesClient, error)
func (TableServicePropertiesClient) TableServicesGetServiceProperties ¶
func (c TableServicePropertiesClient) TableServicesGetServiceProperties(ctx context.Context, id commonids.StorageAccountId) (result TableServicesGetServicePropertiesOperationResponse, err error)
TableServicesGetServiceProperties ...
func (TableServicePropertiesClient) TableServicesList ¶
func (c TableServicePropertiesClient) TableServicesList(ctx context.Context, id commonids.StorageAccountId) (result TableServicesListOperationResponse, err error)
TableServicesList ...
func (TableServicePropertiesClient) TableServicesSetServiceProperties ¶
func (c TableServicePropertiesClient) TableServicesSetServiceProperties(ctx context.Context, id commonids.StorageAccountId, input TableServiceProperties) (result TableServicesSetServicePropertiesOperationResponse, err error)
TableServicesSetServiceProperties ...
type TableServicePropertiesProperties ¶
type TableServicePropertiesProperties struct {
Cors *CorsRules `json:"cors,omitempty"`
}
type TableServicesGetServicePropertiesOperationResponse ¶
type TableServicesGetServicePropertiesOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *TableServiceProperties }
type TableServicesListOperationResponse ¶
type TableServicesListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ListTableServices }
type TableServicesSetServicePropertiesOperationResponse ¶
type TableServicesSetServicePropertiesOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *TableServiceProperties }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.