discoveredassetendpointprofiles

package
v0.20241126.1723 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: 14 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/deviceregistry/2024-09-01-preview/discoveredassetendpointprofiles Documentation

The discoveredassetendpointprofiles SDK allows for interaction with Azure Resource Manager deviceregistry (API Version 2024-09-01-preview).

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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/deviceregistry/2024-09-01-preview/discoveredassetendpointprofiles"

Client Initialization

client := discoveredassetendpointprofiles.NewDiscoveredAssetEndpointProfilesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DiscoveredAssetEndpointProfilesClient.CreateOrReplace

ctx := context.TODO()
id := discoveredassetendpointprofiles.NewDiscoveredAssetEndpointProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "discoveredAssetEndpointProfileName")

payload := discoveredassetendpointprofiles.DiscoveredAssetEndpointProfile{
	// ...
}


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

Example Usage: DiscoveredAssetEndpointProfilesClient.Delete

ctx := context.TODO()
id := discoveredassetendpointprofiles.NewDiscoveredAssetEndpointProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "discoveredAssetEndpointProfileName")

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

Example Usage: DiscoveredAssetEndpointProfilesClient.Get

ctx := context.TODO()
id := discoveredassetendpointprofiles.NewDiscoveredAssetEndpointProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "discoveredAssetEndpointProfileName")

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: DiscoveredAssetEndpointProfilesClient.ListByResourceGroup

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

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

Example Usage: DiscoveredAssetEndpointProfilesClient.ListBySubscription

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

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

Example Usage: DiscoveredAssetEndpointProfilesClient.Update

ctx := context.TODO()
id := discoveredassetendpointprofiles.NewDiscoveredAssetEndpointProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "discoveredAssetEndpointProfileName")

payload := discoveredassetendpointprofiles.DiscoveredAssetEndpointProfileUpdate{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAuthenticationMethod

func PossibleValuesForAuthenticationMethod() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func ValidateDiscoveredAssetEndpointProfileID

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

ValidateDiscoveredAssetEndpointProfileID checks that 'input' can be parsed as a Discovered Asset Endpoint Profile ID

Types

type AuthenticationMethod

type AuthenticationMethod string
const (
	AuthenticationMethodAnonymous        AuthenticationMethod = "Anonymous"
	AuthenticationMethodCertificate      AuthenticationMethod = "Certificate"
	AuthenticationMethodUsernamePassword AuthenticationMethod = "UsernamePassword"
)

func (*AuthenticationMethod) UnmarshalJSON

func (s *AuthenticationMethod) UnmarshalJSON(bytes []byte) error

type CreateOrReplaceOperationResponse

type CreateOrReplaceOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DiscoveredAssetEndpointProfile
}

type DeleteOperationResponse

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

type DiscoveredAssetEndpointProfile

type DiscoveredAssetEndpointProfile struct {
	ExtendedLocation ExtendedLocation                          `json:"extendedLocation"`
	Id               *string                                   `json:"id,omitempty"`
	Location         string                                    `json:"location"`
	Name             *string                                   `json:"name,omitempty"`
	Properties       *DiscoveredAssetEndpointProfileProperties `json:"properties,omitempty"`
	SystemData       *systemdata.SystemData                    `json:"systemData,omitempty"`
	Tags             *map[string]string                        `json:"tags,omitempty"`
	Type             *string                                   `json:"type,omitempty"`
}

type DiscoveredAssetEndpointProfileId

type DiscoveredAssetEndpointProfileId struct {
	SubscriptionId                     string
	ResourceGroupName                  string
	DiscoveredAssetEndpointProfileName string
}

DiscoveredAssetEndpointProfileId is a struct representing the Resource ID for a Discovered Asset Endpoint Profile

func NewDiscoveredAssetEndpointProfileID

func NewDiscoveredAssetEndpointProfileID(subscriptionId string, resourceGroupName string, discoveredAssetEndpointProfileName string) DiscoveredAssetEndpointProfileId

NewDiscoveredAssetEndpointProfileID returns a new DiscoveredAssetEndpointProfileId struct

func ParseDiscoveredAssetEndpointProfileID

func ParseDiscoveredAssetEndpointProfileID(input string) (*DiscoveredAssetEndpointProfileId, error)

ParseDiscoveredAssetEndpointProfileID parses 'input' into a DiscoveredAssetEndpointProfileId

func ParseDiscoveredAssetEndpointProfileIDInsensitively

func ParseDiscoveredAssetEndpointProfileIDInsensitively(input string) (*DiscoveredAssetEndpointProfileId, error)

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

func (*DiscoveredAssetEndpointProfileId) FromParseResult

func (DiscoveredAssetEndpointProfileId) ID

