hybrididentitymetadata

package
v0.20240326.1143657 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2023-09-01-preview/hybrididentitymetadata Documentation

The hybrididentitymetadata SDK allows for interaction with the Azure Resource Manager Service azurestackhci (API Version 2023-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/azurestackhci/2023-09-01-preview/hybrididentitymetadata"

Client Initialization

client := hybrididentitymetadata.NewHybridIdentityMetadataClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: HybridIdentityMetadataClient.Get

ctx := context.TODO()
id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

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

ctx := context.TODO()
id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

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

This section is empty.

Types

type GetOperationResponse

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

type HybridIdentityMetadata

type HybridIdentityMetadata struct {
	Id         *string                          `json:"id,omitempty"`
	Name       *string                          `json:"name,omitempty"`
	Properties HybridIdentityMetadataProperties `json:"properties"`
	SystemData *systemdata.SystemData           `json:"systemData,omitempty"`
	Type       *string                          `json:"type,omitempty"`
}

type HybridIdentityMetadataClient

type HybridIdentityMetadataClient struct {
	Client *resourcemanager.Client
}

func NewHybridIdentityMetadataClientWithBaseURI

func NewHybridIdentityMetadataClientWithBaseURI(sdkApi sdkEnv.Api) (*HybridIdentityMetadataClient, error)

func (HybridIdentityMetadataClient) Get

Get ...

func (HybridIdentityMetadataClient) List

List ...

func (HybridIdentityMetadataClient) ListComplete

ListComplete retrieves all the results into a single object

func (HybridIdentityMetadataClient) ListCompleteMatchingPredicate

func (c HybridIdentityMetadataClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate HybridIdentityMetadataOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type HybridIdentityMetadataOperationPredicate

type HybridIdentityMetadataOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (HybridIdentityMetadataOperationPredicate) Matches

type HybridIdentityMetadataProperties

type HybridIdentityMetadataProperties struct {
	Identity          *identity.SystemAssigned `json:"identity,omitempty"`
	ProvisioningState *string                  `json:"provisioningState,omitempty"`
	PublicKey         *string                  `json:"publicKey,omitempty"`
	ResourceUid       *string                  `json:"resourceUid,omitempty"`
}

type ListCompleteResult

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

type ListOperationResponse

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

Jump to

Keyboard shortcuts

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