README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/serverazureadonlyauthentications
Documentation
The serverazureadonlyauthentications
SDK allows for interaction with the Azure Resource Manager Service sql
(API Version 2023-02-01-preview
).
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/sql/2023-02-01-preview/serverazureadonlyauthentications"
Client Initialization
client := serverazureadonlyauthentications.NewServerAzureADOnlyAuthenticationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ServerAzureADOnlyAuthenticationsClient.CreateOrUpdate
ctx := context.TODO()
id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue")
payload := serverazureadonlyauthentications.ServerAzureADOnlyAuthentication{
// ...
}
if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: ServerAzureADOnlyAuthenticationsClient.Delete
ctx := context.TODO()
id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue")
if err := client.DeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: ServerAzureADOnlyAuthenticationsClient.Get
ctx := context.TODO()
id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue")
read, err := client.Get(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ServerAzureADOnlyAuthenticationsClient.ListByServer
ctx := context.TODO()
id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue")
// alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination
items, err := client.ListByServerComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- type AzureADOnlyAuthProperties
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListByServerCompleteResult
- type ListByServerOperationResponse
- type ServerAzureADOnlyAuthentication
- type ServerAzureADOnlyAuthenticationOperationPredicate
- type ServerAzureADOnlyAuthenticationsClient
- func (c ServerAzureADOnlyAuthenticationsClient) CreateOrUpdate(ctx context.Context, id commonids.SqlServerId, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c ServerAzureADOnlyAuthenticationsClient) CreateOrUpdateThenPoll(ctx context.Context, id commonids.SqlServerId, ...) error
- func (c ServerAzureADOnlyAuthenticationsClient) Delete(ctx context.Context, id commonids.SqlServerId) (result DeleteOperationResponse, err error)
- func (c ServerAzureADOnlyAuthenticationsClient) DeleteThenPoll(ctx context.Context, id commonids.SqlServerId) error
- func (c ServerAzureADOnlyAuthenticationsClient) Get(ctx context.Context, id commonids.SqlServerId) (result GetOperationResponse, err error)
- func (c ServerAzureADOnlyAuthenticationsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error)
- func (c ServerAzureADOnlyAuthenticationsClient) ListByServerComplete(ctx context.Context, id commonids.SqlServerId) (ListByServerCompleteResult, error)
- func (c ServerAzureADOnlyAuthenticationsClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id commonids.SqlServerId, ...) (result ListByServerCompleteResult, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureADOnlyAuthProperties ¶
type AzureADOnlyAuthProperties struct {
AzureADOnlyAuthentication bool `json:"azureADOnlyAuthentication"`
}
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ServerAzureADOnlyAuthentication }
type ListByServerCompleteResult ¶
type ListByServerCompleteResult struct { LatestHttpResponse *http.Response Items []ServerAzureADOnlyAuthentication }
type ListByServerOperationResponse ¶
type ListByServerOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ServerAzureADOnlyAuthentication }
type ServerAzureADOnlyAuthentication ¶
type ServerAzureADOnlyAuthentication struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *AzureADOnlyAuthProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type ServerAzureADOnlyAuthenticationOperationPredicate ¶
type ServerAzureADOnlyAuthenticationOperationPredicate struct { Id *string Name *string Type *string }
func (ServerAzureADOnlyAuthenticationOperationPredicate) Matches ¶
func (p ServerAzureADOnlyAuthenticationOperationPredicate) Matches(input ServerAzureADOnlyAuthentication) bool
type ServerAzureADOnlyAuthenticationsClient ¶
type ServerAzureADOnlyAuthenticationsClient struct {
Client *resourcemanager.Client
}
func NewServerAzureADOnlyAuthenticationsClientWithBaseURI ¶
func NewServerAzureADOnlyAuthenticationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerAzureADOnlyAuthenticationsClient, error)
func (ServerAzureADOnlyAuthenticationsClient) CreateOrUpdate ¶
func (c ServerAzureADOnlyAuthenticationsClient) CreateOrUpdate(ctx context.Context, id commonids.SqlServerId, input ServerAzureADOnlyAuthentication) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ServerAzureADOnlyAuthenticationsClient) CreateOrUpdateThenPoll ¶
func (c ServerAzureADOnlyAuthenticationsClient) CreateOrUpdateThenPoll(ctx context.Context, id commonids.SqlServerId, input ServerAzureADOnlyAuthentication) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (ServerAzureADOnlyAuthenticationsClient) Delete ¶
func (c ServerAzureADOnlyAuthenticationsClient) Delete(ctx context.Context, id commonids.SqlServerId) (result DeleteOperationResponse, err error)
Delete ...
func (ServerAzureADOnlyAuthenticationsClient) DeleteThenPoll ¶
func (c ServerAzureADOnlyAuthenticationsClient) DeleteThenPoll(ctx context.Context, id commonids.SqlServerId) error
DeleteThenPoll performs Delete then polls until it's completed
func (ServerAzureADOnlyAuthenticationsClient) Get ¶
func (c ServerAzureADOnlyAuthenticationsClient) Get(ctx context.Context, id commonids.SqlServerId) (result GetOperationResponse, err error)
Get ...
func (ServerAzureADOnlyAuthenticationsClient) ListByServer ¶
func (c ServerAzureADOnlyAuthenticationsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error)
ListByServer ...
func (ServerAzureADOnlyAuthenticationsClient) ListByServerComplete ¶
func (c ServerAzureADOnlyAuthenticationsClient) ListByServerComplete(ctx context.Context, id commonids.SqlServerId) (ListByServerCompleteResult, error)
ListByServerComplete retrieves all the results into a single object
func (ServerAzureADOnlyAuthenticationsClient) ListByServerCompleteMatchingPredicate ¶
func (c ServerAzureADOnlyAuthenticationsClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id commonids.SqlServerId, predicate ServerAzureADOnlyAuthenticationOperationPredicate) (result ListByServerCompleteResult, err error)
ListByServerCompleteMatchingPredicate retrieves all the results and then applies the predicate
Click to show internal directories.
Click to hide internal directories.