Documentation ¶
Index ¶
- func PossibleValuesForAuthorizationType() []string
- func PossibleValuesForOAuth2GrantType() []string
- func ValidateAuthorizationID(input interface{}, key string) (warnings []string, errors []error)
- type AuthorizationClient
- func (c AuthorizationClient) CreateOrUpdate(ctx context.Context, id AuthorizationId, input AuthorizationContract, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c AuthorizationClient) Delete(ctx context.Context, id AuthorizationId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
- func (c AuthorizationClient) Get(ctx context.Context, id AuthorizationId) (result GetOperationResponse, err error)
- type AuthorizationContract
- type AuthorizationContractProperties
- type AuthorizationError
- type AuthorizationId
- type AuthorizationType
- type CreateOrUpdateOperationOptions
- type CreateOrUpdateOperationResponse
- type DeleteOperationOptions
- type DeleteOperationResponse
- type GetOperationResponse
- type OAuth2GrantType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAuthorizationType ¶
func PossibleValuesForAuthorizationType() []string
func PossibleValuesForOAuth2GrantType ¶
func PossibleValuesForOAuth2GrantType() []string
func ValidateAuthorizationID ¶
ValidateAuthorizationID checks that 'input' can be parsed as a Authorization ID
Types ¶
type AuthorizationClient ¶
type AuthorizationClient struct {
Client *resourcemanager.Client
}
func NewAuthorizationClientWithBaseURI ¶
func NewAuthorizationClientWithBaseURI(sdkApi sdkEnv.Api) (*AuthorizationClient, error)
func (AuthorizationClient) CreateOrUpdate ¶
func (c AuthorizationClient) CreateOrUpdate(ctx context.Context, id AuthorizationId, input AuthorizationContract, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (AuthorizationClient) Delete ¶
func (c AuthorizationClient) Delete(ctx context.Context, id AuthorizationId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (AuthorizationClient) Get ¶
func (c AuthorizationClient) Get(ctx context.Context, id AuthorizationId) (result GetOperationResponse, err error)
Get ...
type AuthorizationContract ¶
type AuthorizationContract struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *AuthorizationContractProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type AuthorizationContractProperties ¶
type AuthorizationContractProperties struct { AuthorizationType *AuthorizationType `json:"authorizationType,omitempty"` Error *AuthorizationError `json:"error,omitempty"` Oauth2grantType *OAuth2GrantType `json:"oauth2grantType,omitempty"` Parameters *map[string]string `json:"parameters,omitempty"` Status *string `json:"status,omitempty"` }
type AuthorizationError ¶
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
type AuthorizationType ¶
type AuthorizationType string
const (
AuthorizationTypeOAuthTwo AuthorizationType = "OAuth2"
)
func (*AuthorizationType) UnmarshalJSON ¶ added in v0.20230801.1071415
func (s *AuthorizationType) UnmarshalJSON(bytes []byte) error
type CreateOrUpdateOperationOptions ¶
type CreateOrUpdateOperationOptions struct {
IfMatch *string
}
func DefaultCreateOrUpdateOperationOptions ¶
func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions
func (CreateOrUpdateOperationOptions) ToHeaders ¶ added in v0.20230801.1071415
func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers
func (CreateOrUpdateOperationOptions) ToOData ¶ added in v0.20230801.1071415
func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query
func (CreateOrUpdateOperationOptions) ToQuery ¶ added in v0.20230801.1071415
func (o CreateOrUpdateOperationOptions) ToQuery() *client.QueryParams
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *AuthorizationContract }
type DeleteOperationOptions ¶
type DeleteOperationOptions struct {
IfMatch *string
}
func DefaultDeleteOperationOptions ¶
func DefaultDeleteOperationOptions() DeleteOperationOptions
func (DeleteOperationOptions) ToHeaders ¶ added in v0.20230801.1071415
func (o DeleteOperationOptions) ToHeaders() *client.Headers
func (DeleteOperationOptions) ToOData ¶ added in v0.20230801.1071415
func (o DeleteOperationOptions) ToOData() *odata.Query
func (DeleteOperationOptions) ToQuery ¶ added in v0.20230801.1071415
func (o DeleteOperationOptions) ToQuery() *client.QueryParams
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *AuthorizationContract }
type OAuth2GrantType ¶
type OAuth2GrantType string
const ( OAuth2GrantTypeAuthorizationCode OAuth2GrantType = "AuthorizationCode" OAuth2GrantTypeClientCredentials OAuth2GrantType = "ClientCredentials" )
func (*OAuth2GrantType) UnmarshalJSON ¶ added in v0.20230801.1071415
func (s *OAuth2GrantType) UnmarshalJSON(bytes []byte) error