subscriptionfeatureregistrations

package
v0.20230825.1130400 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MPL-2.0 Imports: 13 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/subscriptionfeatureregistrations Documentation

The subscriptionfeatureregistrations SDK allows for interaction with the Azure Resource Manager Service resources (API Version 2021-07-01).

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/resources/2021-07-01/subscriptionfeatureregistrations"

Client Initialization

client := subscriptionfeatureregistrations.NewSubscriptionFeatureRegistrationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SubscriptionFeatureRegistrationsClient.SubscriptionFeatureRegistrationsCreateOrUpdate

ctx := context.TODO()
id := subscriptionfeatureregistrations.NewSubscriptionFeatureRegistrationID("12345678-1234-9876-4563-123456789012", "featureProviderValue", "subscriptionFeatureRegistrationValue")

payload := subscriptionfeatureregistrations.SubscriptionFeatureRegistration{
	// ...
}


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

Example Usage: SubscriptionFeatureRegistrationsClient.SubscriptionFeatureRegistrationsDelete

ctx := context.TODO()
id := subscriptionfeatureregistrations.NewSubscriptionFeatureRegistrationID("12345678-1234-9876-4563-123456789012", "featureProviderValue", "subscriptionFeatureRegistrationValue")

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

Example Usage: SubscriptionFeatureRegistrationsClient.SubscriptionFeatureRegistrationsGet

ctx := context.TODO()
id := subscriptionfeatureregistrations.NewSubscriptionFeatureRegistrationID("12345678-1234-9876-4563-123456789012", "featureProviderValue", "subscriptionFeatureRegistrationValue")

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

Example Usage: SubscriptionFeatureRegistrationsClient.SubscriptionFeatureRegistrationsListAllBySubscription

ctx := context.TODO()
id := subscriptionfeatureregistrations.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

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

Example Usage: SubscriptionFeatureRegistrationsClient.SubscriptionFeatureRegistrationsListBySubscription

ctx := context.TODO()
id := subscriptionfeatureregistrations.NewFeatureProviderID("12345678-1234-9876-4563-123456789012", "featureProviderValue")

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForSubscriptionFeatureRegistrationApprovalType

func PossibleValuesForSubscriptionFeatureRegistrationApprovalType() []string

func PossibleValuesForSubscriptionFeatureRegistrationState

func PossibleValuesForSubscriptionFeatureRegistrationState() []string

func ValidateFeatureProviderID

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

ValidateFeatureProviderID checks that 'input' can be parsed as a Feature Provider ID

func ValidateSubscriptionFeatureRegistrationID

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

ValidateSubscriptionFeatureRegistrationID checks that 'input' can be parsed as a Subscription Feature Registration ID

Types

type AuthorizationProfile

type AuthorizationProfile struct {
	ApprovedTime      *string `json:"approvedTime,omitempty"`
	Approver          *string `json:"approver,omitempty"`
	RequestedTime     *string `json:"requestedTime,omitempty"`
	Requester         *string `json:"requester,omitempty"`
	RequesterObjectId *string `json:"requesterObjectId,omitempty"`
}

func (*AuthorizationProfile) GetApprovedTimeAsTime

func (o *AuthorizationProfile) GetApprovedTimeAsTime() (*time.Time, error)

func (*AuthorizationProfile) GetRequestedTimeAsTime

func (o *AuthorizationProfile) GetRequestedTimeAsTime() (*time.Time, error)

func (*AuthorizationProfile) SetApprovedTimeAsTime

func (o *AuthorizationProfile) SetApprovedTimeAsTime(input time.Time)

func (*AuthorizationProfile) SetRequestedTimeAsTime

func (o *AuthorizationProfile) SetRequestedTimeAsTime(input time.Time)

type FeatureProviderId

type FeatureProviderId struct {
	SubscriptionId      string
	FeatureProviderName string
}

FeatureProviderId is a struct representing the Resource ID for a Feature Provider

func NewFeatureProviderID

func NewFeatureProviderID(subscriptionId string, featureProviderName string) FeatureProviderId

NewFeatureProviderID returns a new FeatureProviderId struct

func ParseFeatureProviderID

func ParseFeatureProviderID(input string) (*FeatureProviderId, error)

ParseFeatureProviderID parses 'input' into a FeatureProviderId

func ParseFeatureProviderIDInsensitively

