[Automation] Collect examples from azure-sdk-for-net#Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4
This commit is contained in:
Родитель
75312898a3
Коммит
6ae65b4146
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -33,7 +33,6 @@ CloudHsmClusterData data = new CloudHsmClusterData(new AzureLocation("eastus2"))
|
|||
{
|
||||
Properties = new CloudHsmClusterProperties()
|
||||
{
|
||||
FipsApprovedMode = false,
|
||||
PublicNetworkAccess = CloudHsmClusterPublicNetworkAccess.Disabled,
|
||||
},
|
||||
Identity = new ManagedServiceIdentity("UserAssigned")
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -17,30 +17,19 @@ TokenCredential cred = new DefaultAzureCredential();
|
|||
// authenticate your client
|
||||
ArmClient client = new ArmClient(cred);
|
||||
|
||||
// this example assumes you already have this ResourceGroupResource created on azure
|
||||
// for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
|
||||
// this example assumes you already have this CloudHsmClusterResource created on azure
|
||||
// for more information of creating CloudHsmClusterResource, please refer to the document of CloudHsmClusterResource
|
||||
string subscriptionId = "00000000-0000-0000-0000-000000000000";
|
||||
string resourceGroupName = "rgcloudhsm";
|
||||
ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
|
||||
ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
|
||||
|
||||
// get the collection of this CloudHsmClusterResource
|
||||
CloudHsmClusterCollection collection = resourceGroupResource.GetCloudHsmClusters();
|
||||
string cloudHsmClusterName = "chsm1";
|
||||
ResourceIdentifier cloudHsmClusterResourceId = CloudHsmClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, cloudHsmClusterName);
|
||||
CloudHsmClusterResource cloudHsmCluster = client.GetCloudHsmClusterResource(cloudHsmClusterResourceId);
|
||||
|
||||
// invoke the operation
|
||||
string cloudHsmClusterName = "chsm1";
|
||||
NullableResponse<CloudHsmClusterResource> response = await collection.GetIfExistsAsync(cloudHsmClusterName);
|
||||
CloudHsmClusterResource result = response.HasValue ? response.Value : null;
|
||||
CloudHsmClusterResource result = await cloudHsmCluster.GetAsync();
|
||||
|
||||
if (result == null)
|
||||
{
|
||||
Console.WriteLine($"Succeeded with null as result");
|
||||
}
|
||||
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
|
||||
CloudHsmClusterData resourceData = result.Data;
|
||||
// for demo we just print out the id
|
||||
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
|
||||
CloudHsmClusterData 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.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.3/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.HardwareSecurityModules_1.0.0-beta.4/sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/README.md"}
|
Загрузка…
Ссылка в новой задаче