sharedprivatelinkresources

package
v0.20231129.1170309 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources Documentation

The sharedprivatelinkresources SDK allows for interaction with the Azure Resource Manager Service search (API Version 2023-11-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/search/2023-11-01/sharedprivatelinkresources"

Client Initialization

client := sharedprivatelinkresources.NewSharedPrivateLinkResourcesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SharedPrivateLinkResourcesClient.CreateOrUpdate

ctx := context.TODO()
id := sharedprivatelinkresources.NewSharedPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceValue", "sharedPrivateLinkResourceValue")

payload := sharedprivatelinkresources.SharedPrivateLinkResource{
	// ...
}


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

Example Usage: SharedPrivateLinkResourcesClient.Delete

ctx := context.TODO()
id := sharedprivatelinkresources.NewSharedPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceValue", "sharedPrivateLinkResourceValue")

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

Example Usage: SharedPrivateLinkResourcesClient.Get

ctx := context.TODO()
id := sharedprivatelinkresources.NewSharedPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceValue", "sharedPrivateLinkResourceValue")

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

Example Usage: SharedPrivateLinkResourcesClient.ListByService

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

// alternatively `client.ListByService(ctx, id, sharedprivatelinkresources.DefaultListByServiceOperationOptions())` can be used to do batched pagination
items, err := client.ListByServiceComplete(ctx, id, sharedprivatelinkresources.DefaultListByServiceOperationOptions())
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 PossibleValuesForSharedPrivateLinkResourceProvisioningState

func PossibleValuesForSharedPrivateLinkResourceProvisioningState() []string

func PossibleValuesForSharedPrivateLinkResourceStatus

func PossibleValuesForSharedPrivateLinkResourceStatus() []string

func ValidateSearchServiceID

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

ValidateSearchServiceID checks that 'input' can be parsed as a Search Service ID

func ValidateSharedPrivateLinkResourceID

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

ValidateSharedPrivateLinkResourceID checks that 'input' can be parsed as a Shared Private Link Resource ID

Types

type CreateOrUpdateOperationOptions

type CreateOrUpdateOperationOptions struct {
	XMsClientRequestId *string
}

func DefaultCreateOrUpdateOperationOptions

func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions

func (CreateOrUpdateOperationOptions) ToHeaders

func (CreateOrUpdateOperationOptions) ToOData

func (CreateOrUpdateOperationOptions) ToQuery

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type DeleteOperationOptions

type DeleteOperationOptions struct {
	XMsClientRequestId *string
}

func DefaultDeleteOperationOptions

func DefaultDeleteOperationOptions() DeleteOperationOptions

func (DeleteOperationOptions) ToHeaders

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

func (DeleteOperationOptions) ToOData

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

func (DeleteOperationOptions) ToQuery

type DeleteOperationResponse

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

type GetOperationOptions

type GetOperationOptions struct {
	XMsClientRequestId *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        *SharedPrivateLinkResource
}

type ListByServiceCompleteResult

type ListByServiceCompleteResult struct {
	Items []SharedPrivateLinkResource
}

type ListByServiceOperationOptions

type ListByServiceOperationOptions struct {
	XMsClientRequestId *string
}

func DefaultListByServiceOperationOptions

func DefaultListByServiceOperationOptions() ListByServiceOperationOptions

func (ListByServiceOperationOptions) ToHeaders

func (ListByServiceOperationOptions) ToOData

func (ListByServiceOperationOptions) ToQuery

type ListByServiceOperationResponse

type ListByServiceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SharedPrivateLinkResource
}

type SearchServiceId

type SearchServiceId struct {
	SubscriptionId    string
	ResourceGroupName string
	SearchServiceName string
}

SearchServiceId is a struct representing the Resource ID for a Search Service

func NewSearchServiceID

func NewSearchServiceID(subscriptionId string, resourceGroupName string, searchServiceName string) SearchServiceId

NewSearchServiceID returns a new SearchServiceId struct

func ParseSearchServiceID

func ParseSearchServiceID(input string) (*SearchServiceId, error)

ParseSearchServiceID parses 'input' into a SearchServiceId

func ParseSearchServiceIDInsensitively

func ParseSearchServiceIDInsensitively(input string) (*SearchServiceId, error)

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

func (*SearchServiceId) FromParseResult added in v0.20231127.1171502

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

func (SearchServiceId) ID

func (id SearchServiceId) ID() string

ID returns the formatted Search Service ID

