applicationtype

package
v0.20241126.2320 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

README

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

The applicationtype SDK allows for interaction with Azure Resource Manager 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/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", "managedClusterName", "applicationTypeName")

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", "managedClusterName", "applicationTypeName")

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", "managedClusterName", "applicationTypeName")

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.NewManagedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName")

// 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
}

Example Usage: ApplicationTypeClient.Update

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

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


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 ValidateManagedClusterID

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

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

Types

type ApplicationTypeClient

type ApplicationTypeClient struct {
	Client *resourcemanager.Client
}

func NewApplicationTypeClientWithBaseURI

func NewApplicationTypeClientWithBaseURI(sdkApi sdkEnv.Api) (*ApplicationTypeClient, error)

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 ...

func (ApplicationTypeClient) ListComplete

ListComplete retrieves all the results into a single object

func (ApplicationTypeClient) ListCompleteMatchingPredicate

func (c ApplicationTypeClient) ListCompleteMatchingPredicate(ctx context.Context, id ManagedClusterId, predicate ApplicationTypeResourceOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ApplicationTypeClient) Update

Update ...

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 ApplicationTypeResource

type ApplicationTypeResource struct {
	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 ApplicationTypeResourceOperationPredicate

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

func (ApplicationTypeResourceOperationPredicate) Matches

type ApplicationTypeResourceProperties

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

type ApplicationTypeUpdateParameters

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

type CreateOrUpdateOperationResponse

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

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        *ApplicationTypeResource
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ApplicationTypeResource
}

type ListCustomPager

type ListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ApplicationTypeResource
}

type ManagedClusterId

type ManagedClusterId struct {
	SubscriptionId     string
	ResourceGroupName  string
	ManagedClusterName string
}

ManagedClusterId is a struct representing the Resource ID for a Managed Cluster

func NewManagedClusterID

func NewManagedClusterID(subscriptionId string, resourceGroupName string, managedClusterName string) ManagedClusterId

NewManagedClusterID returns a new ManagedClusterId struct

func ParseManagedClusterID

func ParseManagedClusterID(input string) (*ManagedClusterId, error)

ParseManagedClusterID parses 'input' into a ManagedClusterId

func ParseManagedClusterIDInsensitively

func ParseManagedClusterIDInsensitively(input string) (*ManagedClusterId, error)

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

func (*ManagedClusterId) FromParseResult

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

func (ManagedClusterId) ID

func (id ManagedClusterId) ID() string

ID returns the formatted Managed Cluster ID

func (ManagedClusterId) Segments

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

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

func (ManagedClusterId) String

func (id ManagedClusterId) String() string

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

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        *ApplicationTypeResource
}

Jump to

Keyboard shortcuts

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