diskaccesses

package
v0.20230725.1143138 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses Documentation

The diskaccesses SDK allows for interaction with the Azure Resource Manager Service compute (API Version 2022-03-02).

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/compute/2022-03-02/diskaccesses"

Client Initialization

client := diskaccesses.NewDiskAccessesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DiskAccessesClient.CreateOrUpdate

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

payload := diskaccesses.DiskAccess{
	// ...
}


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

Example Usage: DiskAccessesClient.Delete

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

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

Example Usage: DiskAccessesClient.DeleteAPrivateEndpointConnection

ctx := context.TODO()
id := diskaccesses.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskAccessValue", "privateEndpointConnectionValue")

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

Example Usage: DiskAccessesClient.Get

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

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: DiskAccessesClient.GetAPrivateEndpointConnection

ctx := context.TODO()
id := diskaccesses.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskAccessValue", "privateEndpointConnectionValue")

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

Example Usage: DiskAccessesClient.GetPrivateLinkResources

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

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

Example Usage: DiskAccessesClient.List

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

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

Example Usage: DiskAccessesClient.ListByResourceGroup

ctx := context.TODO()
id := diskaccesses.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: DiskAccessesClient.ListPrivateEndpointConnections

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

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

Example Usage: DiskAccessesClient.Update

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

payload := diskaccesses.DiskAccessUpdate{
	// ...
}


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

Example Usage: DiskAccessesClient.UpdateAPrivateEndpointConnection

ctx := context.TODO()
id := diskaccesses.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskAccessValue", "privateEndpointConnectionValue")

