Documentation ¶
Index ¶
- type AuthenticationType
- type AzureDataExplorerConnectionProperties
- type CheckNameRequest
- type CheckNameResult
- type Client
- func (client *Client) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[ClientCreateOrUpdateResponse], error)
- func (client *Client) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[ClientDeleteResponse], error)
- func (client *Client) BeginUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[ClientUpdateResponse], error)
- func (client *Client) CheckNameAvailability(ctx context.Context, location string, ...) (ClientCheckNameAvailabilityResponse, error)
- func (client *Client) Get(ctx context.Context, resourceGroupName string, resourceName string, ...) (ClientGetResponse, error)
- func (client *Client) NewListByResourceGroupPager(resourceGroupName string, options *ClientListByResourceGroupOptions) *runtime.Pager[ClientListByResourceGroupResponse]
- func (client *Client) NewListPager(options *ClientListOptions) *runtime.Pager[ClientListResponse]
- type ClientBeginCreateOrUpdateOptions
- type ClientBeginDeleteOptions
- type ClientBeginUpdateOptions
- type ClientCheckNameAvailabilityOptions
- type ClientCheckNameAvailabilityResponse
- type ClientCreateOrUpdateResponse
- type ClientDeleteResponse
- type ClientGetOptions
- type ClientGetResponse
- type ClientListByResourceGroupOptions
- type ClientListByResourceGroupResponse
- type ClientListOptions
- type ClientListResponse
- type ClientUpdateResponse
- type ConnectionProperties
- type ConnectionPropertiesPrivateLinkServiceConnectionState
- type ConnectionPropertiesProvisioningState
- type ConnectionState
- type ConnectionType
- type CreatedByType
- type Description
- type DescriptionListResult
- type DigitalTwinsIdentityType
- type EndpointClient
- func (client *EndpointClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[EndpointClientCreateOrUpdateResponse], error)
- func (client *EndpointClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[EndpointClientDeleteResponse], error)
- func (client *EndpointClient) Get(ctx context.Context, resourceGroupName string, resourceName string, ...) (EndpointClientGetResponse, error)
- func (client *EndpointClient) NewListPager(resourceGroupName string, resourceName string, ...) *runtime.Pager[EndpointClientListResponse]
- type EndpointClientBeginCreateOrUpdateOptions
- type EndpointClientBeginDeleteOptions
- type EndpointClientCreateOrUpdateResponse
- type EndpointClientDeleteResponse
- type EndpointClientGetOptions
- type EndpointClientGetResponse
- type EndpointClientListOptions
- type EndpointClientListResponse
- type EndpointProvisioningState
- type EndpointResource
- type EndpointResourceListResult
- type EndpointResourceProperties
- type EndpointResourcePropertiesClassification
- type EndpointType
- type ErrorDefinition
- type ErrorResponse
- type EventGrid
- type EventHub
- type ExternalResource
- type GroupIDInformation
- type GroupIDInformationProperties
- type GroupIDInformationResponse
- type Identity
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type PatchDescription
- type PatchProperties
- type PrivateEndpoint
- type PrivateEndpointConnection
- type PrivateEndpointConnectionsClient
- func (client *PrivateEndpointConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[PrivateEndpointConnectionsClientCreateOrUpdateResponse], error)
- func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[PrivateEndpointConnectionsClientDeleteResponse], error)
- func (client *PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateEndpointConnectionsClientGetResponse, error)
- func (client *PrivateEndpointConnectionsClient) List(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateEndpointConnectionsClientListResponse, error)
- type PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions
- type PrivateEndpointConnectionsClientBeginDeleteOptions
- type PrivateEndpointConnectionsClientCreateOrUpdateResponse
- type PrivateEndpointConnectionsClientDeleteResponse
- type PrivateEndpointConnectionsClientGetOptions
- type PrivateEndpointConnectionsClientGetResponse
- type PrivateEndpointConnectionsClientListOptions
- type PrivateEndpointConnectionsClientListResponse
- type PrivateEndpointConnectionsResponse
- type PrivateLinkResourcesClient
- func (client *PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateLinkResourcesClientGetResponse, error)
- func (client *PrivateLinkResourcesClient) List(ctx context.Context, resourceGroupName string, resourceName string, ...) (PrivateLinkResourcesClientListResponse, error)
- type PrivateLinkResourcesClientGetOptions
- type PrivateLinkResourcesClientGetResponse
- type PrivateLinkResourcesClientListOptions
- type PrivateLinkResourcesClientListResponse
- type PrivateLinkServiceConnectionStatus
- type Properties
- type ProvisioningState
- type PublicNetworkAccess
- type Reason
- type Resource
- type ServiceBus
- type SystemData
- type TimeSeriesDatabaseConnection
- type TimeSeriesDatabaseConnectionListResult
- type TimeSeriesDatabaseConnectionProperties
- type TimeSeriesDatabaseConnectionPropertiesClassification
- type TimeSeriesDatabaseConnectionState
- type TimeSeriesDatabaseConnectionsClient
- func (client *TimeSeriesDatabaseConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[TimeSeriesDatabaseConnectionsClientCreateOrUpdateResponse], ...)
- func (client *TimeSeriesDatabaseConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, ...) (*runtime.Poller[TimeSeriesDatabaseConnectionsClientDeleteResponse], error)
- func (client *TimeSeriesDatabaseConnectionsClient) Get(ctx context.Context, resourceGroupName string, resourceName string, ...) (TimeSeriesDatabaseConnectionsClientGetResponse, error)
- func (client *TimeSeriesDatabaseConnectionsClient) NewListPager(resourceGroupName string, resourceName string, ...) *runtime.Pager[TimeSeriesDatabaseConnectionsClientListResponse]
- type TimeSeriesDatabaseConnectionsClientBeginCreateOrUpdateOptions
- type TimeSeriesDatabaseConnectionsClientBeginDeleteOptions
- type TimeSeriesDatabaseConnectionsClientCreateOrUpdateResponse
- type TimeSeriesDatabaseConnectionsClientDeleteResponse
- type TimeSeriesDatabaseConnectionsClientGetOptions
- type TimeSeriesDatabaseConnectionsClientGetResponse
- type TimeSeriesDatabaseConnectionsClientListOptions
- type TimeSeriesDatabaseConnectionsClientListResponse
Examples ¶
- Client.BeginCreateOrUpdate
- Client.BeginDelete
- Client.BeginUpdate
- Client.CheckNameAvailability
- Client.Get
- Client.NewListByResourceGroupPager
- Client.NewListPager
- EndpointClient.BeginCreateOrUpdate
- EndpointClient.BeginDelete
- EndpointClient.Get
- EndpointClient.NewListPager
- OperationsClient.NewListPager
- PrivateEndpointConnectionsClient.BeginCreateOrUpdate
- PrivateEndpointConnectionsClient.BeginDelete
- PrivateEndpointConnectionsClient.Get
- PrivateEndpointConnectionsClient.List
- PrivateLinkResourcesClient.Get
- PrivateLinkResourcesClient.List
- TimeSeriesDatabaseConnectionsClient.BeginCreateOrUpdate
- TimeSeriesDatabaseConnectionsClient.BeginDelete
- TimeSeriesDatabaseConnectionsClient.Get
- TimeSeriesDatabaseConnectionsClient.NewListPager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationType ¶
type AuthenticationType string
AuthenticationType - Specifies the authentication type being used for connecting to the endpoint. Defaults to 'KeyBased'. If 'KeyBased' is selected, a connection string must be specified (at least the primary connection string). If 'IdentityBased' is select, the endpointUri and entityPath properties must be specified.
const ( AuthenticationTypeIdentityBased AuthenticationType = "IdentityBased" AuthenticationTypeKeyBased AuthenticationType = "KeyBased" )
func PossibleAuthenticationTypeValues ¶
func PossibleAuthenticationTypeValues() []AuthenticationType
PossibleAuthenticationTypeValues returns the possible values for the AuthenticationType const type.
type AzureDataExplorerConnectionProperties ¶ added in v0.3.0
type AzureDataExplorerConnectionProperties struct { // REQUIRED; The name of the Azure Data Explorer database. AdxDatabaseName *string `json:"adxDatabaseName,omitempty"` // REQUIRED; The URI of the Azure Data Explorer endpoint. AdxEndpointURI *string `json:"adxEndpointUri,omitempty"` // REQUIRED; The resource ID of the Azure Data Explorer cluster. AdxResourceID *string `json:"adxResourceId,omitempty"` // REQUIRED; The type of time series connection resource. ConnectionType *ConnectionType `json:"connectionType,omitempty"` // REQUIRED; The URL of the EventHub namespace for identity-based authentication. It must include the protocol sb:// EventHubEndpointURI *string `json:"eventHubEndpointUri,omitempty"` // REQUIRED; The EventHub name in the EventHub namespace for identity-based authentication. EventHubEntityPath *string `json:"eventHubEntityPath,omitempty"` // REQUIRED; The resource ID of the EventHub namespace. EventHubNamespaceResourceID *string `json:"eventHubNamespaceResourceId,omitempty"` // The name of the Azure Data Explorer table. AdxTableName *string `json:"adxTableName,omitempty"` // The EventHub consumer group to use when ADX reads from EventHub. Defaults to $Default. EventHubConsumerGroup *string `json:"eventHubConsumerGroup,omitempty"` // READ-ONLY; The provisioning state. ProvisioningState *TimeSeriesDatabaseConnectionState `json:"provisioningState,omitempty" azure:"ro"` }
AzureDataExplorerConnectionProperties - Properties of a time series database connection to Azure Data Explorer with data being sent via an EventHub.
func (*AzureDataExplorerConnectionProperties) GetTimeSeriesDatabaseConnectionProperties ¶ added in v0.3.0
func (a *AzureDataExplorerConnectionProperties) GetTimeSeriesDatabaseConnectionProperties() *TimeSeriesDatabaseConnectionProperties
GetTimeSeriesDatabaseConnectionProperties implements the TimeSeriesDatabaseConnectionPropertiesClassification interface for type AzureDataExplorerConnectionProperties.
func (AzureDataExplorerConnectionProperties) MarshalJSON ¶ added in v0.3.0
func (a AzureDataExplorerConnectionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerConnectionProperties.
func (*AzureDataExplorerConnectionProperties) UnmarshalJSON ¶ added in v0.3.0
func (a *AzureDataExplorerConnectionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataExplorerConnectionProperties.
type CheckNameRequest ¶
type CheckNameRequest struct { // REQUIRED; Resource name. Name *string `json:"name,omitempty"` // REQUIRED; The type of resource, for instance Microsoft.DigitalTwins/digitalTwinsInstances. Type *string `json:"type,omitempty"` }
CheckNameRequest - The result returned from a database check name availability request.
type CheckNameResult ¶
type CheckNameResult struct { // Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated. Message *string `json:"message,omitempty"` // Specifies a Boolean value that indicates if the name is available. NameAvailable *bool `json:"nameAvailable,omitempty"` // Message providing the reason why the given name is invalid. Reason *Reason `json:"reason,omitempty"` }
CheckNameResult - The result returned from a check name availability request.
type Client ¶ added in v0.2.0
type Client struct {
// contains filtered or unexported fields
}
Client contains the methods for the DigitalTwins group. Don't use this type directly, use NewClient() instead.
func NewClient ¶ added in v0.2.0
func NewClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*Client, error)
NewClient creates a new instance of Client with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*Client) BeginCreateOrUpdate ¶ added in v0.2.0
func (client *Client) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, digitalTwinsCreate Description, options *ClientBeginCreateOrUpdateOptions) (*runtime.Poller[ClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-31 resourceGroupName - The name of the resource group that contains the DigitalTwinsInstance. resourceName - The name of the DigitalTwinsInstance. digitalTwinsCreate - The DigitalTwinsInstance and security metadata. options - ClientBeginCreateOrUpdateOptions contains the optional parameters for the Client.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsPut_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdigitaltwins.NewClient("50016170-c839-41ba-a724-51e9df440b9e", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "resRg", "myDigitalTwinsService", armdigitaltwins.Description{ Location: to.Ptr("WestUS2"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*Client) BeginDelete ¶ added in v0.2.0
func (client *Client) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, options *ClientBeginDeleteOptions) (*runtime.Poller[ClientDeleteResponse], error)
BeginDelete - Delete a DigitalTwinsInstance. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-31 resourceGroupName - The name of the resource group that contains the DigitalTwinsInstance. resourceName - The name of the DigitalTwinsInstance. options - ClientBeginDeleteOptions contains the optional parameters for the Client.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsDelete_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdigitaltwins.NewClient("50016170-c839-41ba-a724-51e9df440b9e", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "resRg", "myDigitalTwinsService", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*Client) BeginUpdate ¶ added in v0.2.0
func (client *Client) BeginUpdate(ctx context.Context, resourceGroupName string, resourceName string, digitalTwinsPatchDescription PatchDescription, options *ClientBeginUpdateOptions) (*runtime.Poller[ClientUpdateResponse], error)
BeginUpdate - Update metadata of DigitalTwinsInstance. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-31 resourceGroupName - The name of the resource group that contains the DigitalTwinsInstance. resourceName - The name of the DigitalTwinsInstance. digitalTwinsPatchDescription - The DigitalTwinsInstance and security metadata. options - ClientBeginUpdateOptions contains the optional parameters for the Client.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsPatch_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdigitaltwins.NewClient("50016170-c839-41ba-a724-51e9df440b9e", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginUpdate(ctx, "resRg", "myDigitalTwinsService", armdigitaltwins.PatchDescription{ Tags: map[string]*string{ "purpose": to.Ptr("dev"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*Client) CheckNameAvailability ¶ added in v0.2.0
func (client *Client) CheckNameAvailability(ctx context.Context, location string, digitalTwinsInstanceCheckName CheckNameRequest, options *ClientCheckNameAvailabilityOptions) (ClientCheckNameAvailabilityResponse, error)
CheckNameAvailability - Check if a DigitalTwinsInstance name is available. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-31 location - Location of DigitalTwinsInstance. digitalTwinsInstanceCheckName - Set the name parameter in the DigitalTwinsInstanceCheckName structure to the name of the DigitalTwinsInstance to check. options - ClientCheckNameAvailabilityOptions contains the optional parameters for the Client.CheckNameAvailability method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsCheckNameAvailability_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdigitaltwins.NewClient("50016170-c839-41ba-a724-51e9df440b9e", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CheckNameAvailability(ctx, "WestUS2", armdigitaltwins.CheckNameRequest{ Name: to.Ptr("myadtinstance"), Type: to.Ptr("Microsoft.DigitalTwins/digitalTwinsInstances"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*Client) Get ¶ added in v0.2.0
func (client *Client) Get(ctx context.Context, resourceGroupName string, resourceName string, options *ClientGetOptions) (ClientGetResponse, error)
Get - Get DigitalTwinsInstances resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-31 resourceGroupName - The name of the resource group that contains the DigitalTwinsInstance. resourceName - The name of the DigitalTwinsInstance. options - ClientGetOptions contains the optional parameters for the Client.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsGet_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdigitaltwins.NewClient("50016170-c839-41ba-a724-51e9df440b9e", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "resRg", "myDigitalTwinsService", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*Client) NewListByResourceGroupPager ¶ added in v0.4.0
func (client *Client) NewListByResourceGroupPager(resourceGroupName string, options *ClientListByResourceGroupOptions) *runtime.Pager[ClientListByResourceGroupResponse]
NewListByResourceGroupPager - Get all the DigitalTwinsInstances in a resource group. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-31 resourceGroupName - The name of the resource group that contains the DigitalTwinsInstance. options - ClientListByResourceGroupOptions contains the optional parameters for the Client.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsListByResourceGroup_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdigitaltwins.NewClient("50016170-c839-41ba-a724-51e9df440b9e", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("resRg", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*Client) NewListPager ¶ added in v0.4.0
func (client *Client) NewListPager(options *ClientListOptions) *runtime.Pager[ClientListResponse]
NewListPager - Get all the DigitalTwinsInstances in a subscription. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-31 options - ClientListOptions contains the optional parameters for the Client.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsList_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdigitaltwins.NewClient("50016170-c839-41ba-a724-51e9df440b9e", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type ClientBeginCreateOrUpdateOptions ¶ added in v0.2.0
type ClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ClientBeginCreateOrUpdateOptions contains the optional parameters for the Client.BeginCreateOrUpdate method.
type ClientBeginDeleteOptions ¶ added in v0.2.0
type ClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ClientBeginDeleteOptions contains the optional parameters for the Client.BeginDelete method.
type ClientBeginUpdateOptions ¶ added in v0.2.0
type ClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ClientBeginUpdateOptions contains the optional parameters for the Client.BeginUpdate method.
type ClientCheckNameAvailabilityOptions ¶ added in v0.2.0
type ClientCheckNameAvailabilityOptions struct { }
ClientCheckNameAvailabilityOptions contains the optional parameters for the Client.CheckNameAvailability method.
type ClientCheckNameAvailabilityResponse ¶ added in v0.2.0
type ClientCheckNameAvailabilityResponse struct {
CheckNameResult
}
ClientCheckNameAvailabilityResponse contains the response from method Client.CheckNameAvailability.
type ClientCreateOrUpdateResponse ¶ added in v0.2.0
type ClientCreateOrUpdateResponse struct {
Description
}
ClientCreateOrUpdateResponse contains the response from method Client.CreateOrUpdate.
type ClientDeleteResponse ¶ added in v0.2.0
type ClientDeleteResponse struct {
Description
}
ClientDeleteResponse contains the response from method Client.Delete.
type ClientGetOptions ¶ added in v0.2.0
type ClientGetOptions struct { }
ClientGetOptions contains the optional parameters for the Client.Get method.
type ClientGetResponse ¶ added in v0.2.0
type ClientGetResponse struct {
Description
}
ClientGetResponse contains the response from method Client.Get.
type ClientListByResourceGroupOptions ¶ added in v0.2.0
type ClientListByResourceGroupOptions struct { }
ClientListByResourceGroupOptions contains the optional parameters for the Client.ListByResourceGroup method.
type ClientListByResourceGroupResponse ¶ added in v0.2.0
type ClientListByResourceGroupResponse struct {
DescriptionListResult
}
ClientListByResourceGroupResponse contains the response from method Client.ListByResourceGroup.
type ClientListOptions ¶ added in v0.2.0
type ClientListOptions struct { }
ClientListOptions contains the optional parameters for the Client.List method.
type ClientListResponse ¶ added in v0.2.0
type ClientListResponse struct {
DescriptionListResult
}
ClientListResponse contains the response from method Client.List.
type ClientUpdateResponse ¶ added in v0.2.0
type ClientUpdateResponse struct {
Description
}
ClientUpdateResponse contains the response from method Client.Update.
type ConnectionProperties ¶
type ConnectionProperties struct { // The list of group ids for the private endpoint connection. GroupIDs []*string `json:"groupIds,omitempty"` // The private endpoint. PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` // The connection state. PrivateLinkServiceConnectionState *ConnectionPropertiesPrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` // READ-ONLY; The provisioning state. ProvisioningState *ConnectionPropertiesProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ConnectionProperties - The properties of a private endpoint connection.
func (ConnectionProperties) MarshalJSON ¶
func (c ConnectionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ConnectionProperties.
type ConnectionPropertiesPrivateLinkServiceConnectionState ¶
type ConnectionPropertiesPrivateLinkServiceConnectionState struct { // REQUIRED; The description for the current state of a private endpoint connection. Description *string `json:"description,omitempty"` // REQUIRED; The status of a private endpoint connection. Status *PrivateLinkServiceConnectionStatus `json:"status,omitempty"` // Actions required for a private endpoint connection. ActionsRequired *string `json:"actionsRequired,omitempty"` }
ConnectionPropertiesPrivateLinkServiceConnectionState - The connection state.
type ConnectionPropertiesProvisioningState ¶
type ConnectionPropertiesProvisioningState string
ConnectionPropertiesProvisioningState - The provisioning state.
const ( ConnectionPropertiesProvisioningStateApproved ConnectionPropertiesProvisioningState = "Approved" ConnectionPropertiesProvisioningStateDisconnected ConnectionPropertiesProvisioningState = "Disconnected" ConnectionPropertiesProvisioningStatePending ConnectionPropertiesProvisioningState = "Pending" ConnectionPropertiesProvisioningStateRejected ConnectionPropertiesProvisioningState = "Rejected" )
func PossibleConnectionPropertiesProvisioningStateValues ¶
func PossibleConnectionPropertiesProvisioningStateValues() []ConnectionPropertiesProvisioningState
PossibleConnectionPropertiesProvisioningStateValues returns the possible values for the ConnectionPropertiesProvisioningState const type.
type ConnectionState ¶
type ConnectionState struct { // REQUIRED; The description for the current state of a private endpoint connection. Description *string `json:"description,omitempty"` // REQUIRED; The status of a private endpoint connection. Status *PrivateLinkServiceConnectionStatus `json:"status,omitempty"` // Actions required for a private endpoint connection. ActionsRequired *string `json:"actionsRequired,omitempty"` }
ConnectionState - The current state of a private endpoint connection.
type ConnectionType ¶ added in v0.3.0
type ConnectionType string
ConnectionType - The type of time series connection resource.
const (
ConnectionTypeAzureDataExplorer ConnectionType = "AzureDataExplorer"
)
func PossibleConnectionTypeValues ¶ added in v0.3.0
func PossibleConnectionTypeValues() []ConnectionType
PossibleConnectionTypeValues returns the possible values for the ConnectionType const type.
type CreatedByType ¶ added in v0.3.0
type CreatedByType string
CreatedByType - The type of identity that created the resource.
const ( CreatedByTypeApplication CreatedByType = "Application" CreatedByTypeKey CreatedByType = "Key" CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶ added in v0.3.0
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type Description ¶ added in v0.2.0
type Description struct { // REQUIRED; The resource location. Location *string `json:"location,omitempty"` // The managed identity for the DigitalTwinsInstance. Identity *Identity `json:"identity,omitempty"` // DigitalTwins instance properties. Properties *Properties `json:"properties,omitempty"` // The resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; The resource identifier. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the DigitalTwinsInstance. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *string `json:"type,omitempty" azure:"ro"` }
Description - The description of the DigitalTwins service.
func (Description) MarshalJSON ¶ added in v0.2.0
func (d Description) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Description.
type DescriptionListResult ¶ added in v0.2.0
type DescriptionListResult struct { // The link used to get the next page of DigitalTwins description objects. NextLink *string `json:"nextLink,omitempty"` // A list of DigitalTwins description objects. Value []*Description `json:"value,omitempty"` }
DescriptionListResult - A list of DigitalTwins description objects with a next link.
type DigitalTwinsIdentityType ¶
type DigitalTwinsIdentityType string
DigitalTwinsIdentityType - The type of Managed Identity used by the DigitalTwinsInstance. Only SystemAssigned is supported.
const ( DigitalTwinsIdentityTypeNone DigitalTwinsIdentityType = "None" DigitalTwinsIdentityTypeSystemAssigned DigitalTwinsIdentityType = "SystemAssigned" )
func PossibleDigitalTwinsIdentityTypeValues ¶
func PossibleDigitalTwinsIdentityTypeValues() []DigitalTwinsIdentityType
PossibleDigitalTwinsIdentityTypeValues returns the possible values for the DigitalTwinsIdentityType const type.
type EndpointClient ¶ added in v0.2.0
type EndpointClient struct {
// contains filtered or unexported fields
}
EndpointClient contains the methods for the DigitalTwinsEndpoint group. Don't use this type directly, use NewEndpointClient() instead.
func NewEndpointClient ¶ added in v0.2.0
func NewEndpointClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*EndpointClient, error)
NewEndpointClient creates a new instance of EndpointClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*EndpointClient) BeginCreateOrUpdate ¶ added in v0.2.0
func (client *EndpointClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, endpointName string, endpointDescription EndpointResource, options *EndpointClientBeginCreateOrUpdateOptions) (*runtime.Poller[EndpointClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update DigitalTwinsInstance endpoint. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-31 resourceGroupName - The name of the resource group that contains the DigitalTwinsInstance. resourceName - The name of the DigitalTwinsInstance. endpointName - Name of Endpoint Resource. endpointDescription - The DigitalTwinsInstance endpoint metadata and security metadata. options - EndpointClientBeginCreateOrUpdateOptions contains the optional parameters for the EndpointClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsEndpointPut_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdigitaltwins.NewEndpointClient("50016170-c839-41ba-a724-51e9df440b9e", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "resRg", "myDigitalTwinsService", "myServiceBus", armdigitaltwins.EndpointResource{ Properties: &armdigitaltwins.ServiceBus{ AuthenticationType: to.Ptr(armdigitaltwins.AuthenticationTypeKeyBased), EndpointType: to.Ptr(armdigitaltwins.EndpointTypeServiceBus), PrimaryConnectionString: to.Ptr("Endpoint=sb://mysb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=xyzxyzoX4=;EntityPath=abcabc"), SecondaryConnectionString: to.Ptr("Endpoint=sb://mysb.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=xyzxyzoX4=;EntityPath=abcabc"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*EndpointClient) BeginDelete ¶ added in v0.2.0
func (client *EndpointClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, endpointName string, options *EndpointClientBeginDeleteOptions) (*runtime.Poller[EndpointClientDeleteResponse], error)
BeginDelete - Delete a DigitalTwinsInstance endpoint. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-31 resourceGroupName - The name of the resource group that contains the DigitalTwinsInstance. resourceName - The name of the DigitalTwinsInstance. endpointName - Name of Endpoint Resource. options - EndpointClientBeginDeleteOptions contains the optional parameters for the EndpointClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsEndpointDelete_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdigitaltwins.NewEndpointClient("50016170-c839-41ba-a724-51e9df440b9e", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "resRg", "myDigitalTwinsService", "myendpoint", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*EndpointClient) Get ¶ added in v0.2.0
func (client *EndpointClient) Get(ctx context.Context, resourceGroupName string, resourceName string, endpointName string, options *EndpointClientGetOptions) (EndpointClientGetResponse, error)
Get - Get DigitalTwinsInstances Endpoint. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-31 resourceGroupName - The name of the resource group that contains the DigitalTwinsInstance. resourceName - The name of the DigitalTwinsInstance. endpointName - Name of Endpoint Resource. options - EndpointClientGetOptions contains the optional parameters for the EndpointClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsEndpointGet_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdigitaltwins.NewEndpointClient("50016170-c839-41ba-a724-51e9df440b9e", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "resRg", "myDigitalTwinsService", "myServiceBus", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*EndpointClient) NewListPager ¶ added in v0.4.0
func (client *EndpointClient) NewListPager(resourceGroupName string, resourceName string, options *EndpointClientListOptions) *runtime.Pager[EndpointClientListResponse]
NewListPager - Get DigitalTwinsInstance Endpoints. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-31 resourceGroupName - The name of the resource group that contains the DigitalTwinsInstance. resourceName - The name of the DigitalTwinsInstance. options - EndpointClientListOptions contains the optional parameters for the EndpointClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsEndpointsGet_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdigitaltwins.NewEndpointClient("50016170-c839-41ba-a724-51e9df440b9e", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("resRg", "myDigitalTwinsService", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type EndpointClientBeginCreateOrUpdateOptions ¶ added in v0.2.0
type EndpointClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
EndpointClientBeginCreateOrUpdateOptions contains the optional parameters for the EndpointClient.BeginCreateOrUpdate method.
type EndpointClientBeginDeleteOptions ¶ added in v0.2.0
type EndpointClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
EndpointClientBeginDeleteOptions contains the optional parameters for the EndpointClient.BeginDelete method.
type EndpointClientCreateOrUpdateResponse ¶ added in v0.2.0
type EndpointClientCreateOrUpdateResponse struct {
EndpointResource
}
EndpointClientCreateOrUpdateResponse contains the response from method EndpointClient.CreateOrUpdate.
type EndpointClientDeleteResponse ¶ added in v0.2.0
type EndpointClientDeleteResponse struct {
EndpointResource
}
EndpointClientDeleteResponse contains the response from method EndpointClient.Delete.
type EndpointClientGetOptions ¶ added in v0.2.0
type EndpointClientGetOptions struct { }
EndpointClientGetOptions contains the optional parameters for the EndpointClient.Get method.
type EndpointClientGetResponse ¶ added in v0.2.0
type EndpointClientGetResponse struct {
EndpointResource
}
EndpointClientGetResponse contains the response from method EndpointClient.Get.
type EndpointClientListOptions ¶ added in v0.2.0
type EndpointClientListOptions struct { }
EndpointClientListOptions contains the optional parameters for the EndpointClient.List method.
type EndpointClientListResponse ¶ added in v0.2.0
type EndpointClientListResponse struct {
EndpointResourceListResult
}
EndpointClientListResponse contains the response from method EndpointClient.List.
type EndpointProvisioningState ¶
type EndpointProvisioningState string
EndpointProvisioningState - The provisioning state.
const ( EndpointProvisioningStateCanceled EndpointProvisioningState = "Canceled" EndpointProvisioningStateDeleted EndpointProvisioningState = "Deleted" EndpointProvisioningStateDeleting EndpointProvisioningState = "Deleting" EndpointProvisioningStateDisabled EndpointProvisioningState = "Disabled" EndpointProvisioningStateFailed EndpointProvisioningState = "Failed" EndpointProvisioningStateMoving EndpointProvisioningState = "Moving" EndpointProvisioningStateProvisioning EndpointProvisioningState = "Provisioning" EndpointProvisioningStateRestoring EndpointProvisioningState = "Restoring" EndpointProvisioningStateSucceeded EndpointProvisioningState = "Succeeded" EndpointProvisioningStateSuspending EndpointProvisioningState = "Suspending" EndpointProvisioningStateUpdating EndpointProvisioningState = "Updating" EndpointProvisioningStateWarning EndpointProvisioningState = "Warning" )
func PossibleEndpointProvisioningStateValues ¶
func PossibleEndpointProvisioningStateValues() []EndpointProvisioningState
PossibleEndpointProvisioningStateValues returns the possible values for the EndpointProvisioningState const type.
type EndpointResource ¶ added in v0.2.0
type EndpointResource struct { // REQUIRED; DigitalTwinsInstance endpoint resource properties. Properties EndpointResourcePropertiesClassification `json:"properties,omitempty"` // READ-ONLY; The resource identifier. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Extension resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *string `json:"type,omitempty" azure:"ro"` }
EndpointResource - DigitalTwinsInstance endpoint resource.
func (EndpointResource) MarshalJSON ¶ added in v0.2.0
func (e EndpointResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EndpointResource.
func (*EndpointResource) UnmarshalJSON ¶ added in v0.2.0
func (e *EndpointResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EndpointResource.
type EndpointResourceListResult ¶ added in v0.2.0
type EndpointResourceListResult struct { // The link used to get the next page of DigitalTwinsInstance Endpoints. NextLink *string `json:"nextLink,omitempty"` // A list of DigitalTwinsInstance Endpoints. Value []*EndpointResource `json:"value,omitempty"` }
EndpointResourceListResult - A list of DigitalTwinsInstance Endpoints with a next link.
type EndpointResourceProperties ¶ added in v0.2.0
type EndpointResourceProperties struct { // REQUIRED; The type of Digital Twins endpoint EndpointType *EndpointType `json:"endpointType,omitempty"` // Specifies the authentication type being used for connecting to the endpoint. Defaults to 'KeyBased'. If 'KeyBased' is selected, // a connection string must be specified (at least the primary connection // string). If 'IdentityBased' is select, the endpointUri and entityPath properties must be specified. AuthenticationType *AuthenticationType `json:"authenticationType,omitempty"` // Dead letter storage secret for key-based authentication. Will be obfuscated during read. DeadLetterSecret *string `json:"deadLetterSecret,omitempty"` // Dead letter storage URL for identity-based authentication. DeadLetterURI *string `json:"deadLetterUri,omitempty"` // READ-ONLY; Time when the Endpoint was added to DigitalTwinsInstance. CreatedTime *time.Time `json:"createdTime,omitempty" azure:"ro"` // READ-ONLY; The provisioning state. ProvisioningState *EndpointProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
EndpointResourceProperties - Properties related to Digital Twins Endpoint
func (*EndpointResourceProperties) GetEndpointResourceProperties ¶ added in v0.2.0
func (e *EndpointResourceProperties) GetEndpointResourceProperties() *EndpointResourceProperties
GetEndpointResourceProperties implements the EndpointResourcePropertiesClassification interface for type EndpointResourceProperties.
func (EndpointResourceProperties) MarshalJSON ¶ added in v0.2.0
func (e EndpointResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EndpointResourceProperties.
func (*EndpointResourceProperties) UnmarshalJSON ¶ added in v0.2.0
func (e *EndpointResourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EndpointResourceProperties.
type EndpointResourcePropertiesClassification ¶ added in v0.2.0
type EndpointResourcePropertiesClassification interface { // GetEndpointResourceProperties returns the EndpointResourceProperties content of the underlying type. GetEndpointResourceProperties() *EndpointResourceProperties }
EndpointResourcePropertiesClassification provides polymorphic access to related types. Call the interface's GetEndpointResourceProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *EndpointResourceProperties, *EventGrid, *EventHub, *ServiceBus
type EndpointType ¶
type EndpointType string
EndpointType - The type of Digital Twins endpoint
const ( EndpointTypeEventGrid EndpointType = "EventGrid" EndpointTypeEventHub EndpointType = "EventHub" EndpointTypeServiceBus EndpointType = "ServiceBus" )
func PossibleEndpointTypeValues ¶
func PossibleEndpointTypeValues() []EndpointType
PossibleEndpointTypeValues returns the possible values for the EndpointType const type.
type ErrorDefinition ¶
type ErrorDefinition struct { // READ-ONLY; Service specific error code which serves as the substatus for the HTTP error code. Code *string `json:"code,omitempty" azure:"ro"` // READ-ONLY; Internal error details. Details []*ErrorDefinition `json:"details,omitempty" azure:"ro"` // READ-ONLY; Description of the error. Message *string `json:"message,omitempty" azure:"ro"` }
ErrorDefinition - Error definition.
type ErrorResponse ¶
type ErrorResponse struct { // Error description Error *ErrorDefinition `json:"error,omitempty"` }
ErrorResponse - Error response.
type EventGrid ¶
type EventGrid struct { // REQUIRED; EventGrid secondary accesskey. Will be obfuscated during read. AccessKey1 *string `json:"accessKey1,omitempty"` // REQUIRED; The type of Digital Twins endpoint EndpointType *EndpointType `json:"endpointType,omitempty"` // REQUIRED; EventGrid Topic Endpoint. TopicEndpoint *string `json:"TopicEndpoint,omitempty"` // EventGrid secondary accesskey. Will be obfuscated during read. AccessKey2 *string `json:"accessKey2,omitempty"` // Specifies the authentication type being used for connecting to the endpoint. Defaults to 'KeyBased'. If 'KeyBased' is selected, // a connection string must be specified (at least the primary connection // string). If 'IdentityBased' is select, the endpointUri and entityPath properties must be specified. AuthenticationType *AuthenticationType `json:"authenticationType,omitempty"` // Dead letter storage secret for key-based authentication. Will be obfuscated during read. DeadLetterSecret *string `json:"deadLetterSecret,omitempty"` // Dead letter storage URL for identity-based authentication. DeadLetterURI *string `json:"deadLetterUri,omitempty"` // READ-ONLY; Time when the Endpoint was added to DigitalTwinsInstance. CreatedTime *time.Time `json:"createdTime,omitempty" azure:"ro"` // READ-ONLY; The provisioning state. ProvisioningState *EndpointProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
EventGrid - Properties related to EventGrid.
func (*EventGrid) GetEndpointResourceProperties ¶ added in v0.2.0
func (e *EventGrid) GetEndpointResourceProperties() *EndpointResourceProperties
GetEndpointResourceProperties implements the EndpointResourcePropertiesClassification interface for type EventGrid.
func (EventGrid) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type EventGrid.
func (*EventGrid) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type EventGrid.
type EventHub ¶
type EventHub struct { // REQUIRED; The type of Digital Twins endpoint EndpointType *EndpointType `json:"endpointType,omitempty"` // Specifies the authentication type being used for connecting to the endpoint. Defaults to 'KeyBased'. If 'KeyBased' is selected, // a connection string must be specified (at least the primary connection // string). If 'IdentityBased' is select, the endpointUri and entityPath properties must be specified. AuthenticationType *AuthenticationType `json:"authenticationType,omitempty"` // PrimaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read. ConnectionStringPrimaryKey *string `json:"connectionStringPrimaryKey,omitempty"` // SecondaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read. ConnectionStringSecondaryKey *string `json:"connectionStringSecondaryKey,omitempty"` // Dead letter storage secret for key-based authentication. Will be obfuscated during read. DeadLetterSecret *string `json:"deadLetterSecret,omitempty"` // Dead letter storage URL for identity-based authentication. DeadLetterURI *string `json:"deadLetterUri,omitempty"` // The URL of the EventHub namespace for identity-based authentication. It must include the protocol 'sb://'. EndpointURI *string `json:"endpointUri,omitempty"` // The EventHub name in the EventHub namespace for identity-based authentication. EntityPath *string `json:"entityPath,omitempty"` // READ-ONLY; Time when the Endpoint was added to DigitalTwinsInstance. CreatedTime *time.Time `json:"createdTime,omitempty" azure:"ro"` // READ-ONLY; The provisioning state. ProvisioningState *EndpointProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
EventHub - Properties related to EventHub.
func (*EventHub) GetEndpointResourceProperties ¶ added in v0.2.0
func (e *EventHub) GetEndpointResourceProperties() *EndpointResourceProperties
GetEndpointResourceProperties implements the EndpointResourcePropertiesClassification interface for type EventHub.
func (EventHub) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type EventHub.
func (*EventHub) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type EventHub.
type ExternalResource ¶
type ExternalResource struct { // READ-ONLY; The resource identifier. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Extension resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *string `json:"type,omitempty" azure:"ro"` }
ExternalResource - Definition of a resource.
type GroupIDInformation ¶
type GroupIDInformation struct { // REQUIRED; The group information properties. Properties *GroupIDInformationProperties `json:"properties,omitempty"` // The resource identifier. ID *string `json:"id,omitempty"` // READ-ONLY; The resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *string `json:"type,omitempty" azure:"ro"` }
GroupIDInformation - The group information for creating a private endpoint on Digital Twin.
type GroupIDInformationProperties ¶
type GroupIDInformationProperties struct { // The group id. GroupID *string `json:"groupId,omitempty"` // The required members for a specific group id. RequiredMembers []*string `json:"requiredMembers,omitempty"` // The required DNS zones for a specific group id. RequiredZoneNames []*string `json:"requiredZoneNames,omitempty"` }
GroupIDInformationProperties - The properties for a group information object.
type GroupIDInformationResponse ¶
type GroupIDInformationResponse struct { // The list of available private link resources for a Digital Twin. Value []*GroupIDInformation `json:"value,omitempty"` }
GroupIDInformationResponse - The available private link resources for a Digital Twin.
type Identity ¶ added in v0.2.0
type Identity struct { // The type of Managed Identity used by the DigitalTwinsInstance. Only SystemAssigned is supported. Type *DigitalTwinsIdentityType `json:"type,omitempty"` // READ-ONLY; The object id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-identity-principal-id // header in the PUT request if the resource has a systemAssigned(implicit) // identity PrincipalID *string `json:"principalId,omitempty" azure:"ro"` // READ-ONLY; The tenant id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-client-tenant-id // header in the PUT request if the resource has a systemAssigned(implicit) identity TenantID *string `json:"tenantId,omitempty" azure:"ro"` }
Identity - The managed identity for the DigitalTwinsInstance.
type Operation ¶
type Operation struct { // Operation properties display Display *OperationDisplay `json:"display,omitempty"` // READ-ONLY; If the operation is a data action (for data plane rbac). IsDataAction *bool `json:"isDataAction,omitempty" azure:"ro"` // READ-ONLY; Operation name: {provider}/{resource}/{read | write | action | delete} Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The intended executor of the operation. Origin *string `json:"origin,omitempty" azure:"ro"` // READ-ONLY; Operation properties. Properties map[string]interface{} `json:"properties,omitempty" azure:"ro"` }
Operation - DigitalTwins service REST API operation
type OperationDisplay ¶
type OperationDisplay struct { // READ-ONLY; Friendly description for the operation. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; Name of the operation. Operation *string `json:"operation,omitempty" azure:"ro"` // READ-ONLY; Service provider: Microsoft DigitalTwins. Provider *string `json:"provider,omitempty" azure:"ro"` // READ-ONLY; Resource Type: DigitalTwinsInstances. Resource *string `json:"resource,omitempty" azure:"ro"` }
OperationDisplay - The object that represents the operation.
type OperationListResult ¶
type OperationListResult struct { // The link used to get the next page of DigitalTwins description objects. NextLink *string `json:"nextLink,omitempty"` // READ-ONLY; A list of DigitalTwins operations supported by the Microsoft.DigitalTwins resource provider. Value []*Operation `json:"value,omitempty" azure:"ro"` }
OperationListResult - A list of DigitalTwins service operations. It contains a list of operations and a URL link to get the next set of results.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*OperationsClient) NewListPager ¶ added in v0.4.0
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - Lists all of the available DigitalTwins service REST API operations. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-31 options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/DigitalTwinsOperationsList_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdigitaltwins.NewOperationsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type OperationsClientListOptions ¶ added in v0.2.0
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListResponse ¶ added in v0.2.0
type OperationsClientListResponse struct {
OperationListResult
}
OperationsClientListResponse contains the response from method OperationsClient.List.
type PatchDescription ¶ added in v0.2.0
type PatchDescription struct { // The managed identity for the DigitalTwinsInstance. Identity *Identity `json:"identity,omitempty"` // Properties for the DigitalTwinsInstance. Properties *PatchProperties `json:"properties,omitempty"` // Instance patch properties Tags map[string]*string `json:"tags,omitempty"` }
PatchDescription - The description of the DigitalTwins service.
func (PatchDescription) MarshalJSON ¶ added in v0.2.0
func (p PatchDescription) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PatchDescription.
type PatchProperties ¶ added in v0.2.0
type PatchProperties struct { // Public network access for the DigitalTwinsInstance. PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` }
PatchProperties - The properties of a DigitalTwinsInstance.
type PrivateEndpoint ¶
type PrivateEndpoint struct { // READ-ONLY; The resource identifier. ID *string `json:"id,omitempty" azure:"ro"` }
PrivateEndpoint - The private endpoint property of a private endpoint connection.
type PrivateEndpointConnection ¶
type PrivateEndpointConnection struct { // REQUIRED; The connection properties. Properties *ConnectionProperties `json:"properties,omitempty"` // READ-ONLY; The resource identifier. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the private endpoint connection. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *string `json:"type,omitempty" azure:"ro"` }
PrivateEndpointConnection - The private endpoint connection of a Digital Twin.
type PrivateEndpointConnectionsClient ¶
type PrivateEndpointConnectionsClient struct {
// contains filtered or unexported fields
}
PrivateEndpointConnectionsClient contains the methods for the PrivateEndpointConnections group. Don't use this type directly, use NewPrivateEndpointConnectionsClient() instead.
func NewPrivateEndpointConnectionsClient ¶
func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsClient, error)
NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*PrivateEndpointConnectionsClient) BeginCreateOrUpdate ¶
func (client *PrivateEndpointConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, privateEndpointConnection PrivateEndpointConnection, options *PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[PrivateEndpointConnectionsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Update the status of a private endpoint connection with the given name. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-31 resourceGroupName - The name of the resource group that contains the DigitalTwinsInstance. resourceName - The name of the DigitalTwinsInstance. privateEndpointConnectionName - The name of the private endpoint connection. privateEndpointConnection - The private endpoint connection with updated properties. options - PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/PrivateEndpointConnectionPut_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdigitaltwins.NewPrivateEndpointConnectionsClient("50016170-c839-41ba-a724-51e9df440b9e", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "resRg", "myDigitalTwinsService", "myPrivateConnection", armdigitaltwins.PrivateEndpointConnection{ Properties: &armdigitaltwins.ConnectionProperties{ PrivateLinkServiceConnectionState: &armdigitaltwins.ConnectionPropertiesPrivateLinkServiceConnectionState{ Description: to.Ptr("Approved by johndoe@company.com."), Status: to.Ptr(armdigitaltwins.PrivateLinkServiceConnectionStatusApproved), }, }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*PrivateEndpointConnectionsClient) BeginDelete ¶
func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*runtime.Poller[PrivateEndpointConnectionsClientDeleteResponse], error)
BeginDelete - Delete private endpoint connection with the specified name. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-31 resourceGroupName - The name of the resource group that contains the DigitalTwinsInstance. resourceName - The name of the DigitalTwinsInstance. privateEndpointConnectionName - The name of the private endpoint connection. options - PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/PrivateEndpointConnectionDelete_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdigitaltwins.NewPrivateEndpointConnectionsClient("50016170-c839-41ba-a724-51e9df440b9e", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "resRg", "myDigitalTwinsService", "myPrivateConnection", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*PrivateEndpointConnectionsClient) Get ¶
func (client *PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, resourceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientGetOptions) (PrivateEndpointConnectionsClientGetResponse, error)
Get - Get private endpoint connection properties for the given private endpoint. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-31 resourceGroupName - The name of the resource group that contains the DigitalTwinsInstance. resourceName - The name of the DigitalTwinsInstance. privateEndpointConnectionName - The name of the private endpoint connection. options - PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/PrivateEndpointConnectionByConnectionName_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdigitaltwins.NewPrivateEndpointConnectionsClient("50016170-c839-41ba-a724-51e9df440b9e", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "resRg", "myDigitalTwinsService", "myPrivateConnection", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*PrivateEndpointConnectionsClient) List ¶
func (client *PrivateEndpointConnectionsClient) List(ctx context.Context, resourceGroupName string, resourceName string, options *PrivateEndpointConnectionsClientListOptions) (PrivateEndpointConnectionsClientListResponse, error)
List - List private endpoint connection properties. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-31 resourceGroupName - The name of the resource group that contains the DigitalTwinsInstance. resourceName - The name of the DigitalTwinsInstance. options - PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/PrivateEndpointConnectionsList_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdigitaltwins.NewPrivateEndpointConnectionsClient("50016170-c839-41ba-a724-51e9df440b9e", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.List(ctx, "resRg", "myDigitalTwinsService", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions ¶ added in v0.2.0
type PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginCreateOrUpdate method.
type PrivateEndpointConnectionsClientBeginDeleteOptions ¶ added in v0.2.0
type PrivateEndpointConnectionsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete method.
type PrivateEndpointConnectionsClientCreateOrUpdateResponse ¶ added in v0.2.0
type PrivateEndpointConnectionsClientCreateOrUpdateResponse struct {
PrivateEndpointConnection
}
PrivateEndpointConnectionsClientCreateOrUpdateResponse contains the response from method PrivateEndpointConnectionsClient.CreateOrUpdate.
type PrivateEndpointConnectionsClientDeleteResponse ¶ added in v0.2.0
type PrivateEndpointConnectionsClientDeleteResponse struct { }
PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.Delete.
type PrivateEndpointConnectionsClientGetOptions ¶ added in v0.2.0
type PrivateEndpointConnectionsClientGetOptions struct { }
PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get method.
type PrivateEndpointConnectionsClientGetResponse ¶ added in v0.2.0
type PrivateEndpointConnectionsClientGetResponse struct {
PrivateEndpointConnection
}
PrivateEndpointConnectionsClientGetResponse contains the response from method PrivateEndpointConnectionsClient.Get.
type PrivateEndpointConnectionsClientListOptions ¶ added in v0.2.0
type PrivateEndpointConnectionsClientListOptions struct { }
PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.List method.
type PrivateEndpointConnectionsClientListResponse ¶ added in v0.2.0
type PrivateEndpointConnectionsClientListResponse struct {
PrivateEndpointConnectionsResponse
}
PrivateEndpointConnectionsClientListResponse contains the response from method PrivateEndpointConnectionsClient.List.
type PrivateEndpointConnectionsResponse ¶
type PrivateEndpointConnectionsResponse struct { // The list of available private link connections for a Digital Twin. Value []*PrivateEndpointConnection `json:"value,omitempty"` }
PrivateEndpointConnectionsResponse - The available private link connections for a Digital Twin.
type PrivateLinkResourcesClient ¶
type PrivateLinkResourcesClient struct {
// contains filtered or unexported fields
}
PrivateLinkResourcesClient contains the methods for the PrivateLinkResources group. Don't use this type directly, use NewPrivateLinkResourcesClient() instead.
func NewPrivateLinkResourcesClient ¶
func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesClient, error)
NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*PrivateLinkResourcesClient) Get ¶
func (client *PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, resourceName string, resourceID string, options *PrivateLinkResourcesClientGetOptions) (PrivateLinkResourcesClientGetResponse, error)
Get - Get the specified private link resource for the given Digital Twin. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-31 resourceGroupName - The name of the resource group that contains the DigitalTwinsInstance. resourceName - The name of the DigitalTwinsInstance. resourceID - The name of the private link resource. options - PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/PrivateLinkResourcesByGroupId_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdigitaltwins.NewPrivateLinkResourcesClient("50016170-c839-41ba-a724-51e9df440b9e", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "resRg", "myDigitalTwinsService", "subResource", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*PrivateLinkResourcesClient) List ¶
func (client *PrivateLinkResourcesClient) List(ctx context.Context, resourceGroupName string, resourceName string, options *PrivateLinkResourcesClientListOptions) (PrivateLinkResourcesClientListResponse, error)
List - List private link resources for given Digital Twin. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-31 resourceGroupName - The name of the resource group that contains the DigitalTwinsInstance. resourceName - The name of the DigitalTwinsInstance. options - PrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkResourcesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/PrivateLinkResourcesList_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdigitaltwins.NewPrivateLinkResourcesClient("50016170-c839-41ba-a724-51e9df440b9e", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.List(ctx, "resRg", "myDigitalTwinsService", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type PrivateLinkResourcesClientGetOptions ¶ added in v0.2.0
type PrivateLinkResourcesClientGetOptions struct { }
PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get method.
type PrivateLinkResourcesClientGetResponse ¶ added in v0.2.0
type PrivateLinkResourcesClientGetResponse struct {
GroupIDInformation
}
PrivateLinkResourcesClientGetResponse contains the response from method PrivateLinkResourcesClient.Get.
type PrivateLinkResourcesClientListOptions ¶ added in v0.2.0
type PrivateLinkResourcesClientListOptions struct { }
PrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkResourcesClient.List method.
type PrivateLinkResourcesClientListResponse ¶ added in v0.2.0
type PrivateLinkResourcesClientListResponse struct {
GroupIDInformationResponse
}
PrivateLinkResourcesClientListResponse contains the response from method PrivateLinkResourcesClient.List.
type PrivateLinkServiceConnectionStatus ¶
type PrivateLinkServiceConnectionStatus string
PrivateLinkServiceConnectionStatus - The status of a private endpoint connection.
const ( PrivateLinkServiceConnectionStatusApproved PrivateLinkServiceConnectionStatus = "Approved" PrivateLinkServiceConnectionStatusDisconnected PrivateLinkServiceConnectionStatus = "Disconnected" PrivateLinkServiceConnectionStatusPending PrivateLinkServiceConnectionStatus = "Pending" PrivateLinkServiceConnectionStatusRejected PrivateLinkServiceConnectionStatus = "Rejected" )
func PossiblePrivateLinkServiceConnectionStatusValues ¶
func PossiblePrivateLinkServiceConnectionStatusValues() []PrivateLinkServiceConnectionStatus
PossiblePrivateLinkServiceConnectionStatusValues returns the possible values for the PrivateLinkServiceConnectionStatus const type.
type Properties ¶ added in v0.2.0
type Properties struct { // The private endpoint connections. PrivateEndpointConnections []*PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` // Public network access for the DigitalTwinsInstance. PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` // READ-ONLY; Time when DigitalTwinsInstance was created. CreatedTime *time.Time `json:"createdTime,omitempty" azure:"ro"` // READ-ONLY; Api endpoint to work with DigitalTwinsInstance. HostName *string `json:"hostName,omitempty" azure:"ro"` // READ-ONLY; Time when DigitalTwinsInstance was updated. LastUpdatedTime *time.Time `json:"lastUpdatedTime,omitempty" azure:"ro"` // READ-ONLY; The provisioning state. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
Properties - The properties of a DigitalTwinsInstance.
func (Properties) MarshalJSON ¶ added in v0.2.0
func (p Properties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Properties.
func (*Properties) UnmarshalJSON ¶ added in v0.2.0
func (p *Properties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type Properties.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState - The provisioning state.
const ( ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateDeleted ProvisioningState = "Deleted" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateMoving ProvisioningState = "Moving" ProvisioningStateProvisioning ProvisioningState = "Provisioning" ProvisioningStateRestoring ProvisioningState = "Restoring" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateSuspending ProvisioningState = "Suspending" ProvisioningStateUpdating ProvisioningState = "Updating" ProvisioningStateWarning ProvisioningState = "Warning" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
type PublicNetworkAccess ¶
type PublicNetworkAccess string
PublicNetworkAccess - Public network access for the DigitalTwinsInstance.
const ( PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled" PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled" )
func PossiblePublicNetworkAccessValues ¶
func PossiblePublicNetworkAccessValues() []PublicNetworkAccess
PossiblePublicNetworkAccessValues returns the possible values for the PublicNetworkAccess const type.
type Reason ¶
type Reason string
Reason - Message providing the reason why the given name is invalid.
func PossibleReasonValues ¶
func PossibleReasonValues() []Reason
PossibleReasonValues returns the possible values for the Reason const type.
type Resource ¶ added in v0.2.0
type Resource struct { // REQUIRED; The resource location. Location *string `json:"location,omitempty"` // The managed identity for the DigitalTwinsInstance. Identity *Identity `json:"identity,omitempty"` // The resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; The resource identifier. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the DigitalTwinsInstance. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *string `json:"type,omitempty" azure:"ro"` }
Resource - The common properties of a DigitalTwinsInstance.
func (Resource) MarshalJSON ¶ added in v0.2.0
MarshalJSON implements the json.Marshaller interface for type Resource.
type ServiceBus ¶
type ServiceBus struct { // REQUIRED; The type of Digital Twins endpoint EndpointType *EndpointType `json:"endpointType,omitempty"` // Specifies the authentication type being used for connecting to the endpoint. Defaults to 'KeyBased'. If 'KeyBased' is selected, // a connection string must be specified (at least the primary connection // string). If 'IdentityBased' is select, the endpointUri and entityPath properties must be specified. AuthenticationType *AuthenticationType `json:"authenticationType,omitempty"` // Dead letter storage secret for key-based authentication. Will be obfuscated during read. DeadLetterSecret *string `json:"deadLetterSecret,omitempty"` // Dead letter storage URL for identity-based authentication. DeadLetterURI *string `json:"deadLetterUri,omitempty"` // The URL of the ServiceBus namespace for identity-based authentication. It must include the protocol 'sb://'. EndpointURI *string `json:"endpointUri,omitempty"` // The ServiceBus Topic name for identity-based authentication. EntityPath *string `json:"entityPath,omitempty"` // PrimaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read. PrimaryConnectionString *string `json:"primaryConnectionString,omitempty"` // SecondaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read. SecondaryConnectionString *string `json:"secondaryConnectionString,omitempty"` // READ-ONLY; Time when the Endpoint was added to DigitalTwinsInstance. CreatedTime *time.Time `json:"createdTime,omitempty" azure:"ro"` // READ-ONLY; The provisioning state. ProvisioningState *EndpointProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ServiceBus - Properties related to ServiceBus.
func (*ServiceBus) GetEndpointResourceProperties ¶ added in v0.2.0
func (s *ServiceBus) GetEndpointResourceProperties() *EndpointResourceProperties
GetEndpointResourceProperties implements the EndpointResourcePropertiesClassification interface for type ServiceBus.
func (ServiceBus) MarshalJSON ¶
func (s ServiceBus) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceBus.
func (*ServiceBus) UnmarshalJSON ¶
func (s *ServiceBus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceBus.
type SystemData ¶ added in v0.3.0
type SystemData struct { // The timestamp of resource creation (UTC). CreatedAt *time.Time `json:"createdAt,omitempty"` // The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // The type of identity that created the resource. CreatedByType *CreatedByType `json:"createdByType,omitempty"` // The timestamp of resource last modification (UTC) LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` // The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // The type of identity that last modified the resource. LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` }
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶ added in v0.3.0
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶ added in v0.3.0
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.
type TimeSeriesDatabaseConnection ¶ added in v0.3.0
type TimeSeriesDatabaseConnection struct { // Properties of a specific time series database connection. Properties TimeSeriesDatabaseConnectionPropertiesClassification `json:"properties,omitempty"` // READ-ONLY; The resource identifier. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Extension resource name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The resource type. Type *string `json:"type,omitempty" azure:"ro"` }
TimeSeriesDatabaseConnection - Describes a time series database connection resource.
func (TimeSeriesDatabaseConnection) MarshalJSON ¶ added in v0.3.0
func (t TimeSeriesDatabaseConnection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TimeSeriesDatabaseConnection.
func (*TimeSeriesDatabaseConnection) UnmarshalJSON ¶ added in v0.3.0
func (t *TimeSeriesDatabaseConnection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TimeSeriesDatabaseConnection.
type TimeSeriesDatabaseConnectionListResult ¶ added in v0.3.0
type TimeSeriesDatabaseConnectionListResult struct { // The link used to get the next page of results. NextLink *string `json:"nextLink,omitempty"` // A list of time series database connection resources. Value []*TimeSeriesDatabaseConnection `json:"value,omitempty"` }
TimeSeriesDatabaseConnectionListResult - A pageable list of time series database connection resources.
type TimeSeriesDatabaseConnectionProperties ¶ added in v0.3.0
type TimeSeriesDatabaseConnectionProperties struct { // REQUIRED; The type of time series connection resource. ConnectionType *ConnectionType `json:"connectionType,omitempty"` // READ-ONLY; The provisioning state. ProvisioningState *TimeSeriesDatabaseConnectionState `json:"provisioningState,omitempty" azure:"ro"` }
TimeSeriesDatabaseConnectionProperties - Properties of a time series database connection resource.
func (*TimeSeriesDatabaseConnectionProperties) GetTimeSeriesDatabaseConnectionProperties ¶ added in v0.3.0
func (t *TimeSeriesDatabaseConnectionProperties) GetTimeSeriesDatabaseConnectionProperties() *TimeSeriesDatabaseConnectionProperties
GetTimeSeriesDatabaseConnectionProperties implements the TimeSeriesDatabaseConnectionPropertiesClassification interface for type TimeSeriesDatabaseConnectionProperties.
type TimeSeriesDatabaseConnectionPropertiesClassification ¶ added in v0.3.0
type TimeSeriesDatabaseConnectionPropertiesClassification interface { // GetTimeSeriesDatabaseConnectionProperties returns the TimeSeriesDatabaseConnectionProperties content of the underlying type. GetTimeSeriesDatabaseConnectionProperties() *TimeSeriesDatabaseConnectionProperties }
TimeSeriesDatabaseConnectionPropertiesClassification provides polymorphic access to related types. Call the interface's GetTimeSeriesDatabaseConnectionProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AzureDataExplorerConnectionProperties, *TimeSeriesDatabaseConnectionProperties
type TimeSeriesDatabaseConnectionState ¶ added in v0.3.0
type TimeSeriesDatabaseConnectionState string
TimeSeriesDatabaseConnectionState - The provisioning state.
const ( TimeSeriesDatabaseConnectionStateCanceled TimeSeriesDatabaseConnectionState = "Canceled" TimeSeriesDatabaseConnectionStateDeleted TimeSeriesDatabaseConnectionState = "Deleted" TimeSeriesDatabaseConnectionStateDeleting TimeSeriesDatabaseConnectionState = "Deleting" TimeSeriesDatabaseConnectionStateDisabled TimeSeriesDatabaseConnectionState = "Disabled" TimeSeriesDatabaseConnectionStateFailed TimeSeriesDatabaseConnectionState = "Failed" TimeSeriesDatabaseConnectionStateMoving TimeSeriesDatabaseConnectionState = "Moving" TimeSeriesDatabaseConnectionStateProvisioning TimeSeriesDatabaseConnectionState = "Provisioning" TimeSeriesDatabaseConnectionStateRestoring TimeSeriesDatabaseConnectionState = "Restoring" TimeSeriesDatabaseConnectionStateSucceeded TimeSeriesDatabaseConnectionState = "Succeeded" TimeSeriesDatabaseConnectionStateSuspending TimeSeriesDatabaseConnectionState = "Suspending" TimeSeriesDatabaseConnectionStateUpdating TimeSeriesDatabaseConnectionState = "Updating" TimeSeriesDatabaseConnectionStateWarning TimeSeriesDatabaseConnectionState = "Warning" )
func PossibleTimeSeriesDatabaseConnectionStateValues ¶ added in v0.3.0
func PossibleTimeSeriesDatabaseConnectionStateValues() []TimeSeriesDatabaseConnectionState
PossibleTimeSeriesDatabaseConnectionStateValues returns the possible values for the TimeSeriesDatabaseConnectionState const type.
type TimeSeriesDatabaseConnectionsClient ¶ added in v0.3.0
type TimeSeriesDatabaseConnectionsClient struct {
// contains filtered or unexported fields
}
TimeSeriesDatabaseConnectionsClient contains the methods for the TimeSeriesDatabaseConnections group. Don't use this type directly, use NewTimeSeriesDatabaseConnectionsClient() instead.
func NewTimeSeriesDatabaseConnectionsClient ¶ added in v0.3.0
func NewTimeSeriesDatabaseConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TimeSeriesDatabaseConnectionsClient, error)
NewTimeSeriesDatabaseConnectionsClient creates a new instance of TimeSeriesDatabaseConnectionsClient with the specified values. subscriptionID - The subscription identifier. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*TimeSeriesDatabaseConnectionsClient) BeginCreateOrUpdate ¶ added in v0.3.0
func (client *TimeSeriesDatabaseConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, timeSeriesDatabaseConnectionName string, timeSeriesDatabaseConnectionDescription TimeSeriesDatabaseConnection, options *TimeSeriesDatabaseConnectionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[TimeSeriesDatabaseConnectionsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update a time series database connection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-31 resourceGroupName - The name of the resource group that contains the DigitalTwinsInstance. resourceName - The name of the DigitalTwinsInstance. timeSeriesDatabaseConnectionName - Name of time series database connection. timeSeriesDatabaseConnectionDescription - The time series database connection description. options - TimeSeriesDatabaseConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the TimeSeriesDatabaseConnectionsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/TimeSeriesDatabaseConnectionsPut_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdigitaltwins.NewTimeSeriesDatabaseConnectionsClient("50016170-c839-41ba-a724-51e9df440b9e", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "resRg", "myDigitalTwinsService", "myConnection", armdigitaltwins.TimeSeriesDatabaseConnection{ Properties: &armdigitaltwins.AzureDataExplorerConnectionProperties{ ConnectionType: to.Ptr(armdigitaltwins.ConnectionTypeAzureDataExplorer), AdxDatabaseName: to.Ptr("myDatabase"), AdxEndpointURI: to.Ptr("https://mycluster.kusto.windows.net"), AdxResourceID: to.Ptr("/subscriptions/c493073e-2460-45ba-a403-f3e0df1e9feg/resourceGroups/testrg/providers/Microsoft.Kusto/clusters/mycluster"), AdxTableName: to.Ptr("myTable"), EventHubEndpointURI: to.Ptr("sb://myeh.servicebus.windows.net/"), EventHubEntityPath: to.Ptr("myeh"), EventHubNamespaceResourceID: to.Ptr("/subscriptions/c493073e-2460-45ba-a403-f3e0df1e9feg/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/myeh"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*TimeSeriesDatabaseConnectionsClient) BeginDelete ¶ added in v0.3.0
func (client *TimeSeriesDatabaseConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, timeSeriesDatabaseConnectionName string, options *TimeSeriesDatabaseConnectionsClientBeginDeleteOptions) (*runtime.Poller[TimeSeriesDatabaseConnectionsClientDeleteResponse], error)
BeginDelete - Delete a time series database connection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-31 resourceGroupName - The name of the resource group that contains the DigitalTwinsInstance. resourceName - The name of the DigitalTwinsInstance. timeSeriesDatabaseConnectionName - Name of time series database connection. options - TimeSeriesDatabaseConnectionsClientBeginDeleteOptions contains the optional parameters for the TimeSeriesDatabaseConnectionsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/TimeSeriesDatabaseConnectionsDelete_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdigitaltwins.NewTimeSeriesDatabaseConnectionsClient("50016170-c839-41ba-a724-51e9df440b9e", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginDelete(ctx, "resRg", "myDigitalTwinsService", "myConnection", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // TODO: use response item _ = res }
Output:
func (*TimeSeriesDatabaseConnectionsClient) Get ¶ added in v0.3.0
func (client *TimeSeriesDatabaseConnectionsClient) Get(ctx context.Context, resourceGroupName string, resourceName string, timeSeriesDatabaseConnectionName string, options *TimeSeriesDatabaseConnectionsClientGetOptions) (TimeSeriesDatabaseConnectionsClientGetResponse, error)
Get - Get the description of an existing time series database connection. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-31 resourceGroupName - The name of the resource group that contains the DigitalTwinsInstance. resourceName - The name of the DigitalTwinsInstance. timeSeriesDatabaseConnectionName - Name of time series database connection. options - TimeSeriesDatabaseConnectionsClientGetOptions contains the optional parameters for the TimeSeriesDatabaseConnectionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/TimeSeriesDatabaseConnectionsGet_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdigitaltwins.NewTimeSeriesDatabaseConnectionsClient("50016170-c839-41ba-a724-51e9df440b9e", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "resRg", "myDigitalTwinsService", "myConnection", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*TimeSeriesDatabaseConnectionsClient) NewListPager ¶ added in v0.4.0
func (client *TimeSeriesDatabaseConnectionsClient) NewListPager(resourceGroupName string, resourceName string, options *TimeSeriesDatabaseConnectionsClientListOptions) *runtime.Pager[TimeSeriesDatabaseConnectionsClientListResponse]
NewListPager - Get all existing time series database connections for this DigitalTwins instance. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-31 resourceGroupName - The name of the resource group that contains the DigitalTwinsInstance. resourceName - The name of the DigitalTwinsInstance. options - TimeSeriesDatabaseConnectionsClientListOptions contains the optional parameters for the TimeSeriesDatabaseConnectionsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2022-05-31/examples/TimeSeriesDatabaseConnectionsList_example.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armdigitaltwins.NewTimeSeriesDatabaseConnectionsClient("50016170-c839-41ba-a724-51e9df440b9e", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("resRg", "myDigitalTwinsService", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type TimeSeriesDatabaseConnectionsClientBeginCreateOrUpdateOptions ¶ added in v0.3.0
type TimeSeriesDatabaseConnectionsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
TimeSeriesDatabaseConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the TimeSeriesDatabaseConnectionsClient.BeginCreateOrUpdate method.
type TimeSeriesDatabaseConnectionsClientBeginDeleteOptions ¶ added in v0.3.0
type TimeSeriesDatabaseConnectionsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
TimeSeriesDatabaseConnectionsClientBeginDeleteOptions contains the optional parameters for the TimeSeriesDatabaseConnectionsClient.BeginDelete method.
type TimeSeriesDatabaseConnectionsClientCreateOrUpdateResponse ¶ added in v0.3.0
type TimeSeriesDatabaseConnectionsClientCreateOrUpdateResponse struct {
TimeSeriesDatabaseConnection
}
TimeSeriesDatabaseConnectionsClientCreateOrUpdateResponse contains the response from method TimeSeriesDatabaseConnectionsClient.CreateOrUpdate.
type TimeSeriesDatabaseConnectionsClientDeleteResponse ¶ added in v0.3.0
type TimeSeriesDatabaseConnectionsClientDeleteResponse struct {
TimeSeriesDatabaseConnection
}
TimeSeriesDatabaseConnectionsClientDeleteResponse contains the response from method TimeSeriesDatabaseConnectionsClient.Delete.
type TimeSeriesDatabaseConnectionsClientGetOptions ¶ added in v0.3.0
type TimeSeriesDatabaseConnectionsClientGetOptions struct { }
TimeSeriesDatabaseConnectionsClientGetOptions contains the optional parameters for the TimeSeriesDatabaseConnectionsClient.Get method.
type TimeSeriesDatabaseConnectionsClientGetResponse ¶ added in v0.3.0
type TimeSeriesDatabaseConnectionsClientGetResponse struct {
TimeSeriesDatabaseConnection
}
TimeSeriesDatabaseConnectionsClientGetResponse contains the response from method TimeSeriesDatabaseConnectionsClient.Get.
type TimeSeriesDatabaseConnectionsClientListOptions ¶ added in v0.3.0
type TimeSeriesDatabaseConnectionsClientListOptions struct { }
TimeSeriesDatabaseConnectionsClientListOptions contains the optional parameters for the TimeSeriesDatabaseConnectionsClient.List method.
type TimeSeriesDatabaseConnectionsClientListResponse ¶ added in v0.3.0
type TimeSeriesDatabaseConnectionsClientListResponse struct {
TimeSeriesDatabaseConnectionListResult
}
TimeSeriesDatabaseConnectionsClientListResponse contains the response from method TimeSeriesDatabaseConnectionsClient.List.
Source Files ¶
- build.go
- zz_generated_client.go
- zz_generated_constants.go
- zz_generated_endpoint_client.go
- zz_generated_models.go
- zz_generated_models_serde.go
- zz_generated_operations_client.go
- zz_generated_polymorphic_helpers.go
- zz_generated_privateendpointconnections_client.go
- zz_generated_privatelinkresources_client.go
- zz_generated_response_types.go
- zz_generated_time_rfc3339.go
- zz_generated_timeseriesdatabaseconnections_client.go