filesystems

package
v0.20240903.1131440 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/qumulostorage/2024-06-19/filesystems Documentation

The filesystems SDK allows for interaction with the Azure Resource Manager Service qumulostorage (API Version 2024-06-19).

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/qumulostorage/2024-06-19/filesystems"

Client Initialization

client := filesystems.NewFileSystemsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: FileSystemsClient.CreateOrUpdate

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

payload := filesystems.LiftrBaseStorageFileSystemResource{
	// ...
}


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

Example Usage: FileSystemsClient.Delete

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

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

Example Usage: FileSystemsClient.Get

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

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

ctx := context.TODO()
id := commonids.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: FileSystemsClient.ListBySubscription

ctx := context.TODO()
id := commonids.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: FileSystemsClient.Update

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

payload := filesystems.LiftrBaseStorageFileSystemResourceUpdate{
	// ...
}


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 PossibleValuesForMarketplaceSubscriptionStatus

func PossibleValuesForMarketplaceSubscriptionStatus() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func ValidateFileSystemID

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

ValidateFileSystemID checks that 'input' can be parsed as a File System ID

Types

type CreateOrUpdateOperationResponse

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

type DeleteOperationResponse

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

type FileSystemId

type FileSystemId struct {
	SubscriptionId    string
	ResourceGroupName string
	FileSystemName    string
}

FileSystemId is a struct representing the Resource ID for a File System

func NewFileSystemID

func NewFileSystemID(subscriptionId string, resourceGroupName string, fileSystemName string) FileSystemId

NewFileSystemID returns a new FileSystemId struct

func ParseFileSystemID

func ParseFileSystemID(input string) (*FileSystemId, error)

ParseFileSystemID parses 'input' into a FileSystemId

func ParseFileSystemIDInsensitively

func ParseFileSystemIDInsensitively(input string) (*FileSystemId, error)

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

func (*FileSystemId) FromParseResult

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

func (FileSystemId) ID

func (id FileSystemId) ID() string

ID returns the formatted File System ID

