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) (result 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, ...) (result 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 { LatestHttpResponse *http.Response Items []SubscriptionContract }
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶ added in v0.20230801.1071415
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶ added in v0.20230801.1071415
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶ added in v0.20230801.1071415
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]SubscriptionContract }
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) FromParseResult ¶ added in v0.20231127.1171502
func (id *ProductId) FromParseResult(input resourceids.ParseResult) error
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 *resourcemanager.Client
}
func NewProductSubscriptionClientWithBaseURI ¶
func NewProductSubscriptionClientWithBaseURI(sdkApi sdkEnv.Api) (*ProductSubscriptionClient, error)
func (ProductSubscriptionClient) List ¶
func (c ProductSubscriptionClient) List(ctx context.Context, id ProductId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (ProductSubscriptionClient) ListComplete ¶
func (c ProductSubscriptionClient) ListComplete(ctx context.Context, id ProductId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (ProductSubscriptionClient) ListCompleteMatchingPredicate ¶
func (c ProductSubscriptionClient) ListCompleteMatchingPredicate(ctx context.Context, id ProductId, options ListOperationOptions, predicate SubscriptionContractOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies 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" )
func (*SubscriptionState) UnmarshalJSON ¶ added in v0.20230801.1071415
func (s *SubscriptionState) UnmarshalJSON(bytes []byte) error
Click to show internal directories.
Click to hide internal directories.