subscription

package
v0.20240617.1095803 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription Documentation

The subscription SDK allows for interaction with the Azure Resource Manager Service apimanagement (API Version 2023-05-01-preview).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2023-05-01-preview/subscription"

Client Initialization

client := subscription.NewSubscriptionClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SubscriptionClient.CreateOrUpdate

ctx := context.TODO()
id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "subscriptionValue")

payload := subscription.SubscriptionCreateParameters{
	// ...
}


read, err := client.CreateOrUpdate(ctx, id, payload, subscription.DefaultCreateOrUpdateOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SubscriptionClient.Delete

ctx := context.TODO()
id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "subscriptionValue")

read, err := client.Delete(ctx, id, subscription.DefaultDeleteOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SubscriptionClient.Get

ctx := context.TODO()
id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "subscriptionValue")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SubscriptionClient.GetEntityTag

ctx := context.TODO()
id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "subscriptionValue")

read, err := client.GetEntityTag(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SubscriptionClient.List

ctx := context.TODO()
id := subscription.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue")

// alternatively `client.List(ctx, id, subscription.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, subscription.DefaultListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: SubscriptionClient.ListSecrets

ctx := context.TODO()
id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "subscriptionValue")

read, err := client.ListSecrets(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SubscriptionClient.RegeneratePrimaryKey

ctx := context.TODO()
id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "subscriptionValue")

read, err := client.RegeneratePrimaryKey(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SubscriptionClient.RegenerateSecondaryKey

ctx := context.TODO()
id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "subscriptionValue")

read, err := client.RegenerateSecondaryKey(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SubscriptionClient.Update

ctx := context.TODO()
id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "subscriptionValue")

payload := subscription.SubscriptionUpdateParameters{
	// ...
}


read, err := client.Update(ctx, id, payload, subscription.DefaultUpdateOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SubscriptionClient.UserSubscriptionGet

ctx := context.TODO()
id := subscription.NewUserSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "userIdValue", "subscriptionValue")

read, err := client.UserSubscriptionGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SubscriptionClient.WorkspaceSubscriptionCreateOrUpdate

ctx := context.TODO()
id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue")

payload := subscription.SubscriptionCreateParameters{
	// ...
}