func (SearchServiceId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Search Service ID

func (SearchServiceId) String

func (id SearchServiceId) String() string

String returns a human-readable description of this Search Service ID

type SharedPrivateLinkResource

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

type SharedPrivateLinkResourceId

type SharedPrivateLinkResourceId struct {
	SubscriptionId                string
	ResourceGroupName             string
	SearchServiceName             string
	SharedPrivateLinkResourceName string
}

SharedPrivateLinkResourceId is a struct representing the Resource ID for a Shared Private Link Resource

func NewSharedPrivateLinkResourceID

func NewSharedPrivateLinkResourceID(subscriptionId string, resourceGroupName string, searchServiceName string, sharedPrivateLinkResourceName string) SharedPrivateLinkResourceId

NewSharedPrivateLinkResourceID returns a new SharedPrivateLinkResourceId struct

func ParseSharedPrivateLinkResourceID

func ParseSharedPrivateLinkResourceID(input string) (*SharedPrivateLinkResourceId, error)

ParseSharedPrivateLinkResourceID parses 'input' into a SharedPrivateLinkResourceId

func ParseSharedPrivateLinkResourceIDInsensitively

func ParseSharedPrivateLinkResourceIDInsensitively(input string) (*SharedPrivateLinkResourceId, error)

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

func (*SharedPrivateLinkResourceId) FromParseResult added in v0.20231127.1171502

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

func (SharedPrivateLinkResourceId) ID

ID returns the formatted Shared Private Link Resource ID

func (SharedPrivateLinkResourceId) Segments

Segments returns a slice of Resource ID Segments which comprise this Shared Private Link Resource ID

func (SharedPrivateLinkResourceId) String

func (id SharedPrivateLinkResourceId) String() string

String returns a human-readable description of this Shared Private Link Resource ID

type SharedPrivateLinkResourceOperationPredicate

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

func (SharedPrivateLinkResourceOperationPredicate) Matches

type SharedPrivateLinkResourceProperties

type SharedPrivateLinkResourceProperties struct {
	GroupId               *string                                     `json:"groupId,omitempty"`
	PrivateLinkResourceId *string                                     `json:"privateLinkResourceId,omitempty"`
	ProvisioningState     *SharedPrivateLinkResourceProvisioningState `json:"provisioningState,omitempty"`
	RequestMessage        *string                                     `json:"requestMessage,omitempty"`
	ResourceRegion        *string                                     `json:"resourceRegion,omitempty"`
	Status                *SharedPrivateLinkResourceStatus            `json:"status,omitempty"`
}

type SharedPrivateLinkResourceProvisioningState

type SharedPrivateLinkResourceProvisioningState string
const (
	SharedPrivateLinkResourceProvisioningStateDeleting   SharedPrivateLinkResourceProvisioningState = "Deleting"
	SharedPrivateLinkResourceProvisioningStateFailed     SharedPrivateLinkResourceProvisioningState = "Failed"
	SharedPrivateLinkResourceProvisioningStateIncomplete SharedPrivateLinkResourceProvisioningState = "Incomplete"
	SharedPrivateLinkResourceProvisioningStateSucceeded  SharedPrivateLinkResourceProvisioningState = "Succeeded"
	SharedPrivateLinkResourceProvisioningStateUpdating   SharedPrivateLinkResourceProvisioningState = "Updating"
)

func (*SharedPrivateLinkResourceProvisioningState) UnmarshalJSON

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

type SharedPrivateLinkResourceStatus

type SharedPrivateLinkResourceStatus string
const (
	SharedPrivateLinkResourceStatusApproved     SharedPrivateLinkResourceStatus = "Approved"
	SharedPrivateLinkResourceStatusDisconnected SharedPrivateLinkResourceStatus = "Disconnected"
	SharedPrivateLinkResourceStatusPending      SharedPrivateLinkResourceStatus = "Pending"
	SharedPrivateLinkResourceStatusRejected     SharedPrivateLinkResourceStatus = "Rejected"
)

func (*SharedPrivateLinkResourceStatus) UnmarshalJSON

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

type SharedPrivateLinkResourcesClient

type SharedPrivateLinkResourcesClient struct {
	Client *resourcemanager.Client
}

func NewSharedPrivateLinkResourcesClientWithBaseURI

func NewSharedPrivateLinkResourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*SharedPrivateLinkResourcesClient, error)

func (SharedPrivateLinkResourcesClient) CreateOrUpdate

CreateOrUpdate ...

func (SharedPrivateLinkResourcesClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (SharedPrivateLinkResourcesClient) Delete

Delete ...

func (SharedPrivateLinkResourcesClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (SharedPrivateLinkResourcesClient) Get

Get ...

func (SharedPrivateLinkResourcesClient) ListByService

ListByService ...

func (SharedPrivateLinkResourcesClient) ListByServiceComplete

ListByServiceComplete retrieves all the results into a single object

func (SharedPrivateLinkResourcesClient) ListByServiceCompleteMatchingPredicate

ListByServiceCompleteMatchingPredicate 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