applicationtypeversion

package
v0.20240209.1120443 Latest Latest
Warning

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

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

README

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

The applicationtypeversion 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/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", "clusterValue", "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", "clusterValue", "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", "clusterValue", "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.List

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

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

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
	ClusterName         string
	ApplicationTypeName string
}

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

func NewApplicationTypeID

func NewApplicationTypeID(subscriptionId string, resourceGroupName string, clusterName 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 autorest.Client
	// contains filtered or unexported fields
}

func NewApplicationTypeVersionClientWithBaseURI

func NewApplicationTypeVersionClientWithBaseURI(endpoint string) ApplicationTypeVersionClient

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

List ...

func (ApplicationTypeVersionClient) ListComplete

ListComplete retrieves all of the results into a single object

func (ApplicationTypeVersionClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type ApplicationTypeVersionResource

type ApplicationTypeVersionResource struct {
	Etag       *string                                   `json:"etag,omitempty"`
	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 {
	Etag     *string
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (ApplicationTypeVersionResourceOperationPredicate) Matches

type ApplicationTypeVersionResourceProperties

type ApplicationTypeVersionResourceProperties struct {
	AppPackageUrl        string             `json:"appPackageUrl"`
	DefaultParameterList *map[string]string `json:"defaultParameterList,omitempty"`
	ProvisioningState    *string            `json:"provisioningState,omitempty"`
}

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
	Model        *ApplicationTypeVersionResource
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type GetOperationResponse

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

type ListCompleteResult

type ListCompleteResult struct {
	Items []ApplicationTypeVersionResource
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]ApplicationTypeVersionResource
	// contains filtered or unexported fields
}

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)

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 VersionId

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

VersionId is a struct representing the Resource ID for a Version

func NewVersionID

func NewVersionID(subscriptionId string, resourceGroupName string, clusterName 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