providers

package
v0.20240516.1091934 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MPL-2.0 Imports: 13 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers Documentation

The providers SDK allows for interaction with the Azure Resource Manager Service resources (API Version 2022-09-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers"

Client Initialization

client := providers.NewProvidersClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ProvidersClient.Get

ctx := context.TODO()
id := providers.NewSubscriptionProviderID("12345678-1234-9876-4563-123456789012", "providerValue")

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

Example Usage: ProvidersClient.GetAtTenantScope

ctx := context.TODO()
id := providers.NewProviderID("providerValue")

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

Example Usage: ProvidersClient.List

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

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

Example Usage: ProvidersClient.ListAtTenantScope

ctx := context.TODO()


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

Example Usage: ProvidersClient.ProviderPermissions

ctx := context.TODO()
id := providers.NewSubscriptionProviderID("12345678-1234-9876-4563-123456789012", "providerValue")

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

Example Usage: ProvidersClient.ProviderResourceTypesList

ctx := context.TODO()
id := providers.NewSubscriptionProviderID("12345678-1234-9876-4563-123456789012", "providerValue")

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

Example Usage: ProvidersClient.Register

ctx := context.TODO()
id := providers.NewSubscriptionProviderID("12345678-1234-9876-4563-123456789012", "providerValue")

payload := providers.ProviderRegistrationRequest{
	// ...
}


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

Example Usage: ProvidersClient.RegisterAtManagementGroupScope

ctx := context.TODO()
id := providers.NewProviders2ID("groupIdValue", "providerValue")

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

Example Usage: ProvidersClient.Unregister

ctx := context.TODO()
id := providers.NewSubscriptionProviderID("12345678-1234-9876-4563-123456789012", "providerValue")

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAliasPathAttributes

func PossibleValuesForAliasPathAttributes() []string

func PossibleValuesForAliasPathTokenType

func PossibleValuesForAliasPathTokenType() []string

func PossibleValuesForAliasPatternType

func PossibleValuesForAliasPatternType() []string

func PossibleValuesForAliasType

func PossibleValuesForAliasType() []string

func PossibleValuesForProviderAuthorizationConsentState

func PossibleValuesForProviderAuthorizationConsentState() []string

func ValidateProviderID

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

ValidateProviderID checks that 'input' can be parsed as a Provider ID

func ValidateProviders2ID

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

ValidateProviders2ID checks that 'input' can be parsed as a Providers 2 ID

func ValidateSubscriptionProviderID

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

ValidateSubscriptionProviderID checks that 'input' can be parsed as a Subscription Provider ID

Types

type Alias

type Alias struct {
	DefaultMetadata *AliasPathMetadata `json:"defaultMetadata,omitempty"`
	DefaultPath     *string            `json:"defaultPath,omitempty"`
	DefaultPattern  *AliasPattern      `json:"defaultPattern,omitempty"`
	Name            *string            `json:"name,omitempty"`
	Paths           *[]AliasPath       `json:"paths,omitempty"`
	Type            *AliasType         `json:"type,omitempty"`
}

type AliasPath

type AliasPath struct {
	ApiVersions *[]string          `json:"apiVersions,omitempty"`
	Metadata    *AliasPathMetadata `json:"metadata,omitempty"`
	Path        *string            `json:"path,omitempty"`
	Pattern     *AliasPattern      `json:"pattern,omitempty"`
}

type AliasPathAttributes

type AliasPathAttributes string
const (
	AliasPathAttributesModifiable AliasPathAttributes = "Modifiable"
	AliasPathAttributesNone       AliasPathAttributes = "None"
)

func (*AliasPathAttributes) UnmarshalJSON

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

type AliasPathMetadata

type AliasPathMetadata struct {
	Attributes *AliasPathAttributes `json:"attributes,omitempty"`
	Type       *AliasPathTokenType  `json:"type,omitempty"`
}

type AliasPathTokenType

type AliasPathTokenType string
const (
	AliasPathTokenTypeAny          AliasPathTokenType = "Any"
	AliasPathTokenTypeArray        AliasPathTokenType = "Array"
	AliasPathTokenTypeBoolean      AliasPathTokenType = "Boolean"
	AliasPathTokenTypeInteger      AliasPathTokenType = "Integer"
	AliasPathTokenTypeNotSpecified AliasPathTokenType = "NotSpecified"
	AliasPathTokenTypeNumber       AliasPathTokenType = "Number"
	AliasPathTokenTypeObject       AliasPathTokenType = "Object"
	AliasPathTokenTypeString       AliasPathTokenType = "String"
)

func (*AliasPathTokenType) UnmarshalJSON

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

type AliasPattern

type AliasPattern struct {
	Phrase   *string           `json:"phrase,omitempty"`
	Type     *AliasPatternType `json:"type,omitempty"`
	Variable *string           `json:"variable,omitempty"`
}

type AliasPatternType

type AliasPatternType string
const (
	AliasPatternTypeExtract      AliasPatternType = "Extract"
	AliasPatternTypeNotSpecified AliasPatternType = "NotSpecified"
)

func (*AliasPatternType) UnmarshalJSON

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

type AliasType

type AliasType string
const (
	AliasTypeMask         AliasType = "Mask"
	AliasTypeNotSpecified AliasType = "NotSpecified"
	AliasTypePlainText    AliasType = "PlainText"
)

func (*AliasType) UnmarshalJSON

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

type ApiProfile

type ApiProfile struct {
	ApiVersion     *string `json:"apiVersion,omitempty"`
	ProfileVersion *string `json:"profileVersion,omitempty"`
}

type GetAtTenantScopeOperationOptions

type GetAtTenantScopeOperationOptions struct {
	Expand *string
}

func DefaultGetAtTenantScopeOperationOptions

func DefaultGetAtTenantScopeOperationOptions() GetAtTenantScopeOperationOptions

func (GetAtTenantScopeOperationOptions) ToHeaders

func (GetAtTenantScopeOperationOptions) ToOData

func (GetAtTenantScopeOperationOptions) ToQuery

type GetAtTenantScopeOperationResponse

type GetAtTenantScopeOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Provider
}