read, err := client.WorkspaceSubscriptionCreateOrUpdate(ctx, id, payload, subscription.DefaultWorkspaceSubscriptionCreateOrUpdateOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SubscriptionClient.WorkspaceSubscriptionDelete

ctx := context.TODO()
id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue")

read, err := client.WorkspaceSubscriptionDelete(ctx, id, subscription.DefaultWorkspaceSubscriptionDeleteOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SubscriptionClient.WorkspaceSubscriptionGet

ctx := context.TODO()
id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue")

read, err := client.WorkspaceSubscriptionGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SubscriptionClient.WorkspaceSubscriptionGetEntityTag

ctx := context.TODO()
id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue")

read, err := client.WorkspaceSubscriptionGetEntityTag(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SubscriptionClient.WorkspaceSubscriptionList

ctx := context.TODO()
id := subscription.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue")

// alternatively `client.WorkspaceSubscriptionList(ctx, id, subscription.DefaultWorkspaceSubscriptionListOperationOptions())` can be used to do batched pagination
items, err := client.WorkspaceSubscriptionListComplete(ctx, id, subscription.DefaultWorkspaceSubscriptionListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: SubscriptionClient.WorkspaceSubscriptionListSecrets

ctx := context.TODO()
id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue")

read, err := client.WorkspaceSubscriptionListSecrets(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SubscriptionClient.WorkspaceSubscriptionRegeneratePrimaryKey

ctx := context.TODO()
id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue")

read, err := client.WorkspaceSubscriptionRegeneratePrimaryKey(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SubscriptionClient.WorkspaceSubscriptionRegenerateSecondaryKey

ctx := context.TODO()
id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue")

read, err := client.WorkspaceSubscriptionRegenerateSecondaryKey(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SubscriptionClient.WorkspaceSubscriptionUpdate

ctx := context.TODO()
id := subscription.NewWorkspaceSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "subscriptionValue")

payload := subscription.SubscriptionUpdateParameters{
	// ...
}


read, err := client.WorkspaceSubscriptionUpdate(ctx, id, payload, subscription.DefaultWorkspaceSubscriptionUpdateOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAppType

func PossibleValuesForAppType() []string

func PossibleValuesForSubscriptionState

func PossibleValuesForSubscriptionState() []string

func ValidateServiceID

func ValidateServiceID(input interface{}, key string) (warnings []string, errors []error)

ValidateServiceID checks that 'input' can be parsed as a Service ID

func ValidateSubscriptions2ID

func ValidateSubscriptions2ID(input interface{}, key string) (warnings []string, errors []error)

ValidateSubscriptions2ID checks that 'input' can be parsed as a Subscriptions 2 ID

func ValidateUserSubscriptions2ID

func ValidateUserSubscriptions2ID(input interface{}, key string) (warnings []string, errors []error)

ValidateUserSubscriptions2ID checks that 'input' can be parsed as a User Subscriptions 2 ID

func ValidateWorkspaceID

func ValidateWorkspaceID(input interface{}, key string) (warnings []string, errors []error)

ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID

func ValidateWorkspaceSubscriptions2ID

func ValidateWorkspaceSubscriptions2ID(input interface{}, key string) (warnings []string, errors []error)

ValidateWorkspaceSubscriptions2ID checks that 'input' can be parsed as a Workspace Subscriptions 2 ID

Types

type AppType

type AppType string
const (
	AppTypeDeveloperPortal AppType = "developerPortal"
	AppTypePortal          AppType = "portal"
)

func (*AppType) UnmarshalJSON

func (s *AppType) UnmarshalJSON(bytes []byte) error

type CreateOrUpdateOperationOptions

type CreateOrUpdateOperationOptions struct {
	AppType *AppType
	IfMatch *string
	Notify  *bool
}

func DefaultCreateOrUpdateOperationOptions

func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions

func (CreateOrUpdateOperationOptions) ToHeaders

func (CreateOrUpdateOperationOptions) ToOData

func (CreateOrUpdateOperationOptions) ToQuery

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

func (o DeleteOperationOptions) ToHeaders() *client.Headers

func (DeleteOperationOptions) ToOData

func (o DeleteOperationOptions) ToOData() *odata.Query

func (DeleteOperationOptions) ToQuery

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetEntityTagOperationResponse

type GetEntityTagOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SubscriptionContract
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SubscriptionContract
}

type ListOperationOptions

type ListOperationOptions struct {
	Filter *string
	Skip   *int64
	Top    *int64
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

func (ListOperationOptions) ToHeaders

func (o ListOperationOptions) ToHeaders() *client.Headers

func (ListOperationOptions) ToOData

func (o ListOperationOptions) ToOData() *odata.Query

func (ListOperationOptions) ToQuery

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 RegeneratePrimaryKeyOperationResponse

type RegeneratePrimaryKeyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type RegenerateSecondaryKeyOperationResponse

type RegenerateSecondaryKeyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type ServiceId

type ServiceId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServiceName       string
}

ServiceId is a struct representing the Resource ID for a Service

func NewServiceID

func NewServiceID(subscriptionId string, resourceGroupName string, serviceName string) ServiceId

NewServiceID returns a new ServiceId struct

func ParseServiceID

func ParseServiceID(input string) (*ServiceId, error)

ParseServiceID parses 'input' into a ServiceId

func ParseServiceIDInsensitively

func ParseServiceIDInsensitively(input string) (*ServiceId, error)

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

func (id *ServiceId) FromParseResult(input resourceids.ParseResult) error

func (ServiceId) ID

func (id ServiceId) ID() string

ID returns the formatted Service ID

func (ServiceId) Segments

func (id ServiceId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Service ID

func (ServiceId) String

func (id ServiceId) String() string

String returns a human-readable description of this Service ID

type SubscriptionClient

type SubscriptionClient struct {
	Client *resourcemanager.Client
}

func NewSubscriptionClientWithBaseURI

func NewSubscriptionClientWithBaseURI(sdkApi sdkEnv.Api) (*SubscriptionClient, error)

func (SubscriptionClient) CreateOrUpdate

CreateOrUpdate ...

func (SubscriptionClient) Delete

Delete ...

func (SubscriptionClient) Get

Get ...

func (SubscriptionClient) GetEntityTag

GetEntityTag ...

func (SubscriptionClient) List

List ...

func (SubscriptionClient) ListComplete

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

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

Update ...

func (SubscriptionClient) UserSubscriptionGet

UserSubscriptionGet ...

func (SubscriptionClient) WorkspaceSubscriptionCreateOrUpdate

WorkspaceSubscriptionCreateOrUpdate ...

func (SubscriptionClient) WorkspaceSubscriptionDelete

WorkspaceSubscriptionDelete ...

func (SubscriptionClient) WorkspaceSubscriptionGet

WorkspaceSubscriptionGet ...

func (SubscriptionClient) WorkspaceSubscriptionGetEntityTag

WorkspaceSubscriptionGetEntityTag ...

func (SubscriptionClient) WorkspaceSubscriptionList

WorkspaceSubscriptionList ...

func (SubscriptionClient) WorkspaceSubscriptionListComplete

WorkspaceSubscriptionListComplete retrieves all the results into a single object

func (SubscriptionClient) WorkspaceSubscriptionListCompleteMatchingPredicate

func (c SubscriptionClient) WorkspaceSubscriptionListCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options WorkspaceSubscriptionListOperationOptions, predicate SubscriptionContractOperationPredicate) (result WorkspaceSubscriptionListCompleteResult, err error)

WorkspaceSubscriptionListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SubscriptionClient) WorkspaceSubscriptionListSecrets

WorkspaceSubscriptionListSecrets ...

func (SubscriptionClient) WorkspaceSubscriptionRegeneratePrimaryKey

func (c SubscriptionClient) WorkspaceSubscriptionRegeneratePrimaryKey(ctx context.Context, id WorkspaceSubscriptions2Id) (result WorkspaceSubscriptionRegeneratePrimaryKeyOperationResponse, err error)

WorkspaceSubscriptionRegeneratePrimaryKey ...

func (SubscriptionClient) WorkspaceSubscriptionRegenerateSecondaryKey

func (c SubscriptionClient) WorkspaceSubscriptionRegenerateSecondaryKey(ctx context.Context, id WorkspaceSubscriptions2Id) (result WorkspaceSubscriptionRegenerateSecondaryKeyOperationResponse, err error)

WorkspaceSubscriptionRegenerateSecondaryKey ...

func (SubscriptionClient) WorkspaceSubscriptionUpdate

WorkspaceSubscriptionUpdate ...

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

type SubscriptionContractOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (SubscriptionContractOperationPredicate) Matches

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 SubscriptionKeysContract

type SubscriptionKeysContract struct {
	PrimaryKey   *string `json:"primaryKey,omitempty"`
	SecondaryKey *string `json:"secondaryKey,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

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

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

type UpdateOperationOptions struct {
	AppType *AppType
	IfMatch *string
	Notify  *bool
}

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

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

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

func NewUserSubscriptions2ID(subscriptionId string, resourceGroupName string, serviceName string, userId string, subscriptionName string) UserSubscriptions2Id

NewUserSubscriptions2ID returns a new UserSubscriptions2Id struct

func ParseUserSubscriptions2ID

func ParseUserSubscriptions2ID(input string) (*UserSubscriptions2Id, error)

ParseUserSubscriptions2ID parses 'input' into a UserSubscriptions2Id

func ParseUserSubscriptions2IDInsensitively

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

func (id *UserSubscriptions2Id) FromParseResult(input resourceids.ParseResult) error

func (UserSubscriptions2Id) ID

func (id UserSubscriptions2Id) ID() string

ID returns the formatted User Subscriptions 2 ID

func (UserSubscriptions2Id) Segments

func (id UserSubscriptions2Id) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this User Subscriptions 2 ID

func (UserSubscriptions2Id) String

func (id UserSubscriptions2Id) String() string

String returns a human-readable description of this User Subscriptions 2 ID

type WorkspaceId

type WorkspaceId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServiceName       string
	WorkspaceId       string
}

WorkspaceId is a struct representing the Resource ID for a Workspace

func NewWorkspaceID

func NewWorkspaceID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string) WorkspaceId

NewWorkspaceID returns a new WorkspaceId struct

func ParseWorkspaceID

func ParseWorkspaceID(input string) (*WorkspaceId, error)

ParseWorkspaceID parses 'input' into a WorkspaceId

func ParseWorkspaceIDInsensitively

func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error)

ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId note: this method should only be used for API response data and not user input

func (*WorkspaceId) FromParseResult

func (id *WorkspaceId) FromParseResult(input resourceids.ParseResult) error

func (WorkspaceId) ID

func (id WorkspaceId) ID() string

ID returns the formatted Workspace ID

func (WorkspaceId) Segments

func (id WorkspaceId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Workspace ID

func (WorkspaceId) String

func (id WorkspaceId) String() string

String returns a human-readable description of this Workspace ID

type WorkspaceSubscriptionCreateOrUpdateOperationOptions

type WorkspaceSubscriptionCreateOrUpdateOperationOptions struct {
	AppType *AppType
	IfMatch *string
	Notify  *bool
}

func DefaultWorkspaceSubscriptionCreateOrUpdateOperationOptions

func DefaultWorkspaceSubscriptionCreateOrUpdateOperationOptions() WorkspaceSubscriptionCreateOrUpdateOperationOptions

func (WorkspaceSubscriptionCreateOrUpdateOperationOptions) ToHeaders

func (WorkspaceSubscriptionCreateOrUpdateOperationOptions) ToOData

func (WorkspaceSubscriptionCreateOrUpdateOperationOptions) ToQuery

type WorkspaceSubscriptionCreateOrUpdateOperationResponse

type WorkspaceSubscriptionCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SubscriptionContract
}

type WorkspaceSubscriptionDeleteOperationOptions

type WorkspaceSubscriptionDeleteOperationOptions struct {
	IfMatch *string
}

func DefaultWorkspaceSubscriptionDeleteOperationOptions

func DefaultWorkspaceSubscriptionDeleteOperationOptions() WorkspaceSubscriptionDeleteOperationOptions

func (WorkspaceSubscriptionDeleteOperationOptions) ToHeaders

func (WorkspaceSubscriptionDeleteOperationOptions) ToOData

func (WorkspaceSubscriptionDeleteOperationOptions) ToQuery

type WorkspaceSubscriptionDeleteOperationResponse

type WorkspaceSubscriptionDeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type WorkspaceSubscriptionGetEntityTagOperationResponse

type WorkspaceSubscriptionGetEntityTagOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type WorkspaceSubscriptionGetOperationResponse

type WorkspaceSubscriptionGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SubscriptionContract
}

type WorkspaceSubscriptionListCompleteResult

type WorkspaceSubscriptionListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SubscriptionContract
}

type WorkspaceSubscriptionListOperationOptions

type WorkspaceSubscriptionListOperationOptions struct {
	Filter *string
	Skip   *int64
	Top    *int64
}

func DefaultWorkspaceSubscriptionListOperationOptions

func DefaultWorkspaceSubscriptionListOperationOptions() WorkspaceSubscriptionListOperationOptions

func (WorkspaceSubscriptionListOperationOptions) ToHeaders

func (WorkspaceSubscriptionListOperationOptions) ToOData

func (WorkspaceSubscriptionListOperationOptions) ToQuery

type WorkspaceSubscriptionListOperationResponse

type WorkspaceSubscriptionListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SubscriptionContract
}

type WorkspaceSubscriptionListSecretsOperationResponse

type WorkspaceSubscriptionListSecretsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SubscriptionKeysContract
}

type WorkspaceSubscriptionRegeneratePrimaryKeyOperationResponse

type WorkspaceSubscriptionRegeneratePrimaryKeyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type WorkspaceSubscriptionRegenerateSecondaryKeyOperationResponse

type WorkspaceSubscriptionRegenerateSecondaryKeyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type WorkspaceSubscriptionUpdateOperationOptions

type WorkspaceSubscriptionUpdateOperationOptions struct {
	AppType *AppType
	IfMatch *string
	Notify  *bool
}

func DefaultWorkspaceSubscriptionUpdateOperationOptions

func DefaultWorkspaceSubscriptionUpdateOperationOptions() WorkspaceSubscriptionUpdateOperationOptions

func (WorkspaceSubscriptionUpdateOperationOptions) ToHeaders

func (WorkspaceSubscriptionUpdateOperationOptions) ToOData

func (WorkspaceSubscriptionUpdateOperationOptions) ToQuery

type WorkspaceSubscriptionUpdateOperationResponse

type WorkspaceSubscriptionUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SubscriptionContract
}

type WorkspaceSubscriptions2Id

type WorkspaceSubscriptions2Id struct {
	SubscriptionId    string
	ResourceGroupName string
	ServiceName       string
	WorkspaceId       string
	SubscriptionName  string
}

WorkspaceSubscriptions2Id is a struct representing the Resource ID for a Workspace Subscriptions 2

func NewWorkspaceSubscriptions2ID

func NewWorkspaceSubscriptions2ID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, subscriptionName string) WorkspaceSubscriptions2Id

NewWorkspaceSubscriptions2ID returns a new WorkspaceSubscriptions2Id struct

func ParseWorkspaceSubscriptions2ID

func ParseWorkspaceSubscriptions2ID(input string) (*WorkspaceSubscriptions2Id, error)

ParseWorkspaceSubscriptions2ID parses 'input' into a WorkspaceSubscriptions2Id

func ParseWorkspaceSubscriptions2IDInsensitively

func ParseWorkspaceSubscriptions2IDInsensitively(input string) (*WorkspaceSubscriptions2Id, error)

ParseWorkspaceSubscriptions2IDInsensitively parses 'input' case-insensitively into a WorkspaceSubscriptions2Id note: this method should only be used for API response data and not user input

func (*WorkspaceSubscriptions2Id) FromParseResult

func (id *WorkspaceSubscriptions2Id) FromParseResult(input resourceids.ParseResult) error

func (WorkspaceSubscriptions2Id) ID

ID returns the formatted Workspace Subscriptions 2 ID

func (WorkspaceSubscriptions2Id) Segments

Segments returns a slice of Resource ID Segments which comprise this Workspace Subscriptions 2 ID

func (WorkspaceSubscriptions2Id) String

func (id WorkspaceSubscriptions2Id) String() string

String returns a human-readable description of this Workspace Subscriptions 2 ID

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL