clusterversion

package
v0.20240222.1164640 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MPL-2.0 Imports: 10 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/servicefabric/2021-06-01/clusterversion Documentation

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

Client Initialization

client := clusterversion.NewClusterVersionClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ClusterVersionClient.Get

ctx := context.TODO()
id := clusterversion.NewClusterVersionID("12345678-1234-9876-4563-123456789012", "locationValue", "clusterVersionValue")

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

ctx := context.TODO()
id := clusterversion.NewEnvironmentClusterVersionID("12345678-1234-9876-4563-123456789012", "locationValue", "Linux", "clusterVersionValue")

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

ctx := context.TODO()
id := clusterversion.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: ClusterVersionClient.ListByEnvironment

ctx := context.TODO()
id := clusterversion.NewEnvironmentID("12345678-1234-9876-4563-123456789012", "locationValue", "Linux")

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 PossibleValuesForClusterVersionsEnvironment

func PossibleValuesForClusterVersionsEnvironment() []string

func PossibleValuesForEnvironment

func PossibleValuesForEnvironment() []string

func ValidateClusterVersionID

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

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

func ValidateEnvironmentClusterVersionID

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

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

func ValidateEnvironmentID

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

ValidateEnvironmentID checks that 'input' can be parsed as a Environment ID

func ValidateLocationID

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

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

Types

type ClusterCodeVersionsListResult

type ClusterCodeVersionsListResult struct {
	NextLink *string                      `json:"nextLink,omitempty"`
	Value    *[]ClusterCodeVersionsResult `json:"value,omitempty"`
}

type ClusterCodeVersionsResult

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

type ClusterVersionClient

type ClusterVersionClient struct {
	Client *resourcemanager.Client
}

func NewClusterVersionClientWithBaseURI

func NewClusterVersionClientWithBaseURI(sdkApi sdkEnv.Api) (*ClusterVersionClient, error)

func (ClusterVersionClient) Get

Get ...

func (ClusterVersionClient) GetByEnvironment

GetByEnvironment ...

func (ClusterVersionClient) List

List ...

func (ClusterVersionClient) ListByEnvironment

ListByEnvironment ...

type ClusterVersionDetails

type ClusterVersionDetails struct {
	CodeVersion      *string      `json:"codeVersion,omitempty"`
	Environment      *Environment `json:"environment,omitempty"`
	SupportExpiryUtc *string      `json:"supportExpiryUtc,omitempty"`
}

type ClusterVersionId

type ClusterVersionId struct {
	SubscriptionId     string
	LocationName       string
	ClusterVersionName string
}

ClusterVersionId is a struct representing the Resource ID for a Cluster Version

func NewClusterVersionID

func NewClusterVersionID(subscriptionId string, locationName string, clusterVersionName string) ClusterVersionId

NewClusterVersionID returns a new ClusterVersionId struct

func ParseClusterVersionID

func ParseClusterVersionID(input string) (*ClusterVersionId, error)

ParseClusterVersionID parses 'input' into a ClusterVersionId

func ParseClusterVersionIDInsensitively

func ParseClusterVersionIDInsensitively(input string) (*ClusterVersionId, error)

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

func (*ClusterVersionId) FromParseResult

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

func (ClusterVersionId) ID

func (id ClusterVersionId) ID() string

ID returns the formatted Cluster Version ID

func (ClusterVersionId) Segments

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

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

func (ClusterVersionId) String

func (id ClusterVersionId) String() string

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

type ClusterVersionsEnvironment

type ClusterVersionsEnvironment string
const (
	ClusterVersionsEnvironmentLinux   ClusterVersionsEnvironment = "Linux"
	ClusterVersionsEnvironmentWindows ClusterVersionsEnvironment = "Windows"
)

func (*ClusterVersionsEnvironment) UnmarshalJSON added in v0.20240222.1121651

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

type Environment

type Environment string
const (
	EnvironmentLinux   Environment = "Linux"
	EnvironmentWindows Environment = "Windows"
)

func (*Environment) UnmarshalJSON added in v0.20240222.1121651

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

type EnvironmentClusterVersionId

type EnvironmentClusterVersionId struct {
	SubscriptionId     string
	LocationName       string
	Environment        ClusterVersionsEnvironment
	ClusterVersionName string
}

EnvironmentClusterVersionId is a struct representing the Resource ID for a Environment Cluster Version

func NewEnvironmentClusterVersionID

func NewEnvironmentClusterVersionID(subscriptionId string, locationName string, environment ClusterVersionsEnvironment, clusterVersionName string) EnvironmentClusterVersionId

NewEnvironmentClusterVersionID returns a new EnvironmentClusterVersionId struct

func ParseEnvironmentClusterVersionID

func ParseEnvironmentClusterVersionID(input string) (*EnvironmentClusterVersionId, error)

ParseEnvironmentClusterVersionID parses 'input' into a EnvironmentClusterVersionId

func ParseEnvironmentClusterVersionIDInsensitively

func ParseEnvironmentClusterVersionIDInsensitively(input string) (*EnvironmentClusterVersionId, error)

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

func (*EnvironmentClusterVersionId) FromParseResult

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

func (EnvironmentClusterVersionId) ID

ID returns the formatted Environment Cluster Version ID

func (EnvironmentClusterVersionId) Segments

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

func (EnvironmentClusterVersionId) String

func (id EnvironmentClusterVersionId) String() string

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

type EnvironmentId

type EnvironmentId struct {
	SubscriptionId string
	LocationName   string
	Environment    ClusterVersionsEnvironment
}

EnvironmentId is a struct representing the Resource ID for a Environment

func NewEnvironmentID

func NewEnvironmentID(subscriptionId string, locationName string, environment ClusterVersionsEnvironment) EnvironmentId

NewEnvironmentID returns a new EnvironmentId struct

func ParseEnvironmentID

func ParseEnvironmentID(input string) (*EnvironmentId, error)

ParseEnvironmentID parses 'input' into a EnvironmentId

func ParseEnvironmentIDInsensitively

func ParseEnvironmentIDInsensitively(input string) (*EnvironmentId, error)

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

func (*EnvironmentId) FromParseResult

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

func (EnvironmentId) ID

func (id EnvironmentId) ID() string

ID returns the formatted Environment ID

func (EnvironmentId) Segments

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

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

func (EnvironmentId) String

func (id EnvironmentId) String() string

String returns a human-readable description of this Environment ID

type GetByEnvironmentOperationResponse

type GetByEnvironmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ClusterCodeVersionsListResult
}

type GetOperationResponse

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

type ListByEnvironmentOperationResponse

type ListByEnvironmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ClusterCodeVersionsListResult
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ClusterCodeVersionsListResult
}

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) FromParseResult

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

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

Jump to

Keyboard shortcuts

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