func ParseFeatureProviderIDInsensitively(input string) (*FeatureProviderId, error)

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

func (FeatureProviderId) ID

func (id FeatureProviderId) ID() string

ID returns the formatted Feature Provider ID

func (FeatureProviderId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Feature Provider ID

func (FeatureProviderId) String

func (id FeatureProviderId) String() string

String returns a human-readable description of this Feature Provider ID

type SubscriptionFeatureRegistration

type SubscriptionFeatureRegistration struct {
	Id         *string                                    `json:"id,omitempty"`
	Name       *string                                    `json:"name,omitempty"`
	Properties *SubscriptionFeatureRegistrationProperties `json:"properties,omitempty"`
	Type       *string                                    `json:"type,omitempty"`
}

type SubscriptionFeatureRegistrationApprovalType

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

func (*SubscriptionFeatureRegistrationApprovalType) UnmarshalJSON

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

type SubscriptionFeatureRegistrationId

type SubscriptionFeatureRegistrationId struct {
	SubscriptionId                      string
	FeatureProviderName                 string
	SubscriptionFeatureRegistrationName string
}

SubscriptionFeatureRegistrationId is a struct representing the Resource ID for a Subscription Feature Registration

func NewSubscriptionFeatureRegistrationID

func NewSubscriptionFeatureRegistrationID(subscriptionId string, featureProviderName string, subscriptionFeatureRegistrationName string) SubscriptionFeatureRegistrationId

NewSubscriptionFeatureRegistrationID returns a new SubscriptionFeatureRegistrationId struct

func ParseSubscriptionFeatureRegistrationID

func ParseSubscriptionFeatureRegistrationID(input string) (*SubscriptionFeatureRegistrationId, error)

ParseSubscriptionFeatureRegistrationID parses 'input' into a SubscriptionFeatureRegistrationId

func ParseSubscriptionFeatureRegistrationIDInsensitively

func ParseSubscriptionFeatureRegistrationIDInsensitively(input string) (*SubscriptionFeatureRegistrationId, error)

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

func (SubscriptionFeatureRegistrationId) ID

ID returns the formatted Subscription Feature Registration ID

func (SubscriptionFeatureRegistrationId) Segments

Segments returns a slice of Resource ID Segments which comprise this Subscription Feature Registration ID

func (SubscriptionFeatureRegistrationId) String

String returns a human-readable description of this Subscription Feature Registration ID

type SubscriptionFeatureRegistrationOperationPredicate

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

func (SubscriptionFeatureRegistrationOperationPredicate) Matches

type SubscriptionFeatureRegistrationProperties

type SubscriptionFeatureRegistrationProperties struct {
	ApprovalType                 *SubscriptionFeatureRegistrationApprovalType `json:"approvalType,omitempty"`
	AuthorizationProfile         *AuthorizationProfile                        `json:"authorizationProfile,omitempty"`
	Description                  *string                                      `json:"description,omitempty"`
	DisplayName                  *string                                      `json:"displayName,omitempty"`
	DocumentationLink            *string                                      `json:"documentationLink,omitempty"`
	FeatureName                  *string                                      `json:"featureName,omitempty"`
	Metadata                     *map[string]string                           `json:"metadata,omitempty"`
	ProviderNamespace            *string                                      `json:"providerNamespace,omitempty"`
	RegistrationDate             *string                                      `json:"registrationDate,omitempty"`
	ReleaseDate                  *string                                      `json:"releaseDate,omitempty"`
	ShouldFeatureDisplayInPortal *bool                                        `json:"shouldFeatureDisplayInPortal,omitempty"`
	State                        *SubscriptionFeatureRegistrationState        `json:"state,omitempty"`
	SubscriptionId               *string                                      `json:"subscriptionId,omitempty"`
	TenantId                     *string                                      `json:"tenantId,omitempty"`
}

func (*SubscriptionFeatureRegistrationProperties) GetRegistrationDateAsTime

func (o *SubscriptionFeatureRegistrationProperties) GetRegistrationDateAsTime() (*time.Time, error)

func (*SubscriptionFeatureRegistrationProperties) GetReleaseDateAsTime

func (o *SubscriptionFeatureRegistrationProperties) GetReleaseDateAsTime() (*time.Time, error)

func (*SubscriptionFeatureRegistrationProperties) SetRegistrationDateAsTime

func (o *SubscriptionFeatureRegistrationProperties) SetRegistrationDateAsTime(input time.Time)

func (*SubscriptionFeatureRegistrationProperties) SetReleaseDateAsTime

func (o *SubscriptionFeatureRegistrationProperties) SetReleaseDateAsTime(input time.Time)

type SubscriptionFeatureRegistrationState

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

func (*SubscriptionFeatureRegistrationState) UnmarshalJSON

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

type SubscriptionFeatureRegistrationsClient

type SubscriptionFeatureRegistrationsClient struct {
	Client *resourcemanager.Client
}

func NewSubscriptionFeatureRegistrationsClientWithBaseURI

func NewSubscriptionFeatureRegistrationsClientWithBaseURI(sdkApi sdkEnv.Api) (*SubscriptionFeatureRegistrationsClient, error)

func (SubscriptionFeatureRegistrationsClient) SubscriptionFeatureRegistrationsCreateOrUpdate

SubscriptionFeatureRegistrationsCreateOrUpdate ...

func (SubscriptionFeatureRegistrationsClient) SubscriptionFeatureRegistrationsDelete

SubscriptionFeatureRegistrationsDelete ...

func (SubscriptionFeatureRegistrationsClient) SubscriptionFeatureRegistrationsGet

SubscriptionFeatureRegistrationsGet ...

func (SubscriptionFeatureRegistrationsClient) SubscriptionFeatureRegistrationsListAllBySubscription

SubscriptionFeatureRegistrationsListAllBySubscription ...

func (SubscriptionFeatureRegistrationsClient) SubscriptionFeatureRegistrationsListAllBySubscriptionComplete

SubscriptionFeatureRegistrationsListAllBySubscriptionComplete retrieves all the results into a single object

func (SubscriptionFeatureRegistrationsClient) SubscriptionFeatureRegistrationsListAllBySubscriptionCompleteMatchingPredicate

func (c SubscriptionFeatureRegistrationsClient) SubscriptionFeatureRegistrationsListAllBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate SubscriptionFeatureRegistrationOperationPredicate) (result SubscriptionFeatureRegistrationsListAllBySubscriptionCompleteResult, err error)

SubscriptionFeatureRegistrationsListAllBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SubscriptionFeatureRegistrationsClient) SubscriptionFeatureRegistrationsListBySubscription

SubscriptionFeatureRegistrationsListBySubscription ...

func (SubscriptionFeatureRegistrationsClient) SubscriptionFeatureRegistrationsListBySubscriptionComplete

SubscriptionFeatureRegistrationsListBySubscriptionComplete retrieves all the results into a single object

func (SubscriptionFeatureRegistrationsClient) SubscriptionFeatureRegistrationsListBySubscriptionCompleteMatchingPredicate

func (c SubscriptionFeatureRegistrationsClient) SubscriptionFeatureRegistrationsListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id FeatureProviderId, predicate SubscriptionFeatureRegistrationOperationPredicate) (result SubscriptionFeatureRegistrationsListBySubscriptionCompleteResult, err error)

SubscriptionFeatureRegistrationsListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

type SubscriptionFeatureRegistrationsCreateOrUpdateOperationResponse

type SubscriptionFeatureRegistrationsCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SubscriptionFeatureRegistration
}

type SubscriptionFeatureRegistrationsDeleteOperationResponse

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

type SubscriptionFeatureRegistrationsGetOperationResponse

type SubscriptionFeatureRegistrationsGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SubscriptionFeatureRegistration
}

type SubscriptionFeatureRegistrationsListAllBySubscriptionCompleteResult

type SubscriptionFeatureRegistrationsListAllBySubscriptionCompleteResult struct {
	Items []SubscriptionFeatureRegistration
}

type SubscriptionFeatureRegistrationsListAllBySubscriptionOperationResponse

type SubscriptionFeatureRegistrationsListAllBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SubscriptionFeatureRegistration
}

type SubscriptionFeatureRegistrationsListBySubscriptionCompleteResult

type SubscriptionFeatureRegistrationsListBySubscriptionCompleteResult struct {
	Items []SubscriptionFeatureRegistration
}

type SubscriptionFeatureRegistrationsListBySubscriptionOperationResponse

type SubscriptionFeatureRegistrationsListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SubscriptionFeatureRegistration
}

Jump to

Keyboard shortcuts

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