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: 11 Imported by: 0

README

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

The applicationtype SDK allows for interaction with the Azure Resource Manager Service servicefabricmanagedcluster (API Version 2022-01-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/2022-01-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", "managedClusterValue", "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", "managedClusterValue", "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", "managedClusterValue", "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.NewManagedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue")

// 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", "managedClusterValue", "applicationTypeValue")

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

func (ApplicationTypeClient) ListComplete

ListComplete retrieves all of the results into a single object

func (ApplicationTypeClient) ListCompleteMatchingPredicate

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

ListCompleteMatchingPredicate retrieves all of the results and then applied 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) 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
	Model        *ApplicationTypeResource
}

type DeleteOperationResponse

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

type GetOperationResponse

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

type ListCompleteResult

type ListCompleteResult struct {
	Items []ApplicationTypeResource
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]ApplicationTypeResource
	// 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 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) 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
	Model        *ApplicationTypeResource
}

Jump to

Keyboard shortcuts

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