connectedenvironmentsstorages

package
v0.20230823.1052657 Latest Latest
Warning

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

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

README

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

The connectedenvironmentsstorages 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/connectedenvironmentsstorages"

Client Initialization

client := connectedenvironmentsstorages.NewConnectedEnvironmentsStoragesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ConnectedEnvironmentsStoragesClient.CreateOrUpdate

ctx := context.TODO()
id := connectedenvironmentsstorages.NewConnectedEnvironmentStorageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue", "storageValue")

payload := connectedenvironmentsstorages.ConnectedEnvironmentStorage{
	// ...
}


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: ConnectedEnvironmentsStoragesClient.Delete

ctx := context.TODO()
id := connectedenvironmentsstorages.NewConnectedEnvironmentStorageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue", "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: ConnectedEnvironmentsStoragesClient.Get

ctx := context.TODO()
id := connectedenvironmentsstorages.NewConnectedEnvironmentStorageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue", "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: ConnectedEnvironmentsStoragesClient.List

ctx := context.TODO()
id := connectedenvironmentsstorages.NewConnectedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue")

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 ValidateConnectedEnvironmentID

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

ValidateConnectedEnvironmentID checks that 'input' can be parsed as a Connected Environment ID

func ValidateConnectedEnvironmentStorageID

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

ValidateConnectedEnvironmentStorageID checks that 'input' can be parsed as a Connected Environment 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 ConnectedEnvironmentId

type ConnectedEnvironmentId struct {
	SubscriptionId           string
	ResourceGroupName        string
	ConnectedEnvironmentName string
}

ConnectedEnvironmentId is a struct representing the Resource ID for a Connected Environment

func NewConnectedEnvironmentID

func NewConnectedEnvironmentID(subscriptionId string, resourceGroupName string, connectedEnvironmentName string) ConnectedEnvironmentId

NewConnectedEnvironmentID returns a new ConnectedEnvironmentId struct

func ParseConnectedEnvironmentID

func ParseConnectedEnvironmentID(input string) (*ConnectedEnvironmentId, error)

ParseConnectedEnvironmentID parses 'input' into a ConnectedEnvironmentId

func ParseConnectedEnvironmentIDInsensitively

func ParseConnectedEnvironmentIDInsensitively(input string) (*ConnectedEnvironmentId, error)

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

func (ConnectedEnvironmentId) ID

ID returns the formatted Connected Environment ID

func (ConnectedEnvironmentId) Segments

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

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

func (ConnectedEnvironmentId) String

func (id ConnectedEnvironmentId) String() string

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

type ConnectedEnvironmentStorage

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

type ConnectedEnvironmentStorageId

type ConnectedEnvironmentStorageId struct {
	SubscriptionId           string
	ResourceGroupName        string
	ConnectedEnvironmentName string
	StorageName              string
}

ConnectedEnvironmentStorageId is a struct representing the Resource ID for a Connected Environment Storage

func NewConnectedEnvironmentStorageID

func NewConnectedEnvironmentStorageID(subscriptionId string, resourceGroupName string, connectedEnvironmentName string, storageName string) ConnectedEnvironmentStorageId

NewConnectedEnvironmentStorageID returns a new ConnectedEnvironmentStorageId struct

func ParseConnectedEnvironmentStorageID

func ParseConnectedEnvironmentStorageID(input string) (*ConnectedEnvironmentStorageId, error)

ParseConnectedEnvironmentStorageID parses 'input' into a ConnectedEnvironmentStorageId

func ParseConnectedEnvironmentStorageIDInsensitively

func ParseConnectedEnvironmentStorageIDInsensitively(input string) (*ConnectedEnvironmentStorageId, error)

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

func (ConnectedEnvironmentStorageId) ID

ID returns the formatted Connected Environment Storage ID

func (ConnectedEnvironmentStorageId) Segments

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

func (ConnectedEnvironmentStorageId) String

String returns a human-readable description of this Connected Environment Storage ID

type ConnectedEnvironmentStorageProperties

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

type ConnectedEnvironmentStoragesCollection

type ConnectedEnvironmentStoragesCollection struct {
	Value []ConnectedEnvironmentStorage `json:"value"`
}

type ConnectedEnvironmentsStoragesClient

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

func NewConnectedEnvironmentsStoragesClientWithBaseURI

func NewConnectedEnvironmentsStoragesClientWithBaseURI(endpoint string) ConnectedEnvironmentsStoragesClient

func (ConnectedEnvironmentsStoragesClient) CreateOrUpdate

CreateOrUpdate ...

func (ConnectedEnvironmentsStoragesClient) Delete

Delete ...

func (ConnectedEnvironmentsStoragesClient) Get

Get ...

func (ConnectedEnvironmentsStoragesClient) List

List ...

type CreateOrUpdateOperationResponse

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

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
}

type GetOperationResponse

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

type ListOperationResponse

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

Jump to

Keyboard shortcuts

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