customresourceprovider

package
v0.20221028.1081410 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MPL-2.0 Imports: 10 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider Documentation

The customresourceprovider SDK allows for interaction with the Azure Resource Manager Service customproviders (API Version 2018-09-01-preview).

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/customproviders/2018-09-01-preview/customresourceprovider"

Client Initialization

client := customresourceprovider.NewCustomResourceProviderClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: CustomResourceProviderClient.CreateOrUpdate

ctx := context.TODO()
id := customresourceprovider.NewResourceProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceProviderValue")

payload := customresourceprovider.CustomRPManifest{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: CustomResourceProviderClient.Delete

ctx := context.TODO()
id := customresourceprovider.NewResourceProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceProviderValue")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: CustomResourceProviderClient.Get

ctx := context.TODO()
id := customresourceprovider.NewResourceProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceProviderValue")

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: CustomResourceProviderClient.ListByResourceGroup

ctx := context.TODO()
id := customresourceprovider.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

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

Example Usage: CustomResourceProviderClient.ListBySubscription

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

// 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
}

Example Usage: CustomResourceProviderClient.Update

ctx := context.TODO()
id := customresourceprovider.NewResourceProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceProviderValue")

payload := customresourceprovider.ResourceProvidersUpdate{
	// ...
}


read, err := client.Update(ctx, id, payload)
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 PossibleValuesForActionRouting

func PossibleValuesForActionRouting() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForResourceTypeRouting

func PossibleValuesForResourceTypeRouting() []string

func PossibleValuesForValidationType

func PossibleValuesForValidationType() []string

func ValidateResourceProviderID

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

ValidateResourceProviderID checks that 'input' can be parsed as a Resource Provider ID

Types

type ActionRouting

type ActionRouting string
const (
	ActionRoutingProxy ActionRouting = "Proxy"
)

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type CustomRPActionRouteDefinition

type CustomRPActionRouteDefinition struct {
	Endpoint    string         `json:"endpoint"`
	Name        string         `json:"name"`
	RoutingType *ActionRouting `json:"routingType,omitempty"`
}

type CustomRPManifest

type CustomRPManifest struct {
	Id         *string                     `json:"id,omitempty"`
	Location   string                      `json:"location"`
	Name       *string                     `json:"name,omitempty"`
	Properties *CustomRPManifestProperties `json:"properties,omitempty"`
	Tags       *map[string]string          `json:"tags,omitempty"`
	Type       *string                     `json:"type,omitempty"`
}

type CustomRPManifestOperationPredicate

type CustomRPManifestOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (CustomRPManifestOperationPredicate) Matches

type CustomRPManifestProperties

type CustomRPManifestProperties struct {
	Actions           *[]CustomRPActionRouteDefinition       `json:"actions,omitempty"`
	ProvisioningState *ProvisioningState                     `json:"provisioningState,omitempty"`
	ResourceTypes     *[]CustomRPResourceTypeRouteDefinition `json:"resourceTypes,omitempty"`
	Validations       *[]CustomRPValidations                 `json:"validations,omitempty"`
}

type CustomRPResourceTypeRouteDefinition

type CustomRPResourceTypeRouteDefinition struct {
	Endpoint    string               `json:"endpoint"`
	Name        string               `json:"name"`
	RoutingType *ResourceTypeRouting `json:"routingType,omitempty"`
}

type CustomRPValidations

type CustomRPValidations struct {
	Specification  string          `json:"specification"`
	ValidationType *ValidationType `json:"validationType,omitempty"`
}

type CustomResourceProviderClient

type CustomResourceProviderClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewCustomResourceProviderClientWithBaseURI

func NewCustomResourceProviderClientWithBaseURI(endpoint string) CustomResourceProviderClient

func (CustomResourceProviderClient) CreateOrUpdate

CreateOrUpdate ...

func (CustomResourceProviderClient) CreateOrUpdateThenPoll

func (c CustomResourceProviderClient) CreateOrUpdateThenPoll(ctx context.Context, id ResourceProviderId, input CustomRPManifest) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (CustomResourceProviderClient) Delete

Delete ...

func (CustomResourceProviderClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (CustomResourceProviderClient) Get

Get ...

func (CustomResourceProviderClient) ListByResourceGroup

ListByResourceGroup ...

func (CustomResourceProviderClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all of the results into a single object

func (CustomResourceProviderClient) ListByResourceGroupCompleteMatchingPredicate

func (c CustomResourceProviderClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate CustomRPManifestOperationPredicate) (resp ListByResourceGroupCompleteResult, err error)

ListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (CustomResourceProviderClient) ListBySubscription

ListBySubscription ...

func (CustomResourceProviderClient) ListBySubscriptionComplete

ListBySubscriptionComplete retrieves all of the results into a single object

func (CustomResourceProviderClient) ListBySubscriptionCompleteMatchingPredicate

func (c CustomResourceProviderClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate CustomRPManifestOperationPredicate) (resp ListBySubscriptionCompleteResult, err error)

ListBySubscriptionCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (CustomResourceProviderClient) Update

Update ...

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *CustomRPManifest
}

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	Items []CustomRPManifest
}

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]CustomRPManifest
	// contains filtered or unexported fields
}

func (ListByResourceGroupOperationResponse) HasMore

func (ListByResourceGroupOperationResponse) LoadMore

type ListBySubscriptionCompleteResult

type ListBySubscriptionCompleteResult struct {
	Items []CustomRPManifest
}

type ListBySubscriptionOperationResponse

type ListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]CustomRPManifest
	// contains filtered or unexported fields
}

func (ListBySubscriptionOperationResponse) HasMore

func (ListBySubscriptionOperationResponse) LoadMore

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateAccepted  ProvisioningState = "Accepted"
	ProvisioningStateDeleting  ProvisioningState = "Deleting"
	ProvisioningStateFailed    ProvisioningState = "Failed"
	ProvisioningStateRunning   ProvisioningState = "Running"
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
)

type ResourceProviderId

type ResourceProviderId struct {
	SubscriptionId       string
	ResourceGroupName    string
	ResourceProviderName string
}

ResourceProviderId is a struct representing the Resource ID for a Resource Provider

func NewResourceProviderID

func NewResourceProviderID(subscriptionId string, resourceGroupName string, resourceProviderName string) ResourceProviderId

NewResourceProviderID returns a new ResourceProviderId struct

func ParseResourceProviderID

func ParseResourceProviderID(input string) (*ResourceProviderId, error)

ParseResourceProviderID parses 'input' into a ResourceProviderId

func ParseResourceProviderIDInsensitively

func ParseResourceProviderIDInsensitively(input string) (*ResourceProviderId, error)

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

func (ResourceProviderId) ID

func (id ResourceProviderId) ID() string

ID returns the formatted Resource Provider ID

func (ResourceProviderId) Segments

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

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

func (ResourceProviderId) String

func (id ResourceProviderId) String() string

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

type ResourceProvidersUpdate

type ResourceProvidersUpdate struct {
	Tags *map[string]string `json:"tags,omitempty"`
}

type ResourceTypeRouting

type ResourceTypeRouting string
const (
	ResourceTypeRoutingProxy      ResourceTypeRouting = "Proxy"
	ResourceTypeRoutingProxyCache ResourceTypeRouting = "Proxy,Cache"
)

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *CustomRPManifest
}

type ValidationType

type ValidationType string
const (
	ValidationTypeSwagger ValidationType = "Swagger"
)

Jump to

Keyboard shortcuts

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