subscriptionfeatureregistrations

package
v0.20240123.1101251 Latest Latest
Warning

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

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

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.CreateOrUpdate

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

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


read, err := client.CreateOrUpdate(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.Delete

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

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

Example Usage: SubscriptionFeatureRegistrationsClient.Get

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

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

Example Usage: SubscriptionFeatureRegistrationsClient.ListAllBySubscription

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

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

Example Usage: SubscriptionFeatureRegistrationsClient.ListBySubscription

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

// alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.ListBySubscriptionComplete(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 CreateOrUpdateOperationResponse added in v0.20230906.1160501

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

type DeleteOperationResponse added in v0.20230906.1160501

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

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) FromParseResult added in v0.20231127.1171502

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

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 GetOperationResponse added in v0.20230906.1160501

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

type ListAllBySubscriptionCompleteResult added in v0.20230906.1160501

type ListAllBySubscriptionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SubscriptionFeatureRegistration
}

type ListAllBySubscriptionOperationResponse added in v0.20230906.1160501

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

type ListBySubscriptionCompleteResult added in v0.20230906.1160501

type ListBySubscriptionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SubscriptionFeatureRegistration
}

type ListBySubscriptionOperationResponse added in v0.20230906.1160501

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

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) FromParseResult added in v0.20231127.1171502

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) CreateOrUpdate added in v0.20230906.1160501

CreateOrUpdate ...

func (SubscriptionFeatureRegistrationsClient) Delete added in v0.20230906.1160501

Delete ...

func (SubscriptionFeatureRegistrationsClient) Get added in v0.20230906.1160501

Get ...

func (SubscriptionFeatureRegistrationsClient) ListAllBySubscription added in v0.20230906.1160501

ListAllBySubscription ...

func (SubscriptionFeatureRegistrationsClient) ListAllBySubscriptionComplete added in v0.20230906.1160501

ListAllBySubscriptionComplete retrieves all the results into a single object

func (SubscriptionFeatureRegistrationsClient) ListAllBySubscriptionCompleteMatchingPredicate added in v0.20230906.1160501

ListAllBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SubscriptionFeatureRegistrationsClient) ListBySubscription added in v0.20230906.1160501

ListBySubscription ...

func (SubscriptionFeatureRegistrationsClient) ListBySubscriptionComplete added in v0.20230906.1160501

ListBySubscriptionComplete retrieves all the results into a single object

func (SubscriptionFeatureRegistrationsClient) ListBySubscriptionCompleteMatchingPredicate added in v0.20230906.1160501

ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

Jump to

Keyboard shortcuts

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