README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-03-01-preview/authorizationconfirmconsentcode
Documentation
The authorizationconfirmconsentcode
SDK allows for interaction with the Azure Resource Manager Service apimanagement
(API Version 2023-03-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-sdk/resource-manager/apimanagement/2023-03-01-preview/authorizationconfirmconsentcode"
Client Initialization
client := authorizationconfirmconsentcode.NewAuthorizationConfirmConsentCodeClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: AuthorizationConfirmConsentCodeClient.AuthorizationConfirmConsentCode
ctx := context.TODO()
id := authorizationconfirmconsentcode.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "authorizationProviderIdValue", "authorizationIdValue")
payload := authorizationconfirmconsentcode.AuthorizationConfirmConsentCodeRequestContract{
// ...
}
read, err := client.AuthorizationConfirmConsentCode(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 ValidateAuthorizationID ¶
ValidateAuthorizationID checks that 'input' can be parsed as a Authorization ID
Types ¶
type AuthorizationConfirmConsentCodeClient ¶
type AuthorizationConfirmConsentCodeClient struct {
Client *resourcemanager.Client
}
func NewAuthorizationConfirmConsentCodeClientWithBaseURI ¶
func NewAuthorizationConfirmConsentCodeClientWithBaseURI(sdkApi sdkEnv.Api) (*AuthorizationConfirmConsentCodeClient, error)
func (AuthorizationConfirmConsentCodeClient) AuthorizationConfirmConsentCode ¶
func (c AuthorizationConfirmConsentCodeClient) AuthorizationConfirmConsentCode(ctx context.Context, id AuthorizationId, input AuthorizationConfirmConsentCodeRequestContract) (result AuthorizationConfirmConsentCodeOperationResponse, err error)
AuthorizationConfirmConsentCode ...
type AuthorizationConfirmConsentCodeRequestContract ¶
type AuthorizationConfirmConsentCodeRequestContract struct {
ConsentCode *string `json:"consentCode,omitempty"`
}
type AuthorizationId ¶
type AuthorizationId struct { SubscriptionId string ResourceGroupName string ServiceName string AuthorizationProviderId string AuthorizationId string }
AuthorizationId is a struct representing the Resource ID for a Authorization
func NewAuthorizationID ¶
func NewAuthorizationID(subscriptionId string, resourceGroupName string, serviceName string, authorizationProviderId string, authorizationId string) AuthorizationId
NewAuthorizationID returns a new AuthorizationId struct
func ParseAuthorizationID ¶
func ParseAuthorizationID(input string) (*AuthorizationId, error)
ParseAuthorizationID parses 'input' into a AuthorizationId
func ParseAuthorizationIDInsensitively ¶
func ParseAuthorizationIDInsensitively(input string) (*AuthorizationId, error)
ParseAuthorizationIDInsensitively parses 'input' case-insensitively into a AuthorizationId note: this method should only be used for API response data and not user input
func (AuthorizationId) ID ¶
func (id AuthorizationId) ID() string
ID returns the formatted Authorization ID
func (AuthorizationId) Segments ¶
func (id AuthorizationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Authorization ID
func (AuthorizationId) String ¶
func (id AuthorizationId) String() string
String returns a human-readable description of this Authorization ID