From bac8825e6d2896122c02210e158e0bbf854da1f9 Mon Sep 17 00:00:00 2001
From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com>
Date: Mon, 6 Dec 2021 23:24:03 -0800
Subject: [PATCH] [Automation] Generate Fluent Lite from
imagebuilder#package-2021-10 (#25846)
---
.../CHANGELOG.md | 35 +++-
.../README.md | 2 +-
.../SAMPLE.md | 49 +++--
.../pom.xml | 2 +-
.../imagebuilder/fluent/OperationsClient.java | 6 +-
.../VirtualMachineImageTemplatesClient.java | 90 +++-----
.../fluent/models/ImageTemplateInner.java | 16 ++
.../ImageBuilderClientImpl.java | 2 +-
.../implementation/ImageTemplateImpl.java | 5 +
.../implementation/OperationsClientImpl.java | 22 +-
...irtualMachineImageTemplatesClientImpl.java | 196 +++++++++---------
.../imagebuilder/models/ApiError.java | 43 ----
.../models/ApiErrorException.java | 37 ----
.../imagebuilder/models/ImageTemplate.java | 20 +-
.../ImageTemplatePlatformImageSource.java | 30 ++-
.../models/ImageTemplateVmProfile.java | 38 +++-
.../imagebuilder/models/InnerError.java | 76 -------
.../imagebuilder/models/Operations.java | 6 +-
.../models/VirtualMachineImageTemplates.java | 60 ++----
.../models/VirtualNetworkConfig.java | 30 +++
.../generated/OperationsListSamples.java | 22 ++
...ualMachineImageTemplatesCancelSamples.java | 2 +-
...neImageTemplatesCreateOrUpdateSamples.java | 4 +-
...ualMachineImageTemplatesDeleteSamples.java | 2 +-
...ageTemplatesGetByResourceGroupSamples.java | 2 +-
...hineImageTemplatesGetRunOutputSamples.java | 2 +-
...geTemplatesListByResourceGroupSamples.java | 2 +-
...neImageTemplatesListRunOutputsSamples.java | 2 +-
...rtualMachineImageTemplatesListSamples.java | 2 +-
...irtualMachineImageTemplatesRunSamples.java | 2 +-
...ualMachineImageTemplatesUpdateSamples.java | 4 +-
31 files changed, 391 insertions(+), 420 deletions(-)
delete mode 100644 sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/ApiError.java
delete mode 100644 sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/ApiErrorException.java
delete mode 100644 sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/InnerError.java
create mode 100644 sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/OperationsListSamples.java
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/CHANGELOG.md b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/CHANGELOG.md
index 613634b02af43..f9173da73b7f2 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/CHANGELOG.md
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/CHANGELOG.md
@@ -1,15 +1,48 @@
# Release History
-## 1.0.0-beta.2 (2021-12-02)
+## 1.0.0-beta.2 (2021-12-07)
+- Azure Resource Manager ImageBuilder client library for Java. This package contains Microsoft Azure SDK for ImageBuilder Management SDK. Azure Virtual Machine Image Builder Client. Package tag package-2021-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
- Azure Resource Manager ImageBuilder client library for Java. This package contains Microsoft Azure SDK for ImageBuilder Management SDK. Azure Virtual Machine Image Builder Client. Package tag package-2020-02. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+
+
+
+
+* `withScope(java.lang.String)` was added
+
+### Breaking Changes
+
+* `models.ApiError` was removed
+
+* `models.InnerError` was removed
+
+* `models.ApiErrorException` was removed
+
### Features Added
+#### `models.VirtualNetworkConfig` was modified
+
+* `withProxyVmSize(java.lang.String)` was added
+* `proxyVmSize()` was added
+
+#### `models.ImageTemplatePlatformImageSource` was modified
+
+* `exactVersion()` was added
+
+#### `models.ImageTemplateVmProfile` was modified
+
+* `userAssignedIdentities()` was added
+* `withUserAssignedIdentities(java.util.List)` was added
+
#### `ImageBuilderManager$Configurable` was modified
* `withScope(java.lang.String)` was added
+#### `models.ImageTemplate` was modified
+
+* `systemData()` was added
+
## 1.0.0-beta.1 (2021-05-17)
- Azure Resource Manager ImageBuilder client library for Java. This package contains Microsoft Azure SDK for ImageBuilder Management SDK. Azure Virtual Machine Image Builder Client. Package tag package-2020-02. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/README.md b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/README.md
index 448f2c852a0f6..a6f6f91dee04e 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/README.md
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager ImageBuilder client library for Java.
-This package contains Microsoft Azure SDK for ImageBuilder Management SDK. Azure Virtual Machine Image Builder Client. Package tag package-2020-02. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for ImageBuilder Management SDK. Azure Virtual Machine Image Builder Client. Package tag package-2021-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/SAMPLE.md b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/SAMPLE.md
index fc32ec231d89e..42cd9ed0bdade 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/SAMPLE.md
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/SAMPLE.md
@@ -1,6 +1,10 @@
# Code snippets and samples
+## Operations
+
+- [List](#operations_list)
+
## VirtualMachineImageTemplates
- [Cancel](#virtualmachineimagetemplates_cancel)
@@ -13,6 +17,27 @@
- [ListRunOutputs](#virtualmachineimagetemplates_listrunoutputs)
- [Run](#virtualmachineimagetemplates_run)
- [Update](#virtualmachineimagetemplates_update)
+### Operations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/OperationsList.json
+ */
+ /**
+ * Sample code: Retrieve operations list.
+ *
+ * @param manager Entry point to ImageBuilderManager.
+ */
+ public static void retrieveOperationsList(com.azure.resourcemanager.imagebuilder.ImageBuilderManager manager) {
+ manager.operations().list(Context.NONE);
+ }
+}
+```
+
### VirtualMachineImageTemplates_Cancel
```java
@@ -21,7 +46,7 @@ import com.azure.core.util.Context;
/** Samples for VirtualMachineImageTemplates Cancel. */
public final class VirtualMachineImageTemplatesCancelSamples {
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/CancelImageBuild.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/CancelImageBuild.json
*/
/**
* Sample code: Cancel the image build based on the imageTemplate.
@@ -56,7 +81,7 @@ import java.util.Map;
/** Samples for VirtualMachineImageTemplates CreateOrUpdate. */
public final class VirtualMachineImageTemplatesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/CreateImageTemplateLinux.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/CreateImageTemplateLinux.json
*/
/**
* Sample code: Create an Image Template for Linux.
@@ -109,7 +134,7 @@ public final class VirtualMachineImageTemplatesCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/CreateImageTemplateWindows.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/CreateImageTemplateWindows.json
*/
/**
* Sample code: Create an Image Template for Windows.
@@ -219,7 +244,7 @@ import com.azure.core.util.Context;
/** Samples for VirtualMachineImageTemplates Delete. */
public final class VirtualMachineImageTemplatesDeleteSamples {
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/DeleteImageTemplate.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/DeleteImageTemplate.json
*/
/**
* Sample code: Delete an Image Template.
@@ -240,7 +265,7 @@ import com.azure.core.util.Context;
/** Samples for VirtualMachineImageTemplates GetByResourceGroup. */
public final class VirtualMachineImageTemplatesGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/GetImageTemplate.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/GetImageTemplate.json
*/
/**
* Sample code: Retrieve an Image Template.
@@ -263,7 +288,7 @@ import com.azure.core.util.Context;
/** Samples for VirtualMachineImageTemplates GetRunOutput. */
public final class VirtualMachineImageTemplatesGetRunOutputSamples {
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/GetRunOutput.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/GetRunOutput.json
*/
/**
* Sample code: Retrieve single runOutput.
@@ -286,7 +311,7 @@ import com.azure.core.util.Context;
/** Samples for VirtualMachineImageTemplates List. */
public final class VirtualMachineImageTemplatesListSamples {
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/ListImageTemplates.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/ListImageTemplates.json
*/
/**
* Sample code: List images by subscription.
@@ -307,7 +332,7 @@ import com.azure.core.util.Context;
/** Samples for VirtualMachineImageTemplates ListByResourceGroup. */
public final class VirtualMachineImageTemplatesListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/ListImageTemplatesByRg.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/ListImageTemplatesByRg.json
*/
/**
* Sample code: List images by resource group.
@@ -328,7 +353,7 @@ import com.azure.core.util.Context;
/** Samples for VirtualMachineImageTemplates ListRunOutputs. */
public final class VirtualMachineImageTemplatesListRunOutputsSamples {
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/ListRunOutputs.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/ListRunOutputs.json
*/
/**
* Sample code: Retrieve a list of all outputs created by the last run of an Image Template.
@@ -350,7 +375,7 @@ import com.azure.core.util.Context;
/** Samples for VirtualMachineImageTemplates Run. */
public final class VirtualMachineImageTemplatesRunSamples {
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/RunImageTemplate.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/RunImageTemplate.json
*/
/**
* Sample code: Create image(s) from existing imageTemplate.
@@ -377,7 +402,7 @@ import java.util.Map;
/** Samples for VirtualMachineImageTemplates Update. */
public final class VirtualMachineImageTemplatesUpdateSamples {
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/UpdateImageTemplateToRemoveIdentities.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/UpdateImageTemplateToRemoveIdentities.json
*/
/**
* Sample code: Remove identities for an Image Template.
@@ -395,7 +420,7 @@ public final class VirtualMachineImageTemplatesUpdateSamples {
}
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/UpdateImageTemplateTags.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/UpdateImageTemplateTags.json
*/
/**
* Sample code: Update the tags for an Image Template.
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/pom.xml b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/pom.xml
index 34960f5c3202f..40e9b5eb325ae 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/pom.xml
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/pom.xml
@@ -13,7 +13,7 @@
jar
Microsoft Azure SDK for ImageBuilder Management
- This package contains Microsoft Azure SDK for ImageBuilder Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Virtual Machine Image Builder Client. Package tag package-2020-02.
+ This package contains Microsoft Azure SDK for ImageBuilder Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Virtual Machine Image Builder Client. Package tag package-2021-10.
https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/OperationsClient.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/OperationsClient.java
index afdf865a3b8c3..3d3f28dc0f869 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/OperationsClient.java
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/OperationsClient.java
@@ -15,8 +15,7 @@ public interface OperationsClient {
/**
* Lists available operations for the Microsoft.VirtualMachineImages provider.
*
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the request to list REST API operations.
*/
@@ -28,8 +27,7 @@ public interface OperationsClient {
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the request to list REST API operations.
*/
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/VirtualMachineImageTemplatesClient.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/VirtualMachineImageTemplatesClient.java
index 10c36a8d5bfbb..ace1175b055f4 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/VirtualMachineImageTemplatesClient.java
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/VirtualMachineImageTemplatesClient.java
@@ -20,8 +20,7 @@ public interface VirtualMachineImageTemplatesClient {
/**
* Gets information about the VM image templates associated with the subscription.
*
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about the VM image templates associated with the subscription.
*/
@@ -33,8 +32,7 @@ public interface VirtualMachineImageTemplatesClient {
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about the VM image templates associated with the subscription.
*/
@@ -46,8 +44,7 @@ public interface VirtualMachineImageTemplatesClient {
*
* @param resourceGroupName The name of the resource group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about the VM image templates associated with the specified resource group.
*/
@@ -60,8 +57,7 @@ public interface VirtualMachineImageTemplatesClient {
* @param resourceGroupName The name of the resource group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about the VM image templates associated with the specified resource group.
*/
@@ -75,8 +71,7 @@ public interface VirtualMachineImageTemplatesClient {
* @param imageTemplateName The name of the image Template.
* @param parameters Parameters supplied to the CreateImageTemplate operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -92,8 +87,7 @@ SyncPoller, ImageTemplateInner> beginCreateOrUpda
* @param parameters Parameters supplied to the CreateImageTemplate operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -108,8 +102,7 @@ SyncPoller, ImageTemplateInner> beginCreateOrUpda
* @param imageTemplateName The name of the image Template.
* @param parameters Parameters supplied to the CreateImageTemplate operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -125,8 +118,7 @@ ImageTemplateInner createOrUpdate(
* @param parameters Parameters supplied to the CreateImageTemplate operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -141,8 +133,7 @@ ImageTemplateInner createOrUpdate(
* @param imageTemplateName The name of the image Template.
* @param parameters Additional parameters for Image Template update.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -158,8 +149,7 @@ SyncPoller, ImageTemplateInner> beginUpdate(
* @param parameters Additional parameters for Image Template update.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -174,8 +164,7 @@ SyncPoller, ImageTemplateInner> beginUpdate(
* @param imageTemplateName The name of the image Template.
* @param parameters Additional parameters for Image Template update.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -191,8 +180,7 @@ ImageTemplateInner update(
* @param parameters Additional parameters for Image Template update.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -206,8 +194,7 @@ ImageTemplateInner update(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about a virtual machine image template.
*/
@@ -221,8 +208,7 @@ ImageTemplateInner update(
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about a virtual machine image template.
*/
@@ -236,8 +222,7 @@ Response getByResourceGroupWithResponse(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -251,8 +236,7 @@ Response getByResourceGroupWithResponse(
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -265,8 +249,7 @@ Response getByResourceGroupWithResponse(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -279,8 +262,7 @@ Response getByResourceGroupWithResponse(
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -292,8 +274,7 @@ Response getByResourceGroupWithResponse(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -307,8 +288,7 @@ Response getByResourceGroupWithResponse(
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -321,8 +301,7 @@ Response getByResourceGroupWithResponse(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -335,8 +314,7 @@ Response getByResourceGroupWithResponse(
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -348,8 +326,7 @@ Response getByResourceGroupWithResponse(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -363,8 +340,7 @@ Response getByResourceGroupWithResponse(
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -377,8 +353,7 @@ Response getByResourceGroupWithResponse(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -391,8 +366,7 @@ Response getByResourceGroupWithResponse(
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -404,8 +378,7 @@ Response getByResourceGroupWithResponse(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the result of List run outputs operation.
*/
@@ -419,8 +392,7 @@ Response getByResourceGroupWithResponse(
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the result of List run outputs operation.
*/
@@ -434,8 +406,7 @@ Response getByResourceGroupWithResponse(
* @param imageTemplateName The name of the image Template.
* @param runOutputName The name of the run output.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the specified run output for the specified image template resource.
*/
@@ -450,8 +421,7 @@ Response getByResourceGroupWithResponse(
* @param runOutputName The name of the run output.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the specified run output for the specified image template resource.
*/
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/models/ImageTemplateInner.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/models/ImageTemplateInner.java
index 1adbfdb6848c6..6ae25b95a993d 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/models/ImageTemplateInner.java
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/fluent/models/ImageTemplateInner.java
@@ -6,6 +6,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.imagebuilder.models.ImageTemplateCustomizer;
import com.azure.resourcemanager.imagebuilder.models.ImageTemplateDistributor;
@@ -37,6 +38,12 @@ public final class ImageTemplateInner extends Resource {
@JsonProperty(value = "identity", required = true)
private ImageTemplateIdentity identity;
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
/**
* Get the innerProperties property: The properties of the image template.
*
@@ -66,6 +73,15 @@ public ImageTemplateInner withIdentity(ImageTemplateIdentity identity) {
return this;
}
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/** {@inheritDoc} */
@Override
public ImageTemplateInner withLocation(String location) {
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/implementation/ImageBuilderClientImpl.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/implementation/ImageBuilderClientImpl.java
index 78a3c1a682a53..5a225b0b20a95 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/implementation/ImageBuilderClientImpl.java
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/implementation/ImageBuilderClientImpl.java
@@ -162,7 +162,7 @@ public OperationsClient getOperations() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2020-02-14";
+ this.apiVersion = "2021-10-01";
this.virtualMachineImageTemplates = new VirtualMachineImageTemplatesClientImpl(this);
this.operations = new OperationsClientImpl(this);
}
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/implementation/ImageTemplateImpl.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/implementation/ImageTemplateImpl.java
index b3e30ae95037f..0391bc037b1b6 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/implementation/ImageTemplateImpl.java
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/implementation/ImageTemplateImpl.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.imagebuilder.implementation;
import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.imagebuilder.fluent.models.ImageTemplateInner;
import com.azure.resourcemanager.imagebuilder.models.ImageTemplate;
@@ -55,6 +56,10 @@ public ImageTemplateIdentity identity() {
return this.innerModel().identity();
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public ImageTemplateSource source() {
return this.innerModel().source();
}
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/implementation/OperationsClientImpl.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/implementation/OperationsClientImpl.java
index 0325a7ce54841..aa2162684c3d0 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/implementation/OperationsClientImpl.java
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/implementation/OperationsClientImpl.java
@@ -22,12 +22,12 @@
import com.azure.core.http.rest.PagedResponseBase;
import com.azure.core.http.rest.Response;
import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.imagebuilder.fluent.OperationsClient;
import com.azure.resourcemanager.imagebuilder.fluent.models.OperationInner;
-import com.azure.resourcemanager.imagebuilder.models.ApiErrorException;
import com.azure.resourcemanager.imagebuilder.models.OperationListResult;
import reactor.core.publisher.Mono;
@@ -62,7 +62,7 @@ private interface OperationsService {
@Headers({"Content-Type: application/json"})
@Get("/providers/Microsoft.VirtualMachineImages/operations")
@ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ApiErrorException.class)
+ @UnexpectedResponseExceptionType(ManagementException.class)
Mono> list(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
@@ -72,7 +72,7 @@ Mono> list(
@Headers({"Content-Type: application/json"})
@Get("{nextLink}")
@ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ApiErrorException.class)
+ @UnexpectedResponseExceptionType(ManagementException.class)
Mono> listNext(
@PathParam(value = "nextLink", encoded = true) String nextLink,
@HostParam("$host") String endpoint,
@@ -83,7 +83,7 @@ Mono> listNext(
/**
* Lists available operations for the Microsoft.VirtualMachineImages provider.
*
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the request to list REST API operations.
*/
@@ -116,7 +116,7 @@ private Mono> listSinglePageAsync() {
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the request to list REST API operations.
*/
@@ -146,7 +146,7 @@ private Mono> listSinglePageAsync(Context context)
/**
* Lists available operations for the Microsoft.VirtualMachineImages provider.
*
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the request to list REST API operations.
*/
@@ -160,7 +160,7 @@ private PagedFlux listAsync() {
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the request to list REST API operations.
*/
@@ -173,7 +173,7 @@ private PagedFlux listAsync(Context context) {
/**
* Lists available operations for the Microsoft.VirtualMachineImages provider.
*
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the request to list REST API operations.
*/
@@ -187,7 +187,7 @@ public PagedIterable list() {
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the request to list REST API operations.
*/
@@ -201,7 +201,7 @@ public PagedIterable list(Context context) {
*
* @param nextLink The nextLink parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the request to list REST API operations.
*/
@@ -237,7 +237,7 @@ private Mono> listNextSinglePageAsync(String nextL
* @param nextLink The nextLink parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the request to list REST API operations.
*/
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/implementation/VirtualMachineImageTemplatesClientImpl.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/implementation/VirtualMachineImageTemplatesClientImpl.java
index 8e3645d4c83ea..cf8fe15005694 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/implementation/VirtualMachineImageTemplatesClientImpl.java
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/implementation/VirtualMachineImageTemplatesClientImpl.java
@@ -27,6 +27,7 @@
import com.azure.core.http.rest.PagedResponseBase;
import com.azure.core.http.rest.Response;
import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
@@ -36,7 +37,6 @@
import com.azure.resourcemanager.imagebuilder.fluent.VirtualMachineImageTemplatesClient;
import com.azure.resourcemanager.imagebuilder.fluent.models.ImageTemplateInner;
import com.azure.resourcemanager.imagebuilder.fluent.models.RunOutputInner;
-import com.azure.resourcemanager.imagebuilder.models.ApiErrorException;
import com.azure.resourcemanager.imagebuilder.models.ImageTemplateListResult;
import com.azure.resourcemanager.imagebuilder.models.ImageTemplateUpdateParameters;
import com.azure.resourcemanager.imagebuilder.models.RunOutputCollection;
@@ -77,7 +77,7 @@ private interface VirtualMachineImageTemplatesService {
@Headers({"Content-Type: application/json"})
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.VirtualMachineImages/imageTemplates")
@ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ApiErrorException.class)
+ @UnexpectedResponseExceptionType(ManagementException.class)
Mono> list(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@@ -90,7 +90,7 @@ Mono> list(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ "/Microsoft.VirtualMachineImages/imageTemplates")
@ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ApiErrorException.class)
+ @UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByResourceGroup(
@HostParam("$host") String endpoint,
@PathParam("resourceGroupName") String resourceGroupName,
@@ -104,7 +104,7 @@ Mono> listByResourceGroup(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ "/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}")
@ExpectedResponses({200, 201})
- @UnexpectedResponseExceptionType(ApiErrorException.class)
+ @UnexpectedResponseExceptionType(ManagementException.class)
Mono>> createOrUpdate(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
@@ -120,7 +120,7 @@ Mono>> createOrUpdate(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ "/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}")
@ExpectedResponses({200, 202})
- @UnexpectedResponseExceptionType(ApiErrorException.class)
+ @UnexpectedResponseExceptionType(ManagementException.class)
Mono>> update(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@@ -136,7 +136,7 @@ Mono>> update(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ "/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}")
@ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ApiErrorException.class)
+ @UnexpectedResponseExceptionType(ManagementException.class)
Mono> getByResourceGroup(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
@@ -151,7 +151,7 @@ Mono> getByResourceGroup(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ "/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}")
@ExpectedResponses({200, 202, 204})
- @UnexpectedResponseExceptionType(ApiErrorException.class)
+ @UnexpectedResponseExceptionType(ManagementException.class)
Mono>> delete(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
@@ -166,7 +166,7 @@ Mono>> delete(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ "/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/run")
@ExpectedResponses({200, 202, 204})
- @UnexpectedResponseExceptionType(ApiErrorException.class)
+ @UnexpectedResponseExceptionType(ManagementException.class)
Mono>> run(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
@@ -181,7 +181,7 @@ Mono>> run(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ "/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/cancel")
@ExpectedResponses({200, 202, 204})
- @UnexpectedResponseExceptionType(ApiErrorException.class)
+ @UnexpectedResponseExceptionType(ManagementException.class)
Mono>> cancel(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
@@ -196,7 +196,7 @@ Mono>> cancel(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ "/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/runOutputs")
@ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ApiErrorException.class)
+ @UnexpectedResponseExceptionType(ManagementException.class)
Mono> listRunOutputs(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
@@ -211,7 +211,7 @@ Mono> listRunOutputs(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers"
+ "/Microsoft.VirtualMachineImages/imageTemplates/{imageTemplateName}/runOutputs/{runOutputName}")
@ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ApiErrorException.class)
+ @UnexpectedResponseExceptionType(ManagementException.class)
Mono> getRunOutput(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
@@ -225,7 +225,7 @@ Mono> getRunOutput(
@Headers({"Content-Type: application/json"})
@Get("{nextLink}")
@ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ApiErrorException.class)
+ @UnexpectedResponseExceptionType(ManagementException.class)
Mono> listNext(
@PathParam(value = "nextLink", encoded = true) String nextLink,
@HostParam("$host") String endpoint,
@@ -235,7 +235,7 @@ Mono> listNext(
@Headers({"Content-Type: application/json"})
@Get("{nextLink}")
@ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ApiErrorException.class)
+ @UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByResourceGroupNext(
@PathParam(value = "nextLink", encoded = true) String nextLink,
@HostParam("$host") String endpoint,
@@ -245,7 +245,7 @@ Mono> listByResourceGroupNext(
@Headers({"Content-Type: application/json"})
@Get("{nextLink}")
@ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ApiErrorException.class)
+ @UnexpectedResponseExceptionType(ManagementException.class)
Mono> listRunOutputsNext(
@PathParam(value = "nextLink", encoded = true) String nextLink,
@HostParam("$host") String endpoint,
@@ -256,7 +256,7 @@ Mono> listRunOutputsNext(
/**
* Gets information about the VM image templates associated with the subscription.
*
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about the VM image templates associated with the subscription.
*/
@@ -302,7 +302,7 @@ private Mono> listSinglePageAsync() {
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about the VM image templates associated with the subscription.
*/
@@ -343,7 +343,7 @@ private Mono> listSinglePageAsync(Context cont
/**
* Gets information about the VM image templates associated with the subscription.
*
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about the VM image templates associated with the subscription.
*/
@@ -357,7 +357,7 @@ private PagedFlux listAsync() {
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about the VM image templates associated with the subscription.
*/
@@ -370,7 +370,7 @@ private PagedFlux listAsync(Context context) {
/**
* Gets information about the VM image templates associated with the subscription.
*
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about the VM image templates associated with the subscription.
*/
@@ -384,7 +384,7 @@ public PagedIterable list() {
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about the VM image templates associated with the subscription.
*/
@@ -398,7 +398,7 @@ public PagedIterable list(Context context) {
*
* @param resourceGroupName The name of the resource group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about the VM image templates associated with the specified resource group.
*/
@@ -450,7 +450,7 @@ private Mono> listByResourceGroupSinglePageAsy
* @param resourceGroupName The name of the resource group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about the VM image templates associated with the specified resource group.
*/
@@ -499,7 +499,7 @@ private Mono> listByResourceGroupSinglePageAsy
*
* @param resourceGroupName The name of the resource group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about the VM image templates associated with the specified resource group.
*/
@@ -516,7 +516,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGr
* @param resourceGroupName The name of the resource group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about the VM image templates associated with the specified resource group.
*/
@@ -532,7 +532,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGr
*
* @param resourceGroupName The name of the resource group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about the VM image templates associated with the specified resource group.
*/
@@ -547,7 +547,7 @@ public PagedIterable listByResourceGroup(String resourceGrou
* @param resourceGroupName The name of the resource group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about the VM image templates associated with the specified resource group.
*/
@@ -563,7 +563,7 @@ public PagedIterable listByResourceGroup(String resourceGrou
* @param imageTemplateName The name of the image Template.
* @param parameters Parameters supplied to the CreateImageTemplate operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -620,7 +620,7 @@ private Mono>> createOrUpdateWithResponseAsync(
* @param parameters Parameters supplied to the CreateImageTemplate operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -673,7 +673,7 @@ private Mono>> createOrUpdateWithResponseAsync(
* @param imageTemplateName The name of the image Template.
* @param parameters Parameters supplied to the CreateImageTemplate operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -700,7 +700,7 @@ private PollerFlux, ImageTemplateInner> beginCrea
* @param parameters Parameters supplied to the CreateImageTemplate operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -723,7 +723,7 @@ private PollerFlux, ImageTemplateInner> beginCrea
* @param imageTemplateName The name of the image Template.
* @param parameters Parameters supplied to the CreateImageTemplate operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -741,7 +741,7 @@ public SyncPoller, ImageTemplateInner> beginCreat
* @param parameters Parameters supplied to the CreateImageTemplate operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -758,7 +758,7 @@ public SyncPoller, ImageTemplateInner> beginCreat
* @param imageTemplateName The name of the image Template.
* @param parameters Parameters supplied to the CreateImageTemplate operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -778,7 +778,7 @@ private Mono createOrUpdateAsync(
* @param parameters Parameters supplied to the CreateImageTemplate operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -797,7 +797,7 @@ private Mono createOrUpdateAsync(
* @param imageTemplateName The name of the image Template.
* @param parameters Parameters supplied to the CreateImageTemplate operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -815,7 +815,7 @@ public ImageTemplateInner createOrUpdate(
* @param parameters Parameters supplied to the CreateImageTemplate operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -832,7 +832,7 @@ public ImageTemplateInner createOrUpdate(
* @param imageTemplateName The name of the image Template.
* @param parameters Additional parameters for Image Template update.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -889,7 +889,7 @@ private Mono>> updateWithResponseAsync(
* @param parameters Additional parameters for Image Template update.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -942,7 +942,7 @@ private Mono>> updateWithResponseAsync(
* @param imageTemplateName The name of the image Template.
* @param parameters Additional parameters for Image Template update.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -969,7 +969,7 @@ private PollerFlux, ImageTemplateInner> beginUpda
* @param parameters Additional parameters for Image Template update.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -992,7 +992,7 @@ private PollerFlux, ImageTemplateInner> beginUpda
* @param imageTemplateName The name of the image Template.
* @param parameters Additional parameters for Image Template update.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -1010,7 +1010,7 @@ public SyncPoller, ImageTemplateInner> beginUpdat
* @param parameters Additional parameters for Image Template update.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -1027,7 +1027,7 @@ public SyncPoller, ImageTemplateInner> beginUpdat
* @param imageTemplateName The name of the image Template.
* @param parameters Additional parameters for Image Template update.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -1047,7 +1047,7 @@ private Mono updateAsync(
* @param parameters Additional parameters for Image Template update.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -1066,7 +1066,7 @@ private Mono updateAsync(
* @param imageTemplateName The name of the image Template.
* @param parameters Additional parameters for Image Template update.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -1084,7 +1084,7 @@ public ImageTemplateInner update(
* @param parameters Additional parameters for Image Template update.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
*/
@@ -1100,7 +1100,7 @@ public ImageTemplateInner update(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about a virtual machine image template.
*/
@@ -1150,7 +1150,7 @@ private Mono> getByResourceGroupWithResponseAsync(
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about a virtual machine image template.
*/
@@ -1196,7 +1196,7 @@ private Mono> getByResourceGroupWithResponseAsync(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about a virtual machine image template.
*/
@@ -1219,7 +1219,7 @@ private Mono getByResourceGroupAsync(String resourceGroupNam
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about a virtual machine image template.
*/
@@ -1235,7 +1235,7 @@ public ImageTemplateInner getByResourceGroup(String resourceGroupName, String im
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about a virtual machine image template.
*/
@@ -1251,7 +1251,7 @@ public Response getByResourceGroupWithResponse(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1301,7 +1301,7 @@ private Mono>> deleteWithResponseAsync(
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1347,7 +1347,7 @@ private Mono>> deleteWithResponseAsync(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1367,7 +1367,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1387,7 +1387,7 @@ private PollerFlux, Void> beginDeleteAsync(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1403,7 +1403,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1419,7 +1419,7 @@ public SyncPoller, Void> beginDelete(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1437,7 +1437,7 @@ private Mono deleteAsync(String resourceGroupName, String imageTemplateNam
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1454,7 +1454,7 @@ private Mono deleteAsync(String resourceGroupName, String imageTemplateNam
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1469,7 +1469,7 @@ public void delete(String resourceGroupName, String imageTemplateName) {
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1483,7 +1483,7 @@ public void delete(String resourceGroupName, String imageTemplateName, Context c
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1532,7 +1532,7 @@ private Mono>> runWithResponseAsync(String resourceGro
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1578,7 +1578,7 @@ private Mono>> runWithResponseAsync(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1598,7 +1598,7 @@ private PollerFlux, Void> beginRunAsync(String resourceGroupNam
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1618,7 +1618,7 @@ private PollerFlux, Void> beginRunAsync(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1634,7 +1634,7 @@ public SyncPoller, Void> beginRun(String resourceGroupName, Str
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1650,7 +1650,7 @@ public SyncPoller, Void> beginRun(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1668,7 +1668,7 @@ private Mono runAsync(String resourceGroupName, String imageTemplateName)
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1685,7 +1685,7 @@ private Mono runAsync(String resourceGroupName, String imageTemplateName,
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1700,7 +1700,7 @@ public void run(String resourceGroupName, String imageTemplateName) {
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1714,7 +1714,7 @@ public void run(String resourceGroupName, String imageTemplateName, Context cont
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1764,7 +1764,7 @@ private Mono>> cancelWithResponseAsync(
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1810,7 +1810,7 @@ private Mono>> cancelWithResponseAsync(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1830,7 +1830,7 @@ private PollerFlux, Void> beginCancelAsync(String resourceGroup
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1850,7 +1850,7 @@ private PollerFlux, Void> beginCancelAsync(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1866,7 +1866,7 @@ public SyncPoller, Void> beginCancel(String resourceGroupName,
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1882,7 +1882,7 @@ public SyncPoller, Void> beginCancel(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1900,7 +1900,7 @@ private Mono cancelAsync(String resourceGroupName, String imageTemplateNam
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@@ -1917,7 +1917,7 @@ private Mono cancelAsync(String resourceGroupName, String imageTemplateNam
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1932,7 +1932,7 @@ public void cancel(String resourceGroupName, String imageTemplateName) {
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -1946,7 +1946,7 @@ public void cancel(String resourceGroupName, String imageTemplateName, Context c
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the result of List run outputs operation.
*/
@@ -2005,7 +2005,7 @@ private Mono> listRunOutputsSinglePageAsync(
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the result of List run outputs operation.
*/
@@ -2060,7 +2060,7 @@ private Mono> listRunOutputsSinglePageAsync(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the result of List run outputs operation.
*/
@@ -2078,7 +2078,7 @@ private PagedFlux listRunOutputsAsync(String resourceGroupName,
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the result of List run outputs operation.
*/
@@ -2096,7 +2096,7 @@ private PagedFlux listRunOutputsAsync(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the result of List run outputs operation.
*/
@@ -2112,7 +2112,7 @@ public PagedIterable listRunOutputs(String resourceGroupName, St
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the result of List run outputs operation.
*/
@@ -2129,7 +2129,7 @@ public PagedIterable listRunOutputs(
* @param imageTemplateName The name of the image Template.
* @param runOutputName The name of the run output.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the specified run output for the specified image template resource.
*/
@@ -2184,7 +2184,7 @@ private Mono> getRunOutputWithResponseAsync(
* @param runOutputName The name of the run output.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the specified run output for the specified image template resource.
*/
@@ -2235,7 +2235,7 @@ private Mono> getRunOutputWithResponseAsync(
* @param imageTemplateName The name of the image Template.
* @param runOutputName The name of the run output.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the specified run output for the specified image template resource.
*/
@@ -2260,7 +2260,7 @@ private Mono getRunOutputAsync(
* @param imageTemplateName The name of the image Template.
* @param runOutputName The name of the run output.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the specified run output for the specified image template resource.
*/
@@ -2277,7 +2277,7 @@ public RunOutputInner getRunOutput(String resourceGroupName, String imageTemplat
* @param runOutputName The name of the run output.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the specified run output for the specified image template resource.
*/
@@ -2292,7 +2292,7 @@ public Response getRunOutputWithResponse(
*
* @param nextLink The nextLink parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the result of List image templates operation.
*/
@@ -2328,7 +2328,7 @@ private Mono> listNextSinglePageAsync(String n
* @param nextLink The nextLink parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the result of List image templates operation.
*/
@@ -2363,7 +2363,7 @@ private Mono> listNextSinglePageAsync(String n
*
* @param nextLink The nextLink parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the result of List image templates operation.
*/
@@ -2400,7 +2400,7 @@ private Mono> listByResourceGroupNextSinglePag
* @param nextLink The nextLink parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the result of List image templates operation.
*/
@@ -2436,7 +2436,7 @@ private Mono> listByResourceGroupNextSinglePag
*
* @param nextLink The nextLink parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the result of List run outputs operation.
*/
@@ -2472,7 +2472,7 @@ private Mono> listRunOutputsNextSinglePageAsync(St
* @param nextLink The nextLink parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the result of List run outputs operation.
*/
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/ApiError.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/ApiError.java
deleted file mode 100644
index add85b5abe943..0000000000000
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/ApiError.java
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.imagebuilder.models;
-
-import com.azure.core.annotation.Immutable;
-import com.azure.core.management.exception.ManagementError;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Api error. */
-@Immutable
-public final class ApiError extends ManagementError {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApiError.class);
-
- /*
- * The Api inner error
- */
- @JsonProperty(value = "innerError", access = JsonProperty.Access.WRITE_ONLY)
- private InnerError innerError;
-
- /**
- * Get the innerError property: The Api inner error.
- *
- * @return the innerError value.
- */
- public InnerError getInnerError() {
- return this.innerError;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (getInnerError() != null) {
- getInnerError().validate();
- }
- }
-}
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/ApiErrorException.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/ApiErrorException.java
deleted file mode 100644
index 658fee5925631..0000000000000
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/ApiErrorException.java
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.imagebuilder.models;
-
-import com.azure.core.http.HttpResponse;
-import com.azure.core.management.exception.ManagementException;
-
-/** Exception thrown for an invalid response with ApiError information. */
-public final class ApiErrorException extends ManagementException {
- /**
- * Initializes a new instance of the ApiErrorException class.
- *
- * @param message the exception message or the response content if a message is not available.
- * @param response the HTTP response.
- */
- public ApiErrorException(String message, HttpResponse response) {
- super(message, response);
- }
-
- /**
- * Initializes a new instance of the ApiErrorException class.
- *
- * @param message the exception message or the response content if a message is not available.
- * @param response the HTTP response.
- * @param value the deserialized response value.
- */
- public ApiErrorException(String message, HttpResponse response, ApiError value) {
- super(message, response, value);
- }
-
- @Override
- public ApiError getValue() {
- return (ApiError) super.getValue();
- }
-}
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/ImageTemplate.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/ImageTemplate.java
index 71e6a3ce4f107..291089ba4d002 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/ImageTemplate.java
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/ImageTemplate.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.imagebuilder.models;
import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.imagebuilder.fluent.models.ImageTemplateInner;
import java.util.List;
@@ -54,6 +55,13 @@ public interface ImageTemplate {
*/
ImageTemplateIdentity identity();
+ /**
+ * Gets the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
/**
* Gets the source property: Specifies the properties used to describe the source image.
*
@@ -340,8 +348,7 @@ interface WithIdentity {
/**
* Create artifacts from a existing image template.
*
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void run();
@@ -351,8 +358,7 @@ interface WithIdentity {
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void run(Context context);
@@ -360,8 +366,7 @@ interface WithIdentity {
/**
* Cancel the long running image build based on the image template.
*
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void cancel();
@@ -371,8 +376,7 @@ interface WithIdentity {
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void cancel(Context context);
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/ImageTemplatePlatformImageSource.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/ImageTemplatePlatformImageSource.java
index 7ec17b1f709c8..dd55f652f0f31 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/ImageTemplatePlatformImageSource.java
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/ImageTemplatePlatformImageSource.java
@@ -46,13 +46,20 @@ public final class ImageTemplatePlatformImageSource extends ImageTemplateSource
* Image version from the [Azure Gallery
* Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
* If 'latest' is specified here, the version is evaluated when the image
- * build takes place, not when the template is submitted. Specifying
- * 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be
- * fixed.
+ * build takes place, not when the template is submitted.
*/
@JsonProperty(value = "version")
private String version;
+ /*
+ * Image version from the [Azure Gallery
+ * Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
+ * This readonly field differs from 'version', only if the value specified
+ * in 'version' field is 'latest'.
+ */
+ @JsonProperty(value = "exactVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String exactVersion;
+
/*
* Optional configuration of purchase plan for platform image.
*/
@@ -128,8 +135,7 @@ public ImageTemplatePlatformImageSource withSku(String sku) {
/**
* Get the version property: Image version from the [Azure Gallery
* Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). If 'latest' is specified here,
- * the version is evaluated when the image build takes place, not when the template is submitted. Specifying
- * 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
+ * the version is evaluated when the image build takes place, not when the template is submitted.
*
* @return the version value.
*/
@@ -140,8 +146,7 @@ public String version() {
/**
* Set the version property: Image version from the [Azure Gallery
* Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). If 'latest' is specified here,
- * the version is evaluated when the image build takes place, not when the template is submitted. Specifying
- * 'latest' could cause ROUNDTRIP_INCONSISTENT_PROPERTY issue which will be fixed.
+ * the version is evaluated when the image build takes place, not when the template is submitted.
*
* @param version the version value to set.
* @return the ImageTemplatePlatformImageSource object itself.
@@ -151,6 +156,17 @@ public ImageTemplatePlatformImageSource withVersion(String version) {
return this;
}
+ /**
+ * Get the exactVersion property: Image version from the [Azure Gallery
+ * Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). This readonly field differs from
+ * 'version', only if the value specified in 'version' field is 'latest'.
+ *
+ * @return the exactVersion value.
+ */
+ public String exactVersion() {
+ return this.exactVersion;
+ }
+
/**
* Get the planInfo property: Optional configuration of purchase plan for platform image.
*
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/ImageTemplateVmProfile.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/ImageTemplateVmProfile.java
index 1bf0f256abf2a..a62bd5dc9db36 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/ImageTemplateVmProfile.java
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/ImageTemplateVmProfile.java
@@ -8,6 +8,7 @@
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
/** Describes the virtual machine used to build, customize and capture images. */
@Fluent
@@ -16,8 +17,7 @@ public final class ImageTemplateVmProfile {
/*
* Size of the virtual machine used to build, customize and capture images.
- * Omit or specify empty string to use the default (Standard_D1_v2 for Gen1
- * images and Standard_D2ds_v4 for Gen2 images).
+ * Omit or specify empty string to use the default (Standard_D2ds_v4).
*/
@JsonProperty(value = "vmSize")
private String vmSize;
@@ -29,6 +29,14 @@ public final class ImageTemplateVmProfile {
@JsonProperty(value = "osDiskSizeGB")
private Integer osDiskSizeGB;
+ /*
+ * Optional array of resource IDs of user assigned managed identities to be
+ * configured on the build VM. This may include the identity of the image
+ * template.
+ */
+ @JsonProperty(value = "userAssignedIdentities")
+ private List userAssignedIdentities;
+
/*
* Optional configuration of the virtual network to use to deploy the build
* virtual machine in. Omit if no specific virtual network needs to be
@@ -39,7 +47,7 @@ public final class ImageTemplateVmProfile {
/**
* Get the vmSize property: Size of the virtual machine used to build, customize and capture images. Omit or specify
- * empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
+ * empty string to use the default (Standard_D2ds_v4).
*
* @return the vmSize value.
*/
@@ -49,7 +57,7 @@ public String vmSize() {
/**
* Set the vmSize property: Size of the virtual machine used to build, customize and capture images. Omit or specify
- * empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
+ * empty string to use the default (Standard_D2ds_v4).
*
* @param vmSize the vmSize value to set.
* @return the ImageTemplateVmProfile object itself.
@@ -79,6 +87,28 @@ public ImageTemplateVmProfile withOsDiskSizeGB(Integer osDiskSizeGB) {
return this;
}
+ /**
+ * Get the userAssignedIdentities property: Optional array of resource IDs of user assigned managed identities to be
+ * configured on the build VM. This may include the identity of the image template.
+ *
+ * @return the userAssignedIdentities value.
+ */
+ public List userAssignedIdentities() {
+ return this.userAssignedIdentities;
+ }
+
+ /**
+ * Set the userAssignedIdentities property: Optional array of resource IDs of user assigned managed identities to be
+ * configured on the build VM. This may include the identity of the image template.
+ *
+ * @param userAssignedIdentities the userAssignedIdentities value to set.
+ * @return the ImageTemplateVmProfile object itself.
+ */
+ public ImageTemplateVmProfile withUserAssignedIdentities(List userAssignedIdentities) {
+ this.userAssignedIdentities = userAssignedIdentities;
+ return this;
+ }
+
/**
* Get the vnetConfig property: Optional configuration of the virtual network to use to deploy the build virtual
* machine in. Omit if no specific virtual network needs to be used.
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/InnerError.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/InnerError.java
deleted file mode 100644
index 0b5ef21b9de00..0000000000000
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/InnerError.java
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.imagebuilder.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Inner error details. */
-@Fluent
-public final class InnerError {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(InnerError.class);
-
- /*
- * The exception type.
- */
- @JsonProperty(value = "exceptionType")
- private String exceptionType;
-
- /*
- * The internal error message or exception dump.
- */
- @JsonProperty(value = "errorDetail")
- private String errorDetail;
-
- /**
- * Get the exceptionType property: The exception type.
- *
- * @return the exceptionType value.
- */
- public String exceptionType() {
- return this.exceptionType;
- }
-
- /**
- * Set the exceptionType property: The exception type.
- *
- * @param exceptionType the exceptionType value to set.
- * @return the InnerError object itself.
- */
- public InnerError withExceptionType(String exceptionType) {
- this.exceptionType = exceptionType;
- return this;
- }
-
- /**
- * Get the errorDetail property: The internal error message or exception dump.
- *
- * @return the errorDetail value.
- */
- public String errorDetail() {
- return this.errorDetail;
- }
-
- /**
- * Set the errorDetail property: The internal error message or exception dump.
- *
- * @param errorDetail the errorDetail value to set.
- * @return the InnerError object itself.
- */
- public InnerError withErrorDetail(String errorDetail) {
- this.errorDetail = errorDetail;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/Operations.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/Operations.java
index 79007fcbc545e..8d9a88c6a229f 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/Operations.java
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/Operations.java
@@ -12,8 +12,7 @@ public interface Operations {
/**
* Lists available operations for the Microsoft.VirtualMachineImages provider.
*
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the request to list REST API operations.
*/
@@ -24,8 +23,7 @@ public interface Operations {
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the request to list REST API operations.
*/
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/VirtualMachineImageTemplates.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/VirtualMachineImageTemplates.java
index 30c818cb281df..aecb920e3f3f7 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/VirtualMachineImageTemplates.java
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/VirtualMachineImageTemplates.java
@@ -13,8 +13,7 @@ public interface VirtualMachineImageTemplates {
/**
* Gets information about the VM image templates associated with the subscription.
*
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about the VM image templates associated with the subscription.
*/
@@ -25,8 +24,7 @@ public interface VirtualMachineImageTemplates {
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about the VM image templates associated with the subscription.
*/
@@ -37,8 +35,7 @@ public interface VirtualMachineImageTemplates {
*
* @param resourceGroupName The name of the resource group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about the VM image templates associated with the specified resource group.
*/
@@ -50,8 +47,7 @@ public interface VirtualMachineImageTemplates {
* @param resourceGroupName The name of the resource group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about the VM image templates associated with the specified resource group.
*/
@@ -63,8 +59,7 @@ public interface VirtualMachineImageTemplates {
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about a virtual machine image template.
*/
@@ -77,8 +72,7 @@ public interface VirtualMachineImageTemplates {
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about a virtual machine image template.
*/
@@ -91,8 +85,7 @@ Response getByResourceGroupWithResponse(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void deleteByResourceGroup(String resourceGroupName, String imageTemplateName);
@@ -104,8 +97,7 @@ Response getByResourceGroupWithResponse(
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void delete(String resourceGroupName, String imageTemplateName, Context context);
@@ -116,8 +108,7 @@ Response getByResourceGroupWithResponse(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void run(String resourceGroupName, String imageTemplateName);
@@ -129,8 +120,7 @@ Response getByResourceGroupWithResponse(
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void run(String resourceGroupName, String imageTemplateName, Context context);
@@ -141,8 +131,7 @@ Response getByResourceGroupWithResponse(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void cancel(String resourceGroupName, String imageTemplateName);
@@ -154,8 +143,7 @@ Response getByResourceGroupWithResponse(
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void cancel(String resourceGroupName, String imageTemplateName, Context context);
@@ -166,8 +154,7 @@ Response getByResourceGroupWithResponse(
* @param resourceGroupName The name of the resource group.
* @param imageTemplateName The name of the image Template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the result of List run outputs operation.
*/
@@ -180,8 +167,7 @@ Response getByResourceGroupWithResponse(
* @param imageTemplateName The name of the image Template.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the result of List run outputs operation.
*/
@@ -194,8 +180,7 @@ Response getByResourceGroupWithResponse(
* @param imageTemplateName The name of the image Template.
* @param runOutputName The name of the run output.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the specified run output for the specified image template resource.
*/
@@ -209,8 +194,7 @@ Response getByResourceGroupWithResponse(
* @param runOutputName The name of the run output.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the specified run output for the specified image template resource.
*/
@@ -222,8 +206,7 @@ Response getRunOutputWithResponse(
*
* @param id the resource ID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about a virtual machine image template.
*/
@@ -235,8 +218,7 @@ Response getRunOutputWithResponse(
* @param id the resource ID.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return information about a virtual machine image template.
*/
@@ -247,8 +229,7 @@ Response getRunOutputWithResponse(
*
* @param id the resource ID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void deleteById(String id);
@@ -259,8 +240,7 @@ Response getRunOutputWithResponse(
* @param id the resource ID.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.imagebuilder.models.ApiErrorException thrown if the request is rejected by
- * server.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void deleteByIdWithResponse(String id, Context context);
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/VirtualNetworkConfig.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/VirtualNetworkConfig.java
index 08ce23be7cd61..bad2c64aa27e2 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/VirtualNetworkConfig.java
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/main/java/com/azure/resourcemanager/imagebuilder/models/VirtualNetworkConfig.java
@@ -20,6 +20,14 @@ public final class VirtualNetworkConfig {
@JsonProperty(value = "subnetId")
private String subnetId;
+ /*
+ * Size of the virtual machine used to build, customize and capture images.
+ * Omit or specify empty string to use the default (Standard_D1_v2 for Gen1
+ * images and Standard_D2ds_v4 for Gen2 images).
+ */
+ @JsonProperty(value = "proxyVmSize")
+ private String proxyVmSize;
+
/**
* Get the subnetId property: Resource id of a pre-existing subnet.
*
@@ -40,6 +48,28 @@ public VirtualNetworkConfig withSubnetId(String subnetId) {
return this;
}
+ /**
+ * Get the proxyVmSize property: Size of the virtual machine used to build, customize and capture images. Omit or
+ * specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
+ *
+ * @return the proxyVmSize value.
+ */
+ public String proxyVmSize() {
+ return this.proxyVmSize;
+ }
+
+ /**
+ * Set the proxyVmSize property: Size of the virtual machine used to build, customize and capture images. Omit or
+ * specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
+ *
+ * @param proxyVmSize the proxyVmSize value to set.
+ * @return the VirtualNetworkConfig object itself.
+ */
+ public VirtualNetworkConfig withProxyVmSize(String proxyVmSize) {
+ this.proxyVmSize = proxyVmSize;
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/OperationsListSamples.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/OperationsListSamples.java
new file mode 100644
index 0000000000000..e5520c3a9b197
--- /dev/null
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/OperationsListSamples.java
@@ -0,0 +1,22 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.imagebuilder.generated;
+
+import com.azure.core.util.Context;
+
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/OperationsList.json
+ */
+ /**
+ * Sample code: Retrieve operations list.
+ *
+ * @param manager Entry point to ImageBuilderManager.
+ */
+ public static void retrieveOperationsList(com.azure.resourcemanager.imagebuilder.ImageBuilderManager manager) {
+ manager.operations().list(Context.NONE);
+ }
+}
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesCancelSamples.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesCancelSamples.java
index ec51da88d1673..e7d14c7977c47 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesCancelSamples.java
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesCancelSamples.java
@@ -9,7 +9,7 @@
/** Samples for VirtualMachineImageTemplates Cancel. */
public final class VirtualMachineImageTemplatesCancelSamples {
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/CancelImageBuild.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/CancelImageBuild.json
*/
/**
* Sample code: Cancel the image build based on the imageTemplate.
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesCreateOrUpdateSamples.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesCreateOrUpdateSamples.java
index 42e858533d46e..e9b9cf65f86aa 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesCreateOrUpdateSamples.java
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesCreateOrUpdateSamples.java
@@ -22,7 +22,7 @@
/** Samples for VirtualMachineImageTemplates CreateOrUpdate. */
public final class VirtualMachineImageTemplatesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/CreateImageTemplateLinux.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/CreateImageTemplateLinux.json
*/
/**
* Sample code: Create an Image Template for Linux.
@@ -75,7 +75,7 @@ public static void createAnImageTemplateForLinux(
}
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/CreateImageTemplateWindows.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/CreateImageTemplateWindows.json
*/
/**
* Sample code: Create an Image Template for Windows.
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesDeleteSamples.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesDeleteSamples.java
index 589f4614f4d04..112ca4d2cbc29 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesDeleteSamples.java
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesDeleteSamples.java
@@ -9,7 +9,7 @@
/** Samples for VirtualMachineImageTemplates Delete. */
public final class VirtualMachineImageTemplatesDeleteSamples {
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/DeleteImageTemplate.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/DeleteImageTemplate.json
*/
/**
* Sample code: Delete an Image Template.
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesGetByResourceGroupSamples.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesGetByResourceGroupSamples.java
index 3361668285fd3..356b8b9a0adfc 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesGetByResourceGroupSamples.java
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesGetByResourceGroupSamples.java
@@ -9,7 +9,7 @@
/** Samples for VirtualMachineImageTemplates GetByResourceGroup. */
public final class VirtualMachineImageTemplatesGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/GetImageTemplate.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/GetImageTemplate.json
*/
/**
* Sample code: Retrieve an Image Template.
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesGetRunOutputSamples.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesGetRunOutputSamples.java
index febc7eec2421e..dd323253bb14a 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesGetRunOutputSamples.java
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesGetRunOutputSamples.java
@@ -9,7 +9,7 @@
/** Samples for VirtualMachineImageTemplates GetRunOutput. */
public final class VirtualMachineImageTemplatesGetRunOutputSamples {
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/GetRunOutput.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/GetRunOutput.json
*/
/**
* Sample code: Retrieve single runOutput.
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesListByResourceGroupSamples.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesListByResourceGroupSamples.java
index 84ef22981276b..627dc69e2b0a0 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesListByResourceGroupSamples.java
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesListByResourceGroupSamples.java
@@ -9,7 +9,7 @@
/** Samples for VirtualMachineImageTemplates ListByResourceGroup. */
public final class VirtualMachineImageTemplatesListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/ListImageTemplatesByRg.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/ListImageTemplatesByRg.json
*/
/**
* Sample code: List images by resource group.
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesListRunOutputsSamples.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesListRunOutputsSamples.java
index e1b491f97ec85..276c45e5aa2c6 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesListRunOutputsSamples.java
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesListRunOutputsSamples.java
@@ -9,7 +9,7 @@
/** Samples for VirtualMachineImageTemplates ListRunOutputs. */
public final class VirtualMachineImageTemplatesListRunOutputsSamples {
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/ListRunOutputs.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/ListRunOutputs.json
*/
/**
* Sample code: Retrieve a list of all outputs created by the last run of an Image Template.
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesListSamples.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesListSamples.java
index 380194b57ccce..034f764405d5c 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesListSamples.java
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesListSamples.java
@@ -9,7 +9,7 @@
/** Samples for VirtualMachineImageTemplates List. */
public final class VirtualMachineImageTemplatesListSamples {
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/ListImageTemplates.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/ListImageTemplates.json
*/
/**
* Sample code: List images by subscription.
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesRunSamples.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesRunSamples.java
index 22ed754fa67be..8436d42b221db 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesRunSamples.java
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesRunSamples.java
@@ -9,7 +9,7 @@
/** Samples for VirtualMachineImageTemplates Run. */
public final class VirtualMachineImageTemplatesRunSamples {
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/RunImageTemplate.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/RunImageTemplate.json
*/
/**
* Sample code: Create image(s) from existing imageTemplate.
diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesUpdateSamples.java b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesUpdateSamples.java
index ea724f91ad063..eb957f3419a4a 100644
--- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesUpdateSamples.java
+++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/src/samples/java/com/azure/resourcemanager/imagebuilder/generated/VirtualMachineImageTemplatesUpdateSamples.java
@@ -14,7 +14,7 @@
/** Samples for VirtualMachineImageTemplates Update. */
public final class VirtualMachineImageTemplatesUpdateSamples {
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/UpdateImageTemplateToRemoveIdentities.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/UpdateImageTemplateToRemoveIdentities.json
*/
/**
* Sample code: Remove identities for an Image Template.
@@ -32,7 +32,7 @@ public static void removeIdentitiesForAnImageTemplate(
}
/*
- * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2020-02-14/examples/UpdateImageTemplateTags.json
+ * x-ms-original-file: specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/UpdateImageTemplateTags.json
*/
/**
* Sample code: Update the tags for an Image Template.