armfeatures

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 14 Imported by: 3

README

Azure Features Module for Go

PkgGoDev

The armfeatures module provides operations for working with Azure Features.

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Go 1.18 or above (You could download and install the latest version of Go from here. It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this doc.)

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Features module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatures

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Features. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Client Factory

Azure Features module consists of one or more clients. We provide a client factory which could be used to create any client in this module.

clientFactory, err := armfeatures.NewClientFactory(<subscription ID>, cred, nil)

You can use ClientOptions in package github.com/Azure/azure-sdk-for-go/sdk/azcore/arm to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for azcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore.

options := arm.ClientOptions {
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
clientFactory, err := armfeatures.NewClientFactory(<subscription ID>, cred, &options)

Clients

A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory.

client := clientFactory.NewClient()

Fakes

The fake package contains types used for constructing in-memory fake servers used in unit tests. This allows writing tests to cover various success/error conditions without the need for connecting to a live service.

Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes.

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Features label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationProfile

type AuthorizationProfile struct {
	// READ-ONLY; The approved time
	ApprovedTime *time.Time

	// READ-ONLY; The approver
	Approver *string

	// READ-ONLY; The requested time
	RequestedTime *time.Time

	// READ-ONLY; The requester
	Requester *string

	// READ-ONLY; The requester object id
	RequesterObjectID *string
}

AuthorizationProfile - Authorization Profile

func (AuthorizationProfile) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type AuthorizationProfile.

func (*AuthorizationProfile) UnmarshalJSON

func (a *AuthorizationProfile) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AuthorizationProfile.

type Client added in v0.2.0

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

Client contains the methods for the Features group. Don't use this type directly, use NewClient() instead.

func NewClient added in v0.2.0

func NewClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*Client, error)

NewClient creates a new instance of Client with the specified values.

  • subscriptionID - The Azure subscription ID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*Client) Get added in v0.2.0

func (client *Client) Get(ctx context.Context, resourceProviderNamespace string, featureName string, options *ClientGetOptions) (ClientGetResponse, error)

Get - Gets the preview feature with the specified name. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-07-01

  • resourceProviderNamespace - The resource provider namespace for the feature.
  • featureName - The name of the feature to get.
  • options - ClientGetOptions contains the optional parameters for the Client.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/getFeature.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatures"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armfeatures.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewClient().Get(ctx, "Resource Provider Namespace", "feature", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FeatureResult = armfeatures.FeatureResult{
	// 	Name: to.Ptr("Feature1"),
	// 	Type: to.Ptr("type1"),
	// 	ID: to.Ptr("feature_id1"),
	// 	Properties: &armfeatures.FeatureProperties{
	// 		State: to.Ptr("registered"),
	// 	},
	// }
}
Output:

func (*Client) NewListAllPager added in v0.4.0

func (client *Client) NewListAllPager(options *ClientListAllOptions) *runtime.Pager[ClientListAllResponse]

NewListAllPager - Gets all the preview features that are available through AFEC for the subscription.

Generated from API version 2021-07-01

  • options - ClientListAllOptions contains the optional parameters for the Client.NewListAllPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/listSubscriptionFeatures.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatures"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armfeatures.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewClient().NewListAllPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.FeatureOperationsListResult = armfeatures.FeatureOperationsListResult{
		// 	Value: []*armfeatures.FeatureResult{
		// 		{
		// 			Name: to.Ptr("Feature1"),
		// 			Type: to.Ptr("type1"),
		// 			ID: to.Ptr("feature_id1"),
		// 			Properties: &armfeatures.FeatureProperties{
		// 				State: to.Ptr("registered"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Feature2"),
		// 			Type: to.Ptr("type2"),
		// 			ID: to.Ptr("feature_id2"),
		// 			Properties: &armfeatures.FeatureProperties{
		// 				State: to.Ptr("unregistered"),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*Client) NewListPager added in v0.4.0

func (client *Client) NewListPager(resourceProviderNamespace string, options *ClientListOptions) *runtime.Pager[ClientListResponse]

