Documentation ¶
Index ¶
- func PossibleValuesForInvitationState() []string
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForRegistrationState() []string
- func ValidateLabID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateUserID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type InvitationState
- type InviteBody
- type InviteOperationResponse
- type LabId
- type ListByLabCompleteResult
- type ListByLabOperationResponse
- type ProvisioningState
- type RegistrationState
- type UpdateOperationResponse
- type User
- type UserClient
- func (c UserClient) CreateOrUpdate(ctx context.Context, id UserId, input User) (result CreateOrUpdateOperationResponse, err error)
- func (c UserClient) CreateOrUpdateThenPoll(ctx context.Context, id UserId, input User) error
- func (c UserClient) Delete(ctx context.Context, id UserId) (result DeleteOperationResponse, err error)
- func (c UserClient) DeleteThenPoll(ctx context.Context, id UserId) error
- func (c UserClient) Get(ctx context.Context, id UserId) (result GetOperationResponse, err error)
- func (c UserClient) Invite(ctx context.Context, id UserId, input InviteBody) (result InviteOperationResponse, err error)
- func (c UserClient) InviteThenPoll(ctx context.Context, id UserId, input InviteBody) error
- func (c UserClient) ListByLab(ctx context.Context, id LabId) (result ListByLabOperationResponse, err error)
- func (c UserClient) ListByLabComplete(ctx context.Context, id LabId) (ListByLabCompleteResult, error)
- func (c UserClient) ListByLabCompleteMatchingPredicate(ctx context.Context, id LabId, predicate UserOperationPredicate) (result ListByLabCompleteResult, err error)
- func (c UserClient) Update(ctx context.Context, id UserId, input UserUpdate) (result UpdateOperationResponse, err error)
- func (c UserClient) UpdateThenPoll(ctx context.Context, id UserId, input UserUpdate) error
- type UserId
- type UserOperationPredicate
- type UserProperties
- type UserUpdate
- type UserUpdateProperties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForInvitationState ¶
func PossibleValuesForInvitationState() []string
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func PossibleValuesForRegistrationState ¶
func PossibleValuesForRegistrationState() []string
func ValidateLabID ¶
ValidateLabID checks that 'input' can be parsed as a Lab ID
func ValidateUserID ¶
ValidateUserID checks that 'input' can be parsed as a User ID
Types ¶
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type InvitationState ¶
type InvitationState string
const ( InvitationStateFailed InvitationState = "Failed" InvitationStateNotSent InvitationState = "NotSent" InvitationStateSending InvitationState = "Sending" InvitationStateSent InvitationState = "Sent" )
func (*InvitationState) UnmarshalJSON ¶ added in v0.20230712.1163130
func (s *InvitationState) UnmarshalJSON(bytes []byte) error
type InviteBody ¶
type InviteBody struct {
Text *string `json:"text,omitempty"`
}
type InviteOperationResponse ¶
type LabId ¶
LabId is a struct representing the Resource ID for a Lab
func ParseLabID ¶
ParseLabID parses 'input' into a LabId
func ParseLabIDInsensitively ¶
ParseLabIDInsensitively parses 'input' case-insensitively into a LabId note: this method should only be used for API response data and not user input
func (LabId) Segments ¶
func (id LabId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Lab ID
type ListByLabCompleteResult ¶
type ListByLabCompleteResult struct {
Items []User
}
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateLocked ProvisioningState = "Locked" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func (*ProvisioningState) UnmarshalJSON ¶ added in v0.20230712.1163130
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type RegistrationState ¶
type RegistrationState string
const ( RegistrationStateNotRegistered RegistrationState = "NotRegistered" RegistrationStateRegistered RegistrationState = "Registered" )
func (*RegistrationState) UnmarshalJSON ¶ added in v0.20230712.1163130
func (s *RegistrationState) UnmarshalJSON(bytes []byte) error
type UpdateOperationResponse ¶
type User ¶
type User struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties UserProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type UserClient ¶
type UserClient struct {
Client *resourcemanager.Client
}
func NewUserClientWithBaseURI ¶
func NewUserClientWithBaseURI(sdkApi sdkEnv.Api) (*UserClient, error)
func (UserClient) CreateOrUpdate ¶
func (c UserClient) CreateOrUpdate(ctx context.Context, id UserId, input User) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (UserClient) CreateOrUpdateThenPoll ¶
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (UserClient) Delete ¶
func (c UserClient) Delete(ctx context.Context, id UserId) (result DeleteOperationResponse, err error)
Delete ...
func (UserClient) DeleteThenPoll ¶
func (c UserClient) DeleteThenPoll(ctx context.Context, id UserId) error
DeleteThenPoll performs Delete then polls until it's completed
func (UserClient) Get ¶
func (c UserClient) Get(ctx context.Context, id UserId) (result GetOperationResponse, err error)
Get ...
func (UserClient) Invite ¶
func (c UserClient) Invite(ctx context.Context, id UserId, input InviteBody) (result InviteOperationResponse, err error)
Invite ...
func (UserClient) InviteThenPoll ¶
func (c UserClient) InviteThenPoll(ctx context.Context, id UserId, input InviteBody) error
InviteThenPoll performs Invite then polls until it's completed
func (UserClient) ListByLab ¶
func (c UserClient) ListByLab(ctx context.Context, id LabId) (result ListByLabOperationResponse, err error)
ListByLab ...
func (UserClient) ListByLabComplete ¶
func (c UserClient) ListByLabComplete(ctx context.Context, id LabId) (ListByLabCompleteResult, error)
ListByLabComplete retrieves all the results into a single object
func (UserClient) ListByLabCompleteMatchingPredicate ¶
func (c UserClient) ListByLabCompleteMatchingPredicate(ctx context.Context, id LabId, predicate UserOperationPredicate) (result ListByLabCompleteResult, err error)
ListByLabCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (UserClient) Update ¶
func (c UserClient) Update(ctx context.Context, id UserId, input UserUpdate) (result UpdateOperationResponse, err error)
Update ...
func (UserClient) UpdateThenPoll ¶
func (c UserClient) UpdateThenPoll(ctx context.Context, id UserId, input UserUpdate) error
UpdateThenPoll performs Update then polls until it's completed
type UserId ¶
type UserId struct { SubscriptionId string ResourceGroupName string LabName string UserName string }
UserId is a struct representing the Resource ID for a User
func NewUserID ¶
func NewUserID(subscriptionId string, resourceGroupName string, labName string, userName string) UserId
NewUserID returns a new UserId struct
func ParseUserID ¶
ParseUserID parses 'input' into a UserId
func ParseUserIDInsensitively ¶
ParseUserIDInsensitively parses 'input' case-insensitively into a UserId note: this method should only be used for API response data and not user input
func (UserId) Segments ¶
func (id UserId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this User ID
type UserOperationPredicate ¶
func (UserOperationPredicate) Matches ¶
func (p UserOperationPredicate) Matches(input User) bool
type UserProperties ¶
type UserProperties struct { AdditionalUsageQuota *string `json:"additionalUsageQuota,omitempty"` DisplayName *string `json:"displayName,omitempty"` Email string `json:"email"` InvitationSent *string `json:"invitationSent,omitempty"` InvitationState *InvitationState `json:"invitationState,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` RegistrationState *RegistrationState `json:"registrationState,omitempty"` TotalUsage *string `json:"totalUsage,omitempty"` }
func (*UserProperties) GetInvitationSentAsTime ¶
func (o *UserProperties) GetInvitationSentAsTime() (*time.Time, error)
func (*UserProperties) SetInvitationSentAsTime ¶
func (o *UserProperties) SetInvitationSentAsTime(input time.Time)
type UserUpdate ¶
type UserUpdate struct {
Properties *UserUpdateProperties `json:"properties,omitempty"`
}
type UserUpdateProperties ¶
type UserUpdateProperties struct {
AdditionalUsageQuota *string `json:"additionalUsageQuota,omitempty"`
}