applicationtype

package
v0.0.0-...-a81a29a Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

README

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

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

Client Initialization

client := applicationtype.NewApplicationTypeClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ApplicationTypeClient.CreateOrUpdate

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

payload := applicationtype.ApplicationTypeResource{
	// ...
}


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

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

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

Example Usage: ApplicationTypeClient.Get

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

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

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

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 ValidateApplicationTypeID

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

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

func ValidateClusterID

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

ValidateClusterID checks that 'input' can be parsed as a Cluster ID

Types

type ApplicationTypeClient

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

func NewApplicationTypeClientWithBaseURI

func NewApplicationTypeClientWithBaseURI(endpoint string) ApplicationTypeClient

func (ApplicationTypeClient) CreateOrUpdate

CreateOrUpdate ...

func (ApplicationTypeClient) Delete

Delete ...

func (ApplicationTypeClient) DeleteThenPoll

func (c ApplicationTypeClient) DeleteThenPoll(ctx context.Context, id ApplicationTypeId) error

DeleteThenPoll performs Delete then polls until it's completed

func (ApplicationTypeClient) Get

Get ...

func (ApplicationTypeClient) List

List ...

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

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

type ApplicationTypeResourceList

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

type ApplicationTypeResourceProperties

type ApplicationTypeResourceProperties struct {
	ProvisioningState *string `json:"provisioningState,omitempty"`
}

type ClusterId

type ClusterId struct {
	SubscriptionId    string
	ResourceGroupName string
	ClusterName       string
}

ClusterId is a struct representing the Resource ID for a Cluster

func NewClusterID

func NewClusterID(subscriptionId string, resourceGroupName string, clusterName string) ClusterId

NewClusterID returns a new ClusterId struct

func ParseClusterID

func ParseClusterID(input string) (*ClusterId, error)

ParseClusterID parses 'input' into a ClusterId

func ParseClusterIDInsensitively

func ParseClusterIDInsensitively(input string) (*ClusterId, error)

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

func (ClusterId) ID

func (id ClusterId) ID() string

ID returns the formatted Cluster ID

func (ClusterId) Segments

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

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

func (ClusterId) String

func (id ClusterId) String() string

String returns a human-readable description of this Cluster ID

type CreateOrUpdateOperationResponse

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

type DeleteOperationResponse

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

type GetOperationResponse

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

type ListOperationResponse

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

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)

Jump to

Keyboard shortcuts

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