internal CosmosDBLocationCollection(ArmResource parent) : base(parent) { _cosmosDBLocationLocationsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.CosmosDB", CosmosDBLocation.ResourceType.Namespace, DiagnosticOptions); ArmClient.TryGetApiVersion(CosmosDBLocation.ResourceType, out string cosmosDBLocationLocationsApiVersion); _cosmosDBLocationLocationsRestClient = new LocationsRestOperations(_cosmosDBLocationLocationsClientDiagnostics, Pipeline, DiagnosticOptions.ApplicationId, BaseUri, cosmosDBLocationLocationsApiVersion); #if DEBUG ValidateResourceId(Id); #endif }
internal CosmosDBLocationResource(ArmClient client, ResourceIdentifier id) : base(client, id) { _cosmosDBLocationLocationsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.CosmosDB", ResourceType.Namespace, Diagnostics); TryGetApiVersion(ResourceType, out string cosmosDBLocationLocationsApiVersion); _cosmosDBLocationLocationsRestClient = new LocationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, cosmosDBLocationLocationsApiVersion); #if DEBUG ValidateResourceId(Id); #endif }