serverazureadonlyauthentications

package
v0.20240123.1101251 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/sql/2021-11-01/serverazureadonlyauthentications Documentation

The serverazureadonlyauthentications SDK allows for interaction with the Azure Resource Manager Service sql (API Version 2021-11-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/sql/2021-11-01/serverazureadonlyauthentications"

Client Initialization

client := serverazureadonlyauthentications.NewServerAzureADOnlyAuthenticationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ServerAzureADOnlyAuthenticationsClient.CreateOrUpdate

ctx := context.TODO()
id := serverazureadonlyauthentications.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 := serverazureadonlyauthentications.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 := serverazureadonlyauthentications.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 := serverazureadonlyauthentications.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

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 CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ServerAzureADOnlyAuthentication
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

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

type ServerAzureADOnlyAuthenticationsClient

type ServerAzureADOnlyAuthenticationsClient struct {
	Client *resourcemanager.Client
}

func NewServerAzureADOnlyAuthenticationsClientWithBaseURI

func NewServerAzureADOnlyAuthenticationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerAzureADOnlyAuthenticationsClient, error)

func (ServerAzureADOnlyAuthenticationsClient) CreateOrUpdate

CreateOrUpdate ...

func (ServerAzureADOnlyAuthenticationsClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (ServerAzureADOnlyAuthenticationsClient) Delete

Delete ...

func (ServerAzureADOnlyAuthenticationsClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (ServerAzureADOnlyAuthenticationsClient) Get

Get ...

func (ServerAzureADOnlyAuthenticationsClient) ListByServer

ListByServer ...

func (ServerAzureADOnlyAuthenticationsClient) ListByServerComplete

ListByServerComplete retrieves all the results into a single object

func (ServerAzureADOnlyAuthenticationsClient) ListByServerCompleteMatchingPredicate

ListByServerCompleteMatchingPredicate retrieves all the results and then applies the predicate

Jump to

Keyboard shortcuts

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