type GetOperationOptions

type GetOperationOptions struct {
	Expand *string
}

func DefaultGetOperationOptions

func DefaultGetOperationOptions() GetOperationOptions

func (GetOperationOptions) ToHeaders

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

func (GetOperationOptions) ToOData

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

func (GetOperationOptions) ToQuery

func (o GetOperationOptions) ToQuery() *client.QueryParams

type GetOperationResponse

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

type ListAtTenantScopeCompleteResult

type ListAtTenantScopeCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []Provider
}

type ListAtTenantScopeOperationOptions

type ListAtTenantScopeOperationOptions struct {
	Expand *string
}

func DefaultListAtTenantScopeOperationOptions

func DefaultListAtTenantScopeOperationOptions() ListAtTenantScopeOperationOptions

func (ListAtTenantScopeOperationOptions) ToHeaders

func (ListAtTenantScopeOperationOptions) ToOData

func (ListAtTenantScopeOperationOptions) ToQuery

type ListAtTenantScopeOperationResponse

type ListAtTenantScopeOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Provider
}

type ListCompleteResult

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

type ListOperationOptions

type ListOperationOptions struct {
	Expand *string
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

func (ListOperationOptions) ToHeaders

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

func (ListOperationOptions) ToOData

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

func (ListOperationOptions) ToQuery

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Provider
}

type Permission

type Permission struct {
	Actions        *[]string `json:"actions,omitempty"`
	DataActions    *[]string `json:"dataActions,omitempty"`
	NotActions     *[]string `json:"notActions,omitempty"`
	NotDataActions *[]string `json:"notDataActions,omitempty"`
}

type Provider

type Provider struct {
	Id                                *string                            `json:"id,omitempty"`
	Namespace                         *string                            `json:"namespace,omitempty"`
	ProviderAuthorizationConsentState *ProviderAuthorizationConsentState `json:"providerAuthorizationConsentState,omitempty"`
	RegistrationPolicy                *string                            `json:"registrationPolicy,omitempty"`
	RegistrationState                 *string                            `json:"registrationState,omitempty"`
	ResourceTypes                     *[]ProviderResourceType            `json:"resourceTypes,omitempty"`
}

type ProviderAuthorizationConsentState

type ProviderAuthorizationConsentState string
const (
	ProviderAuthorizationConsentStateConsented    ProviderAuthorizationConsentState = "Consented"
	ProviderAuthorizationConsentStateNotRequired  ProviderAuthorizationConsentState = "NotRequired"
	ProviderAuthorizationConsentStateNotSpecified ProviderAuthorizationConsentState = "NotSpecified"
	ProviderAuthorizationConsentStateRequired     ProviderAuthorizationConsentState = "Required"
)

func (*ProviderAuthorizationConsentState) UnmarshalJSON

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

type ProviderConsentDefinition

type ProviderConsentDefinition struct {
	ConsentToAuthorization *bool `json:"consentToAuthorization,omitempty"`
}

type ProviderExtendedLocation

type ProviderExtendedLocation struct {
	ExtendedLocations *[]string `json:"extendedLocations,omitempty"`
	Location          *string   `json:"location,omitempty"`
	Type              *string   `json:"type,omitempty"`
}

