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) (resp 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) (resp 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 CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type GetOperationResponse ¶
type InvitationState ¶
type InvitationState string
const ( InvitationStateFailed InvitationState = "Failed" InvitationStateNotSent InvitationState = "NotSent" InvitationStateSending InvitationState = "Sending" InvitationStateSent InvitationState = "Sent" )
type InviteBody ¶
type InviteBody struct {
Text *string `json:"text,omitempty"`
}
type InviteOperationResponse ¶
type InviteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
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 ListByLabOperationResponse ¶
type ListByLabOperationResponse struct { HttpResponse *http.Response Model *[]User // contains filtered or unexported fields }
func (ListByLabOperationResponse) HasMore ¶
func (r ListByLabOperationResponse) HasMore() bool
func (ListByLabOperationResponse) LoadMore ¶
func (r ListByLabOperationResponse) LoadMore(ctx context.Context) (resp ListByLabOperationResponse, err error)
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateLocked ProvisioningState = "Locked" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
type RegistrationState ¶
type RegistrationState string
const ( RegistrationStateNotRegistered RegistrationState = "NotRegistered" RegistrationStateRegistered RegistrationState = "Registered" )
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
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 ¶
func NewUserClientWithBaseURI ¶
func NewUserClientWithBaseURI(endpoint string) UserClient
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) (resp ListByLabOperationResponse, err error)
ListByLab ...
func (UserClient) ListByLabComplete ¶
func (c UserClient) ListByLabComplete(ctx context.Context, id LabId) (ListByLabCompleteResult, error)
ListByLabComplete retrieves all of the results into a single object
func (UserClient) ListByLabCompleteMatchingPredicate ¶
func (c UserClient) ListByLabCompleteMatchingPredicate(ctx context.Context, id LabId, predicate UserOperationPredicate) (resp ListByLabCompleteResult, err error)
ListByLabCompleteMatchingPredicate retrieves all of the results and then applied 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"`
}
type UserUpdateProperties ¶
type UserUpdateProperties struct {
AdditionalUsageQuota *string `json:"additionalUsageQuota,omitempty"`
}
Source Files ¶
- client.go
- constants.go
- id_lab.go
- id_user.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_invite_autorest.go
- method_listbylab_autorest.go
- method_update_autorest.go
- model_invitebody.go
- model_user.go
- model_userproperties.go
- model_userupdate.go
- model_userupdateproperties.go
- predicates.go
- version.go