[Automation] Collect examples from azure-sdk-for-net#Azure.ResourceManager.DataFactory_1.5.0
This commit is contained in:
Родитель
e6cecf5346
Коммит
af83877aee
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -15,16 +15,19 @@ TokenCredential cred = new DefaultAzureCredential();
|
||||||
// authenticate your client
|
// authenticate your client
|
||||||
ArmClient client = new ArmClient(cred);
|
ArmClient client = new ArmClient(cred);
|
||||||
|
|
||||||
// this example assumes you already have this DataFactoryPrivateEndpointConnectionResource created on azure
|
// this example assumes you already have this DataFactoryResource created on azure
|
||||||
// for more information of creating DataFactoryPrivateEndpointConnectionResource, please refer to the document of DataFactoryPrivateEndpointConnectionResource
|
// for more information of creating DataFactoryResource, please refer to the document of DataFactoryResource
|
||||||
string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
|
string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
|
||||||
string resourceGroupName = "exampleResourceGroup";
|
string resourceGroupName = "exampleResourceGroup";
|
||||||
string factoryName = "exampleFactoryName";
|
string factoryName = "exampleFactoryName";
|
||||||
string privateEndpointConnectionName = "connection";
|
ResourceIdentifier dataFactoryResourceId = DataFactoryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName);
|
||||||
ResourceIdentifier dataFactoryPrivateEndpointConnectionResourceId = DataFactoryPrivateEndpointConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName, privateEndpointConnectionName);
|
DataFactoryResource dataFactory = client.GetDataFactoryResource(dataFactoryResourceId);
|
||||||
DataFactoryPrivateEndpointConnectionResource dataFactoryPrivateEndpointConnection = client.GetDataFactoryPrivateEndpointConnectionResource(dataFactoryPrivateEndpointConnectionResourceId);
|
|
||||||
|
// get the collection of this DataFactoryPrivateEndpointConnectionResource
|
||||||
|
DataFactoryPrivateEndpointConnectionCollection collection = dataFactory.GetDataFactoryPrivateEndpointConnections();
|
||||||
|
|
||||||
// invoke the operation
|
// invoke the operation
|
||||||
|
string privateEndpointConnectionName = "connection";
|
||||||
DataFactoryPrivateEndpointConnectionCreateOrUpdateContent content = new DataFactoryPrivateEndpointConnectionCreateOrUpdateContent()
|
DataFactoryPrivateEndpointConnectionCreateOrUpdateContent content = new DataFactoryPrivateEndpointConnectionCreateOrUpdateContent()
|
||||||
{
|
{
|
||||||
Properties = new PrivateLinkConnectionApprovalRequest()
|
Properties = new PrivateLinkConnectionApprovalRequest()
|
||||||
|
@ -38,7 +41,7 @@ DataFactoryPrivateEndpointConnectionCreateOrUpdateContent content = new DataFact
|
||||||
PrivateEndpointId = new ResourceIdentifier("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint"),
|
PrivateEndpointId = new ResourceIdentifier("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint"),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
ArmOperation<DataFactoryPrivateEndpointConnectionResource> lro = await dataFactoryPrivateEndpointConnection.UpdateAsync(WaitUntil.Completed, content);
|
ArmOperation<DataFactoryPrivateEndpointConnectionResource> lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, privateEndpointConnectionName, content);
|
||||||
DataFactoryPrivateEndpointConnectionResource result = lro.Value;
|
DataFactoryPrivateEndpointConnectionResource result = lro.Value;
|
||||||
|
|
||||||
// the variable result is a resource, you could call other operations on this instance as well
|
// the variable result is a resource, you could call other operations on this instance as well
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -14,20 +14,31 @@ TokenCredential cred = new DefaultAzureCredential();
|
||||||
// authenticate your client
|
// authenticate your client
|
||||||
ArmClient client = new ArmClient(cred);
|
ArmClient client = new ArmClient(cred);
|
||||||
|
|
||||||
// this example assumes you already have this DataFactoryChangeDataCaptureResource created on azure
|
// this example assumes you already have this DataFactoryResource created on azure
|
||||||
// for more information of creating DataFactoryChangeDataCaptureResource, please refer to the document of DataFactoryChangeDataCaptureResource
|
// for more information of creating DataFactoryResource, please refer to the document of DataFactoryResource
|
||||||
string subscriptionId = "12345678-1234-1234-1234-12345678abc";
|
string subscriptionId = "12345678-1234-1234-1234-12345678abc";
|
||||||
string resourceGroupName = "exampleResourceGroup";
|
string resourceGroupName = "exampleResourceGroup";
|
||||||
string factoryName = "exampleFactoryName";
|
string factoryName = "exampleFactoryName";
|
||||||
string changeDataCaptureName = "exampleChangeDataCapture";
|
ResourceIdentifier dataFactoryResourceId = DataFactoryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName);
|
||||||
ResourceIdentifier dataFactoryChangeDataCaptureResourceId = DataFactoryChangeDataCaptureResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName, changeDataCaptureName);
|
DataFactoryResource dataFactory = client.GetDataFactoryResource(dataFactoryResourceId);
|
||||||
DataFactoryChangeDataCaptureResource dataFactoryChangeDataCapture = client.GetDataFactoryChangeDataCaptureResource(dataFactoryChangeDataCaptureResourceId);
|
|
||||||
|
// get the collection of this DataFactoryChangeDataCaptureResource
|
||||||
|
DataFactoryChangeDataCaptureCollection collection = dataFactory.GetDataFactoryChangeDataCaptures();
|
||||||
|
|
||||||
// invoke the operation
|
// invoke the operation
|
||||||
DataFactoryChangeDataCaptureResource result = await dataFactoryChangeDataCapture.GetAsync();
|
string changeDataCaptureName = "exampleChangeDataCapture";
|
||||||
|
NullableResponse<DataFactoryChangeDataCaptureResource> response = await collection.GetIfExistsAsync(changeDataCaptureName);
|
||||||
|
DataFactoryChangeDataCaptureResource result = response.HasValue ? response.Value : null;
|
||||||
|
|
||||||
// the variable result is a resource, you could call other operations on this instance as well
|
if (result == null)
|
||||||
// but just for demo, we get its data from this resource instance
|
{
|
||||||
DataFactoryChangeDataCaptureData resourceData = result.Data;
|
Console.WriteLine($"Succeeded with null as result");
|
||||||
// for demo we just print out the id
|
}
|
||||||
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
|
else
|
||||||
|
{
|
||||||
|
// the variable result is a resource, you could call other operations on this instance as well
|
||||||
|
// but just for demo, we get its data from this resource instance
|
||||||
|
DataFactoryChangeDataCaptureData resourceData = result.Data;
|
||||||
|
// for demo we just print out the id
|
||||||
|
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
|
||||||
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -15,19 +15,16 @@ TokenCredential cred = new DefaultAzureCredential();
|
||||||
// authenticate your client
|
// authenticate your client
|
||||||
ArmClient client = new ArmClient(cred);
|
ArmClient client = new ArmClient(cred);
|
||||||
|
|
||||||
// this example assumes you already have this DataFactoryResource created on azure
|
// this example assumes you already have this DataFactoryDataFlowResource created on azure
|
||||||
// for more information of creating DataFactoryResource, please refer to the document of DataFactoryResource
|
// for more information of creating DataFactoryDataFlowResource, please refer to the document of DataFactoryDataFlowResource
|
||||||
string subscriptionId = "12345678-1234-1234-1234-12345678abc";
|
string subscriptionId = "12345678-1234-1234-1234-12345678abc";
|
||||||
string resourceGroupName = "exampleResourceGroup";
|
string resourceGroupName = "exampleResourceGroup";
|
||||||
string factoryName = "exampleFactoryName";
|
string factoryName = "exampleFactoryName";
|
||||||
ResourceIdentifier dataFactoryResourceId = DataFactoryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName);
|
string dataFlowName = "exampleDataFlow";
|
||||||
DataFactoryResource dataFactory = client.GetDataFactoryResource(dataFactoryResourceId);
|
ResourceIdentifier dataFactoryDataFlowResourceId = DataFactoryDataFlowResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName, dataFlowName);
|
||||||
|
DataFactoryDataFlowResource dataFactoryDataFlow = client.GetDataFactoryDataFlowResource(dataFactoryDataFlowResourceId);
|
||||||
// get the collection of this DataFactoryDataFlowResource
|
|
||||||
DataFactoryDataFlowCollection collection = dataFactory.GetDataFactoryDataFlows();
|
|
||||||
|
|
||||||
// invoke the operation
|
// invoke the operation
|
||||||
string dataFlowName = "exampleDataFlow";
|
|
||||||
DataFactoryDataFlowData data = new DataFactoryDataFlowData(new DataFactoryMappingDataFlowProperties()
|
DataFactoryDataFlowData data = new DataFactoryDataFlowData(new DataFactoryMappingDataFlowProperties()
|
||||||
{
|
{
|
||||||
Sources =
|
Sources =
|
||||||
|
@ -56,7 +53,7 @@ DataFactoryDataFlowData data = new DataFactoryDataFlowData(new DataFactoryMappin
|
||||||
},
|
},
|
||||||
Description = "Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation.",
|
Description = "Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation.",
|
||||||
});
|
});
|
||||||
ArmOperation<DataFactoryDataFlowResource> lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataFlowName, data);
|
ArmOperation<DataFactoryDataFlowResource> lro = await dataFactoryDataFlow.UpdateAsync(WaitUntil.Completed, data);
|
||||||
DataFactoryDataFlowResource result = lro.Value;
|
DataFactoryDataFlowResource result = lro.Value;
|
||||||
|
|
||||||
// the variable result is a resource, you could call other operations on this instance as well
|
// the variable result is a resource, you could call other operations on this instance as well
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -15,31 +15,20 @@ TokenCredential cred = new DefaultAzureCredential();
|
||||||
// authenticate your client
|
// authenticate your client
|
||||||
ArmClient client = new ArmClient(cred);
|
ArmClient client = new ArmClient(cred);
|
||||||
|
|
||||||
// this example assumes you already have this DataFactoryResource created on azure
|
// this example assumes you already have this DataFactoryDataFlowResource created on azure
|
||||||
// for more information of creating DataFactoryResource, please refer to the document of DataFactoryResource
|
// for more information of creating DataFactoryDataFlowResource, please refer to the document of DataFactoryDataFlowResource
|
||||||
string subscriptionId = "12345678-1234-1234-1234-12345678abc";
|
string subscriptionId = "12345678-1234-1234-1234-12345678abc";
|
||||||
string resourceGroupName = "exampleResourceGroup";
|
string resourceGroupName = "exampleResourceGroup";
|
||||||
string factoryName = "exampleFactoryName";
|
string factoryName = "exampleFactoryName";
|
||||||
ResourceIdentifier dataFactoryResourceId = DataFactoryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName);
|
string dataFlowName = "exampleDataFlow";
|
||||||
DataFactoryResource dataFactory = client.GetDataFactoryResource(dataFactoryResourceId);
|
ResourceIdentifier dataFactoryDataFlowResourceId = DataFactoryDataFlowResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName, dataFlowName);
|
||||||
|
DataFactoryDataFlowResource dataFactoryDataFlow = client.GetDataFactoryDataFlowResource(dataFactoryDataFlowResourceId);
|
||||||
// get the collection of this DataFactoryDataFlowResource
|
|
||||||
DataFactoryDataFlowCollection collection = dataFactory.GetDataFactoryDataFlows();
|
|
||||||
|
|
||||||
// invoke the operation
|
// invoke the operation
|
||||||
string dataFlowName = "exampleDataFlow";
|
DataFactoryDataFlowResource result = await dataFactoryDataFlow.GetAsync();
|
||||||
NullableResponse<DataFactoryDataFlowResource> response = await collection.GetIfExistsAsync(dataFlowName);
|
|
||||||
DataFactoryDataFlowResource result = response.HasValue ? response.Value : null;
|
|
||||||
|
|
||||||
if (result == null)
|
// the variable result is a resource, you could call other operations on this instance as well
|
||||||
{
|
// but just for demo, we get its data from this resource instance
|
||||||
Console.WriteLine($"Succeeded with null as result");
|
DataFactoryDataFlowData resourceData = result.Data;
|
||||||
}
|
// for demo we just print out the id
|
||||||
else
|
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
|
||||||
{
|
|
||||||
// the variable result is a resource, you could call other operations on this instance as well
|
|
||||||
// but just for demo, we get its data from this resource instance
|
|
||||||
DataFactoryDataFlowData resourceData = result.Data;
|
|
||||||
// for demo we just print out the id
|
|
||||||
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
|
|
||||||
}
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -15,19 +15,16 @@ TokenCredential cred = new DefaultAzureCredential();
|
||||||
// authenticate your client
|
// authenticate your client
|
||||||
ArmClient client = new ArmClient(cred);
|
ArmClient client = new ArmClient(cred);
|
||||||
|
|
||||||
// this example assumes you already have this DataFactoryResource created on azure
|
// this example assumes you already have this DataFactoryDataFlowResource created on azure
|
||||||
// for more information of creating DataFactoryResource, please refer to the document of DataFactoryResource
|
// for more information of creating DataFactoryDataFlowResource, please refer to the document of DataFactoryDataFlowResource
|
||||||
string subscriptionId = "12345678-1234-1234-1234-12345678abc";
|
string subscriptionId = "12345678-1234-1234-1234-12345678abc";
|
||||||
string resourceGroupName = "exampleResourceGroup";
|
string resourceGroupName = "exampleResourceGroup";
|
||||||
string factoryName = "exampleFactoryName";
|
string factoryName = "exampleFactoryName";
|
||||||
ResourceIdentifier dataFactoryResourceId = DataFactoryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName);
|
string dataFlowName = "exampleDataFlow";
|
||||||
DataFactoryResource dataFactory = client.GetDataFactoryResource(dataFactoryResourceId);
|
ResourceIdentifier dataFactoryDataFlowResourceId = DataFactoryDataFlowResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName, dataFlowName);
|
||||||
|
DataFactoryDataFlowResource dataFactoryDataFlow = client.GetDataFactoryDataFlowResource(dataFactoryDataFlowResourceId);
|
||||||
// get the collection of this DataFactoryDataFlowResource
|
|
||||||
DataFactoryDataFlowCollection collection = dataFactory.GetDataFactoryDataFlows();
|
|
||||||
|
|
||||||
// invoke the operation
|
// invoke the operation
|
||||||
string dataFlowName = "exampleDataFlow";
|
|
||||||
DataFactoryDataFlowData data = new DataFactoryDataFlowData(new DataFactoryMappingDataFlowProperties()
|
DataFactoryDataFlowData data = new DataFactoryDataFlowData(new DataFactoryMappingDataFlowProperties()
|
||||||
{
|
{
|
||||||
Sources =
|
Sources =
|
||||||
|
@ -56,7 +53,7 @@ DataFactoryDataFlowData data = new DataFactoryDataFlowData(new DataFactoryMappin
|
||||||
},
|
},
|
||||||
Description = "Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation.",
|
Description = "Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation.",
|
||||||
});
|
});
|
||||||
ArmOperation<DataFactoryDataFlowResource> lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, dataFlowName, data);
|
ArmOperation<DataFactoryDataFlowResource> lro = await dataFactoryDataFlow.UpdateAsync(WaitUntil.Completed, data);
|
||||||
DataFactoryDataFlowResource result = lro.Value;
|
DataFactoryDataFlowResource result = lro.Value;
|
||||||
|
|
||||||
// the variable result is a resource, you could call other operations on this instance as well
|
// the variable result is a resource, you could call other operations on this instance as well
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -15,20 +15,31 @@ TokenCredential cred = new DefaultAzureCredential();
|
||||||
// authenticate your client
|
// authenticate your client
|
||||||
ArmClient client = new ArmClient(cred);
|
ArmClient client = new ArmClient(cred);
|
||||||
|
|
||||||
// this example assumes you already have this DataFactoryPrivateEndpointConnectionResource created on azure
|
// this example assumes you already have this DataFactoryResource created on azure
|
||||||
// for more information of creating DataFactoryPrivateEndpointConnectionResource, please refer to the document of DataFactoryPrivateEndpointConnectionResource
|
// for more information of creating DataFactoryResource, please refer to the document of DataFactoryResource
|
||||||
string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
|
string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
|
||||||
string resourceGroupName = "exampleResourceGroup";
|
string resourceGroupName = "exampleResourceGroup";
|
||||||
string factoryName = "exampleFactoryName";
|
string factoryName = "exampleFactoryName";
|
||||||
string privateEndpointConnectionName = "connection";
|
ResourceIdentifier dataFactoryResourceId = DataFactoryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName);
|
||||||
ResourceIdentifier dataFactoryPrivateEndpointConnectionResourceId = DataFactoryPrivateEndpointConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName, privateEndpointConnectionName);
|
DataFactoryResource dataFactory = client.GetDataFactoryResource(dataFactoryResourceId);
|
||||||
DataFactoryPrivateEndpointConnectionResource dataFactoryPrivateEndpointConnection = client.GetDataFactoryPrivateEndpointConnectionResource(dataFactoryPrivateEndpointConnectionResourceId);
|
|
||||||
|
// get the collection of this DataFactoryPrivateEndpointConnectionResource
|
||||||
|
DataFactoryPrivateEndpointConnectionCollection collection = dataFactory.GetDataFactoryPrivateEndpointConnections();
|
||||||
|
|
||||||
// invoke the operation
|
// invoke the operation
|
||||||
DataFactoryPrivateEndpointConnectionResource result = await dataFactoryPrivateEndpointConnection.GetAsync();
|
string privateEndpointConnectionName = "connection";
|
||||||
|
NullableResponse<DataFactoryPrivateEndpointConnectionResource> response = await collection.GetIfExistsAsync(privateEndpointConnectionName);
|
||||||
|
DataFactoryPrivateEndpointConnectionResource result = response.HasValue ? response.Value : null;
|
||||||
|
|
||||||
// the variable result is a resource, you could call other operations on this instance as well
|
if (result == null)
|
||||||
// but just for demo, we get its data from this resource instance
|
{
|
||||||
DataFactoryPrivateEndpointConnectionData resourceData = result.Data;
|
Console.WriteLine($"Succeeded with null as result");
|
||||||
// for demo we just print out the id
|
}
|
||||||
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
|
else
|
||||||
|
{
|
||||||
|
// the variable result is a resource, you could call other operations on this instance as well
|
||||||
|
// but just for demo, we get its data from this resource instance
|
||||||
|
DataFactoryPrivateEndpointConnectionData resourceData = result.Data;
|
||||||
|
// for demo we just print out the id
|
||||||
|
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
|
||||||
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -16,21 +16,24 @@ TokenCredential cred = new DefaultAzureCredential();
|
||||||
// authenticate your client
|
// authenticate your client
|
||||||
ArmClient client = new ArmClient(cred);
|
ArmClient client = new ArmClient(cred);
|
||||||
|
|
||||||
// this example assumes you already have this DataFactoryLinkedServiceResource created on azure
|
// this example assumes you already have this DataFactoryResource created on azure
|
||||||
// for more information of creating DataFactoryLinkedServiceResource, please refer to the document of DataFactoryLinkedServiceResource
|
// for more information of creating DataFactoryResource, please refer to the document of DataFactoryResource
|
||||||
string subscriptionId = "12345678-1234-1234-1234-12345678abc";
|
string subscriptionId = "12345678-1234-1234-1234-12345678abc";
|
||||||
string resourceGroupName = "exampleResourceGroup";
|
string resourceGroupName = "exampleResourceGroup";
|
||||||
string factoryName = "exampleFactoryName";
|
string factoryName = "exampleFactoryName";
|
||||||
string linkedServiceName = "exampleLinkedService";
|
ResourceIdentifier dataFactoryResourceId = DataFactoryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName);
|
||||||
ResourceIdentifier dataFactoryLinkedServiceResourceId = DataFactoryLinkedServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName, linkedServiceName);
|
DataFactoryResource dataFactory = client.GetDataFactoryResource(dataFactoryResourceId);
|
||||||
DataFactoryLinkedServiceResource dataFactoryLinkedService = client.GetDataFactoryLinkedServiceResource(dataFactoryLinkedServiceResourceId);
|
|
||||||
|
// get the collection of this DataFactoryLinkedServiceResource
|
||||||
|
DataFactoryLinkedServiceCollection collection = dataFactory.GetDataFactoryLinkedServices();
|
||||||
|
|
||||||
// invoke the operation
|
// invoke the operation
|
||||||
|
string linkedServiceName = "exampleLinkedService";
|
||||||
DataFactoryLinkedServiceData data = new DataFactoryLinkedServiceData(new AzureStorageLinkedService()
|
DataFactoryLinkedServiceData data = new DataFactoryLinkedServiceData(new AzureStorageLinkedService()
|
||||||
{
|
{
|
||||||
ConnectionString = DataFactoryElement<string>.FromSecretString("DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=<storage key>"),
|
ConnectionString = DataFactoryElement<string>.FromSecretString("DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=<storage key>"),
|
||||||
});
|
});
|
||||||
ArmOperation<DataFactoryLinkedServiceResource> lro = await dataFactoryLinkedService.UpdateAsync(WaitUntil.Completed, data);
|
ArmOperation<DataFactoryLinkedServiceResource> lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, linkedServiceName, data);
|
||||||
DataFactoryLinkedServiceResource result = lro.Value;
|
DataFactoryLinkedServiceResource result = lro.Value;
|
||||||
|
|
||||||
// the variable result is a resource, you could call other operations on this instance as well
|
// the variable result is a resource, you could call other operations on this instance as well
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -16,20 +16,31 @@ TokenCredential cred = new DefaultAzureCredential();
|
||||||
// authenticate your client
|
// authenticate your client
|
||||||
ArmClient client = new ArmClient(cred);
|
ArmClient client = new ArmClient(cred);
|
||||||
|
|
||||||
// this example assumes you already have this DataFactoryLinkedServiceResource created on azure
|
// this example assumes you already have this DataFactoryResource created on azure
|
||||||
// for more information of creating DataFactoryLinkedServiceResource, please refer to the document of DataFactoryLinkedServiceResource
|
// for more information of creating DataFactoryResource, please refer to the document of DataFactoryResource
|
||||||
string subscriptionId = "12345678-1234-1234-1234-12345678abc";
|
string subscriptionId = "12345678-1234-1234-1234-12345678abc";
|
||||||
string resourceGroupName = "exampleResourceGroup";
|
string resourceGroupName = "exampleResourceGroup";
|
||||||
string factoryName = "exampleFactoryName";
|
string factoryName = "exampleFactoryName";
|
||||||
string linkedServiceName = "exampleLinkedService";
|
ResourceIdentifier dataFactoryResourceId = DataFactoryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName);
|
||||||
ResourceIdentifier dataFactoryLinkedServiceResourceId = DataFactoryLinkedServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName, linkedServiceName);
|
DataFactoryResource dataFactory = client.GetDataFactoryResource(dataFactoryResourceId);
|
||||||
DataFactoryLinkedServiceResource dataFactoryLinkedService = client.GetDataFactoryLinkedServiceResource(dataFactoryLinkedServiceResourceId);
|
|
||||||
|
// get the collection of this DataFactoryLinkedServiceResource
|
||||||
|
DataFactoryLinkedServiceCollection collection = dataFactory.GetDataFactoryLinkedServices();
|
||||||
|
|
||||||
// invoke the operation
|
// invoke the operation
|
||||||
DataFactoryLinkedServiceResource result = await dataFactoryLinkedService.GetAsync();
|
string linkedServiceName = "exampleLinkedService";
|
||||||
|
NullableResponse<DataFactoryLinkedServiceResource> response = await collection.GetIfExistsAsync(linkedServiceName);
|
||||||
|
DataFactoryLinkedServiceResource result = response.HasValue ? response.Value : null;
|
||||||
|
|
||||||
// the variable result is a resource, you could call other operations on this instance as well
|
if (result == null)
|
||||||
// but just for demo, we get its data from this resource instance
|
{
|
||||||
DataFactoryLinkedServiceData resourceData = result.Data;
|
Console.WriteLine($"Succeeded with null as result");
|
||||||
// for demo we just print out the id
|
}
|
||||||
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
|
else
|
||||||
|
{
|
||||||
|
// the variable result is a resource, you could call other operations on this instance as well
|
||||||
|
// but just for demo, we get its data from this resource instance
|
||||||
|
DataFactoryLinkedServiceData resourceData = result.Data;
|
||||||
|
// for demo we just print out the id
|
||||||
|
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
|
||||||
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -16,22 +16,25 @@ TokenCredential cred = new DefaultAzureCredential();
|
||||||
// authenticate your client
|
// authenticate your client
|
||||||
ArmClient client = new ArmClient(cred);
|
ArmClient client = new ArmClient(cred);
|
||||||
|
|
||||||
// this example assumes you already have this DataFactoryLinkedServiceResource created on azure
|
// this example assumes you already have this DataFactoryResource created on azure
|
||||||
// for more information of creating DataFactoryLinkedServiceResource, please refer to the document of DataFactoryLinkedServiceResource
|
// for more information of creating DataFactoryResource, please refer to the document of DataFactoryResource
|
||||||
string subscriptionId = "12345678-1234-1234-1234-12345678abc";
|
string subscriptionId = "12345678-1234-1234-1234-12345678abc";
|
||||||
string resourceGroupName = "exampleResourceGroup";
|
string resourceGroupName = "exampleResourceGroup";
|
||||||
string factoryName = "exampleFactoryName";
|
string factoryName = "exampleFactoryName";
|
||||||
string linkedServiceName = "exampleLinkedService";
|
ResourceIdentifier dataFactoryResourceId = DataFactoryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName);
|
||||||
ResourceIdentifier dataFactoryLinkedServiceResourceId = DataFactoryLinkedServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName, linkedServiceName);
|
DataFactoryResource dataFactory = client.GetDataFactoryResource(dataFactoryResourceId);
|
||||||
DataFactoryLinkedServiceResource dataFactoryLinkedService = client.GetDataFactoryLinkedServiceResource(dataFactoryLinkedServiceResourceId);
|
|
||||||
|
// get the collection of this DataFactoryLinkedServiceResource
|
||||||
|
DataFactoryLinkedServiceCollection collection = dataFactory.GetDataFactoryLinkedServices();
|
||||||
|
|
||||||
// invoke the operation
|
// invoke the operation
|
||||||
|
string linkedServiceName = "exampleLinkedService";
|
||||||
DataFactoryLinkedServiceData data = new DataFactoryLinkedServiceData(new AzureStorageLinkedService()
|
DataFactoryLinkedServiceData data = new DataFactoryLinkedServiceData(new AzureStorageLinkedService()
|
||||||
{
|
{
|
||||||
ConnectionString = DataFactoryElement<string>.FromSecretString("DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=<storage key>"),
|
ConnectionString = DataFactoryElement<string>.FromSecretString("DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=<storage key>"),
|
||||||
Description = "Example description",
|
Description = "Example description",
|
||||||
});
|
});
|
||||||
ArmOperation<DataFactoryLinkedServiceResource> lro = await dataFactoryLinkedService.UpdateAsync(WaitUntil.Completed, data);
|
ArmOperation<DataFactoryLinkedServiceResource> lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, linkedServiceName, data);
|
||||||
DataFactoryLinkedServiceResource result = lro.Value;
|
DataFactoryLinkedServiceResource result = lro.Value;
|
||||||
|
|
||||||
// the variable result is a resource, you could call other operations on this instance as well
|
// the variable result is a resource, you could call other operations on this instance as well
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -15,20 +15,17 @@ TokenCredential cred = new DefaultAzureCredential();
|
||||||
// authenticate your client
|
// authenticate your client
|
||||||
ArmClient client = new ArmClient(cred);
|
ArmClient client = new ArmClient(cred);
|
||||||
|
|
||||||
// this example assumes you already have this DataFactoryManagedVirtualNetworkResource created on azure
|
// this example assumes you already have this DataFactoryPrivateEndpointResource created on azure
|
||||||
// for more information of creating DataFactoryManagedVirtualNetworkResource, please refer to the document of DataFactoryManagedVirtualNetworkResource
|
// for more information of creating DataFactoryPrivateEndpointResource, please refer to the document of DataFactoryPrivateEndpointResource
|
||||||
string subscriptionId = "12345678-1234-1234-1234-12345678abc";
|
string subscriptionId = "12345678-1234-1234-1234-12345678abc";
|
||||||
string resourceGroupName = "exampleResourceGroup";
|
string resourceGroupName = "exampleResourceGroup";
|
||||||
string factoryName = "exampleFactoryName";
|
string factoryName = "exampleFactoryName";
|
||||||
string managedVirtualNetworkName = "exampleManagedVirtualNetworkName";
|
string managedVirtualNetworkName = "exampleManagedVirtualNetworkName";
|
||||||
ResourceIdentifier dataFactoryManagedVirtualNetworkResourceId = DataFactoryManagedVirtualNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName, managedVirtualNetworkName);
|
string managedPrivateEndpointName = "exampleManagedPrivateEndpointName";
|
||||||
DataFactoryManagedVirtualNetworkResource dataFactoryManagedVirtualNetwork = client.GetDataFactoryManagedVirtualNetworkResource(dataFactoryManagedVirtualNetworkResourceId);
|
ResourceIdentifier dataFactoryPrivateEndpointResourceId = DataFactoryPrivateEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName, managedVirtualNetworkName, managedPrivateEndpointName);
|
||||||
|
DataFactoryPrivateEndpointResource dataFactoryPrivateEndpoint = client.GetDataFactoryPrivateEndpointResource(dataFactoryPrivateEndpointResourceId);
|
||||||
// get the collection of this DataFactoryPrivateEndpointResource
|
|
||||||
DataFactoryPrivateEndpointCollection collection = dataFactoryManagedVirtualNetwork.GetDataFactoryPrivateEndpoints();
|
|
||||||
|
|
||||||
// invoke the operation
|
// invoke the operation
|
||||||
string managedPrivateEndpointName = "exampleManagedPrivateEndpointName";
|
|
||||||
DataFactoryPrivateEndpointData data = new DataFactoryPrivateEndpointData(new DataFactoryPrivateEndpointProperties()
|
DataFactoryPrivateEndpointData data = new DataFactoryPrivateEndpointData(new DataFactoryPrivateEndpointProperties()
|
||||||
{
|
{
|
||||||
Fqdns =
|
Fqdns =
|
||||||
|
@ -37,7 +34,7 @@ DataFactoryPrivateEndpointData data = new DataFactoryPrivateEndpointData(new Dat
|
||||||
GroupId = "blob",
|
GroupId = "blob",
|
||||||
PrivateLinkResourceId = new ResourceIdentifier("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Storage/storageAccounts/exampleBlobStorage"),
|
PrivateLinkResourceId = new ResourceIdentifier("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Storage/storageAccounts/exampleBlobStorage"),
|
||||||
});
|
});
|
||||||
ArmOperation<DataFactoryPrivateEndpointResource> lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, managedPrivateEndpointName, data);
|
ArmOperation<DataFactoryPrivateEndpointResource> lro = await dataFactoryPrivateEndpoint.UpdateAsync(WaitUntil.Completed, data);
|
||||||
DataFactoryPrivateEndpointResource result = lro.Value;
|
DataFactoryPrivateEndpointResource result = lro.Value;
|
||||||
|
|
||||||
// the variable result is a resource, you could call other operations on this instance as well
|
// the variable result is a resource, you could call other operations on this instance as well
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -15,32 +15,21 @@ TokenCredential cred = new DefaultAzureCredential();
|
||||||
// authenticate your client
|
// authenticate your client
|
||||||
ArmClient client = new ArmClient(cred);
|
ArmClient client = new ArmClient(cred);
|
||||||
|
|
||||||
// this example assumes you already have this DataFactoryManagedVirtualNetworkResource created on azure
|
// this example assumes you already have this DataFactoryPrivateEndpointResource created on azure
|
||||||
// for more information of creating DataFactoryManagedVirtualNetworkResource, please refer to the document of DataFactoryManagedVirtualNetworkResource
|
// for more information of creating DataFactoryPrivateEndpointResource, please refer to the document of DataFactoryPrivateEndpointResource
|
||||||
string subscriptionId = "12345678-1234-1234-1234-12345678abc";
|
string subscriptionId = "12345678-1234-1234-1234-12345678abc";
|
||||||
string resourceGroupName = "exampleResourceGroup";
|
string resourceGroupName = "exampleResourceGroup";
|
||||||
string factoryName = "exampleFactoryName";
|
string factoryName = "exampleFactoryName";
|
||||||
string managedVirtualNetworkName = "exampleManagedVirtualNetworkName";
|
string managedVirtualNetworkName = "exampleManagedVirtualNetworkName";
|
||||||
ResourceIdentifier dataFactoryManagedVirtualNetworkResourceId = DataFactoryManagedVirtualNetworkResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName, managedVirtualNetworkName);
|
string managedPrivateEndpointName = "exampleManagedPrivateEndpointName";
|
||||||
DataFactoryManagedVirtualNetworkResource dataFactoryManagedVirtualNetwork = client.GetDataFactoryManagedVirtualNetworkResource(dataFactoryManagedVirtualNetworkResourceId);
|
ResourceIdentifier dataFactoryPrivateEndpointResourceId = DataFactoryPrivateEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName, managedVirtualNetworkName, managedPrivateEndpointName);
|
||||||
|
DataFactoryPrivateEndpointResource dataFactoryPrivateEndpoint = client.GetDataFactoryPrivateEndpointResource(dataFactoryPrivateEndpointResourceId);
|
||||||
// get the collection of this DataFactoryPrivateEndpointResource
|
|
||||||
DataFactoryPrivateEndpointCollection collection = dataFactoryManagedVirtualNetwork.GetDataFactoryPrivateEndpoints();
|
|
||||||
|
|
||||||
// invoke the operation
|
// invoke the operation
|
||||||
string managedPrivateEndpointName = "exampleManagedPrivateEndpointName";
|
DataFactoryPrivateEndpointResource result = await dataFactoryPrivateEndpoint.GetAsync();
|
||||||
NullableResponse<DataFactoryPrivateEndpointResource> response = await collection.GetIfExistsAsync(managedPrivateEndpointName);
|
|
||||||
DataFactoryPrivateEndpointResource result = response.HasValue ? response.Value : null;
|
|
||||||
|
|
||||||
if (result == null)
|
// the variable result is a resource, you could call other operations on this instance as well
|
||||||
{
|
// but just for demo, we get its data from this resource instance
|
||||||
Console.WriteLine($"Succeeded with null as result");
|
DataFactoryPrivateEndpointData resourceData = result.Data;
|
||||||
}
|
// for demo we just print out the id
|
||||||
else
|
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
|
||||||
{
|
|
||||||
// the variable result is a resource, you could call other operations on this instance as well
|
|
||||||
// but just for demo, we get its data from this resource instance
|
|
||||||
DataFactoryPrivateEndpointData resourceData = result.Data;
|
|
||||||
// for demo we just print out the id
|
|
||||||
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
|
|
||||||
}
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
|
@ -1 +1 @@
|
||||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.4.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.DataFactory_1.5.0/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md"}
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче