gallerysharingupdate

package
v0.20230508.1171356 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: MPL-2.0 Imports: 8 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/gallerysharingupdate Documentation

The gallerysharingupdate SDK allows for interaction with the Azure Resource Manager Service compute (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/compute/2021-07-01/gallerysharingupdate"

Client Initialization

client := gallerysharingupdate.NewGallerySharingUpdateClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: GallerySharingUpdateClient.GallerySharingProfileUpdate

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

payload := gallerysharingupdate.SharingUpdate{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForSharingProfileGroupTypes

func PossibleValuesForSharingProfileGroupTypes() []string

func PossibleValuesForSharingUpdateOperationTypes

func PossibleValuesForSharingUpdateOperationTypes() []string

func ValidateGalleryID

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

ValidateGalleryID checks that 'input' can be parsed as a Gallery ID

Types

type GalleryId

type GalleryId struct {
	SubscriptionId    string
	ResourceGroupName string
	GalleryName       string
}

GalleryId is a struct representing the Resource ID for a Gallery

func NewGalleryID

func NewGalleryID(subscriptionId string, resourceGroupName string, galleryName string) GalleryId

NewGalleryID returns a new GalleryId struct

func ParseGalleryID

func ParseGalleryID(input string) (*GalleryId, error)

ParseGalleryID parses 'input' into a GalleryId

func ParseGalleryIDInsensitively

func ParseGalleryIDInsensitively(input string) (*GalleryId, error)

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

func (GalleryId) ID

func (id GalleryId) ID() string

ID returns the formatted Gallery ID

func (GalleryId) Segments

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

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

func (GalleryId) String

func (id GalleryId) String() string

String returns a human-readable description of this Gallery ID

type GallerySharingProfileUpdateOperationResponse

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

type GallerySharingUpdateClient

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

func NewGallerySharingUpdateClientWithBaseURI

func NewGallerySharingUpdateClientWithBaseURI(endpoint string) GallerySharingUpdateClient

func (GallerySharingUpdateClient) GallerySharingProfileUpdate

func (c GallerySharingUpdateClient) GallerySharingProfileUpdate(ctx context.Context, id GalleryId, input SharingUpdate) (result GallerySharingProfileUpdateOperationResponse, err error)

GallerySharingProfileUpdate ...

func (GallerySharingUpdateClient) GallerySharingProfileUpdateThenPoll

func (c GallerySharingUpdateClient) GallerySharingProfileUpdateThenPoll(ctx context.Context, id GalleryId, input SharingUpdate) error

GallerySharingProfileUpdateThenPoll performs GallerySharingProfileUpdate then polls until it's completed

type SharingProfileGroup

type SharingProfileGroup struct {
	Ids  *[]string                 `json:"ids,omitempty"`
	Type *SharingProfileGroupTypes `json:"type,omitempty"`
}

type SharingProfileGroupTypes

type SharingProfileGroupTypes string
const (
	SharingProfileGroupTypesAADTenants    SharingProfileGroupTypes = "AADTenants"
	SharingProfileGroupTypesSubscriptions SharingProfileGroupTypes = "Subscriptions"
)

type SharingUpdate

type SharingUpdate struct {
	Groups        *[]SharingProfileGroup      `json:"groups,omitempty"`
	OperationType SharingUpdateOperationTypes `json:"operationType"`
}

type SharingUpdateOperationTypes

type SharingUpdateOperationTypes string
const (
	SharingUpdateOperationTypesAdd    SharingUpdateOperationTypes = "Add"
	SharingUpdateOperationTypesRemove SharingUpdateOperationTypes = "Remove"
	SharingUpdateOperationTypesReset  SharingUpdateOperationTypes = "Reset"
)

Jump to

Keyboard shortcuts

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