payload := diskaccesses.PrivateEndpointConnection{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForPrivateEndpointConnectionProvisioningState

func PossibleValuesForPrivateEndpointConnectionProvisioningState() []string

func PossibleValuesForPrivateEndpointServiceConnectionStatus

func PossibleValuesForPrivateEndpointServiceConnectionStatus() []string

func ValidateDiskAccessID

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

ValidateDiskAccessID checks that 'input' can be parsed as a Disk Access ID

func ValidatePrivateEndpointConnectionID

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

ValidatePrivateEndpointConnectionID checks that 'input' can be parsed as a Private Endpoint Connection ID

Types

type CreateOrUpdateOperationResponse

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

type DeleteAPrivateEndpointConnectionOperationResponse

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

type DeleteOperationResponse

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

type DiskAccess

type DiskAccess struct {
	ExtendedLocation *edgezones.Model      `json:"extendedLocation,omitempty"`
	Id               *string               `json:"id,omitempty"`
	Location         string                `json:"location"`
	Name             *string               `json:"name,omitempty"`
	Properties       *DiskAccessProperties `json:"properties,omitempty"`
	Tags             *map[string]string    `json:"tags,omitempty"`
	Type             *string               `json:"type,omitempty"`
}

type DiskAccessId

type DiskAccessId struct {
	SubscriptionId    string
	ResourceGroupName string
	DiskAccessName    string
}

DiskAccessId is a struct representing the Resource ID for a Disk Access

func NewDiskAccessID

func NewDiskAccessID(subscriptionId string, resourceGroupName string, diskAccessName string) DiskAccessId

NewDiskAccessID returns a new DiskAccessId struct

func ParseDiskAccessID

func ParseDiskAccessID(input string) (*DiskAccessId, error)

ParseDiskAccessID parses 'input' into a DiskAccessId

func ParseDiskAccessIDInsensitively

func ParseDiskAccessIDInsensitively(input string) (*DiskAccessId, error)

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

func (DiskAccessId) ID

func (id DiskAccessId) ID() string

ID returns the formatted Disk Access ID

func (DiskAccessId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Disk Access ID

func (DiskAccessId) String

func (id DiskAccessId) String() string

String returns a human-readable description of this Disk Access ID

type DiskAccessOperationPredicate

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

func (DiskAccessOperationPredicate) Matches

func (p DiskAccessOperationPredicate) Matches(input DiskAccess) bool

type DiskAccessProperties

type DiskAccessProperties struct {
	PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"`
	ProvisioningState          *string                      `json:"provisioningState,omitempty"`
	TimeCreated                *string                      `json:"timeCreated,omitempty"`
}

func (*DiskAccessProperties) GetTimeCreatedAsTime

func (o *DiskAccessProperties) GetTimeCreatedAsTime() (*time.Time, error)

func (*DiskAccessProperties) SetTimeCreatedAsTime

func (o *DiskAccessProperties) SetTimeCreatedAsTime(input time.Time)

type DiskAccessUpdate

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

type DiskAccessesClient

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

func NewDiskAccessesClientWithBaseURI

func NewDiskAccessesClientWithBaseURI(endpoint string) DiskAccessesClient

func (DiskAccessesClient) CreateOrUpdate

func (c DiskAccessesClient) CreateOrUpdate(ctx context.Context, id DiskAccessId, input DiskAccess) (result CreateOrUpdateOperationResponse, err error)

CreateOrUpdate ...

func (DiskAccessesClient) CreateOrUpdateThenPoll

func (c DiskAccessesClient) CreateOrUpdateThenPoll(ctx context.Context, id DiskAccessId, input DiskAccess) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (DiskAccessesClient) Delete

Delete ...

func (DiskAccessesClient) DeleteAPrivateEndpointConnection

DeleteAPrivateEndpointConnection ...

func (DiskAccessesClient) DeleteAPrivateEndpointConnectionThenPoll

func (c DiskAccessesClient) DeleteAPrivateEndpointConnectionThenPoll(ctx context.Context, id PrivateEndpointConnectionId) error

DeleteAPrivateEndpointConnectionThenPoll performs DeleteAPrivateEndpointConnection then polls until it's completed

func (DiskAccessesClient) DeleteThenPoll

func (c DiskAccessesClient) DeleteThenPoll(ctx context.Context, id DiskAccessId) error

DeleteThenPoll performs Delete then polls until it's completed

func (DiskAccessesClient) Get

Get ...

func (DiskAccessesClient) GetAPrivateEndpointConnection

GetAPrivateEndpointConnection ...

func (DiskAccessesClient) GetPrivateLinkResources

func (c DiskAccessesClient) GetPrivateLinkResources(ctx context.Context, id DiskAccessId) (result GetPrivateLinkResourcesOperationResponse, err error)

GetPrivateLinkResources ...

func (DiskAccessesClient) List

List ...

func (DiskAccessesClient) ListByResourceGroup

ListByResourceGroup ...

func (DiskAccessesClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all of the results into a single object

func (DiskAccessesClient) ListByResourceGroupCompleteMatchingPredicate

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

ListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (DiskAccessesClient) ListComplete

ListComplete retrieves all of the results into a single object

func (DiskAccessesClient) ListCompleteMatchingPredicate

func (c DiskAccessesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate DiskAccessOperationPredicate) (resp ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (DiskAccessesClient) ListPrivateEndpointConnections

func (c DiskAccessesClient) ListPrivateEndpointConnections(ctx context.Context, id DiskAccessId) (resp ListPrivateEndpointConnectionsOperationResponse, err error)

ListPrivateEndpointConnections ...

func (DiskAccessesClient) ListPrivateEndpointConnectionsComplete

func (c DiskAccessesClient) ListPrivateEndpointConnectionsComplete(ctx context.Context, id DiskAccessId) (ListPrivateEndpointConnectionsCompleteResult, error)

ListPrivateEndpointConnectionsComplete retrieves all of the results into a single object

func (DiskAccessesClient) ListPrivateEndpointConnectionsCompleteMatchingPredicate

func (c DiskAccessesClient) ListPrivateEndpointConnectionsCompleteMatchingPredicate(ctx context.Context, id DiskAccessId, predicate PrivateEndpointConnectionOperationPredicate) (resp ListPrivateEndpointConnectionsCompleteResult, err error)

ListPrivateEndpointConnectionsCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (DiskAccessesClient) Update

Update ...

func (DiskAccessesClient) UpdateAPrivateEndpointConnection

UpdateAPrivateEndpointConnection ...

func (DiskAccessesClient) UpdateAPrivateEndpointConnectionThenPoll

func (c DiskAccessesClient) UpdateAPrivateEndpointConnectionThenPoll(ctx context.Context, id PrivateEndpointConnectionId, input PrivateEndpointConnection) error

UpdateAPrivateEndpointConnectionThenPoll performs UpdateAPrivateEndpointConnection then polls until it's completed

func (DiskAccessesClient) UpdateThenPoll

func (c DiskAccessesClient) UpdateThenPoll(ctx context.Context, id DiskAccessId, input DiskAccessUpdate) error

UpdateThenPoll performs Update then polls until it's completed

type GetAPrivateEndpointConnectionOperationResponse

type GetAPrivateEndpointConnectionOperationResponse struct {
	HttpResponse *http.Response
	Model        *PrivateEndpointConnection
}

type GetOperationResponse

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

type GetPrivateLinkResourcesOperationResponse

type GetPrivateLinkResourcesOperationResponse struct {
	HttpResponse *http.Response
	Model        *PrivateLinkResourceListResult
}

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	Items []DiskAccess
}

type ListByResourceGroupOperationResponse

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

func (ListByResourceGroupOperationResponse) HasMore

func (ListByResourceGroupOperationResponse) LoadMore

type ListCompleteResult

type ListCompleteResult struct {
	Items []DiskAccess
}

type ListOperationResponse

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

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)

type ListPrivateEndpointConnectionsCompleteResult

type ListPrivateEndpointConnectionsCompleteResult struct {
	Items []PrivateEndpointConnection
}

type ListPrivateEndpointConnectionsOperationResponse

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

func (ListPrivateEndpointConnectionsOperationResponse) HasMore

func (ListPrivateEndpointConnectionsOperationResponse) LoadMore

type PrivateEndpoint

type PrivateEndpoint struct {
	Id *string `json:"id,omitempty"`
}

type PrivateEndpointConnection

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

type PrivateEndpointConnectionId

type PrivateEndpointConnectionId struct {
	SubscriptionId                string
	ResourceGroupName             string
	DiskAccessName                string
	PrivateEndpointConnectionName string
}

PrivateEndpointConnectionId is a struct representing the Resource ID for a Private Endpoint Connection

func NewPrivateEndpointConnectionID

func NewPrivateEndpointConnectionID(subscriptionId string, resourceGroupName string, diskAccessName string, privateEndpointConnectionName string) PrivateEndpointConnectionId

NewPrivateEndpointConnectionID returns a new PrivateEndpointConnectionId struct

func ParsePrivateEndpointConnectionID

func ParsePrivateEndpointConnectionID(input string) (*PrivateEndpointConnectionId, error)

ParsePrivateEndpointConnectionID parses 'input' into a PrivateEndpointConnectionId

func ParsePrivateEndpointConnectionIDInsensitively

func ParsePrivateEndpointConnectionIDInsensitively(input string) (*PrivateEndpointConnectionId, error)

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

func (PrivateEndpointConnectionId) ID

ID returns the formatted Private Endpoint Connection ID

func (PrivateEndpointConnectionId) Segments

Segments returns a slice of Resource ID Segments which comprise this Private Endpoint Connection ID

func (PrivateEndpointConnectionId) String

func (id PrivateEndpointConnectionId) String() string

String returns a human-readable description of this Private Endpoint Connection ID

type PrivateEndpointConnectionOperationPredicate

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

func (PrivateEndpointConnectionOperationPredicate) Matches

type PrivateEndpointConnectionProperties

type PrivateEndpointConnectionProperties struct {
	PrivateEndpoint                   *PrivateEndpoint                            `json:"privateEndpoint,omitempty"`
	PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState           `json:"privateLinkServiceConnectionState"`
	ProvisioningState                 *PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"`
}

type PrivateEndpointConnectionProvisioningState

type PrivateEndpointConnectionProvisioningState string
const (
	PrivateEndpointConnectionProvisioningStateCreating  PrivateEndpointConnectionProvisioningState = "Creating"
	PrivateEndpointConnectionProvisioningStateDeleting  PrivateEndpointConnectionProvisioningState = "Deleting"
	PrivateEndpointConnectionProvisioningStateFailed    PrivateEndpointConnectionProvisioningState = "Failed"
	PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded"
)

type PrivateEndpointServiceConnectionStatus

type PrivateEndpointServiceConnectionStatus string
const (
	PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved"
	PrivateEndpointServiceConnectionStatusPending  PrivateEndpointServiceConnectionStatus = "Pending"
	PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected"
)

type PrivateLinkResource

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

type PrivateLinkResourceListResult

type PrivateLinkResourceListResult struct {
	Value *[]PrivateLinkResource `json:"value,omitempty"`
}

type PrivateLinkResourceProperties

type PrivateLinkResourceProperties struct {
	GroupId           *string   `json:"groupId,omitempty"`
	RequiredMembers   *[]string `json:"requiredMembers,omitempty"`
	RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"`
}

type PrivateLinkServiceConnectionState

type PrivateLinkServiceConnectionState struct {
	ActionsRequired *string                                 `json:"actionsRequired,omitempty"`
	Description     *string                                 `json:"description,omitempty"`
	Status          *PrivateEndpointServiceConnectionStatus `json:"status,omitempty"`
}

type UpdateAPrivateEndpointConnectionOperationResponse

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

type UpdateOperationResponse

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

Jump to

Keyboard shortcuts

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