type ProviderId

type ProviderId struct {
	ProviderName string
}

ProviderId is a struct representing the Resource ID for a Provider

func NewProviderID

func NewProviderID(providerName string) ProviderId

NewProviderID returns a new ProviderId struct

func ParseProviderID

func ParseProviderID(input string) (*ProviderId, error)

ParseProviderID parses 'input' into a ProviderId

func ParseProviderIDInsensitively

func ParseProviderIDInsensitively(input string) (*ProviderId, error)

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

func (*ProviderId) FromParseResult

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

func (ProviderId) ID

func (id ProviderId) ID() string

ID returns the formatted Provider ID

func (ProviderId) Segments

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

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

func (ProviderId) String

func (id ProviderId) String() string

String returns a human-readable description of this Provider ID

type ProviderOperationPredicate

type ProviderOperationPredicate struct {
	Id                 *string
	Namespace          *string
	RegistrationPolicy *string
	RegistrationState  *string
}

func (ProviderOperationPredicate) Matches

func (p ProviderOperationPredicate) Matches(input Provider) bool

type ProviderPermission

type ProviderPermission struct {
	ApplicationId                     *string                            `json:"applicationId,omitempty"`
	ManagedByRoleDefinition           *RoleDefinition                    `json:"managedByRoleDefinition,omitempty"`
	ProviderAuthorizationConsentState *ProviderAuthorizationConsentState `json:"providerAuthorizationConsentState,omitempty"`
	RoleDefinition                    *RoleDefinition                    `json:"roleDefinition,omitempty"`
}

type ProviderPermissionOperationPredicate added in v0.20240226.1173038

type ProviderPermissionOperationPredicate struct {
	ApplicationId *string
}

func (ProviderPermissionOperationPredicate) Matches added in v0.20240226.1173038

type ProviderPermissionsCompleteResult added in v0.20240226.1173038

type ProviderPermissionsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ProviderPermission
}

type ProviderPermissionsOperationResponse

type ProviderPermissionsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ProviderPermission
}

type ProviderRegistrationRequest

type ProviderRegistrationRequest struct {
	ThirdPartyProviderConsent *ProviderConsentDefinition `json:"thirdPartyProviderConsent,omitempty"`
}

type ProviderResourceType

type ProviderResourceType struct {
	Aliases           *[]Alias                    `json:"aliases,omitempty"`
	ApiProfiles       *[]ApiProfile               `json:"apiProfiles,omitempty"`
	ApiVersions       *[]string                   `json:"apiVersions,omitempty"`
	Capabilities      *string                     `json:"capabilities,omitempty"`
	DefaultApiVersion *string                     `json:"defaultApiVersion,omitempty"`
	LocationMappings  *[]ProviderExtendedLocation `json:"locationMappings,omitempty"`
	Locations         *[]string                   `json:"locations,omitempty"`
	Properties        *map[string]string          `json:"properties,omitempty"`
	ResourceType      *string                     `json:"resourceType,omitempty"`
	ZoneMappings      *[]ZoneMapping              `json:"zoneMappings,omitempty"`
}

type ProviderResourceTypeOperationPredicate added in v0.20240226.1173038

type ProviderResourceTypeOperationPredicate struct {
	Capabilities      *string
	DefaultApiVersion *string
	ResourceType      *string
}

func (ProviderResourceTypeOperationPredicate) Matches added in v0.20240226.1173038

type ProviderResourceTypesListCompleteResult added in v0.20240226.1173038

type ProviderResourceTypesListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ProviderResourceType
}

type ProviderResourceTypesListOperationOptions

type ProviderResourceTypesListOperationOptions struct {
	Expand *string
}

func DefaultProviderResourceTypesListOperationOptions

func DefaultProviderResourceTypesListOperationOptions() ProviderResourceTypesListOperationOptions

func (ProviderResourceTypesListOperationOptions) ToHeaders

func (ProviderResourceTypesListOperationOptions) ToOData

func (ProviderResourceTypesListOperationOptions) ToQuery

type ProviderResourceTypesListOperationResponse

type ProviderResourceTypesListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ProviderResourceType
}

type Providers2Id

type Providers2Id struct {
	GroupId      string
	ProviderName string
}

Providers2Id is a struct representing the Resource ID for a Providers 2

func NewProviders2ID

func NewProviders2ID(groupId string, providerName string) Providers2Id

NewProviders2ID returns a new Providers2Id struct

func ParseProviders2ID

func ParseProviders2ID(input string) (*Providers2Id, error)

ParseProviders2ID parses 'input' into a Providers2Id

func ParseProviders2IDInsensitively

func ParseProviders2IDInsensitively(input string) (*Providers2Id, error)

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