func (FileSystemId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this File System ID

func (FileSystemId) String

func (id FileSystemId) String() string

String returns a human-readable description of this File System ID

type FileSystemsClient

type FileSystemsClient struct {
	Client *resourcemanager.Client
}

func NewFileSystemsClientWithBaseURI

func NewFileSystemsClientWithBaseURI(sdkApi sdkEnv.Api) (*FileSystemsClient, error)

func (FileSystemsClient) CreateOrUpdate

CreateOrUpdate ...

func (FileSystemsClient) CreateOrUpdateThenPoll

func (c FileSystemsClient) CreateOrUpdateThenPoll(ctx context.Context, id FileSystemId, input LiftrBaseStorageFileSystemResource) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (FileSystemsClient) Delete

Delete ...

func (FileSystemsClient) DeleteThenPoll

func (c FileSystemsClient) DeleteThenPoll(ctx context.Context, id FileSystemId) error

DeleteThenPoll performs Delete then polls until it's completed

func (FileSystemsClient) Get

Get ...

func (FileSystemsClient) ListByResourceGroup

ListByResourceGroup ...

func (FileSystemsClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all the results into a single object

func (FileSystemsClient) ListByResourceGroupCompleteMatchingPredicate

func (c FileSystemsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate LiftrBaseStorageFileSystemResourceOperationPredicate) (result ListByResourceGroupCompleteResult, err error)

ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (FileSystemsClient) ListBySubscription

ListBySubscription ...

func (FileSystemsClient) ListBySubscriptionComplete

ListBySubscriptionComplete retrieves all the results into a single object

func (FileSystemsClient) ListBySubscriptionCompleteMatchingPredicate

func (c FileSystemsClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate LiftrBaseStorageFileSystemResourceOperationPredicate) (result ListBySubscriptionCompleteResult, err error)

ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (FileSystemsClient) Update

Update ...

type GetOperationResponse

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

type LiftrBaseMarketplaceDetails

type LiftrBaseMarketplaceDetails struct {
	MarketplaceSubscriptionId     *string                        `json:"marketplaceSubscriptionId,omitempty"`
	MarketplaceSubscriptionStatus *MarketplaceSubscriptionStatus `json:"marketplaceSubscriptionStatus,omitempty"`
	OfferId                       string                         `json:"offerId"`
	PlanId                        string                         `json:"planId"`
	PublisherId                   *string                        `json:"publisherId,omitempty"`
	TermUnit                      *string                        `json:"termUnit,omitempty"`
}

type LiftrBaseStorageFileSystemResource

type LiftrBaseStorageFileSystemResource struct {
	Id         *string                                       `json:"id,omitempty"`
	Identity   *identity.LegacySystemAndUserAssignedMap      `json:"identity,omitempty"`
	Location   string                                        `json:"location"`
	Name       *string                                       `json:"name,omitempty"`
	Properties *LiftrBaseStorageFileSystemResourceProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData                        `json:"systemData,omitempty"`
	Tags       *map[string]string                            `json:"tags,omitempty"`
	Type       *string                                       `json:"type,omitempty"`
}

type LiftrBaseStorageFileSystemResourceOperationPredicate

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

func (LiftrBaseStorageFileSystemResourceOperationPredicate) Matches

type LiftrBaseStorageFileSystemResourceProperties

type LiftrBaseStorageFileSystemResourceProperties struct {
	AdminPassword      string                      `json:"adminPassword"`
	AvailabilityZone   *string                     `json:"availabilityZone,omitempty"`
	ClusterLoginUrl    *string                     `json:"clusterLoginUrl,omitempty"`
	DelegatedSubnetId  string                      `json:"delegatedSubnetId"`
	MarketplaceDetails LiftrBaseMarketplaceDetails `json:"marketplaceDetails"`
	PrivateIPs         *[]string                   `json:"privateIPs,omitempty"`
	ProvisioningState  *ProvisioningState          `json:"provisioningState,omitempty"`
	StorageSku         string                      `json:"storageSku"`
	UserDetails        LiftrBaseUserDetails        `json:"userDetails"`
}

type LiftrBaseStorageFileSystemResourceUpdate

type LiftrBaseStorageFileSystemResourceUpdate struct {
	Identity   *identity.LegacySystemAndUserAssignedMap            `json:"identity,omitempty"`
	Properties *LiftrBaseStorageFileSystemResourceUpdateProperties `json:"properties,omitempty"`
	Tags       *map[string]string                                  `json:"tags,omitempty"`
}

type LiftrBaseStorageFileSystemResourceUpdateProperties

type LiftrBaseStorageFileSystemResourceUpdateProperties struct {
	DelegatedSubnetId  *string                      `json:"delegatedSubnetId,omitempty"`
	MarketplaceDetails *LiftrBaseMarketplaceDetails `json:"marketplaceDetails,omitempty"`
	UserDetails        *LiftrBaseUserDetails        `json:"userDetails,omitempty"`
}

type LiftrBaseUserDetails

type LiftrBaseUserDetails struct {
	Email string `json:"email"`
}

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []LiftrBaseStorageFileSystemResource
}

type ListByResourceGroupCustomPager

type ListByResourceGroupCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]LiftrBaseStorageFileSystemResource
}

type ListBySubscriptionCompleteResult

type ListBySubscriptionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []LiftrBaseStorageFileSystemResource
}

type ListBySubscriptionCustomPager

type ListBySubscriptionCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link

type ListBySubscriptionOperationResponse

type ListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]LiftrBaseStorageFileSystemResource
}

type MarketplaceSubscriptionStatus

type MarketplaceSubscriptionStatus string
const (
	MarketplaceSubscriptionStatusPendingFulfillmentStart MarketplaceSubscriptionStatus = "PendingFulfillmentStart"
	MarketplaceSubscriptionStatusSubscribed              MarketplaceSubscriptionStatus = "Subscribed"
	MarketplaceSubscriptionStatusSuspended               MarketplaceSubscriptionStatus = "Suspended"
	MarketplaceSubscriptionStatusUnsubscribed            MarketplaceSubscriptionStatus = "Unsubscribed"
)

func (*MarketplaceSubscriptionStatus) UnmarshalJSON

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

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateAccepted  ProvisioningState = "Accepted"
	ProvisioningStateCanceled  ProvisioningState = "Canceled"
	ProvisioningStateCreating  ProvisioningState = "Creating"
	ProvisioningStateDeleted   ProvisioningState = "Deleted"
	ProvisioningStateDeleting  ProvisioningState = "Deleting"
	ProvisioningStateFailed    ProvisioningState = "Failed"
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
	ProvisioningStateUpdating  ProvisioningState = "Updating"
)

func (*ProvisioningState) UnmarshalJSON

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

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *LiftrBaseStorageFileSystemResource
}

Jump to

Keyboard shortcuts

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