Documentation ¶
Index ¶
- func PossibleValuesForAppType() []string
- func PossibleValuesForConfirmation() []string
- func PossibleValuesForGroupType() []string
- func PossibleValuesForUserState() []string
- func ValidateServiceID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateUserID(input interface{}, key string) (warnings []string, errors []error)
- type AppType
- type Confirmation
- type CreateOrUpdateOperationOptions
- type CreateOrUpdateOperationResponse
- type DeleteOperationOptions
- type DeleteOperationResponse
- type GetEntityTagOperationResponse
- type GetOperationResponse
- type GroupContractProperties
- type GroupType
- type ListByServiceCompleteResult
- type ListByServiceOperationOptions
- type ListByServiceOperationResponse
- type ServiceId
- type UpdateOperationOptions
- type UpdateOperationResponse
- type UserClient
- func (c UserClient) CreateOrUpdate(ctx context.Context, id UserId, input UserCreateParameters, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c UserClient) Delete(ctx context.Context, id UserId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
- func (c UserClient) Get(ctx context.Context, id UserId) (result GetOperationResponse, err error)
- func (c UserClient) GetEntityTag(ctx context.Context, id UserId) (result GetEntityTagOperationResponse, err error)
- func (c UserClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error)
- func (c UserClient) ListByServiceComplete(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (ListByServiceCompleteResult, error)
- func (c UserClient) ListByServiceCompleteMatchingPredicate(ctx context.Context, id ServiceId, options ListByServiceOperationOptions, ...) (result ListByServiceCompleteResult, err error)
- func (c UserClient) Update(ctx context.Context, id UserId, input UserUpdateParameters, ...) (result UpdateOperationResponse, err error)
- type UserContract
- type UserContractOperationPredicate
- type UserContractProperties
- type UserCreateParameterProperties
- type UserCreateParameters
- type UserId
- type UserIdentityContract
- type UserState
- type UserUpdateParameters
- type UserUpdateParametersProperties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAppType ¶
func PossibleValuesForAppType() []string
func PossibleValuesForConfirmation ¶
func PossibleValuesForConfirmation() []string
func PossibleValuesForGroupType ¶
func PossibleValuesForGroupType() []string
func PossibleValuesForUserState ¶
func PossibleValuesForUserState() []string
func ValidateServiceID ¶
ValidateServiceID checks that 'input' can be parsed as a Service ID
func ValidateUserID ¶
ValidateUserID checks that 'input' can be parsed as a User ID
Types ¶
type Confirmation ¶
type Confirmation string
const ( ConfirmationInvite Confirmation = "invite" ConfirmationSignup Confirmation = "signup" )
func (*Confirmation) UnmarshalJSON ¶
func (s *Confirmation) UnmarshalJSON(bytes []byte) error
type CreateOrUpdateOperationOptions ¶
func DefaultCreateOrUpdateOperationOptions ¶
func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions
func (CreateOrUpdateOperationOptions) ToHeaders ¶
func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers
func (CreateOrUpdateOperationOptions) ToOData ¶
func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query
func (CreateOrUpdateOperationOptions) ToQuery ¶
func (o CreateOrUpdateOperationOptions) ToQuery() *client.QueryParams
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *UserContract }
type DeleteOperationOptions ¶
type DeleteOperationOptions struct { AppType *AppType DeleteSubscriptions *bool IfMatch *string Notify *bool }
func DefaultDeleteOperationOptions ¶
func DefaultDeleteOperationOptions() DeleteOperationOptions
func (DeleteOperationOptions) ToHeaders ¶
func (o DeleteOperationOptions) ToHeaders() *client.Headers
func (DeleteOperationOptions) ToOData ¶
func (o DeleteOperationOptions) ToOData() *odata.Query
func (DeleteOperationOptions) ToQuery ¶
func (o DeleteOperationOptions) ToQuery() *client.QueryParams
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *UserContract }
type GroupContractProperties ¶
type ListByServiceCompleteResult ¶
type ListByServiceCompleteResult struct { LatestHttpResponse *http.Response Items []UserContract }
type ListByServiceOperationOptions ¶
type ListByServiceOperationOptions struct { ExpandGroups *bool Filter *string Skip *int64 Top *int64 }
func DefaultListByServiceOperationOptions ¶
func DefaultListByServiceOperationOptions() ListByServiceOperationOptions
func (ListByServiceOperationOptions) ToHeaders ¶
func (o ListByServiceOperationOptions) ToHeaders() *client.Headers
func (ListByServiceOperationOptions) ToOData ¶
func (o ListByServiceOperationOptions) ToOData() *odata.Query
func (ListByServiceOperationOptions) ToQuery ¶
func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams
type ListByServiceOperationResponse ¶
type ListByServiceOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]UserContract }
type ServiceId ¶
ServiceId is a struct representing the Resource ID for a Service
func NewServiceID ¶
NewServiceID returns a new ServiceId struct
func ParseServiceID ¶
ParseServiceID parses 'input' into a ServiceId
func ParseServiceIDInsensitively ¶
ParseServiceIDInsensitively parses 'input' case-insensitively into a ServiceId note: this method should only be used for API response data and not user input
func (*ServiceId) FromParseResult ¶ added in v0.20231127.1171502
func (id *ServiceId) FromParseResult(input resourceids.ParseResult) error
func (ServiceId) Segments ¶
func (id ServiceId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Service ID
type UpdateOperationOptions ¶
type UpdateOperationOptions struct {
IfMatch *string
}
func DefaultUpdateOperationOptions ¶
func DefaultUpdateOperationOptions() UpdateOperationOptions
func (UpdateOperationOptions) ToHeaders ¶
func (o UpdateOperationOptions) ToHeaders() *client.Headers
func (UpdateOperationOptions) ToOData ¶
func (o UpdateOperationOptions) ToOData() *odata.Query
func (UpdateOperationOptions) ToQuery ¶
func (o UpdateOperationOptions) ToQuery() *client.QueryParams
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *UserContract }
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 UserCreateParameters, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (UserClient) Delete ¶
func (c UserClient) Delete(ctx context.Context, id UserId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (UserClient) Get ¶
func (c UserClient) Get(ctx context.Context, id UserId) (result GetOperationResponse, err error)
Get ...
func (UserClient) GetEntityTag ¶
func (c UserClient) GetEntityTag(ctx context.Context, id UserId) (result GetEntityTagOperationResponse, err error)
GetEntityTag ...
func (UserClient) ListByService ¶
func (c UserClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error)
ListByService ...
func (UserClient) ListByServiceComplete ¶
func (c UserClient) ListByServiceComplete(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (ListByServiceCompleteResult, error)
ListByServiceComplete retrieves all the results into a single object
func (UserClient) ListByServiceCompleteMatchingPredicate ¶
func (c UserClient) ListByServiceCompleteMatchingPredicate(ctx context.Context, id ServiceId, options ListByServiceOperationOptions, predicate UserContractOperationPredicate) (result ListByServiceCompleteResult, err error)
ListByServiceCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (UserClient) Update ¶
func (c UserClient) Update(ctx context.Context, id UserId, input UserUpdateParameters, options UpdateOperationOptions) (result UpdateOperationResponse, err error)
Update ...
type UserContract ¶
type UserContract struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *UserContractProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type UserContractOperationPredicate ¶
func (UserContractOperationPredicate) Matches ¶
func (p UserContractOperationPredicate) Matches(input UserContract) bool
type UserContractProperties ¶
type UserContractProperties struct { Email *string `json:"email,omitempty"` FirstName *string `json:"firstName,omitempty"` Groups *[]GroupContractProperties `json:"groups,omitempty"` Identities *[]UserIdentityContract `json:"identities,omitempty"` LastName *string `json:"lastName,omitempty"` Note *string `json:"note,omitempty"` RegistrationDate *string `json:"registrationDate,omitempty"` State *UserState `json:"state,omitempty"` }
func (*UserContractProperties) GetRegistrationDateAsTime ¶
func (o *UserContractProperties) GetRegistrationDateAsTime() (*time.Time, error)
func (*UserContractProperties) SetRegistrationDateAsTime ¶
func (o *UserContractProperties) SetRegistrationDateAsTime(input time.Time)
type UserCreateParameterProperties ¶
type UserCreateParameterProperties struct { AppType *AppType `json:"appType,omitempty"` Confirmation *Confirmation `json:"confirmation,omitempty"` Email string `json:"email"` FirstName string `json:"firstName"` Identities *[]UserIdentityContract `json:"identities,omitempty"` LastName string `json:"lastName"` Note *string `json:"note,omitempty"` Password *string `json:"password,omitempty"` State *UserState `json:"state,omitempty"` }
type UserCreateParameters ¶
type UserCreateParameters struct {
Properties *UserCreateParameterProperties `json:"properties,omitempty"`
}
type UserId ¶
type UserId struct { SubscriptionId string ResourceGroupName string ServiceName string UserId string }
UserId is a struct representing the Resource ID for a User
func NewUserID ¶
func NewUserID(subscriptionId string, resourceGroupName string, serviceName string, userId 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 ¶ added in v0.20231127.1171502
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 UserIdentityContract ¶
type UserUpdateParameters ¶
type UserUpdateParameters struct {
Properties *UserUpdateParametersProperties `json:"properties,omitempty"`
}
type UserUpdateParametersProperties ¶
type UserUpdateParametersProperties struct { Email *string `json:"email,omitempty"` FirstName *string `json:"firstName,omitempty"` Identities *[]UserIdentityContract `json:"identities,omitempty"` LastName *string `json:"lastName,omitempty"` Note *string `json:"note,omitempty"` Password *string `json:"password,omitempty"` State *UserState `json:"state,omitempty"` }
Source Files ¶
- client.go
- constants.go
- id_service.go
- id_user.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_getentitytag.go
- method_listbyservice.go
- method_update.go
- model_groupcontractproperties.go
- model_usercontract.go
- model_usercontractproperties.go
- model_usercreateparameterproperties.go
- model_usercreateparameters.go
- model_useridentitycontract.go
- model_userupdateparameters.go
- model_userupdateparametersproperties.go
- predicates.go
- version.go