managedenvironmentsstorages

package
v0.20230901.1170029 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-11-01-preview/managedenvironmentsstorages Documentation

The managedenvironmentsstorages SDK allows for interaction with the Azure Resource Manager Service containerapps (API Version 2022-11-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/containerapps/2022-11-01-preview/managedenvironmentsstorages"

Client Initialization

client := managedenvironmentsstorages.NewManagedEnvironmentsStoragesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ManagedEnvironmentsStoragesClient.CreateOrUpdate

ctx := context.TODO()
id := managedenvironmentsstorages.NewStorageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "storageValue")

payload := managedenvironmentsstorages.ManagedEnvironmentStorage{
	// ...
}


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

Example Usage: ManagedEnvironmentsStoragesClient.Delete

ctx := context.TODO()
id := managedenvironmentsstorages.NewStorageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "storageValue")

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

Example Usage: ManagedEnvironmentsStoragesClient.Get

ctx := context.TODO()
id := managedenvironmentsstorages.NewStorageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "storageValue")

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: ManagedEnvironmentsStoragesClient.List

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

read, err := client.List(ctx, id)
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 PossibleValuesForAccessMode

func PossibleValuesForAccessMode() []string

func ValidateManagedEnvironmentID

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

ValidateManagedEnvironmentID checks that 'input' can be parsed as a Managed Environment ID

func ValidateStorageID

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

ValidateStorageID checks that 'input' can be parsed as a Storage ID

Types

type AccessMode

type AccessMode string
const (
	AccessModeReadOnly  AccessMode = "ReadOnly"
	AccessModeReadWrite AccessMode = "ReadWrite"
)

type AzureFileProperties

type AzureFileProperties struct {
	AccessMode  *AccessMode `json:"accessMode,omitempty"`
	AccountKey  *string     `json:"accountKey,omitempty"`
	AccountName *string     `json:"accountName,omitempty"`
	ShareName   *string     `json:"shareName,omitempty"`
}

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *ManagedEnvironmentStorage
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
}

type GetOperationResponse

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

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *ManagedEnvironmentStoragesCollection
}

type ManagedEnvironmentId

type ManagedEnvironmentId struct {
	SubscriptionId         string
	ResourceGroupName      string
	ManagedEnvironmentName string
}

ManagedEnvironmentId is a struct representing the Resource ID for a Managed Environment

func NewManagedEnvironmentID

func NewManagedEnvironmentID(subscriptionId string, resourceGroupName string, managedEnvironmentName string) ManagedEnvironmentId

NewManagedEnvironmentID returns a new ManagedEnvironmentId struct

func ParseManagedEnvironmentID

func ParseManagedEnvironmentID(input string) (*ManagedEnvironmentId, error)

ParseManagedEnvironmentID parses 'input' into a ManagedEnvironmentId

func ParseManagedEnvironmentIDInsensitively

func ParseManagedEnvironmentIDInsensitively(input string) (*ManagedEnvironmentId, error)

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

func (ManagedEnvironmentId) ID

func (id ManagedEnvironmentId) ID() string

ID returns the formatted Managed Environment ID

func (ManagedEnvironmentId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Managed Environment ID

func (ManagedEnvironmentId) String

func (id ManagedEnvironmentId) String() string

String returns a human-readable description of this Managed Environment ID

type ManagedEnvironmentStorage

type ManagedEnvironmentStorage struct {
	Id         *string                              `json:"id,omitempty"`
	Name       *string                              `json:"name,omitempty"`
	Properties *ManagedEnvironmentStorageProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData               `json:"systemData,omitempty"`
	Type       *string                              `json:"type,omitempty"`
}

type ManagedEnvironmentStorageProperties

type ManagedEnvironmentStorageProperties struct {
	AzureFile *AzureFileProperties `json:"azureFile,omitempty"`
}

type ManagedEnvironmentStoragesCollection

type ManagedEnvironmentStoragesCollection struct {
	Value []ManagedEnvironmentStorage `json:"value"`
}

type ManagedEnvironmentsStoragesClient

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

func NewManagedEnvironmentsStoragesClientWithBaseURI

func NewManagedEnvironmentsStoragesClientWithBaseURI(endpoint string) ManagedEnvironmentsStoragesClient

func (ManagedEnvironmentsStoragesClient) CreateOrUpdate

CreateOrUpdate ...

func (ManagedEnvironmentsStoragesClient) Delete

Delete ...

func (ManagedEnvironmentsStoragesClient) Get

Get ...

func (ManagedEnvironmentsStoragesClient) List

List ...

type StorageId

type StorageId struct {
	SubscriptionId         string
	ResourceGroupName      string
	ManagedEnvironmentName string
	StorageName            string
}

StorageId is a struct representing the Resource ID for a Storage

func NewStorageID

func NewStorageID(subscriptionId string, resourceGroupName string, managedEnvironmentName string, storageName string) StorageId

NewStorageID returns a new StorageId struct

func ParseStorageID

func ParseStorageID(input string) (*StorageId, error)

ParseStorageID parses 'input' into a StorageId

func ParseStorageIDInsensitively

func ParseStorageIDInsensitively(input string) (*StorageId, error)

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

func (StorageId) ID

func (id StorageId) ID() string

ID returns the formatted Storage ID

func (StorageId) Segments

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

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

func (StorageId) String

func (id StorageId) String() string

String returns a human-readable description of this Storage ID

Jump to

Keyboard shortcuts

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