README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/connectedvmware/2023-10-01/vminstancehybrididentitymetadata
Documentation
The vminstancehybrididentitymetadata
SDK allows for interaction with the Azure Resource Manager Service connectedvmware
(API Version 2023-10-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/connectedvmware/2023-10-01/vminstancehybrididentitymetadata"
Client Initialization
client := vminstancehybrididentitymetadata.NewVMInstanceHybridIdentityMetadataClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: VMInstanceHybridIdentityMetadataClient.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: VMInstanceHybridIdentityMetadataClient.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 ¶
- func PossibleValuesForProvisioningState() []string
- type GetOperationResponse
- type ListCompleteResult
- type ListCustomPager
- type ListOperationResponse
- type ProvisioningState
- type VMInstanceHybridIdentityMetadata
- type VMInstanceHybridIdentityMetadataClient
- func (c VMInstanceHybridIdentityMetadataClient) Get(ctx context.Context, id commonids.ScopeId) (result GetOperationResponse, err error)
- func (c VMInstanceHybridIdentityMetadataClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error)
- func (c VMInstanceHybridIdentityMetadataClient) ListComplete(ctx context.Context, id commonids.ScopeId) (ListCompleteResult, error)
- func (c VMInstanceHybridIdentityMetadataClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, ...) (result ListCompleteResult, err error)
- type VMInstanceHybridIdentityMetadataOperationPredicate
- type VMInstanceHybridIdentityMetadataProperties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
Types ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *VMInstanceHybridIdentityMetadata }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []VMInstanceHybridIdentityMetadata }
type ListCustomPager ¶ added in v0.20240628.1153531
func (*ListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]VMInstanceHybridIdentityMetadata }
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateAccepted ProvisioningState = "Accepted" ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreated ProvisioningState = "Created" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateProvisioning ProvisioningState = "Provisioning" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type VMInstanceHybridIdentityMetadata ¶
type VMInstanceHybridIdentityMetadata struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties VMInstanceHybridIdentityMetadataProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type VMInstanceHybridIdentityMetadataClient ¶
type VMInstanceHybridIdentityMetadataClient struct {
Client *resourcemanager.Client
}
func NewVMInstanceHybridIdentityMetadataClientWithBaseURI ¶
func NewVMInstanceHybridIdentityMetadataClientWithBaseURI(sdkApi sdkEnv.Api) (*VMInstanceHybridIdentityMetadataClient, error)
func (VMInstanceHybridIdentityMetadataClient) Get ¶
func (c VMInstanceHybridIdentityMetadataClient) Get(ctx context.Context, id commonids.ScopeId) (result GetOperationResponse, err error)
Get ...
func (VMInstanceHybridIdentityMetadataClient) List ¶
func (c VMInstanceHybridIdentityMetadataClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error)
List ...
func (VMInstanceHybridIdentityMetadataClient) ListComplete ¶
func (c VMInstanceHybridIdentityMetadataClient) ListComplete(ctx context.Context, id commonids.ScopeId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (VMInstanceHybridIdentityMetadataClient) ListCompleteMatchingPredicate ¶
func (c VMInstanceHybridIdentityMetadataClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate VMInstanceHybridIdentityMetadataOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type VMInstanceHybridIdentityMetadataOperationPredicate ¶
type VMInstanceHybridIdentityMetadataOperationPredicate struct { Id *string Name *string Type *string }
func (VMInstanceHybridIdentityMetadataOperationPredicate) Matches ¶
func (p VMInstanceHybridIdentityMetadataOperationPredicate) Matches(input VMInstanceHybridIdentityMetadata) bool
type VMInstanceHybridIdentityMetadataProperties ¶
type VMInstanceHybridIdentityMetadataProperties struct { ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` PublicKey *string `json:"publicKey,omitempty"` ResourceUid *string `json:"resourceUid,omitempty"` }
Click to show internal directories.
Click to hide internal directories.