Documentation ¶
Index ¶
- 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 GetOperationOptions
- type GetOperationResponse
- type LabId
- type ListCompleteResult
- type ListCustomPager
- type ListOperationOptions
- type ListOperationResponse
- type UpdateOperationResponse
- type UpdateResource
- type User
- type UserId
- type UserIdentity
- type UserOperationPredicate
- type UserProperties
- type UserSecretStore
- type UsersClient
- func (c UsersClient) CreateOrUpdate(ctx context.Context, id UserId, input User) (result CreateOrUpdateOperationResponse, err error)
- func (c UsersClient) CreateOrUpdateThenPoll(ctx context.Context, id UserId, input User) error
- func (c UsersClient) Delete(ctx context.Context, id UserId) (result DeleteOperationResponse, err error)
- func (c UsersClient) DeleteThenPoll(ctx context.Context, id UserId) error
- func (c UsersClient) Get(ctx context.Context, id UserId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c UsersClient) List(ctx context.Context, id LabId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c UsersClient) ListComplete(ctx context.Context, id LabId, options ListOperationOptions) (ListCompleteResult, error)
- func (c UsersClient) ListCompleteMatchingPredicate(ctx context.Context, id LabId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- func (c UsersClient) Update(ctx context.Context, id UserId, input UpdateResource) (result UpdateOperationResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 GetOperationOptions ¶
type GetOperationOptions struct {
Expand *string
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
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) FromParseResult ¶
func (id *LabId) FromParseResult(input resourceids.ParseResult) error
func (LabId) Segments ¶
func (id LabId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Lab ID
type ListCompleteResult ¶
type ListCustomPager ¶
func (*ListCustomPager) NextPageLink ¶
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type UpdateOperationResponse ¶
type UpdateResource ¶
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) FromParseResult ¶
func (id *UserId) FromParseResult(input resourceids.ParseResult) error
func (UserId) Segments ¶
func (id UserId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this User ID
type UserIdentity ¶
type UserOperationPredicate ¶
func (UserOperationPredicate) Matches ¶
func (p UserOperationPredicate) Matches(input User) bool
type UserProperties ¶
type UserProperties struct { CreatedDate *string `json:"createdDate,omitempty"` Identity *UserIdentity `json:"identity,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` SecretStore *UserSecretStore `json:"secretStore,omitempty"` UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"` }
func (*UserProperties) GetCreatedDateAsTime ¶
func (o *UserProperties) GetCreatedDateAsTime() (*time.Time, error)
func (*UserProperties) SetCreatedDateAsTime ¶
func (o *UserProperties) SetCreatedDateAsTime(input time.Time)
type UserSecretStore ¶
type UsersClient ¶
type UsersClient struct {
Client *resourcemanager.Client
}
func NewUsersClientWithBaseURI ¶
func NewUsersClientWithBaseURI(sdkApi sdkEnv.Api) (*UsersClient, error)
func (UsersClient) CreateOrUpdate ¶
func (c UsersClient) CreateOrUpdate(ctx context.Context, id UserId, input User) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (UsersClient) CreateOrUpdateThenPoll ¶
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (UsersClient) Delete ¶
func (c UsersClient) Delete(ctx context.Context, id UserId) (result DeleteOperationResponse, err error)
Delete ...
func (UsersClient) DeleteThenPoll ¶
func (c UsersClient) DeleteThenPoll(ctx context.Context, id UserId) error
DeleteThenPoll performs Delete then polls until it's completed
func (UsersClient) Get ¶
func (c UsersClient) Get(ctx context.Context, id UserId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (UsersClient) List ¶
func (c UsersClient) List(ctx context.Context, id LabId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (UsersClient) ListComplete ¶
func (c UsersClient) ListComplete(ctx context.Context, id LabId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (UsersClient) ListCompleteMatchingPredicate ¶
func (c UsersClient) ListCompleteMatchingPredicate(ctx context.Context, id LabId, options ListOperationOptions, predicate UserOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (UsersClient) Update ¶
func (c UsersClient) Update(ctx context.Context, id UserId, input UpdateResource) (result UpdateOperationResponse, err error)
Update ...