ID returns the formatted Discovered Asset Endpoint Profile ID

func (DiscoveredAssetEndpointProfileId) Segments

Segments returns a slice of Resource ID Segments which comprise this Discovered Asset Endpoint Profile ID

func (DiscoveredAssetEndpointProfileId) String

String returns a human-readable description of this Discovered Asset Endpoint Profile ID

type DiscoveredAssetEndpointProfileOperationPredicate

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

func (DiscoveredAssetEndpointProfileOperationPredicate) Matches

type DiscoveredAssetEndpointProfileProperties

type DiscoveredAssetEndpointProfileProperties struct {
	AdditionalConfiguration        *string                 `json:"additionalConfiguration,omitempty"`
	DiscoveryId                    string                  `json:"discoveryId"`
	EndpointProfileType            string                  `json:"endpointProfileType"`
	ProvisioningState              *ProvisioningState      `json:"provisioningState,omitempty"`
	SupportedAuthenticationMethods *[]AuthenticationMethod `json:"supportedAuthenticationMethods,omitempty"`
	TargetAddress                  string                  `json:"targetAddress"`
	Version                        int64                   `json:"version"`
}

type DiscoveredAssetEndpointProfileUpdate

type DiscoveredAssetEndpointProfileUpdate struct {
	Properties *DiscoveredAssetEndpointProfileUpdateProperties `json:"properties,omitempty"`
	Tags       *map[string]string                              `json:"tags,omitempty"`
}

type DiscoveredAssetEndpointProfileUpdateProperties

type DiscoveredAssetEndpointProfileUpdateProperties struct {
	AdditionalConfiguration        *string                 `json:"additionalConfiguration,omitempty"`
	DiscoveryId                    *string                 `json:"discoveryId,omitempty"`
	EndpointProfileType            *string                 `json:"endpointProfileType,omitempty"`
	SupportedAuthenticationMethods *[]AuthenticationMethod `json:"supportedAuthenticationMethods,omitempty"`
	TargetAddress                  *string                 `json:"targetAddress,omitempty"`
	Version                        *int64                  `json:"version,omitempty"`
}

type DiscoveredAssetEndpointProfilesClient

type DiscoveredAssetEndpointProfilesClient struct {
	Client *resourcemanager.Client
}

func NewDiscoveredAssetEndpointProfilesClientWithBaseURI

func NewDiscoveredAssetEndpointProfilesClientWithBaseURI(sdkApi sdkEnv.Api) (*DiscoveredAssetEndpointProfilesClient, error)

func (DiscoveredAssetEndpointProfilesClient) CreateOrReplace

CreateOrReplace ...

func (DiscoveredAssetEndpointProfilesClient) CreateOrReplaceThenPoll

CreateOrReplaceThenPoll performs CreateOrReplace then polls until it's completed

func (DiscoveredAssetEndpointProfilesClient) Delete

Delete ...

func (DiscoveredAssetEndpointProfilesClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (DiscoveredAssetEndpointProfilesClient) Get

Get ...

func (DiscoveredAssetEndpointProfilesClient) ListByResourceGroup

ListByResourceGroup ...

func (DiscoveredAssetEndpointProfilesClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all the results into a single object

func (DiscoveredAssetEndpointProfilesClient) ListByResourceGroupCompleteMatchingPredicate

ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DiscoveredAssetEndpointProfilesClient) ListBySubscription

ListBySubscription ...

func (DiscoveredAssetEndpointProfilesClient) ListBySubscriptionComplete

ListBySubscriptionComplete retrieves all the results into a single object

func (DiscoveredAssetEndpointProfilesClient) ListBySubscriptionCompleteMatchingPredicate

ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DiscoveredAssetEndpointProfilesClient) Update

Update ...

func (DiscoveredAssetEndpointProfilesClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

type ExtendedLocation

type ExtendedLocation struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

type GetOperationResponse

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

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []DiscoveredAssetEndpointProfile
}

type ListByResourceGroupCustomPager

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

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]DiscoveredAssetEndpointProfile
}

type ListBySubscriptionCompleteResult

type ListBySubscriptionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []DiscoveredAssetEndpointProfile
}

type ListBySubscriptionCustomPager

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

type ListBySubscriptionOperationResponse

type ListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]DiscoveredAssetEndpointProfile
}

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateAccepted  ProvisioningState = "Accepted"
	ProvisioningStateCanceled  ProvisioningState = "Canceled"
	ProvisioningStateDeleting  ProvisioningState = "Deleting"
	ProvisioningStateFailed    ProvisioningState = "Failed"
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
)

func (*ProvisioningState) UnmarshalJSON

func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DiscoveredAssetEndpointProfile
}

Jump to

Keyboard shortcuts

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