NewListPager - Gets all the preview features in a provider namespace that are available through AFEC for the subscription.

Generated from API version 2021-07-01

  • resourceProviderNamespace - The namespace of the resource provider for getting features.
  • options - ClientListOptions contains the optional parameters for the Client.NewListPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/listProviderFeatures.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatures"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armfeatures.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewClient().NewListPager("Resource Provider Namespace", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.FeatureOperationsListResult = armfeatures.FeatureOperationsListResult{
		// 	Value: []*armfeatures.FeatureResult{
		// 		{
		// 			Name: to.Ptr("Feature1"),
		// 			Type: to.Ptr("type1"),
		// 			ID: to.Ptr("feature_id1"),
		// 			Properties: &armfeatures.FeatureProperties{
		// 				State: to.Ptr("registered"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Feature2"),
		// 			Type: to.Ptr("type2"),
		// 			ID: to.Ptr("feature_id2"),
		// 			Properties: &armfeatures.FeatureProperties{
		// 				State: to.Ptr("unregistered"),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*Client) Register added in v0.2.0

func (client *Client) Register(ctx context.Context, resourceProviderNamespace string, featureName string, options *ClientRegisterOptions) (ClientRegisterResponse, error)

Register - Registers the preview feature for the subscription. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-07-01

  • resourceProviderNamespace - The namespace of the resource provider.
  • featureName - The name of the feature to register.
  • options - ClientRegisterOptions contains the optional parameters for the Client.Register method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/registerFeature.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatures"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armfeatures.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewClient().Register(ctx, "Resource Provider Namespace", "feature", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FeatureResult = armfeatures.FeatureResult{
	// 	Name: to.Ptr("Feature1"),
	// 	Type: to.Ptr("type1"),
	// 	ID: to.Ptr("feature_id1"),
	// 	Properties: &armfeatures.FeatureProperties{
	// 		State: to.Ptr("registered"),
	// 	},
	// }
}
Output:

func (*Client) Unregister added in v0.2.0

func (client *Client) Unregister(ctx context.Context, resourceProviderNamespace string, featureName string, options *ClientUnregisterOptions) (ClientUnregisterResponse, error)

Unregister - Unregisters the preview feature for the subscription. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-07-01

  • resourceProviderNamespace - The namespace of the resource provider.
  • featureName - The name of the feature to unregister.
  • options - ClientUnregisterOptions contains the optional parameters for the Client.Unregister method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/unregisterFeature.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatures"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armfeatures.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewClient().Unregister(ctx, "Resource Provider Namespace", "feature", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FeatureResult = armfeatures.FeatureResult{
	// 	Name: to.Ptr("Feature1"),
	// 	Type: to.Ptr("Microsoft.Features/providers/features"),
	// 	ID: to.Ptr("/subscriptions/ff23096b-f5a2-46ea-bd62-59c3e93fef9a/providers/Microsoft.Features/providers/Microsoft.Test/features/Feature1"),
	// 	Properties: &armfeatures.FeatureProperties{
	// 		State: to.Ptr("unregistered"),
	// 	},
	// }
}
Output:

type ClientFactory added in v1.1.0

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

ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.

func NewClientFactory added in v1.1.0

func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)

NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.

  • subscriptionID - The Azure subscription ID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*ClientFactory) NewClient added in v1.1.0

func (c *ClientFactory) NewClient() *Client

NewClient creates a new instance of Client.

func (*ClientFactory) NewFeatureClient added in v1.1.0

func (c *ClientFactory) NewFeatureClient() *FeatureClient

NewFeatureClient creates a new instance of FeatureClient.

func (*ClientFactory) NewSubscriptionFeatureRegistrationsClient added in v1.1.0

func (c *ClientFactory) NewSubscriptionFeatureRegistrationsClient() *SubscriptionFeatureRegistrationsClient

NewSubscriptionFeatureRegistrationsClient creates a new instance of SubscriptionFeatureRegistrationsClient.

type ClientGetOptions added in v0.2.0

type ClientGetOptions struct {
}

