features

package
v67.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Deprecated: Please note, this package has been deprecated. A replacement package is available github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatures(https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatures). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.

Package features implements the Azure ARM Features service API version 2021-07-01.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Features
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type AuthorizationProfile

type AuthorizationProfile struct {
	// RequestedTime - READ-ONLY; The requested time
	RequestedTime *date.Time `json:"requestedTime,omitempty"`
	// Requester - READ-ONLY; The requester
	Requester *string `json:"requester,omitempty"`
	// RequesterObjectID - READ-ONLY; The requester object id
	RequesterObjectID *string `json:"requesterObjectId,omitempty"`
	// ApprovedTime - READ-ONLY; The approved time
	ApprovedTime *date.Time `json:"approvedTime,omitempty"`
	// Approver - READ-ONLY; The approver
	Approver *string `json:"approver,omitempty"`
}

AuthorizationProfile authorization Profile

func (AuthorizationProfile) MarshalJSON

func (ap AuthorizationProfile) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AuthorizationProfile.

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

BaseClient is the base client for Features.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (BaseClient) ListOperations

func (client BaseClient) ListOperations(ctx context.Context) (result OperationListResultPage, err error)

ListOperations lists all of the available Microsoft.Features REST API operations.

func (BaseClient) ListOperationsComplete

func (client BaseClient) ListOperationsComplete(ctx context.Context) (result OperationListResultIterator, err error)

ListOperationsComplete enumerates all values, automatically crossing page boundaries as required.

func (BaseClient) ListOperationsPreparer

func (client BaseClient) ListOperationsPreparer(ctx context.Context) (*http.Request, error)

ListOperationsPreparer prepares the ListOperations request.

func (BaseClient) ListOperationsResponder

func (client BaseClient) ListOperationsResponder(resp *http.Response) (result OperationListResult, err error)

ListOperationsResponder handles the response to the ListOperations request. The method always closes the http.Response Body.

func (BaseClient) ListOperationsSender

func (client BaseClient) ListOperationsSender(req *http.Request) (*http.Response, error)

ListOperationsSender sends the ListOperations request. The method will close the http.Response Body if it receives an error.

type Client

type Client struct {
	BaseClient
}

Client is the client for the Features methods of the Features service.

func NewClient

func NewClient(subscriptionID string) Client

NewClient creates an instance of the Client client.

func NewClientWithBaseURI

func NewClientWithBaseURI(baseURI string, subscriptionID string) Client

NewClientWithBaseURI creates an instance of the Client client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (Client) Get

func (client Client) Get(ctx context.Context, resourceProviderNamespace string, featureName string) (result Result, err error)

Get gets the preview feature with the specified name. Parameters: resourceProviderNamespace - the resource provider namespace for the feature. featureName - the name of the feature to get.

func (Client) GetPreparer