func (*Providers2Id) FromParseResult

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

func (Providers2Id) ID

func (id Providers2Id) ID() string

ID returns the formatted Providers 2 ID

func (Providers2Id) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Providers 2 ID

func (Providers2Id) String

func (id Providers2Id) String() string

String returns a human-readable description of this Providers 2 ID

type ProvidersClient

type ProvidersClient struct {
	Client *resourcemanager.Client
}

func NewProvidersClientWithBaseURI

func NewProvidersClientWithBaseURI(sdkApi sdkEnv.Api) (*ProvidersClient, error)

func (ProvidersClient) Get

Get ...

func (ProvidersClient) GetAtTenantScope

GetAtTenantScope ...

func (ProvidersClient) List

List ...

func (ProvidersClient) ListAtTenantScope

ListAtTenantScope ...

func (ProvidersClient) ListAtTenantScopeComplete

ListAtTenantScopeComplete retrieves all the results into a single object

func (ProvidersClient) ListAtTenantScopeCompleteMatchingPredicate

func (c ProvidersClient) ListAtTenantScopeCompleteMatchingPredicate(ctx context.Context, options ListAtTenantScopeOperationOptions, predicate ProviderOperationPredicate) (result ListAtTenantScopeCompleteResult, err error)

ListAtTenantScopeCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ProvidersClient) ListComplete

ListComplete retrieves all the results into a single object

func (ProvidersClient) ListCompleteMatchingPredicate

func (c ProvidersClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, predicate ProviderOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ProvidersClient) ProviderPermissions

ProviderPermissions ...

func (ProvidersClient) ProviderPermissionsComplete added in v0.20240226.1173038

ProviderPermissionsComplete retrieves all the results into a single object

func (ProvidersClient) ProviderPermissionsCompleteMatchingPredicate added in v0.20240226.1173038

func (c ProvidersClient) ProviderPermissionsCompleteMatchingPredicate(ctx context.Context, id SubscriptionProviderId, predicate ProviderPermissionOperationPredicate) (result ProviderPermissionsCompleteResult, err error)

ProviderPermissionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ProvidersClient) ProviderResourceTypesList

ProviderResourceTypesList ...

func (ProvidersClient) ProviderResourceTypesListComplete added in v0.20240226.1173038

ProviderResourceTypesListComplete retrieves all the results into a single object

func (ProvidersClient) ProviderResourceTypesListCompleteMatchingPredicate added in v0.20240226.1173038

ProviderResourceTypesListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ProvidersClient) Register

Register ...

func (ProvidersClient) RegisterAtManagementGroupScope

func (c ProvidersClient) RegisterAtManagementGroupScope(ctx context.Context, id Providers2Id) (result RegisterAtManagementGroupScopeOperationResponse, err error)

RegisterAtManagementGroupScope ...

func (ProvidersClient) Unregister

Unregister ...

type RegisterAtManagementGroupScopeOperationResponse

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

type RegisterOperationResponse

type RegisterOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Provider
}

type RoleDefinition

type RoleDefinition struct {
	Id            *string       `json:"id,omitempty"`
	IsServiceRole *bool         `json:"isServiceRole,omitempty"`
	Name          *string       `json:"name,omitempty"`
	Permissions   *[]Permission `json:"permissions,omitempty"`
	Scopes        *[]string     `json:"scopes,omitempty"`
}

type SubscriptionProviderId

type SubscriptionProviderId struct {
	SubscriptionId string
	ProviderName   string
}

SubscriptionProviderId is a struct representing the Resource ID for a Subscription Provider

func NewSubscriptionProviderID

func NewSubscriptionProviderID(subscriptionId string, providerName string) SubscriptionProviderId

NewSubscriptionProviderID returns a new SubscriptionProviderId struct

func ParseSubscriptionProviderID

func ParseSubscriptionProviderID(input string) (*SubscriptionProviderId, error)

ParseSubscriptionProviderID parses 'input' into a SubscriptionProviderId

func ParseSubscriptionProviderIDInsensitively

func ParseSubscriptionProviderIDInsensitively(input string) (*SubscriptionProviderId, error)

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

func (*SubscriptionProviderId) FromParseResult

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

func (SubscriptionProviderId) ID

ID returns the formatted Subscription Provider ID

func (SubscriptionProviderId) Segments

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

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

func (SubscriptionProviderId) String

func (id SubscriptionProviderId) String() string

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

type UnregisterOperationResponse

type UnregisterOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Provider
}

type ZoneMapping

type ZoneMapping struct {
	Location *string       `json:"location,omitempty"`
	Zones    *zones.Schema `json:"zones,omitempty"`
}

Jump to

Keyboard shortcuts

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