ClientGetOptions contains the optional parameters for the Client.Get method.

type ClientGetResponse added in v0.2.0

type ClientGetResponse struct {
	// Previewed feature information.
	FeatureResult
}

ClientGetResponse contains the response from method Client.Get.

type ClientListAllOptions added in v0.2.0

type ClientListAllOptions struct {
}

ClientListAllOptions contains the optional parameters for the Client.NewListAllPager method.

type ClientListAllResponse added in v0.2.0

type ClientListAllResponse struct {
	// List of previewed features.
	FeatureOperationsListResult
}

ClientListAllResponse contains the response from method Client.NewListAllPager.

type ClientListOptions added in v0.2.0

type ClientListOptions struct {
}

ClientListOptions contains the optional parameters for the Client.NewListPager method.

type ClientListResponse added in v0.2.0

type ClientListResponse struct {
	// List of previewed features.
	FeatureOperationsListResult
}

ClientListResponse contains the response from method Client.NewListPager.

type ClientRegisterOptions added in v0.2.0

type ClientRegisterOptions struct {
}

ClientRegisterOptions contains the optional parameters for the Client.Register method.

type ClientRegisterResponse added in v0.2.0

type ClientRegisterResponse struct {
	// Previewed feature information.
	FeatureResult
}

ClientRegisterResponse contains the response from method Client.Register.

type ClientUnregisterOptions added in v0.2.0

type ClientUnregisterOptions struct {
}

ClientUnregisterOptions contains the optional parameters for the Client.Unregister method.

type ClientUnregisterResponse added in v0.2.0

type ClientUnregisterResponse struct {
	// Previewed feature information.
	FeatureResult
}

ClientUnregisterResponse contains the response from method Client.Unregister.

type ErrorDefinition

type ErrorDefinition struct {
	// Internal error details.
	Details []*ErrorDefinition

	// READ-ONLY; Service specific error code which serves as the substatus for the HTTP error code.
	Code *string

	// READ-ONLY; Description of the error.
	Message *string
}

ErrorDefinition - Error definition.

func (ErrorDefinition) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ErrorDefinition.

func (*ErrorDefinition) UnmarshalJSON added in v1.1.0

func (e *ErrorDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorDefinition.

type ErrorResponse

type ErrorResponse struct {
	// The error details.
	Error *ErrorDefinition
}

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

func (ErrorResponse) MarshalJSON added in v1.1.0

func (e ErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ErrorResponse.

func (*ErrorResponse) UnmarshalJSON added in v1.1.0

func (e *ErrorResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse.

type FeatureClient

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

FeatureClient contains the methods for the FeatureClient group. Don't use this type directly, use NewFeatureClient() instead.

func NewFeatureClient

func NewFeatureClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*FeatureClient, error)

NewFeatureClient creates a new instance of FeatureClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*FeatureClient) NewListOperationsPager added in v0.4.0

NewListOperationsPager - Lists all of the available Microsoft.Features REST API operations.

Generated from API version 2021-07-01

  • options - FeatureClientListOperationsOptions contains the optional parameters for the FeatureClient.NewListOperationsPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/listFeaturesOperations.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatures"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armfeatures.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewFeatureClient().NewListOperationsPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.OperationListResult = armfeatures.OperationListResult{
		// 	Value: []*armfeatures.Operation{
		// 		{
		// 			Name: to.Ptr("FeaturesOpeartion1"),
		// 			Display: &armfeatures.OperationDisplay{
		// 				Operation: to.Ptr("Read"),
		// 				Provider: to.Ptr("Microsoft.ResourceProvider"),
		// 				Resource: to.Ptr("Resource1"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("FeaturesOpeartion2"),
		// 			Display: &armfeatures.OperationDisplay{
		// 				Operation: to.Ptr("Write"),
		// 				Provider: to.Ptr("Microsoft.ResourceProvider"),
		// 				Resource: to.Ptr("Resource2"),
		// 			},
		// 	}},
		// }
	}
}
Output:

type FeatureClientListOperationsOptions

