Documentation ¶
Index ¶
- func PossibleValuesForSubscriptionState() []string
- func ValidateUserID(input interface{}, key string) (warnings []string, errors []error)
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type SubscriptionContract
- type SubscriptionContractOperationPredicate
- type SubscriptionContractProperties
- func (o *SubscriptionContractProperties) GetCreatedDateAsTime() (*time.Time, error)
- func (o *SubscriptionContractProperties) GetEndDateAsTime() (*time.Time, error)
- func (o *SubscriptionContractProperties) GetExpirationDateAsTime() (*time.Time, error)
- func (o *SubscriptionContractProperties) GetNotificationDateAsTime() (*time.Time, error)
- func (o *SubscriptionContractProperties) GetStartDateAsTime() (*time.Time, error)
- func (o *SubscriptionContractProperties) SetCreatedDateAsTime(input time.Time)
- func (o *SubscriptionContractProperties) SetEndDateAsTime(input time.Time)
- func (o *SubscriptionContractProperties) SetExpirationDateAsTime(input time.Time)
- func (o *SubscriptionContractProperties) SetNotificationDateAsTime(input time.Time)
- func (o *SubscriptionContractProperties) SetStartDateAsTime(input time.Time)
- type SubscriptionState
- type UserId
- type UserSubscriptionClient
- func (c UserSubscriptionClient) List(ctx context.Context, id UserId, options ListOperationOptions) (resp ListOperationResponse, err error)
- func (c UserSubscriptionClient) ListComplete(ctx context.Context, id UserId, options ListOperationOptions) (ListCompleteResult, error)
- func (c UserSubscriptionClient) ListCompleteMatchingPredicate(ctx context.Context, id UserId, options ListOperationOptions, ...) (resp ListCompleteResult, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForSubscriptionState ¶
func PossibleValuesForSubscriptionState() []string
func ValidateUserID ¶
ValidateUserID checks that 'input' can be parsed as a User ID
Types ¶
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []SubscriptionContract
}
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]SubscriptionContract // contains filtered or unexported fields }
func (ListOperationResponse) HasMore ¶
func (r ListOperationResponse) HasMore() bool
func (ListOperationResponse) LoadMore ¶
func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)
type SubscriptionContract ¶
type SubscriptionContract struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *SubscriptionContractProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type SubscriptionContractOperationPredicate ¶
func (SubscriptionContractOperationPredicate) Matches ¶
func (p SubscriptionContractOperationPredicate) Matches(input SubscriptionContract) bool
type SubscriptionContractProperties ¶
type SubscriptionContractProperties struct { AllowTracing *bool `json:"allowTracing,omitempty"` CreatedDate *string `json:"createdDate,omitempty"` DisplayName *string `json:"displayName,omitempty"` EndDate *string `json:"endDate,omitempty"` ExpirationDate *string `json:"expirationDate,omitempty"` NotificationDate *string `json:"notificationDate,omitempty"` OwnerId *string `json:"ownerId,omitempty"` PrimaryKey *string `json:"primaryKey,omitempty"` Scope string `json:"scope"` SecondaryKey *string `json:"secondaryKey,omitempty"` StartDate *string `json:"startDate,omitempty"` State SubscriptionState `json:"state"` StateComment *string `json:"stateComment,omitempty"` }
func (*SubscriptionContractProperties) GetCreatedDateAsTime ¶
func (o *SubscriptionContractProperties) GetCreatedDateAsTime() (*time.Time, error)
func (*SubscriptionContractProperties) GetEndDateAsTime ¶
func (o *SubscriptionContractProperties) GetEndDateAsTime() (*time.Time, error)
func (*SubscriptionContractProperties) GetExpirationDateAsTime ¶
func (o *SubscriptionContractProperties) GetExpirationDateAsTime() (*time.Time, error)
func (*SubscriptionContractProperties) GetNotificationDateAsTime ¶
func (o *SubscriptionContractProperties) GetNotificationDateAsTime() (*time.Time, error)
func (*SubscriptionContractProperties) GetStartDateAsTime ¶
func (o *SubscriptionContractProperties) GetStartDateAsTime() (*time.Time, error)
func (*SubscriptionContractProperties) SetCreatedDateAsTime ¶
func (o *SubscriptionContractProperties) SetCreatedDateAsTime(input time.Time)
func (*SubscriptionContractProperties) SetEndDateAsTime ¶
func (o *SubscriptionContractProperties) SetEndDateAsTime(input time.Time)
func (*SubscriptionContractProperties) SetExpirationDateAsTime ¶
func (o *SubscriptionContractProperties) SetExpirationDateAsTime(input time.Time)
func (*SubscriptionContractProperties) SetNotificationDateAsTime ¶
func (o *SubscriptionContractProperties) SetNotificationDateAsTime(input time.Time)
func (*SubscriptionContractProperties) SetStartDateAsTime ¶
func (o *SubscriptionContractProperties) SetStartDateAsTime(input time.Time)
type SubscriptionState ¶
type SubscriptionState string
const ( SubscriptionStateActive SubscriptionState = "active" SubscriptionStateCancelled SubscriptionState = "cancelled" SubscriptionStateExpired SubscriptionState = "expired" SubscriptionStateRejected SubscriptionState = "rejected" SubscriptionStateSubmitted SubscriptionState = "submitted" SubscriptionStateSuspended SubscriptionState = "suspended" )
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) Segments ¶
func (id UserId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this User ID
type UserSubscriptionClient ¶
type UserSubscriptionClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewUserSubscriptionClientWithBaseURI ¶
func NewUserSubscriptionClientWithBaseURI(endpoint string) UserSubscriptionClient
func (UserSubscriptionClient) List ¶
func (c UserSubscriptionClient) List(ctx context.Context, id UserId, options ListOperationOptions) (resp ListOperationResponse, err error)
List ...
func (UserSubscriptionClient) ListComplete ¶
func (c UserSubscriptionClient) ListComplete(ctx context.Context, id UserId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (UserSubscriptionClient) ListCompleteMatchingPredicate ¶
func (c UserSubscriptionClient) ListCompleteMatchingPredicate(ctx context.Context, id UserId, options ListOperationOptions, predicate SubscriptionContractOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
Click to show internal directories.
Click to hide internal directories.