[Automation] Collect examples from azure-sdk-for-java#azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3

This commit is contained in:
Azure SDK Bot 2024-10-18 04:04:26 -07:00 коммит произвёл GitHub
Родитель ba5fe26c52
Коммит d3308f17ec
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
72 изменённых файлов: 453 добавлений и 365 удалений

Просмотреть файл

@ -1,31 +1,27 @@
import com.azure.resourcemanager.vmwarecloudsimple.models.Sku;
import java.util.UUID;
/** Samples for DedicatedCloudNodes CreateOrUpdate. */
/**
* Samples for DedicatedCloudNodes CreateOrUpdate.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/CreateDedicatedCloudNode.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* CreateDedicatedCloudNode.json
*/
/**
* Sample code: CreateDedicatedCloudNode.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void createDedicatedCloudNode(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager
.dedicatedCloudNodes()
.define("myNode")
.withRegion("westus")
.withExistingResourceGroup("myResourceGroup")
.withSku(new Sku().withName("VMware_CloudSimple_CS28"))
.withAvailabilityZoneId("az1")
.withNodesCount(1)
.withPlacementGroupId("n1")
.withPurchaseId(UUID.fromString("56acbd46-3d36-4bbf-9b08-57c30fdf6932"))
.withIdPropertiesId("general")
.withNamePropertiesName("CS28-Node")
.withReferer("https://management.azure.com/")
.create();
public static void
createDedicatedCloudNode(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.dedicatedCloudNodes().define("myNode").withRegion("westus").withExistingResourceGroup("myResourceGroup")
.withSku(new Sku().withName("VMware_CloudSimple_CS28")).withAvailabilityZoneId("az1").withNodesCount(1)
.withPlacementGroupId("n1").withPurchaseId(UUID.fromString("56acbd46-3d36-4bbf-9b08-57c30fdf6932"))
.withIdPropertiesId("general").withNamePropertiesName("CS28-Node")
.withReferer("https://management.azure.com/").create();
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,21 +1,21 @@
/** Samples for DedicatedCloudServices CreateOrUpdate. */
/**
* Samples for DedicatedCloudServices CreateOrUpdate.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/CreateDedicatedCloudService.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* CreateDedicatedCloudService.json
*/
/**
* Sample code: CreateDedicatedCloudService.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void createDedicatedCloudService(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager
.dedicatedCloudServices()
.define("myService")
.withRegion("westus")
.withExistingResourceGroup("myResourceGroup")
.withGatewaySubnet("10.0.0.0")
.create();
public static void
createDedicatedCloudService(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.dedicatedCloudServices().define("myService").withRegion("westus")
.withExistingResourceGroup("myResourceGroup").withGatewaySubnet("10.0.0.0").create();
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,3 +1,4 @@
import com.azure.resourcemanager.vmwarecloudsimple.fluent.models.ResourcePoolInner;
import com.azure.resourcemanager.vmwarecloudsimple.fluent.models.VirtualNetworkInner;
import com.azure.resourcemanager.vmwarecloudsimple.fluent.models.VirtualNicInner;
@ -6,53 +7,37 @@ import com.azure.resourcemanager.vmwarecloudsimple.models.NicType;
import com.azure.resourcemanager.vmwarecloudsimple.models.VirtualDisk;
import java.util.Arrays;
/** Samples for VirtualMachines CreateOrUpdate. */
/**
* Samples for VirtualMachines CreateOrUpdate.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/CreateVirtualMachine.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* CreateVirtualMachine.json
*/
/**
* Sample code: CreateVirtualMachine.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void createVirtualMachine(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager
.virtualMachines()
.define("myVirtualMachine")
.withRegion("westus2")
.withExistingResourceGroup("myResourceGroup")
.withAmountOfRam(4096)
.withDisks(
Arrays
.asList(
new VirtualDisk()
.withControllerId("1000")
.withIndependenceMode(DiskIndependenceMode.PERSISTENT)
.withTotalSize(10485760)
.withVirtualDiskId("2000")))
.withNics(
Arrays
.asList(
new VirtualNicInner()
.withNetwork(
new VirtualNetworkInner()
.withId(
"/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19"))
.withNicType(NicType.E1000)
.withPowerOnBoot(true)
.withVirtualNicId("4000")))
public static void
createVirtualMachine(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.virtualMachines().define("myVirtualMachine").withRegion("westus2")
.withExistingResourceGroup("myResourceGroup").withAmountOfRam(4096)
.withDisks(Arrays
.asList(new VirtualDisk().withControllerId("1000").withIndependenceMode(DiskIndependenceMode.PERSISTENT)
.withTotalSize(10485760).withVirtualDiskId("2000")))
.withNics(Arrays.asList(new VirtualNicInner().withNetwork(new VirtualNetworkInner().withId(
"/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualNetworks/dvportgroup-19"))
.withNicType(NicType.E1000).withPowerOnBoot(true).withVirtualNicId("4000")))
.withNumberOfCores(2)
.withPrivateCloudId(
"/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud")
.withResourcePool(
new ResourcePoolInner()
.withId(
"/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/resourcePools/resgroup-26"))
.withResourcePool(new ResourcePoolInner().withId(
"/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/resourcePools/resgroup-26"))
.withTemplateId(
"/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/virtualMachineTemplates/vm-34")
.withReferer("https://management.azure.com/")
.create();
.withReferer("https://management.azure.com/").create();
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,17 +1,21 @@
/** Samples for DedicatedCloudNodes Delete. */
/**
* Samples for DedicatedCloudNodes Delete.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/DeleteDedicatedCloudNode.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* DeleteDedicatedCloudNode.json
*/
/**
* Sample code: DeleteDedicatedCloudNode.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void deleteDedicatedCloudNode(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager
.dedicatedCloudNodes()
.deleteByResourceGroupWithResponse("myResourceGroup", "myNode", com.azure.core.util.Context.NONE);
public static void
deleteDedicatedCloudNode(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.dedicatedCloudNodes().deleteByResourceGroupWithResponse("myResourceGroup", "myNode",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,15 +1,20 @@
/** Samples for DedicatedCloudServices Delete. */
/**
* Samples for DedicatedCloudServices Delete.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/DeleteDedicatedCloudService.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* DeleteDedicatedCloudService.json
*/
/**
* Sample code: DeleteDedicatedCloudService.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void deleteDedicatedCloudService(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
public static void
deleteDedicatedCloudService(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.dedicatedCloudServices().delete("myResourceGroup", "myService", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,21 +1,21 @@
/** Samples for VirtualMachines Delete. */
/**
* Samples for VirtualMachines Delete.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/DeleteVirtualMachine.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* DeleteVirtualMachine.json
*/
/**
* Sample code: DeleteVirtualMachine.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void deleteVirtualMachine(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager
.virtualMachines()
.delete(
"myResourceGroup",
"https://management.azure.com/",
"myVirtualMachine",
com.azure.core.util.Context.NONE);
public static void
deleteVirtualMachine(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.virtualMachines().delete("myResourceGroup", "https://management.azure.com/", "myVirtualMachine",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,17 +1,21 @@
/** Samples for CustomizationPolicies Get. */
/**
* Samples for CustomizationPolicies Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetCustomizationPolicy.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* GetCustomizationPolicy.json
*/
/**
* Sample code: GetCustomizationPolicy.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void getCustomizationPolicy(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager
.customizationPolicies()
.getWithResponse("myResourceGroup", "myPrivateCloud", "Linux1", com.azure.core.util.Context.NONE);
public static void
getCustomizationPolicy(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.customizationPolicies().getWithResponse("myResourceGroup", "myPrivateCloud", "Linux1",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,17 +1,21 @@
/** Samples for DedicatedCloudNodes GetByResourceGroup. */
/**
* Samples for DedicatedCloudNodes GetByResourceGroup.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetDedicatedCloudNode.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* GetDedicatedCloudNode.json
*/
/**
* Sample code: GetDedicatedCloudNode.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void getDedicatedCloudNode(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager
.dedicatedCloudNodes()
.getByResourceGroupWithResponse("myResourceGroup", "myNode", com.azure.core.util.Context.NONE);
public static void
getDedicatedCloudNode(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.dedicatedCloudNodes().getByResourceGroupWithResponse("myResourceGroup", "myNode",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,17 +1,21 @@
/** Samples for DedicatedCloudServices GetByResourceGroup. */
/**
* Samples for DedicatedCloudServices GetByResourceGroup.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetDedicatedCloudService.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* GetDedicatedCloudService.json
*/
/**
* Sample code: GetDedicatedCloudService.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void getDedicatedCloudService(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager
.dedicatedCloudServices()
.getByResourceGroupWithResponse("myResourceGroup", "myService", com.azure.core.util.Context.NONE);
public static void
getDedicatedCloudService(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.dedicatedCloudServices().getByResourceGroupWithResponse("myResourceGroup", "myService",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,21 +1,21 @@
/** Samples for Operations Get. */
/**
* Samples for Operations Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetFailedOperationResult.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* GetFailedOperationResult.json
*/
/**
* Sample code: GetFailedOperationResult.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void getFailedOperationResult(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager
.operations()
.getWithResponse(
"westus2",
"https://management.azure.com/",
"d030bb3f-7d53-11e9-8e09-9a86872085ff",
com.azure.core.util.Context.NONE);
public static void
getFailedOperationResult(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.operations().getWithResponse("westus2", "https://management.azure.com/",
"d030bb3f-7d53-11e9-8e09-9a86872085ff", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,21 +1,21 @@
/** Samples for Operations Get. */
/**
* Samples for Operations Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetOperationResult.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* GetOperationResult.json
*/
/**
* Sample code: GetOperationResult.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void getOperationResult(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager
.operations()
.getWithResponse(
"westus2",
"https://management.azure.com/",
"f8e1c8f1-7d52-11e9-8e07-9a86872085ff",
com.azure.core.util.Context.NONE);
public static void
getOperationResult(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.operations().getWithResponse("westus2", "https://management.azure.com/",
"f8e1c8f1-7d52-11e9-8e07-9a86872085ff", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,11 +1,16 @@
/** Samples for PrivateClouds Get. */
/**
* Samples for PrivateClouds Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetPrivateCloud.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* GetPrivateCloud.json
*/
/**
* Sample code: GetPrivateCloud.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void getPrivateCloud(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,16 +1,20 @@
/** Samples for ResourcePools Get. */
/**
* Samples for ResourcePools Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetResourcePool.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* GetResourcePool.json
*/
/**
* Sample code: GetResourcePool.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void getResourcePool(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager
.resourcePools()
.getWithResponse("westus2", "myPrivateCloud", "resgroup-26", com.azure.core.util.Context.NONE);
manager.resourcePools().getWithResponse("westus2", "myPrivateCloud", "resgroup-26",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,16 +1,20 @@
/** Samples for VirtualMachines GetByResourceGroup. */
/**
* Samples for VirtualMachines GetByResourceGroup.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetVirtualMachine.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* GetVirtualMachine.json
*/
/**
* Sample code: GetVirtualMachine.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void getVirtualMachine(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager
.virtualMachines()
.getByResourceGroupWithResponse("myResourceGroup", "myVirtualMachine", com.azure.core.util.Context.NONE);
manager.virtualMachines().getByResourceGroupWithResponse("myResourceGroup", "myVirtualMachine",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,17 +1,21 @@
/** Samples for VirtualMachineTemplates Get. */
/**
* Samples for VirtualMachineTemplates Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetVirtualMachineTemplate.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* GetVirtualMachineTemplate.json
*/
/**
* Sample code: GetVirtualMachineTemplate.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void getVirtualMachineTemplate(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager
.virtualMachineTemplates()
.getWithResponse("westus2", "myPrivateCloud", "vm-34", com.azure.core.util.Context.NONE);
public static void
getVirtualMachineTemplate(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.virtualMachineTemplates().getWithResponse("westus2", "myPrivateCloud", "vm-34",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,16 +1,20 @@
/** Samples for VirtualNetworks Get. */
/**
* Samples for VirtualNetworks Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetVirtualNetwork.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* GetVirtualNetwork.json
*/
/**
* Sample code: GetVirtualNetwork.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void getVirtualNetwork(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager
.virtualNetworks()
.getWithResponse("westus2", "myPrivateCloud", "dvportgroup-19", com.azure.core.util.Context.NONE);
manager.virtualNetworks().getWithResponse("westus2", "myPrivateCloud", "dvportgroup-19",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,15 +1,20 @@
/** Samples for SkusAvailability List. */
/**
* Samples for SkusAvailability List.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListAvailabilities.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* ListAvailabilities.json
*/
/**
* Sample code: ListAvailabilities.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void listAvailabilities(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
public static void
listAvailabilities(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.skusAvailabilities().list("westus2", null, com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,17 +1,21 @@
/** Samples for CustomizationPolicies List. */
/**
* Samples for CustomizationPolicies List.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListCustomizationPolicies.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* ListCustomizationPolicies.json
*/
/**
* Sample code: ListCustomizationPolicies.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void listCustomizationPolicies(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager
.customizationPolicies()
.list("myResourceGroup", "myPrivateCloud", null, com.azure.core.util.Context.NONE);
public static void
listCustomizationPolicies(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.customizationPolicies().list("myResourceGroup", "myPrivateCloud", null,
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,15 +1,20 @@
/** Samples for DedicatedCloudNodes List. */
/**
* Samples for DedicatedCloudNodes List.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListDedicatedCloudNodes.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* ListDedicatedCloudNodes.json
*/
/**
* Sample code: ListDedicatedCloudNodes.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void listDedicatedCloudNodes(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
public static void
listDedicatedCloudNodes(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.dedicatedCloudNodes().list(null, null, null, com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,15 +1,20 @@
/** Samples for DedicatedCloudServices List. */
/**
* Samples for DedicatedCloudServices List.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListDedicatedCloudServices.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* ListDedicatedCloudServices.json
*/
/**
* Sample code: ListDedicatedCloudServices.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void listDedicatedCloudServices(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
public static void
listDedicatedCloudServices(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.dedicatedCloudServices().list(null, null, null, com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,11 +1,16 @@
/** Samples for Operations List. */
/**
* Samples for Operations List.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListOperations.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* ListOperations.json
*/
/**
* Sample code: ListOperations.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void listOperations(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,15 +1,20 @@
/** Samples for PrivateClouds List. */
/**
* Samples for PrivateClouds List.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListPrivateCloudInLocation.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* ListPrivateCloudInLocation.json
*/
/**
* Sample code: ListPrivateCloudInLocation.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void listPrivateCloudInLocation(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
public static void
listPrivateCloudInLocation(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.privateClouds().list("eastus", com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,17 +1,21 @@
/** Samples for DedicatedCloudNodes ListByResourceGroup. */
/**
* Samples for DedicatedCloudNodes ListByResourceGroup.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListRGDedicatedCloudNodes.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* ListRGDedicatedCloudNodes.json
*/
/**
* Sample code: ListRGDedicatedCloudNodes.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void listRGDedicatedCloudNodes(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager
.dedicatedCloudNodes()
.listByResourceGroup("myResourceGroup", null, null, null, com.azure.core.util.Context.NONE);
public static void
listRGDedicatedCloudNodes(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.dedicatedCloudNodes().listByResourceGroup("myResourceGroup", null, null, null,
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,17 +1,21 @@
/** Samples for DedicatedCloudServices ListByResourceGroup. */
/**
* Samples for DedicatedCloudServices ListByResourceGroup.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListRGDedicatedCloudServices.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* ListRGDedicatedCloudServices.json
*/
/**
* Sample code: ListRGDedicatedCloudServices.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void listRGDedicatedCloudServices(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager
.dedicatedCloudServices()
.listByResourceGroup("myResourceGroup", null, null, null, com.azure.core.util.Context.NONE);
public static void
listRGDedicatedCloudServices(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.dedicatedCloudServices().listByResourceGroup("myResourceGroup", null, null, null,
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,17 +1,21 @@
/** Samples for VirtualMachines ListByResourceGroup. */
/**
* Samples for VirtualMachines ListByResourceGroup.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListRGVirtualMachines.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* ListRGVirtualMachines.json
*/
/**
* Sample code: ListRGVirtualMachines.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void listRGVirtualMachines(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager
.virtualMachines()
.listByResourceGroup("myResourceGroup", null, null, null, com.azure.core.util.Context.NONE);
public static void
listRGVirtualMachines(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.virtualMachines().listByResourceGroup("myResourceGroup", null, null, null,
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,11 +1,16 @@
/** Samples for ResourcePools List. */
/**
* Samples for ResourcePools List.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListResourcePools.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* ListResourcePools.json
*/
/**
* Sample code: ListResourcePools.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void listResourcePools(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,11 +1,16 @@
/** Samples for Usages List. */
/**
* Samples for Usages List.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListUsages.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* ListUsages.json
*/
/**
* Sample code: ListUsages.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void listUsages(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,21 +1,22 @@
/** Samples for VirtualMachineTemplates List. */
/**
* Samples for VirtualMachineTemplates List.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListVirtualMachineTemplates.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* ListVirtualMachineTemplates.json
*/
/**
* Sample code: ListVirtualMachineTemplates.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void listVirtualMachineTemplates(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager
.virtualMachineTemplates()
.list(
"myPrivateCloud",
"westus2",
"/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/resourcePools/resgroup-26",
com.azure.core.util.Context.NONE);
public static void
listVirtualMachineTemplates(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.virtualMachineTemplates().list("myPrivateCloud", "westus2",
"/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/resourcePools/resgroup-26",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,15 +1,20 @@
/** Samples for VirtualMachines List. */
/**
* Samples for VirtualMachines List.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListVirtualMachines.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* ListVirtualMachines.json
*/
/**
* Sample code: ListVirtualMachines.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void listVirtualMachines(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
public static void
listVirtualMachines(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.virtualMachines().list(null, null, null, com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,21 +1,22 @@
/** Samples for VirtualNetworks List. */
/**
* Samples for VirtualNetworks List.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListVirtualNetworks.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* ListVirtualNetworks.json
*/
/**
* Sample code: ListVirtualNetworks.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void listVirtualNetworks(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager
.virtualNetworks()
.list(
"westus2",
"myPrivateCloud",
"/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/resourcePools/resgroup-26",
com.azure.core.util.Context.NONE);
public static void
listVirtualNetworks(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.virtualNetworks().list("westus2", "myPrivateCloud",
"/subscriptions/{subscription-id}/providers/Microsoft.VMwareCloudSimple/locations/westus2/privateClouds/myPrivateCloud/resourcePools/resgroup-26",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,27 +1,30 @@
import com.azure.resourcemanager.vmwarecloudsimple.models.DedicatedCloudNode;
import java.util.HashMap;
import java.util.Map;
/** Samples for DedicatedCloudNodes Update. */
/**
* Samples for DedicatedCloudNodes Update.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/PatchDedicatedCloudNode.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* PatchDedicatedCloudNode.json
*/
/**
* Sample code: PatchDedicatedCloudNode.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void patchDedicatedCloudNode(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
DedicatedCloudNode resource =
manager
.dedicatedCloudNodes()
.getByResourceGroupWithResponse("myResourceGroup", "myNode", com.azure.core.util.Context.NONE)
.getValue();
public static void
patchDedicatedCloudNode(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
DedicatedCloudNode resource = manager.dedicatedCloudNodes()
.getByResourceGroupWithResponse("myResourceGroup", "myNode", com.azure.core.util.Context.NONE).getValue();
resource.update().withTags(mapOf("myTag", "tagValue")).apply();
}
// Use "Map.of" if available
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,27 +1,31 @@
import com.azure.resourcemanager.vmwarecloudsimple.models.DedicatedCloudService;
import java.util.HashMap;
import java.util.Map;
/** Samples for DedicatedCloudServices Update. */
/**
* Samples for DedicatedCloudServices Update.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/PatchDedicatedService.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* PatchDedicatedService.json
*/
/**
* Sample code: PatchDedicatedService.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void patchDedicatedService(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
DedicatedCloudService resource =
manager
.dedicatedCloudServices()
.getByResourceGroupWithResponse("myResourceGroup", "myService", com.azure.core.util.Context.NONE)
.getValue();
public static void
patchDedicatedService(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
DedicatedCloudService resource = manager.dedicatedCloudServices()
.getByResourceGroupWithResponse("myResourceGroup", "myService", com.azure.core.util.Context.NONE)
.getValue();
resource.update().withTags(mapOf("myTag", "tagValue")).apply();
}
// Use "Map.of" if available
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,27 +1,31 @@
import com.azure.resourcemanager.vmwarecloudsimple.models.VirtualMachine;
import java.util.HashMap;
import java.util.Map;
/** Samples for VirtualMachines Update. */
/**
* Samples for VirtualMachines Update.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/PatchVirtualMachine.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* PatchVirtualMachine.json
*/
/**
* Sample code: PatchVirtualMachine.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void patchVirtualMachine(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
VirtualMachine resource =
manager
.virtualMachines()
.getByResourceGroupWithResponse("myResourceGroup", "myVirtualMachine", com.azure.core.util.Context.NONE)
.getValue();
public static void
patchVirtualMachine(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
VirtualMachine resource = manager.virtualMachines()
.getByResourceGroupWithResponse("myResourceGroup", "myVirtualMachine", com.azure.core.util.Context.NONE)
.getValue();
resource.update().withTags(mapOf("myTag", "tagValue")).apply();
}
// Use "Map.of" if available
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,21 +1,21 @@
/** Samples for VirtualMachines Start. */
/**
* Samples for VirtualMachines Start.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/StartVirtualMachine.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* StartVirtualMachine.json
*/
/**
* Sample code: StartVirtualMachine.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void startVirtualMachine(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager
.virtualMachines()
.start(
"myResourceGroup",
"https://management.azure.com/",
"myVirtualMachine",
com.azure.core.util.Context.NONE);
public static void
startVirtualMachine(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.virtualMachines().start("myResourceGroup", "https://management.azure.com/", "myVirtualMachine",
com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,25 +1,23 @@
import com.azure.resourcemanager.vmwarecloudsimple.models.VirtualMachineStopMode;
/** Samples for VirtualMachines Stop. */
/**
* Samples for VirtualMachines Stop.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/StopInBodyVirtualMachine.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* StopInBodyVirtualMachine.json
*/
/**
* Sample code: StopInBodyVirtualMachine.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void stopInBodyVirtualMachine(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager
.virtualMachines()
.stop(
"myResourceGroup",
"https://management.azure.com/",
"myVirtualMachine",
null,
new VirtualMachineStopMode(),
com.azure.core.util.Context.NONE);
public static void
stopInBodyVirtualMachine(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.virtualMachines().stop("myResourceGroup", "https://management.azure.com/", "myVirtualMachine", null,
new VirtualMachineStopMode(), com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}

Просмотреть файл

@ -1,25 +1,23 @@
import com.azure.resourcemanager.vmwarecloudsimple.models.StopMode;
/** Samples for VirtualMachines Stop. */
/**
* Samples for VirtualMachines Stop.
*/
public final class Main {
/*
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/StopInQueryVirtualMachine.json
* x-ms-original-file:
* specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/
* StopInQueryVirtualMachine.json
*/
/**
* Sample code: StopInQueryVirtualMachine.
*
*
* @param manager Entry point to VMwareCloudSimpleManager.
*/
public static void stopInQueryVirtualMachine(
com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager
.virtualMachines()
.stop(
"myResourceGroup",
"https://management.azure.com/",
"myVirtualMachine",
StopMode.SUSPEND,
null,
com.azure.core.util.Context.NONE);
public static void
stopInQueryVirtualMachine(com.azure.resourcemanager.vmwarecloudsimple.VMwareCloudSimpleManager manager) {
manager.virtualMachines().stop("myResourceGroup", "https://management.azure.com/", "myVirtualMachine",
StopMode.SUSPEND, null, com.azure.core.util.Context.NONE);
}
}

Просмотреть файл

@ -1 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.2/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-vmwarecloudsimple_1.0.0-beta.3/sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/README.md"}