Documentation ¶
Index ¶
- func PossibleValuesForSubscriptionState() []string
- func ValidateProductID(input interface{}, key string) (warnings []string, errors []error)
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type ProductId
- type ProductSubscriptionClient
- func (c ProductSubscriptionClient) List(ctx context.Context, id ProductId, options ListOperationOptions) (resp ListOperationResponse, err error)
- func (c ProductSubscriptionClient) ListComplete(ctx context.Context, id ProductId, options ListOperationOptions) (ListCompleteResult, error)
- func (c ProductSubscriptionClient) ListCompleteMatchingPredicate(ctx context.Context, id ProductId, options ListOperationOptions, ...) (resp ListCompleteResult, err error)
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForSubscriptionState ¶
func PossibleValuesForSubscriptionState() []string
func ValidateProductID ¶
ValidateProductID checks that 'input' can be parsed as a Product 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 ProductId ¶
type ProductId struct { SubscriptionId string ResourceGroupName string ServiceName string ProductId string }
ProductId is a struct representing the Resource ID for a Product
func NewProductID ¶
func NewProductID(subscriptionId string, resourceGroupName string, serviceName string, productId string) ProductId
NewProductID returns a new ProductId struct
func ParseProductID ¶
ParseProductID parses 'input' into a ProductId
func ParseProductIDInsensitively ¶
ParseProductIDInsensitively parses 'input' case-insensitively into a ProductId note: this method should only be used for API response data and not user input
func (ProductId) Segments ¶
func (id ProductId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Product ID
type ProductSubscriptionClient ¶
type ProductSubscriptionClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewProductSubscriptionClientWithBaseURI ¶
func NewProductSubscriptionClientWithBaseURI(endpoint string) ProductSubscriptionClient
func (ProductSubscriptionClient) List ¶
func (c ProductSubscriptionClient) List(ctx context.Context, id ProductId, options ListOperationOptions) (resp ListOperationResponse, err error)
List ...
func (ProductSubscriptionClient) ListComplete ¶
func (c ProductSubscriptionClient) ListComplete(ctx context.Context, id ProductId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (ProductSubscriptionClient) ListCompleteMatchingPredicate ¶
func (c ProductSubscriptionClient) ListCompleteMatchingPredicate(ctx context.Context, id ProductId, options ListOperationOptions, predicate SubscriptionContractOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
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" )
Click to show internal directories.
Click to hide internal directories.