func (client Client) GetPreparer(ctx context.Context, resourceProviderNamespace string, featureName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (Client) GetResponder

func (client Client) GetResponder(resp *http.Response) (result Result, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (Client) GetSender

func (client Client) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (Client) List

func (client Client) List(ctx context.Context, resourceProviderNamespace string) (result OperationsListResultPage, err error)

List gets all the preview features in a provider namespace that are available through AFEC for the subscription. Parameters: resourceProviderNamespace - the namespace of the resource provider for getting features.

func (Client) ListAll

func (client Client) ListAll(ctx context.Context) (result OperationsListResultPage, err error)

ListAll gets all the preview features that are available through AFEC for the subscription.

func (Client) ListAllComplete

func (client Client) ListAllComplete(ctx context.Context) (result OperationsListResultIterator, err error)

ListAllComplete enumerates all values, automatically crossing page boundaries as required.

func (Client) ListAllPreparer

func (client Client) ListAllPreparer(ctx context.Context) (*http.Request, error)

ListAllPreparer prepares the ListAll request.

func (Client) ListAllResponder

func (client Client) ListAllResponder(resp *http.Response) (result OperationsListResult, err error)

ListAllResponder handles the response to the ListAll request. The method always closes the http.Response Body.

func (Client) ListAllSender

func (client Client) ListAllSender(req *http.Request) (*http.Response, error)

ListAllSender sends the ListAll request. The method will close the http.Response Body if it receives an error.

func (Client) ListComplete

func (client Client) ListComplete(ctx context.Context, resourceProviderNamespace string) (result OperationsListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (Client) ListPreparer

func (client Client) ListPreparer(ctx context.Context, resourceProviderNamespace string) (*http.Request, error)

ListPreparer prepares the List request.

func (Client) ListResponder

func (client Client) ListResponder(resp *http.Response) (result OperationsListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (Client) ListSender

func (client Client) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (Client) Register

func (client Client) Register(ctx context.Context, resourceProviderNamespace string, featureName string) (result Result, err error)

Register registers the preview feature for the subscription. Parameters: resourceProviderNamespace - the namespace of the resource provider. featureName - the name of the feature to register.

func (Client) RegisterPreparer

func (client Client) RegisterPreparer(ctx context.Context, resourceProviderNamespace string, featureName string) (*http.Request, error)

RegisterPreparer prepares the Register request.

func (Client) RegisterResponder

func (client Client) RegisterResponder(resp *http.Response) (result Result, err error)

RegisterResponder handles the response to the Register request. The method always closes the http.Response Body.

func (Client) RegisterSender

func (client Client) RegisterSender(req *http.Request) (*http.Response, error)

RegisterSender sends the Register request. The method will close the http.Response Body if it receives an error.

func (Client) Unregister

func (client Client) Unregister(ctx context.Context, resourceProviderNamespace string, featureName string) (result Result, err error)

Unregister unregisters the preview feature for the subscription. Parameters: resourceProviderNamespace - the namespace of the resource provider. featureName - the name of the feature to unregister.

func (Client) UnregisterPreparer

func (client Client) UnregisterPreparer(ctx context.Context, resourceProviderNamespace string, featureName string) (*http.Request, error)

UnregisterPreparer prepares the Unregister request.

func (Client) UnregisterResponder

func (client Client) UnregisterResponder(resp *http.Response) (result Result, err error)

UnregisterResponder handles the response to the Unregister request. The method always closes the http.Response Body.

func (Client) UnregisterSender

func (client Client) UnregisterSender(req *http.Request) (*http.Response, error)

UnregisterSender sends the Unregister request. The method will close the http.Response Body if it receives an error.

type ErrorDefinition

type ErrorDefinition struct {
	// Code - READ-ONLY; Service specific error code which serves as the substatus for the HTTP error code.
	Code *string `json:"code,omitempty"`
	// Message - READ-ONLY; Description of the error.
	Message *string `json:"message,omitempty"`
	// Details - Internal error details.
	Details *[]ErrorDefinition `json:"details,omitempty"`
}

ErrorDefinition error definition.

func (ErrorDefinition) MarshalJSON

func (ed ErrorDefinition) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ErrorDefinition.

type ErrorResponse

type ErrorResponse struct {
	// Error - The error details.
	Error *ErrorDefinition `json:"error,omitempty"`
}

ErrorResponse error response indicates that the service is not able to process the incoming request.

type Operation

type Operation struct {
	// Name - Operation name: {provider}/{resource}/{operation}
	Name *string `json:"name,omitempty"`
	// Display - The object that represents the operation.
	Display *OperationDisplay `json:"display,omitempty"`
}

Operation microsoft.Features operation

type OperationDisplay

type OperationDisplay struct {
	// Provider - Service provider: Microsoft.Features
	Provider *string `json:"provider,omitempty"`
	// Resource - Resource on which the operation is performed: Profile, endpoint, etc.
	Resource *string `json:"resource,omitempty"`
	// Operation - Operation type: Read, write, delete, etc.
	Operation *string `json:"operation,omitempty"`
}

OperationDisplay the object that represents the operation.

type OperationListResult

type OperationListResult struct {
	autorest.Response `json:"-"`
	// Value - List of Microsoft.Features operations.
	Value *[]Operation `json:"value,omitempty"`
	// NextLink - URL to get the next set of operation list results if there are any.
	NextLink *string `json:"nextLink,omitempty"`
}

OperationListResult result of the request to list Microsoft.Features operations. It contains a list of operations and a URL link to get the next set of results.

func (OperationListResult) IsEmpty

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator

type OperationListResultIterator struct {
	// contains filtered or unexported fields
}

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next

func (iter *OperationListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultIterator) NextWithContext

func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (OperationListResultIterator) NotDone

func (iter OperationListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationListResultIterator) Response

Response returns the raw server response from the last page request.

func (OperationListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationListResultPage

type OperationListResultPage struct {
	// contains filtered or unexported fields
}

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage

func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next

func (page *OperationListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultPage) NextWithContext

func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (OperationListResultPage) NotDone

func (page OperationListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationListResultPage) Response

Response returns the raw server response from the last page request.

func (OperationListResultPage) Values

func (page OperationListResultPage) Values() []Operation

Values returns the slice of values for the current page or nil if there are no values.

type OperationsListResult

type OperationsListResult struct {
	autorest.Response `json:"-"`
	// Value - The array of features.
	Value *[]Result `json:"value,omitempty"`
	// NextLink - The URL to use for getting the next set of results.
	NextLink *string `json:"nextLink,omitempty"`
}

OperationsListResult list of previewed features.

func (OperationsListResult) IsEmpty

func (olr OperationsListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationsListResultIterator

type OperationsListResultIterator struct {
	// contains filtered or unexported fields
}

OperationsListResultIterator provides access to a complete listing of Result values.

func NewOperationsListResultIterator

func NewOperationsListResultIterator(page OperationsListResultPage) OperationsListResultIterator

Creates a new instance of the OperationsListResultIterator type.

func (*OperationsListResultIterator) Next

func (iter *OperationsListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationsListResultIterator) NextWithContext

func (iter *OperationsListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (OperationsListResultIterator) NotDone

func (iter OperationsListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationsListResultIterator) Response

Response returns the raw server response from the last page request.

func (OperationsListResultIterator) Value

func (iter OperationsListResultIterator) Value() Result

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationsListResultPage

type OperationsListResultPage struct {
	// contains filtered or unexported fields
}

OperationsListResultPage contains a page of Result values.

func NewOperationsListResultPage

func NewOperationsListResultPage(cur OperationsListResult, getNextPage func(context.Context, OperationsListResult) (OperationsListResult, error)) OperationsListResultPage

Creates a new instance of the OperationsListResultPage type.

func (*OperationsListResultPage) Next

func (page *OperationsListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationsListResultPage) NextWithContext

func (page *OperationsListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (OperationsListResultPage) NotDone

func (page OperationsListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationsListResultPage) Response

Response returns the raw server response from the last page request.

func (OperationsListResultPage) Values

func (page OperationsListResultPage) Values() []Result

Values returns the slice of values for the current page or nil if there are no values.

type Properties

type Properties struct {
	// State - The registration state of the feature for the subscription.
	State *string `json:"state,omitempty"`
}

Properties information about feature.

type ProxyResource

type ProxyResource struct {
	// ID - READ-ONLY; Azure resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Azure resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Azure resource type.
	Type *string `json:"type,omitempty"`
}

ProxyResource an Azure proxy resource.

func (ProxyResource) MarshalJSON

func (pr ProxyResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProxyResource.

type Result

type Result struct {
	autorest.Response `json:"-"`
	// Name - The name of the feature.
	Name *string `json:"name,omitempty"`
	// Properties - Properties of the previewed feature.
	Properties *Properties `json:"properties,omitempty"`
	// ID - The resource ID of the feature.
	ID *string `json:"id,omitempty"`
	// Type - The resource type of the feature.
	Type *string `json:"type,omitempty"`
}

Result previewed feature information.

type SubscriptionFeatureRegistration

type SubscriptionFeatureRegistration struct {
	autorest.Response `json:"-"`
	Properties        *SubscriptionFeatureRegistrationProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Azure resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Azure resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Azure resource type.
	Type *string `json:"type,omitempty"`
}

SubscriptionFeatureRegistration subscription feature registration details

func (SubscriptionFeatureRegistration) MarshalJSON

func (sfr SubscriptionFeatureRegistration) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SubscriptionFeatureRegistration.

type SubscriptionFeatureRegistrationApprovalType

type SubscriptionFeatureRegistrationApprovalType string

SubscriptionFeatureRegistrationApprovalType enumerates the values for subscription feature registration approval type.

const (
	// SubscriptionFeatureRegistrationApprovalTypeApprovalRequired ...
	SubscriptionFeatureRegistrationApprovalTypeApprovalRequired SubscriptionFeatureRegistrationApprovalType = "ApprovalRequired"
	// SubscriptionFeatureRegistrationApprovalTypeAutoApproval ...
	SubscriptionFeatureRegistrationApprovalTypeAutoApproval SubscriptionFeatureRegistrationApprovalType = "AutoApproval"
	// SubscriptionFeatureRegistrationApprovalTypeNotSpecified ...
	SubscriptionFeatureRegistrationApprovalTypeNotSpecified SubscriptionFeatureRegistrationApprovalType = "NotSpecified"
)

func PossibleSubscriptionFeatureRegistrationApprovalTypeValues

func PossibleSubscriptionFeatureRegistrationApprovalTypeValues() []SubscriptionFeatureRegistrationApprovalType

PossibleSubscriptionFeatureRegistrationApprovalTypeValues returns an array of possible values for the SubscriptionFeatureRegistrationApprovalType const type.

type SubscriptionFeatureRegistrationList

type SubscriptionFeatureRegistrationList struct {
	autorest.Response `json:"-"`
	// NextLink - The link used to get the next page of subscription feature registrations list.
	NextLink *string `json:"nextLink,omitempty"`
	// Value - The list of subscription feature registrations.
	Value *[]SubscriptionFeatureRegistration `json:"value,omitempty"`
}

SubscriptionFeatureRegistrationList the list of subscription feature registrations.

func (SubscriptionFeatureRegistrationList) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type SubscriptionFeatureRegistrationListIterator

type SubscriptionFeatureRegistrationListIterator struct {
	// contains filtered or unexported fields
}

SubscriptionFeatureRegistrationListIterator provides access to a complete listing of SubscriptionFeatureRegistration values.

func NewSubscriptionFeatureRegistrationListIterator

func NewSubscriptionFeatureRegistrationListIterator(page SubscriptionFeatureRegistrationListPage) SubscriptionFeatureRegistrationListIterator

Creates a new instance of the SubscriptionFeatureRegistrationListIterator type.

func (*SubscriptionFeatureRegistrationListIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*SubscriptionFeatureRegistrationListIterator) NextWithContext

func (iter *SubscriptionFeatureRegistrationListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (SubscriptionFeatureRegistrationListIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (SubscriptionFeatureRegistrationListIterator) Response

Response returns the raw server response from the last page request.

func (SubscriptionFeatureRegistrationListIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type SubscriptionFeatureRegistrationListPage

type SubscriptionFeatureRegistrationListPage struct {
	// contains filtered or unexported fields
}

SubscriptionFeatureRegistrationListPage contains a page of SubscriptionFeatureRegistration values.

func NewSubscriptionFeatureRegistrationListPage

Creates a new instance of the SubscriptionFeatureRegistrationListPage type.

func (*SubscriptionFeatureRegistrationListPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*SubscriptionFeatureRegistrationListPage) NextWithContext

func (page *SubscriptionFeatureRegistrationListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (SubscriptionFeatureRegistrationListPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (SubscriptionFeatureRegistrationListPage) Response

Response returns the raw server response from the last page request.

func (SubscriptionFeatureRegistrationListPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type SubscriptionFeatureRegistrationProperties

type SubscriptionFeatureRegistrationProperties struct {
	// TenantID - READ-ONLY; The tenantId.
	TenantID *string `json:"tenantId,omitempty"`
	// SubscriptionID - READ-ONLY; The subscriptionId.
	SubscriptionID *string `json:"subscriptionId,omitempty"`
	// FeatureName - READ-ONLY; The featureName.
	FeatureName *string `json:"featureName,omitempty"`
	// DisplayName - READ-ONLY; The featureDisplayName.
	DisplayName *string `json:"displayName,omitempty"`
	// ProviderNamespace - READ-ONLY; The providerNamespace.
	ProviderNamespace *string `json:"providerNamespace,omitempty"`
	// State - The state. Possible values include: 'SubscriptionFeatureRegistrationStateNotSpecified', 'SubscriptionFeatureRegistrationStateNotRegistered', 'SubscriptionFeatureRegistrationStatePending', 'SubscriptionFeatureRegistrationStateRegistering', 'SubscriptionFeatureRegistrationStateRegistered', 'SubscriptionFeatureRegistrationStateUnregistering', 'SubscriptionFeatureRegistrationStateUnregistered'
	State                SubscriptionFeatureRegistrationState `json:"state,omitempty"`
	AuthorizationProfile *AuthorizationProfile                `json:"authorizationProfile,omitempty"`
	// Metadata - Key-value pairs for meta data.
	Metadata map[string]*string `json:"metadata"`
	// ReleaseDate - READ-ONLY; The feature release date.
	ReleaseDate *date.Time `json:"releaseDate,omitempty"`
	// RegistrationDate - READ-ONLY; The feature registration date.
	RegistrationDate *date.Time `json:"registrationDate,omitempty"`
	// DocumentationLink - READ-ONLY; The feature documentation link.
	DocumentationLink *string `json:"documentationLink,omitempty"`
	// ApprovalType - READ-ONLY; The feature approval type. Possible values include: 'SubscriptionFeatureRegistrationApprovalTypeNotSpecified', 'SubscriptionFeatureRegistrationApprovalTypeApprovalRequired', 'SubscriptionFeatureRegistrationApprovalTypeAutoApproval'
	ApprovalType SubscriptionFeatureRegistrationApprovalType `json:"approvalType,omitempty"`
	// ShouldFeatureDisplayInPortal - Indicates whether feature should be displayed in Portal.
	ShouldFeatureDisplayInPortal *bool `json:"shouldFeatureDisplayInPortal,omitempty"`
	// Description - The feature description.
	Description *string `json:"description,omitempty"`
}

SubscriptionFeatureRegistrationProperties ...

func (SubscriptionFeatureRegistrationProperties) MarshalJSON

func (sfr SubscriptionFeatureRegistrationProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SubscriptionFeatureRegistrationProperties.

type SubscriptionFeatureRegistrationState

type SubscriptionFeatureRegistrationState string

SubscriptionFeatureRegistrationState enumerates the values for subscription feature registration state.

const (
	// SubscriptionFeatureRegistrationStateNotRegistered ...
	SubscriptionFeatureRegistrationStateNotRegistered SubscriptionFeatureRegistrationState = "NotRegistered"
	// SubscriptionFeatureRegistrationStateNotSpecified ...
	SubscriptionFeatureRegistrationStateNotSpecified SubscriptionFeatureRegistrationState = "NotSpecified"
	// SubscriptionFeatureRegistrationStatePending ...
	SubscriptionFeatureRegistrationStatePending SubscriptionFeatureRegistrationState = "Pending"
	// SubscriptionFeatureRegistrationStateRegistered ...
	SubscriptionFeatureRegistrationStateRegistered SubscriptionFeatureRegistrationState = "Registered"
	// SubscriptionFeatureRegistrationStateRegistering ...
	SubscriptionFeatureRegistrationStateRegistering SubscriptionFeatureRegistrationState = "Registering"
	// SubscriptionFeatureRegistrationStateUnregistered ...
	SubscriptionFeatureRegistrationStateUnregistered SubscriptionFeatureRegistrationState = "Unregistered"
	// SubscriptionFeatureRegistrationStateUnregistering ...
	SubscriptionFeatureRegistrationStateUnregistering SubscriptionFeatureRegistrationState = "Unregistering"
)

func PossibleSubscriptionFeatureRegistrationStateValues

func PossibleSubscriptionFeatureRegistrationStateValues() []SubscriptionFeatureRegistrationState

PossibleSubscriptionFeatureRegistrationStateValues returns an array of possible values for the SubscriptionFeatureRegistrationState const type.

type SubscriptionFeatureRegistrationsClient

type SubscriptionFeatureRegistrationsClient struct {
	BaseClient
}

SubscriptionFeatureRegistrationsClient is the client for the SubscriptionFeatureRegistrations methods of the Features service.

func NewSubscriptionFeatureRegistrationsClient

func NewSubscriptionFeatureRegistrationsClient(subscriptionID string) SubscriptionFeatureRegistrationsClient

NewSubscriptionFeatureRegistrationsClient creates an instance of the SubscriptionFeatureRegistrationsClient client.

func NewSubscriptionFeatureRegistrationsClientWithBaseURI

func NewSubscriptionFeatureRegistrationsClientWithBaseURI(baseURI string, subscriptionID string) SubscriptionFeatureRegistrationsClient

NewSubscriptionFeatureRegistrationsClientWithBaseURI creates an instance of the SubscriptionFeatureRegistrationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (SubscriptionFeatureRegistrationsClient) CreateOrUpdate

func (client SubscriptionFeatureRegistrationsClient) CreateOrUpdate(ctx context.Context, providerNamespace string, featureName string, subscriptionFeatureRegistrationType *SubscriptionFeatureRegistration) (result SubscriptionFeatureRegistration, err error)

CreateOrUpdate create or update a feature registration. Parameters: providerNamespace - the provider namespace. featureName - the feature name. subscriptionFeatureRegistrationType - subscription Feature Registration Type details.

func (SubscriptionFeatureRegistrationsClient) CreateOrUpdatePreparer

func (client SubscriptionFeatureRegistrationsClient) CreateOrUpdatePreparer(ctx context.Context, providerNamespace string, featureName string, subscriptionFeatureRegistrationType *SubscriptionFeatureRegistration) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (SubscriptionFeatureRegistrationsClient) CreateOrUpdateResponder

func (client SubscriptionFeatureRegistrationsClient) CreateOrUpdateResponder(resp *http.Response) (result SubscriptionFeatureRegistration, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (SubscriptionFeatureRegistrationsClient) CreateOrUpdateSender

func (client SubscriptionFeatureRegistrationsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (SubscriptionFeatureRegistrationsClient) Delete

func (client SubscriptionFeatureRegistrationsClient) Delete(ctx context.Context, providerNamespace string, featureName string) (result autorest.Response, err error)

Delete deletes a feature registration Parameters: providerNamespace - the provider namespace. featureName - the feature name.

func (SubscriptionFeatureRegistrationsClient) DeletePreparer

func (client SubscriptionFeatureRegistrationsClient) DeletePreparer(ctx context.Context, providerNamespace string, featureName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (SubscriptionFeatureRegistrationsClient) DeleteResponder

func (client SubscriptionFeatureRegistrationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (SubscriptionFeatureRegistrationsClient) DeleteSender

func (client SubscriptionFeatureRegistrationsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (SubscriptionFeatureRegistrationsClient) Get

func (client SubscriptionFeatureRegistrationsClient) Get(ctx context.Context, providerNamespace string, featureName string) (result SubscriptionFeatureRegistration, err error)

Get returns a feature registration Parameters: providerNamespace - the provider namespace. featureName - the feature name.

func (SubscriptionFeatureRegistrationsClient) GetPreparer

func (client SubscriptionFeatureRegistrationsClient) GetPreparer(ctx context.Context, providerNamespace string, featureName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (SubscriptionFeatureRegistrationsClient) GetResponder

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (SubscriptionFeatureRegistrationsClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (SubscriptionFeatureRegistrationsClient) ListAllBySubscription

ListAllBySubscription returns subscription feature registrations for given subscription.

func (SubscriptionFeatureRegistrationsClient) ListAllBySubscriptionComplete

func (client SubscriptionFeatureRegistrationsClient) ListAllBySubscriptionComplete(ctx context.Context) (result SubscriptionFeatureRegistrationListIterator, err error)

ListAllBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.

func (SubscriptionFeatureRegistrationsClient) ListAllBySubscriptionPreparer

func (client SubscriptionFeatureRegistrationsClient) ListAllBySubscriptionPreparer(ctx context.Context) (*http.Request, error)

ListAllBySubscriptionPreparer prepares the ListAllBySubscription request.

func (SubscriptionFeatureRegistrationsClient) ListAllBySubscriptionResponder

func (client SubscriptionFeatureRegistrationsClient) ListAllBySubscriptionResponder(resp *http.Response) (result SubscriptionFeatureRegistrationList, err error)

ListAllBySubscriptionResponder handles the response to the ListAllBySubscription request. The method always closes the http.Response Body.

func (SubscriptionFeatureRegistrationsClient) ListAllBySubscriptionSender

func (client SubscriptionFeatureRegistrationsClient) ListAllBySubscriptionSender(req *http.Request) (*http.Response, error)

ListAllBySubscriptionSender sends the ListAllBySubscription request. The method will close the http.Response Body if it receives an error.

func (SubscriptionFeatureRegistrationsClient) ListBySubscription

func (client SubscriptionFeatureRegistrationsClient) ListBySubscription(ctx context.Context, providerNamespace string) (result SubscriptionFeatureRegistrationListPage, err error)

ListBySubscription returns subscription feature registrations for given subscription and provider namespace. Parameters: providerNamespace - the provider namespace.

func (SubscriptionFeatureRegistrationsClient) ListBySubscriptionComplete

func (client SubscriptionFeatureRegistrationsClient) ListBySubscriptionComplete(ctx context.Context, providerNamespace string) (result SubscriptionFeatureRegistrationListIterator, err error)

ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.

func (SubscriptionFeatureRegistrationsClient) ListBySubscriptionPreparer

func (client SubscriptionFeatureRegistrationsClient) ListBySubscriptionPreparer(ctx context.Context, providerNamespace string) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (SubscriptionFeatureRegistrationsClient) ListBySubscriptionResponder

func (client SubscriptionFeatureRegistrationsClient) ListBySubscriptionResponder(resp *http.Response) (result SubscriptionFeatureRegistrationList, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (SubscriptionFeatureRegistrationsClient) ListBySubscriptionSender

func (client SubscriptionFeatureRegistrationsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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