type FeatureClientListOperationsOptions struct {
}

FeatureClientListOperationsOptions contains the optional parameters for the FeatureClient.NewListOperationsPager method.

type FeatureClientListOperationsResponse

type FeatureClientListOperationsResponse struct {
	// 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.
	OperationListResult
}

FeatureClientListOperationsResponse contains the response from method FeatureClient.NewListOperationsPager.

type FeatureOperationsListResult

type FeatureOperationsListResult struct {
	// The URL to use for getting the next set of results.
	NextLink *string

	// The array of features.
	Value []*FeatureResult
}

FeatureOperationsListResult - List of previewed features.

func (FeatureOperationsListResult) MarshalJSON

func (f FeatureOperationsListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FeatureOperationsListResult.

func (*FeatureOperationsListResult) UnmarshalJSON added in v1.1.0

func (f *FeatureOperationsListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FeatureOperationsListResult.

type FeatureProperties

type FeatureProperties struct {
	// The registration state of the feature for the subscription.
	State *string
}

FeatureProperties - Information about feature.

func (FeatureProperties) MarshalJSON added in v1.1.0

func (f FeatureProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FeatureProperties.

func (*FeatureProperties) UnmarshalJSON added in v1.1.0

func (f *FeatureProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FeatureProperties.

type FeatureResult

type FeatureResult struct {
	// The resource ID of the feature.
	ID *string

	// The name of the feature.
	Name *string

	// Properties of the previewed feature.
	Properties *FeatureProperties

	// The resource type of the feature.
	Type *string
}

FeatureResult - Previewed feature information.

func (FeatureResult) MarshalJSON added in v1.1.0

func (f FeatureResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FeatureResult.

func (*FeatureResult) UnmarshalJSON added in v1.1.0

func (f *FeatureResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FeatureResult.

type Operation

type Operation struct {
	// The object that represents the operation.
	Display *OperationDisplay

	// Operation name: {provider}/{resource}/{operation}
	Name *string
}

Operation - Microsoft.Features operation

func (Operation) MarshalJSON added in v1.1.0

func (o Operation) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Operation.

func (*Operation) UnmarshalJSON added in v1.1.0

func (o *Operation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Operation.

type OperationDisplay

type OperationDisplay struct {
	// Operation type: Read, write, delete, etc.
	Operation *string

	// Service provider: Microsoft.Features
	Provider *string

	// Resource on which the operation is performed: Profile, endpoint, etc.
	Resource *string
}

OperationDisplay - The object that represents the operation.

func (OperationDisplay) MarshalJSON added in v1.1.0

func (o OperationDisplay) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationDisplay.

func (*OperationDisplay) UnmarshalJSON added in v1.1.0

func (o *OperationDisplay) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.

type OperationListResult

type OperationListResult struct {
	// URL to get the next set of operation list results if there are any.
	NextLink *string

	// List of Microsoft.Features operations.
	Value []*Operation
}

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) MarshalJSON

func (o OperationListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationListResult.

func (*OperationListResult) UnmarshalJSON added in v1.1.0

func (o *OperationListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.

type ProxyResource

type ProxyResource struct {
	// READ-ONLY; Azure resource Id.
	ID *string

	// READ-ONLY; Azure resource name.
	Name *string

	// READ-ONLY; Azure resource type.
	Type *string
}

ProxyResource - An Azure proxy resource.

func (ProxyResource) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ProxyResource.

func (*ProxyResource) UnmarshalJSON added in v1.1.0

func (p *ProxyResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProxyResource.

type SubscriptionFeatureRegistration

type SubscriptionFeatureRegistration struct {
	Properties *SubscriptionFeatureRegistrationProperties

	// READ-ONLY; Azure resource Id.
	ID *string

	// READ-ONLY; Azure resource name.
	Name *string

	// READ-ONLY; Azure resource type.
	Type *string
}

SubscriptionFeatureRegistration - Subscription feature registration details

func (SubscriptionFeatureRegistration) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type SubscriptionFeatureRegistration.

func (*SubscriptionFeatureRegistration) UnmarshalJSON added in v1.1.0

func (s *SubscriptionFeatureRegistration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SubscriptionFeatureRegistration.

type SubscriptionFeatureRegistrationApprovalType

type SubscriptionFeatureRegistrationApprovalType string

SubscriptionFeatureRegistrationApprovalType - The feature approval type.

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

func PossibleSubscriptionFeatureRegistrationApprovalTypeValues

func PossibleSubscriptionFeatureRegistrationApprovalTypeValues() []SubscriptionFeatureRegistrationApprovalType

PossibleSubscriptionFeatureRegistrationApprovalTypeValues returns the possible values for the SubscriptionFeatureRegistrationApprovalType const type.

type SubscriptionFeatureRegistrationList

type SubscriptionFeatureRegistrationList struct {
	// The link used to get the next page of subscription feature registrations list.
	NextLink *string

	// The list of subscription feature registrations.
	Value []*SubscriptionFeatureRegistration
}

SubscriptionFeatureRegistrationList - The list of subscription feature registrations.

func (SubscriptionFeatureRegistrationList) MarshalJSON

func (s SubscriptionFeatureRegistrationList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SubscriptionFeatureRegistrationList.

func (*SubscriptionFeatureRegistrationList) UnmarshalJSON added in v1.1.0

func (s *SubscriptionFeatureRegistrationList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SubscriptionFeatureRegistrationList.

type SubscriptionFeatureRegistrationProperties

type SubscriptionFeatureRegistrationProperties struct {
	// Authorization Profile
	AuthorizationProfile *AuthorizationProfile

	// The feature description.
	Description *string

	// Key-value pairs for meta data.
	Metadata map[string]*string

	// Indicates whether feature should be displayed in Portal.
	ShouldFeatureDisplayInPortal *bool

	// The state.
	State *SubscriptionFeatureRegistrationState

	// READ-ONLY; The feature approval type.
	ApprovalType *SubscriptionFeatureRegistrationApprovalType

	// READ-ONLY; The featureDisplayName.
	DisplayName *string

	// READ-ONLY; The feature documentation link.
	DocumentationLink *string

	// READ-ONLY; The featureName.
	FeatureName *string

	// READ-ONLY; The providerNamespace.
	ProviderNamespace *string

	// READ-ONLY; The feature registration date.
	RegistrationDate *time.Time

	// READ-ONLY; The feature release date.
	ReleaseDate *time.Time

	// READ-ONLY; The subscriptionId.
	SubscriptionID *string

	// READ-ONLY; The tenantId.
	TenantID *string
}

func (SubscriptionFeatureRegistrationProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type SubscriptionFeatureRegistrationProperties.

func (*SubscriptionFeatureRegistrationProperties) UnmarshalJSON

func (s *SubscriptionFeatureRegistrationProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SubscriptionFeatureRegistrationProperties.

type SubscriptionFeatureRegistrationState

type SubscriptionFeatureRegistrationState string

SubscriptionFeatureRegistrationState - The state.

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

func PossibleSubscriptionFeatureRegistrationStateValues

func PossibleSubscriptionFeatureRegistrationStateValues() []SubscriptionFeatureRegistrationState

PossibleSubscriptionFeatureRegistrationStateValues returns the possible values for the SubscriptionFeatureRegistrationState const type.

type SubscriptionFeatureRegistrationsClient

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

SubscriptionFeatureRegistrationsClient contains the methods for the SubscriptionFeatureRegistrations group. Don't use this type directly, use NewSubscriptionFeatureRegistrationsClient() instead.

func NewSubscriptionFeatureRegistrationsClient

func NewSubscriptionFeatureRegistrationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SubscriptionFeatureRegistrationsClient, error)

NewSubscriptionFeatureRegistrationsClient creates a new instance of SubscriptionFeatureRegistrationsClient with the specified values.

  • subscriptionID - The Azure subscription ID.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*SubscriptionFeatureRegistrationsClient) CreateOrUpdate

CreateOrUpdate - Create or update a feature registration. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-07-01

  • providerNamespace - The provider namespace.
  • featureName - The feature name.
  • options - SubscriptionFeatureRegistrationsClientCreateOrUpdateOptions contains the optional parameters for the SubscriptionFeatureRegistrationsClient.CreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/FeatureRegistration/SubscriptionFeatureRegistrationPUT.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatures"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armfeatures.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSubscriptionFeatureRegistrationsClient().CreateOrUpdate(ctx, "subscriptionFeatureRegistrationGroupTestRG", "testFeature", &armfeatures.SubscriptionFeatureRegistrationsClientCreateOrUpdateOptions{SubscriptionFeatureRegistrationType: &armfeatures.SubscriptionFeatureRegistration{
		Properties: &armfeatures.SubscriptionFeatureRegistrationProperties{},
	},
	})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.SubscriptionFeatureRegistration = armfeatures.SubscriptionFeatureRegistration{
	// 	Name: to.Ptr("testFeature"),
	// 	Type: to.Ptr("Microsoft.Features/featureProviders/subscriptionFeatureRegistrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Features/featureProviders/Microsoft.TestRP/subscriptionFeatureRegistrations/testFeature"),
	// 	Properties: &armfeatures.SubscriptionFeatureRegistrationProperties{
	// 		ApprovalType: to.Ptr(armfeatures.SubscriptionFeatureRegistrationApprovalTypeApprovalRequired),
	// 		AuthorizationProfile: &armfeatures.AuthorizationProfile{
	// 		},
	// 		FeatureName: to.Ptr("testFeature"),
	// 		ProviderNamespace: to.Ptr("Microsoft.TestRP"),
	// 		RegistrationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-26T01:57:51.734Z"); return t}()),
	// 		ReleaseDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-11-05T00:34:53.124Z"); return t}()),
	// 		State: to.Ptr(armfeatures.SubscriptionFeatureRegistrationStatePending),
	// 		SubscriptionID: to.Ptr("00000000-1111-2222-3333-444444444444"),
	// 	},
	// }
}
Output:

func (*SubscriptionFeatureRegistrationsClient) Delete

Delete - Deletes a feature registration If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-07-01

  • providerNamespace - The provider namespace.
  • featureName - The feature name.
  • options - SubscriptionFeatureRegistrationsClientDeleteOptions contains the optional parameters for the SubscriptionFeatureRegistrationsClient.Delete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/FeatureRegistration/SubscriptionFeatureRegistrationDELETE.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatures"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armfeatures.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewSubscriptionFeatureRegistrationsClient().Delete(ctx, "subscriptionFeatureRegistrationGroupTestRG", "testFeature", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

func (*SubscriptionFeatureRegistrationsClient) Get

Get - Returns a feature registration If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-07-01

  • providerNamespace - The provider namespace.
  • featureName - The feature name.
  • options - SubscriptionFeatureRegistrationsClientGetOptions contains the optional parameters for the SubscriptionFeatureRegistrationsClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/FeatureRegistration/SubscriptionFeatureRegistrationGET.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatures"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armfeatures.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSubscriptionFeatureRegistrationsClient().Get(ctx, "subscriptionFeatureRegistrationGroupTestRG", "testFeature", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.SubscriptionFeatureRegistration = armfeatures.SubscriptionFeatureRegistration{
	// 	Name: to.Ptr("testFeature"),
	// 	Type: to.Ptr("Microsoft.Features/featureProviders/subscriptionFeatureRegistrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Features/featureProviders/Microsoft.TestRP/subscriptionFeatureRegistrations/testFeature"),
	// 	Properties: &armfeatures.SubscriptionFeatureRegistrationProperties{
	// 		ApprovalType: to.Ptr(armfeatures.SubscriptionFeatureRegistrationApprovalTypeApprovalRequired),
	// 		AuthorizationProfile: &armfeatures.AuthorizationProfile{
	// 		},
	// 		FeatureName: to.Ptr("testFeature"),
	// 		ProviderNamespace: to.Ptr("Microsoft.TestRP"),
	// 		RegistrationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-26T01:57:51.734Z"); return t}()),
	// 		ReleaseDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-11-05T00:34:53.124Z"); return t}()),
	// 		State: to.Ptr(armfeatures.SubscriptionFeatureRegistrationStatePending),
	// 		SubscriptionID: to.Ptr("00000000-1111-2222-3333-444444444444"),
	// 	},
	// }
}
Output:

func (*SubscriptionFeatureRegistrationsClient) NewListAllBySubscriptionPager added in v0.4.0

NewListAllBySubscriptionPager - Returns subscription feature registrations for given subscription.

Generated from API version 2021-07-01

  • options - SubscriptionFeatureRegistrationsClientListAllBySubscriptionOptions contains the optional parameters for the SubscriptionFeatureRegistrationsClient.NewListAllBySubscriptionPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/FeatureRegistration/SubscriptionFeatureRegistrationLISTALL.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatures"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armfeatures.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSubscriptionFeatureRegistrationsClient().NewListAllBySubscriptionPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.SubscriptionFeatureRegistrationList = armfeatures.SubscriptionFeatureRegistrationList{
		// 	Value: []*armfeatures.SubscriptionFeatureRegistration{
		// 		{
		// 			Name: to.Ptr("testFeature"),
		// 			Type: to.Ptr("Microsoft.Features/featureProviders/subscriptionFeatureRegistrations"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Features/featureProviders/Microsoft.TestRP/subscriptionFeatureRegistrations/testFeature"),
		// 			Properties: &armfeatures.SubscriptionFeatureRegistrationProperties{
		// 				ApprovalType: to.Ptr(armfeatures.SubscriptionFeatureRegistrationApprovalTypeApprovalRequired),
		// 				AuthorizationProfile: &armfeatures.AuthorizationProfile{
		// 				},
		// 				FeatureName: to.Ptr("testFeature"),
		// 				ProviderNamespace: to.Ptr("Microsoft.TestRP"),
		// 				RegistrationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-26T01:57:51.734Z"); return t}()),
		// 				ReleaseDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-11-05T00:34:53.124Z"); return t}()),
		// 				State: to.Ptr(armfeatures.SubscriptionFeatureRegistrationStatePending),
		// 				SubscriptionID: to.Ptr("00000000-1111-2222-3333-444444444444"),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*SubscriptionFeatureRegistrationsClient) NewListBySubscriptionPager added in v0.4.0

NewListBySubscriptionPager - Returns subscription feature registrations for given subscription and provider namespace.

Generated from API version 2021-07-01

  • providerNamespace - The provider namespace.
  • options - SubscriptionFeatureRegistrationsClientListBySubscriptionOptions contains the optional parameters for the SubscriptionFeatureRegistrationsClient.NewListBySubscriptionPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/examples/FeatureRegistration/SubscriptionFeatureRegistrationLIST.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatures"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armfeatures.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSubscriptionFeatureRegistrationsClient().NewListBySubscriptionPager("subscriptionFeatureRegistrationGroupTestRG", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.SubscriptionFeatureRegistrationList = armfeatures.SubscriptionFeatureRegistrationList{
		// 	Value: []*armfeatures.SubscriptionFeatureRegistration{
		// 		{
		// 			Name: to.Ptr("testFeature"),
		// 			Type: to.Ptr("Microsoft.Features/featureProviders/subscriptionFeatureRegistrations"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Features/featureProviders/Microsoft.TestRP/subscriptionFeatureRegistrations/testFeature"),
		// 			Properties: &armfeatures.SubscriptionFeatureRegistrationProperties{
		// 				ApprovalType: to.Ptr(armfeatures.SubscriptionFeatureRegistrationApprovalTypeApprovalRequired),
		// 				AuthorizationProfile: &armfeatures.AuthorizationProfile{
		// 				},
		// 				FeatureName: to.Ptr("testFeature"),
		// 				ProviderNamespace: to.Ptr("Microsoft.TestRP"),
		// 				RegistrationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-26T01:57:51.734Z"); return t}()),
		// 				ReleaseDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-11-05T00:34:53.124Z"); return t}()),
		// 				State: to.Ptr(armfeatures.SubscriptionFeatureRegistrationStatePending),
		// 				SubscriptionID: to.Ptr("00000000-1111-2222-3333-444444444444"),
		// 			},
		// 	}},
		// }
	}
}
Output:

type SubscriptionFeatureRegistrationsClientCreateOrUpdateOptions added in v0.2.0

type SubscriptionFeatureRegistrationsClientCreateOrUpdateOptions struct {
	// Subscription Feature Registration Type details.
	SubscriptionFeatureRegistrationType *SubscriptionFeatureRegistration
}

SubscriptionFeatureRegistrationsClientCreateOrUpdateOptions contains the optional parameters for the SubscriptionFeatureRegistrationsClient.CreateOrUpdate method.

type SubscriptionFeatureRegistrationsClientCreateOrUpdateResponse added in v0.2.0

type SubscriptionFeatureRegistrationsClientCreateOrUpdateResponse struct {
	// Subscription feature registration details
	SubscriptionFeatureRegistration
}

SubscriptionFeatureRegistrationsClientCreateOrUpdateResponse contains the response from method SubscriptionFeatureRegistrationsClient.CreateOrUpdate.

type SubscriptionFeatureRegistrationsClientDeleteOptions added in v0.2.0

type SubscriptionFeatureRegistrationsClientDeleteOptions struct {
}

SubscriptionFeatureRegistrationsClientDeleteOptions contains the optional parameters for the SubscriptionFeatureRegistrationsClient.Delete method.

type SubscriptionFeatureRegistrationsClientDeleteResponse added in v0.2.0

type SubscriptionFeatureRegistrationsClientDeleteResponse struct {
}

SubscriptionFeatureRegistrationsClientDeleteResponse contains the response from method SubscriptionFeatureRegistrationsClient.Delete.

type SubscriptionFeatureRegistrationsClientGetOptions added in v0.2.0

type SubscriptionFeatureRegistrationsClientGetOptions struct {
}

SubscriptionFeatureRegistrationsClientGetOptions contains the optional parameters for the SubscriptionFeatureRegistrationsClient.Get method.

type SubscriptionFeatureRegistrationsClientGetResponse added in v0.2.0

type SubscriptionFeatureRegistrationsClientGetResponse struct {
	// Subscription feature registration details
	SubscriptionFeatureRegistration
}

SubscriptionFeatureRegistrationsClientGetResponse contains the response from method SubscriptionFeatureRegistrationsClient.Get.

type SubscriptionFeatureRegistrationsClientListAllBySubscriptionOptions added in v0.2.0

type SubscriptionFeatureRegistrationsClientListAllBySubscriptionOptions struct {
}

SubscriptionFeatureRegistrationsClientListAllBySubscriptionOptions contains the optional parameters for the SubscriptionFeatureRegistrationsClient.NewListAllBySubscriptionPager method.

type SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse added in v0.2.0

type SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse struct {
	// The list of subscription feature registrations.
	SubscriptionFeatureRegistrationList
}

SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse contains the response from method SubscriptionFeatureRegistrationsClient.NewListAllBySubscriptionPager.

type SubscriptionFeatureRegistrationsClientListBySubscriptionOptions added in v0.2.0

type SubscriptionFeatureRegistrationsClientListBySubscriptionOptions struct {
}

SubscriptionFeatureRegistrationsClientListBySubscriptionOptions contains the optional parameters for the SubscriptionFeatureRegistrationsClient.NewListBySubscriptionPager method.

type SubscriptionFeatureRegistrationsClientListBySubscriptionResponse added in v0.2.0

type SubscriptionFeatureRegistrationsClientListBySubscriptionResponse struct {
	// The list of subscription feature registrations.
	SubscriptionFeatureRegistrationList
}

SubscriptionFeatureRegistrationsClientListBySubscriptionResponse contains the response from method SubscriptionFeatureRegistrationsClient.NewListBySubscriptionPager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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