applicationtypeversion

package
v0.20240214.1100807 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := applicationtypeversion.NewApplicationTypeVersionClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ApplicationTypeVersionClient.CreateOrUpdate

ctx := context.TODO()
id := applicationtypeversion.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "applicationTypeValue", "versionValue")

payload := applicationtypeversion.ApplicationTypeVersionResource{
	// ...
}


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

Example Usage: ApplicationTypeVersionClient.Delete

ctx := context.TODO()
id := applicationtypeversion.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "applicationTypeValue", "versionValue")

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

Example Usage: ApplicationTypeVersionClient.Get

ctx := context.TODO()
id := applicationtypeversion.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "applicationTypeValue", "versionValue")

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: ApplicationTypeVersionClient.ListByApplicationTypes

ctx := context.TODO()
id := applicationtypeversion.NewApplicationTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "applicationTypeValue")

// alternatively `client.ListByApplicationTypes(ctx, id)` can be used to do batched pagination
items, err := client.ListByApplicationTypesComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: ApplicationTypeVersionClient.Update

ctx := context.TODO()
id := applicationtypeversion.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "applicationTypeValue", "versionValue")

payload := applicationtypeversion.ApplicationTypeVersionUpdateParameters{
	// ...
}


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 ValidateApplicationTypeID

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

ValidateApplicationTypeID checks that 'input' can be parsed as a Application Type ID

func ValidateVersionID

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

ValidateVersionID checks that 'input' can be parsed as a Version ID

Types

type ApplicationTypeId

type ApplicationTypeId struct {
	SubscriptionId      string
	ResourceGroupName   string
	ManagedClusterName  string
	ApplicationTypeName string
}

ApplicationTypeId is a struct representing the Resource ID for a Application Type

func NewApplicationTypeID

func NewApplicationTypeID(subscriptionId string, resourceGroupName string, managedClusterName string, applicationTypeName string) ApplicationTypeId

NewApplicationTypeID returns a new ApplicationTypeId struct

func ParseApplicationTypeID

func ParseApplicationTypeID(input string) (*ApplicationTypeId, error)

ParseApplicationTypeID parses 'input' into a ApplicationTypeId

func ParseApplicationTypeIDInsensitively

func ParseApplicationTypeIDInsensitively(input string) (*ApplicationTypeId, error)

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

func (*ApplicationTypeId) FromParseResult

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

func (ApplicationTypeId) ID

func (id ApplicationTypeId) ID() string

ID returns the formatted Application Type ID

func (ApplicationTypeId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Application Type ID

func (ApplicationTypeId) String

func (id ApplicationTypeId) String() string

String returns a human-readable description of this Application Type ID

type ApplicationTypeVersionClient

type ApplicationTypeVersionClient struct {
	Client *resourcemanager.Client
}

func NewApplicationTypeVersionClientWithBaseURI

func NewApplicationTypeVersionClientWithBaseURI(sdkApi sdkEnv.Api) (*ApplicationTypeVersionClient, error)

func (ApplicationTypeVersionClient) CreateOrUpdate

CreateOrUpdate ...

func (ApplicationTypeVersionClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (ApplicationTypeVersionClient) Delete

Delete ...

func (ApplicationTypeVersionClient) DeleteThenPoll

func (c ApplicationTypeVersionClient) DeleteThenPoll(ctx context.Context, id VersionId) error

DeleteThenPoll performs Delete then polls until it's completed

func (ApplicationTypeVersionClient) Get

Get ...

func (ApplicationTypeVersionClient) ListByApplicationTypes

ListByApplicationTypes ...

func (ApplicationTypeVersionClient) ListByApplicationTypesComplete

ListByApplicationTypesComplete retrieves all the results into a single object

func (ApplicationTypeVersionClient) ListByApplicationTypesCompleteMatchingPredicate

func (c ApplicationTypeVersionClient) ListByApplicationTypesCompleteMatchingPredicate(ctx context.Context, id ApplicationTypeId, predicate ApplicationTypeVersionResourceOperationPredicate) (result ListByApplicationTypesCompleteResult, err error)

ListByApplicationTypesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ApplicationTypeVersionClient) Update

Update ...

type ApplicationTypeVersionResource

type ApplicationTypeVersionResource struct {
	Id         *string                                   `json:"id,omitempty"`
	Location   *string                                   `json:"location,omitempty"`
	Name       *string                                   `json:"name,omitempty"`
	Properties *ApplicationTypeVersionResourceProperties `json:"properties,omitempty"`
	SystemData *SystemData                               `json:"systemData,omitempty"`
	Tags       *map[string]string                        `json:"tags,omitempty"`
	Type       *string                                   `json:"type,omitempty"`
}

type ApplicationTypeVersionResourceOperationPredicate

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

func (ApplicationTypeVersionResourceOperationPredicate) Matches

type ApplicationTypeVersionResourceProperties

type ApplicationTypeVersionResourceProperties struct {
	AppPackageUrl     string  `json:"appPackageUrl"`
	ProvisioningState *string `json:"provisioningState,omitempty"`
}

type ApplicationTypeVersionUpdateParameters

type ApplicationTypeVersionUpdateParameters struct {
	Tags *map[string]string `json:"tags,omitempty"`
}

type CreateOrUpdateOperationResponse

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

type DeleteOperationResponse

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

type GetOperationResponse

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

type ListByApplicationTypesCompleteResult

type ListByApplicationTypesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ApplicationTypeVersionResource
}

type ListByApplicationTypesOperationResponse

type ListByApplicationTypesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ApplicationTypeVersionResource
}

type SystemData

type SystemData struct {
	CreatedAt          *string `json:"createdAt,omitempty"`
	CreatedBy          *string `json:"createdBy,omitempty"`
	CreatedByType      *string `json:"createdByType,omitempty"`
	LastModifiedAt     *string `json:"lastModifiedAt,omitempty"`
	LastModifiedBy     *string `json:"lastModifiedBy,omitempty"`
	LastModifiedByType *string `json:"lastModifiedByType,omitempty"`
}

func (*SystemData) GetCreatedAtAsTime

func (o *SystemData) GetCreatedAtAsTime() (*time.Time, error)

func (*SystemData) GetLastModifiedAtAsTime

func (o *SystemData) GetLastModifiedAtAsTime() (*time.Time, error)

func (*SystemData) SetCreatedAtAsTime

func (o *SystemData) SetCreatedAtAsTime(input time.Time)

func (*SystemData) SetLastModifiedAtAsTime

func (o *SystemData) SetLastModifiedAtAsTime(input time.Time)

type UpdateOperationResponse

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

type VersionId

type VersionId struct {
	SubscriptionId      string
	ResourceGroupName   string
	ManagedClusterName  string
	ApplicationTypeName string
	VersionName         string
}

VersionId is a struct representing the Resource ID for a Version

func NewVersionID

func NewVersionID(subscriptionId string, resourceGroupName string, managedClusterName string, applicationTypeName string, versionName string) VersionId

NewVersionID returns a new VersionId struct

func ParseVersionID

func ParseVersionID(input string) (*VersionId, error)

ParseVersionID parses 'input' into a VersionId

func ParseVersionIDInsensitively

func ParseVersionIDInsensitively(input string) (*VersionId, error)

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

func (*VersionId) FromParseResult

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

func (VersionId) ID

func (id VersionId) ID() string

ID returns the formatted Version ID

func (VersionId) Segments

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

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

func (VersionId) String

func (id VersionId) String() string

String returns a human-readable description of this Version ID

Jump to

Keyboard shortcuts

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