1// Package digitaltwins implements the Azure ARM Digitaltwins service API version 2020-05-31-preview. 2// 3// A service for managing and querying digital twins and digital twin models. 4package digitaltwins 5 6// Copyright (c) Microsoft Corporation. All rights reserved. 7// Licensed under the MIT License. See License.txt in the project root for license information. 8// 9// Code generated by Microsoft (R) AutoRest Code Generator. 10// Changes may cause incorrect behavior and will be lost if the code is regenerated. 11 12import ( 13 "github.com/Azure/go-autorest/autorest" 14) 15 16const ( 17 // DefaultBaseURI is the default URI used for the service Digitaltwins 18 DefaultBaseURI = "https://digitaltwins-name.digitaltwins.azure.net" 19) 20 21// BaseClient is the base client for Digitaltwins. 22type BaseClient struct { 23 autorest.Client 24 BaseURI string 25} 26 27// New creates an instance of the BaseClient client. 28func New() BaseClient { 29 return NewWithBaseURI(DefaultBaseURI) 30} 31 32// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with 33// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). 34func NewWithBaseURI(baseURI string) BaseClient { 35 return BaseClient{ 36 Client: autorest.NewClientWithUserAgent(UserAgent()), 37 BaseURI: baseURI, 38 } 39} 40