managedclusterversion

package
v0.20230217.1092053 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MPL-2.0 Imports: 7 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedclusterversion Documentation

The managedclusterversion SDK allows for interaction with the Azure Resource Manager Service servicefabricmanagedcluster (API Version 2021-05-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/servicefabricmanagedcluster/2021-05-01/managedclusterversion"

Client Initialization

client := managedclusterversion.NewManagedClusterVersionClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ManagedClusterVersionClient.Get

ctx := context.TODO()
id := managedclusterversion.NewManagedClusterVersionID("12345678-1234-9876-4563-123456789012", "locationValue", "managedClusterVersionValue")

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: ManagedClusterVersionClient.GetByEnvironment

ctx := context.TODO()
id := managedclusterversion.NewEnvironmentManagedClusterVersionID("12345678-1234-9876-4563-123456789012", "locationValue", "managedClusterVersionValue")

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

Example Usage: ManagedClusterVersionClient.List

ctx := context.TODO()
id := managedclusterversion.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")

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
}

Example Usage: ManagedClusterVersionClient.ListByEnvironment

ctx := context.TODO()
id := managedclusterversion.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")

read, err := client.ListByEnvironment(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 PossibleValuesForOsType

func PossibleValuesForOsType() []string

func ValidateEnvironmentManagedClusterVersionID

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

ValidateEnvironmentManagedClusterVersionID checks that 'input' can be parsed as a Environment Managed Cluster Version ID

func ValidateLocationID

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

ValidateLocationID checks that 'input' can be parsed as a Location ID

func ValidateManagedClusterVersionID

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

ValidateManagedClusterVersionID checks that 'input' can be parsed as a Managed Cluster Version ID

Types

type EnvironmentManagedClusterVersionId

type EnvironmentManagedClusterVersionId struct {
	SubscriptionId            string
	LocationName              string
	ManagedClusterVersionName string
}

EnvironmentManagedClusterVersionId is a struct representing the Resource ID for a Environment Managed Cluster Version

func NewEnvironmentManagedClusterVersionID

func NewEnvironmentManagedClusterVersionID(subscriptionId string, locationName string, managedClusterVersionName string) EnvironmentManagedClusterVersionId

NewEnvironmentManagedClusterVersionID returns a new EnvironmentManagedClusterVersionId struct

func ParseEnvironmentManagedClusterVersionID

func ParseEnvironmentManagedClusterVersionID(input string) (*EnvironmentManagedClusterVersionId, error)

ParseEnvironmentManagedClusterVersionID parses 'input' into a EnvironmentManagedClusterVersionId

func ParseEnvironmentManagedClusterVersionIDInsensitively

func ParseEnvironmentManagedClusterVersionIDInsensitively(input string) (*EnvironmentManagedClusterVersionId, error)

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

func (EnvironmentManagedClusterVersionId) ID

ID returns the formatted Environment Managed Cluster Version ID

func (EnvironmentManagedClusterVersionId) Segments

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

func (EnvironmentManagedClusterVersionId) String

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

type GetByEnvironmentOperationResponse

type GetByEnvironmentOperationResponse struct {
	HttpResponse *http.Response
	Model        *ManagedClusterCodeVersionResult
}

type GetOperationResponse

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

type ListByEnvironmentOperationResponse

type ListByEnvironmentOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]ManagedClusterCodeVersionResult
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]ManagedClusterCodeVersionResult
}

type LocationId

type LocationId struct {
	SubscriptionId string
	LocationName   string
}

LocationId is a struct representing the Resource ID for a Location

func NewLocationID

func NewLocationID(subscriptionId string, locationName string) LocationId

NewLocationID returns a new LocationId struct

func ParseLocationID

func ParseLocationID(input string) (*LocationId, error)

ParseLocationID parses 'input' into a LocationId

func ParseLocationIDInsensitively

func ParseLocationIDInsensitively(input string) (*LocationId, error)

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

func (LocationId) ID

func (id LocationId) ID() string

ID returns the formatted Location ID

func (LocationId) Segments

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

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

func (LocationId) String

func (id LocationId) String() string

String returns a human-readable description of this Location ID

type ManagedClusterCodeVersionResult

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

type ManagedClusterVersionClient

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

func NewManagedClusterVersionClientWithBaseURI

func NewManagedClusterVersionClientWithBaseURI(endpoint string) ManagedClusterVersionClient

func (ManagedClusterVersionClient) Get

Get ...

func (ManagedClusterVersionClient) GetByEnvironment

GetByEnvironment ...

func (ManagedClusterVersionClient) List

List ...

func (ManagedClusterVersionClient) ListByEnvironment

ListByEnvironment ...

type ManagedClusterVersionDetails

type ManagedClusterVersionDetails struct {
	ClusterCodeVersion *string `json:"clusterCodeVersion,omitempty"`
	OsType             *OsType `json:"osType,omitempty"`
	SupportExpiryUtc   *string `json:"supportExpiryUtc,omitempty"`
}

type ManagedClusterVersionId

type ManagedClusterVersionId struct {
	SubscriptionId            string
	LocationName              string
	ManagedClusterVersionName string
}

ManagedClusterVersionId is a struct representing the Resource ID for a Managed Cluster Version

func NewManagedClusterVersionID

func NewManagedClusterVersionID(subscriptionId string, locationName string, managedClusterVersionName string) ManagedClusterVersionId

NewManagedClusterVersionID returns a new ManagedClusterVersionId struct

func ParseManagedClusterVersionID

func ParseManagedClusterVersionID(input string) (*ManagedClusterVersionId, error)

ParseManagedClusterVersionID parses 'input' into a ManagedClusterVersionId

func ParseManagedClusterVersionIDInsensitively

func ParseManagedClusterVersionIDInsensitively(input string) (*ManagedClusterVersionId, error)

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

func (ManagedClusterVersionId) ID

ID returns the formatted Managed Cluster Version ID

func (ManagedClusterVersionId) Segments

Segments returns a slice of Resource ID Segments which comprise this Managed Cluster Version ID

func (ManagedClusterVersionId) String

func (id ManagedClusterVersionId) String() string

String returns a human-readable description of this Managed Cluster Version ID

type OsType

type OsType string
const (
	OsTypeWindows OsType = "Windows"
)

Jump to

Keyboard shortcuts

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