package
0.20240715.1103416
Repository: https://github.com/hashicorp/go-azure-sdk.git
Documentation: pkg.go.dev

# README

github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2023-12-01/iotconnectors Documentation

The iotconnectors SDK allows for interaction with the Azure Resource Manager Service healthcareapis (API Version 2023-12-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/healthcareapis/2023-12-01/iotconnectors"

Client Initialization

client := iotconnectors.NewIotConnectorsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: IotConnectorsClient.CreateOrUpdate

ctx := context.TODO()
id := iotconnectors.NewIotConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "iotConnectorValue")

payload := iotconnectors.IotConnector{
	// ...
}


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

Example Usage: IotConnectorsClient.Delete

ctx := context.TODO()
id := iotconnectors.NewIotConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "iotConnectorValue")

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

Example Usage: IotConnectorsClient.FhirDestinationsListByIotConnector

ctx := context.TODO()
id := iotconnectors.NewIotConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "iotConnectorValue")

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

Example Usage: IotConnectorsClient.Get

ctx := context.TODO()
id := iotconnectors.NewIotConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "iotConnectorValue")

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: IotConnectorsClient.IotConnectorFhirDestinationCreateOrUpdate

ctx := context.TODO()
id := iotconnectors.NewFhirDestinationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "iotConnectorValue", "fhirDestinationValue")

payload := iotconnectors.IotFhirDestination{
	// ...
}


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

Example Usage: IotConnectorsClient.IotConnectorFhirDestinationDelete

ctx := context.TODO()
id := iotconnectors.NewFhirDestinationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "iotConnectorValue", "fhirDestinationValue")

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

Example Usage: IotConnectorsClient.IotConnectorFhirDestinationGet

ctx := context.TODO()
id := iotconnectors.NewFhirDestinationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "iotConnectorValue", "fhirDestinationValue")

read, err := client.IotConnectorFhirDestinationGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: IotConnectorsClient.ListByWorkspace

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

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

Example Usage: IotConnectorsClient.Update

ctx := context.TODO()
id := iotconnectors.NewIotConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "iotConnectorValue")

payload := iotconnectors.IotConnectorPatchResource{
	// ...
}


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

# Functions

NewFhirDestinationID returns a new FhirDestinationId struct.
NewIotConnectorID returns a new IotConnectorId struct.
No description provided by the author
NewWorkspaceID returns a new WorkspaceId struct.
ParseFhirDestinationID parses 'input' into a FhirDestinationId.
ParseFhirDestinationIDInsensitively parses 'input' case-insensitively into a FhirDestinationId note: this method should only be used for API response data and not user input.
ParseIotConnectorID parses 'input' into a IotConnectorId.
ParseIotConnectorIDInsensitively parses 'input' case-insensitively into a IotConnectorId note: this method should only be used for API response data and not user input.
ParseWorkspaceID parses 'input' into a WorkspaceId.
ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId note: this method should only be used for API response data and not user input.
No description provided by the author
No description provided by the author
ValidateFhirDestinationID checks that 'input' can be parsed as a Fhir Destination ID.
ValidateIotConnectorID checks that 'input' can be parsed as a Iot Connector ID.
ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
FhirDestinationId is a struct representing the Resource ID for a Fhir Destination.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IotConnectorId is a struct representing the Resource ID for a Iot Connector.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WorkspaceId is a struct representing the Resource ID for a Workspace.

# Type aliases

No description provided by the author
No description provided by the author