Documentation ¶
Index ¶
- func PossibleValuesForAppType() []string
- func PossibleValuesForSubscriptionState() []string
- func ValidateServiceID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateSubscriptions2ID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateUserSubscriptions2ID(input interface{}, key string) (warnings []string, errors []error)
- type AppType
- type CreateOrUpdateOperationOptions
- type CreateOrUpdateOperationResponse
- type DeleteOperationOptions
- type DeleteOperationResponse
- type GetEntityTagOperationResponse
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type ListSecretsOperationResponse
- type RegeneratePrimaryKeyOperationResponse
- type RegenerateSecondaryKeyOperationResponse
- type ServiceId
- type SubscriptionClient
- func (c SubscriptionClient) CreateOrUpdate(ctx context.Context, id Subscriptions2Id, input SubscriptionCreateParameters, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c SubscriptionClient) Delete(ctx context.Context, id Subscriptions2Id, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
- func (c SubscriptionClient) Get(ctx context.Context, id Subscriptions2Id) (result GetOperationResponse, err error)
- func (c SubscriptionClient) GetEntityTag(ctx context.Context, id Subscriptions2Id) (result GetEntityTagOperationResponse, err error)
- func (c SubscriptionClient) List(ctx context.Context, id ServiceId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c SubscriptionClient) ListComplete(ctx context.Context, id ServiceId, options ListOperationOptions) (ListCompleteResult, error)
- func (c SubscriptionClient) ListCompleteMatchingPredicate(ctx context.Context, id ServiceId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- func (c SubscriptionClient) ListSecrets(ctx context.Context, id Subscriptions2Id) (result ListSecretsOperationResponse, err error)
- func (c SubscriptionClient) RegeneratePrimaryKey(ctx context.Context, id Subscriptions2Id) (result RegeneratePrimaryKeyOperationResponse, err error)
- func (c SubscriptionClient) RegenerateSecondaryKey(ctx context.Context, id Subscriptions2Id) (result RegenerateSecondaryKeyOperationResponse, err error)
- func (c SubscriptionClient) Update(ctx context.Context, id Subscriptions2Id, input SubscriptionUpdateParameters, ...) (result UpdateOperationResponse, err error)
- func (c SubscriptionClient) UserSubscriptionGet(ctx context.Context, id UserSubscriptions2Id) (result UserSubscriptionGetOperationResponse, 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 SubscriptionCreateParameterProperties
- type SubscriptionCreateParameters
- type SubscriptionKeysContract
- type SubscriptionState
- type SubscriptionUpdateParameterProperties
- type SubscriptionUpdateParameters
- type Subscriptions2Id
- type UpdateOperationOptions
- type UpdateOperationResponse
- type UserSubscriptionGetOperationResponse
- type UserSubscriptions2Id
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAppType ¶
func PossibleValuesForAppType() []string
func PossibleValuesForSubscriptionState ¶
func PossibleValuesForSubscriptionState() []string
func ValidateServiceID ¶
ValidateServiceID checks that 'input' can be parsed as a Service ID
func ValidateSubscriptions2ID ¶
ValidateSubscriptions2ID checks that 'input' can be parsed as a Subscriptions 2 ID
func ValidateUserSubscriptions2ID ¶ added in v0.20230727.1090744
func ValidateUserSubscriptions2ID(input interface{}, key string) (warnings []string, errors []error)
ValidateUserSubscriptions2ID checks that 'input' can be parsed as a User Subscriptions 2 ID
Types ¶
type CreateOrUpdateOperationOptions ¶
func DefaultCreateOrUpdateOperationOptions ¶
func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions
func (CreateOrUpdateOperationOptions) ToHeaders ¶ added in v0.20230801.1071415
func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers
func (CreateOrUpdateOperationOptions) ToOData ¶ added in v0.20230801.1071415
func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query
func (CreateOrUpdateOperationOptions) ToQuery ¶ added in v0.20230801.1071415
func (o CreateOrUpdateOperationOptions) ToQuery() *client.QueryParams
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SubscriptionContract }
type DeleteOperationOptions ¶
type DeleteOperationOptions struct {
IfMatch *string
}
func DefaultDeleteOperationOptions ¶
func DefaultDeleteOperationOptions() DeleteOperationOptions
func (DeleteOperationOptions) ToHeaders ¶ added in v0.20230801.1071415
func (o DeleteOperationOptions) ToHeaders() *client.Headers
func (DeleteOperationOptions) ToOData ¶ added in v0.20230801.1071415
func (o DeleteOperationOptions) ToOData() *odata.Query
func (DeleteOperationOptions) ToQuery ¶ added in v0.20230801.1071415
func (o DeleteOperationOptions) ToQuery() *client.QueryParams
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SubscriptionContract }
type ListCompleteResult ¶
type ListCompleteResult struct {
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 ListSecretsOperationResponse ¶
type ListSecretsOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SubscriptionKeysContract }
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 SubscriptionClient ¶
type SubscriptionClient struct {
Client *resourcemanager.Client
}
func NewSubscriptionClientWithBaseURI ¶
func NewSubscriptionClientWithBaseURI(sdkApi sdkEnv.Api) (*SubscriptionClient, error)
func (SubscriptionClient) CreateOrUpdate ¶
func (c SubscriptionClient) CreateOrUpdate(ctx context.Context, id Subscriptions2Id, input SubscriptionCreateParameters, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (SubscriptionClient) Delete ¶
func (c SubscriptionClient) Delete(ctx context.Context, id Subscriptions2Id, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (SubscriptionClient) Get ¶
func (c SubscriptionClient) Get(ctx context.Context, id Subscriptions2Id) (result GetOperationResponse, err error)
Get ...
func (SubscriptionClient) GetEntityTag ¶
func (c SubscriptionClient) GetEntityTag(ctx context.Context, id Subscriptions2Id) (result GetEntityTagOperationResponse, err error)
GetEntityTag ...
func (SubscriptionClient) List ¶
func (c SubscriptionClient) List(ctx context.Context, id ServiceId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (SubscriptionClient) ListComplete ¶
func (c SubscriptionClient) ListComplete(ctx context.Context, id ServiceId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (SubscriptionClient) ListCompleteMatchingPredicate ¶
func (c SubscriptionClient) ListCompleteMatchingPredicate(ctx context.Context, id ServiceId, options ListOperationOptions, predicate SubscriptionContractOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (SubscriptionClient) ListSecrets ¶
func (c SubscriptionClient) ListSecrets(ctx context.Context, id Subscriptions2Id) (result ListSecretsOperationResponse, err error)
ListSecrets ...
func (SubscriptionClient) RegeneratePrimaryKey ¶
func (c SubscriptionClient) RegeneratePrimaryKey(ctx context.Context, id Subscriptions2Id) (result RegeneratePrimaryKeyOperationResponse, err error)
RegeneratePrimaryKey ...
func (SubscriptionClient) RegenerateSecondaryKey ¶
func (c SubscriptionClient) RegenerateSecondaryKey(ctx context.Context, id Subscriptions2Id) (result RegenerateSecondaryKeyOperationResponse, err error)
RegenerateSecondaryKey ...
func (SubscriptionClient) Update ¶
func (c SubscriptionClient) Update(ctx context.Context, id Subscriptions2Id, input SubscriptionUpdateParameters, options UpdateOperationOptions) (result UpdateOperationResponse, err error)
Update ...
func (SubscriptionClient) UserSubscriptionGet ¶
func (c SubscriptionClient) UserSubscriptionGet(ctx context.Context, id UserSubscriptions2Id) (result UserSubscriptionGetOperationResponse, err error)
UserSubscriptionGet ...
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 SubscriptionCreateParameterProperties ¶
type SubscriptionCreateParameterProperties struct { AllowTracing *bool `json:"allowTracing,omitempty"` DisplayName string `json:"displayName"` OwnerId *string `json:"ownerId,omitempty"` PrimaryKey *string `json:"primaryKey,omitempty"` Scope string `json:"scope"` SecondaryKey *string `json:"secondaryKey,omitempty"` State *SubscriptionState `json:"state,omitempty"` }
type SubscriptionCreateParameters ¶
type SubscriptionCreateParameters struct {
Properties *SubscriptionCreateParameterProperties `json:"properties,omitempty"`
}
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
type SubscriptionUpdateParameterProperties ¶
type SubscriptionUpdateParameterProperties struct { AllowTracing *bool `json:"allowTracing,omitempty"` DisplayName *string `json:"displayName,omitempty"` ExpirationDate *string `json:"expirationDate,omitempty"` OwnerId *string `json:"ownerId,omitempty"` PrimaryKey *string `json:"primaryKey,omitempty"` Scope *string `json:"scope,omitempty"` SecondaryKey *string `json:"secondaryKey,omitempty"` State *SubscriptionState `json:"state,omitempty"` StateComment *string `json:"stateComment,omitempty"` }
func (*SubscriptionUpdateParameterProperties) GetExpirationDateAsTime ¶
func (o *SubscriptionUpdateParameterProperties) GetExpirationDateAsTime() (*time.Time, error)
func (*SubscriptionUpdateParameterProperties) SetExpirationDateAsTime ¶
func (o *SubscriptionUpdateParameterProperties) SetExpirationDateAsTime(input time.Time)
type SubscriptionUpdateParameters ¶
type SubscriptionUpdateParameters struct {
Properties *SubscriptionUpdateParameterProperties `json:"properties,omitempty"`
}
type Subscriptions2Id ¶
type Subscriptions2Id struct { SubscriptionId string ResourceGroupName string ServiceName string SubscriptionName string }
Subscriptions2Id is a struct representing the Resource ID for a Subscriptions 2
func NewSubscriptions2ID ¶
func NewSubscriptions2ID(subscriptionId string, resourceGroupName string, serviceName string, subscriptionName string) Subscriptions2Id
NewSubscriptions2ID returns a new Subscriptions2Id struct
func ParseSubscriptions2ID ¶
func ParseSubscriptions2ID(input string) (*Subscriptions2Id, error)
ParseSubscriptions2ID parses 'input' into a Subscriptions2Id
func ParseSubscriptions2IDInsensitively ¶
func ParseSubscriptions2IDInsensitively(input string) (*Subscriptions2Id, error)
ParseSubscriptions2IDInsensitively parses 'input' case-insensitively into a Subscriptions2Id note: this method should only be used for API response data and not user input
func (*Subscriptions2Id) FromParseResult ¶ added in v0.20231127.1171502
func (id *Subscriptions2Id) FromParseResult(input resourceids.ParseResult) error
func (Subscriptions2Id) ID ¶
func (id Subscriptions2Id) ID() string
ID returns the formatted Subscriptions 2 ID
func (Subscriptions2Id) Segments ¶
func (id Subscriptions2Id) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Subscriptions 2 ID
func (Subscriptions2Id) String ¶
func (id Subscriptions2Id) String() string
String returns a human-readable description of this Subscriptions 2 ID
type UpdateOperationOptions ¶
func DefaultUpdateOperationOptions ¶
func DefaultUpdateOperationOptions() UpdateOperationOptions
func (UpdateOperationOptions) ToHeaders ¶ added in v0.20230801.1071415
func (o UpdateOperationOptions) ToHeaders() *client.Headers
func (UpdateOperationOptions) ToOData ¶ added in v0.20230801.1071415
func (o UpdateOperationOptions) ToOData() *odata.Query
func (UpdateOperationOptions) ToQuery ¶ added in v0.20230801.1071415
func (o UpdateOperationOptions) ToQuery() *client.QueryParams
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SubscriptionContract }
type UserSubscriptionGetOperationResponse ¶
type UserSubscriptionGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SubscriptionContract }
type UserSubscriptions2Id ¶ added in v0.20230727.1090744
type UserSubscriptions2Id struct { SubscriptionId string ResourceGroupName string ServiceName string UserId string SubscriptionName string }
UserSubscriptions2Id is a struct representing the Resource ID for a User Subscriptions 2
func NewUserSubscriptions2ID ¶ added in v0.20230727.1090744
func NewUserSubscriptions2ID(subscriptionId string, resourceGroupName string, serviceName string, userId string, subscriptionName string) UserSubscriptions2Id
NewUserSubscriptions2ID returns a new UserSubscriptions2Id struct
func ParseUserSubscriptions2ID ¶ added in v0.20230727.1090744
func ParseUserSubscriptions2ID(input string) (*UserSubscriptions2Id, error)
ParseUserSubscriptions2ID parses 'input' into a UserSubscriptions2Id
func ParseUserSubscriptions2IDInsensitively ¶ added in v0.20230727.1090744
func ParseUserSubscriptions2IDInsensitively(input string) (*UserSubscriptions2Id, error)
ParseUserSubscriptions2IDInsensitively parses 'input' case-insensitively into a UserSubscriptions2Id note: this method should only be used for API response data and not user input
func (*UserSubscriptions2Id) FromParseResult ¶ added in v0.20231127.1171502
func (id *UserSubscriptions2Id) FromParseResult(input resourceids.ParseResult) error
func (UserSubscriptions2Id) ID ¶ added in v0.20230727.1090744
func (id UserSubscriptions2Id) ID() string
ID returns the formatted User Subscriptions 2 ID
func (UserSubscriptions2Id) Segments ¶ added in v0.20230727.1090744
func (id UserSubscriptions2Id) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this User Subscriptions 2 ID
func (UserSubscriptions2Id) String ¶ added in v0.20230727.1090744
func (id UserSubscriptions2Id) String() string
String returns a human-readable description of this User Subscriptions 2 ID
Source Files ¶
- client.go
- constants.go
- id_service.go
- id_subscriptions2.go
- id_usersubscriptions2.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_getentitytag.go
- method_list.go
- method_listsecrets.go
- method_regenerateprimarykey.go
- method_regeneratesecondarykey.go
- method_update.go
- method_usersubscriptionget.go
- model_subscriptioncontract.go
- model_subscriptioncontractproperties.go
- model_subscriptioncreateparameterproperties.go
- model_subscriptioncreateparameters.go
- model_subscriptionkeyscontract.go
- model_subscriptionupdateparameterproperties.go
- model_subscriptionupdateparameters.go
- predicates.go
- version.go