diff --git a/eng/lintingconfigs/revapi/track2/revapi.json b/eng/lintingconfigs/revapi/track2/revapi.json
index 88da8835cc34..57fdf2e0a1b9 100644
--- a/eng/lintingconfigs/revapi/track2/revapi.json
+++ b/eng/lintingconfigs/revapi/track2/revapi.json
@@ -771,6 +771,11 @@
"code": "java.field.removed",
"old": "field com.azure.resourcemanager.network.models.SensitivityType.NONE",
"justification": "Remove NonSensitivity for DDoS ruleset."
+ },
+ {
+ "code": "java.method.removed",
+ "old": "method com.azure.resourcemanager.compute.models.ExecutedValidation com.azure.resourcemanager.compute.models.ExecutedValidation::withStatus(com.azure.resourcemanager.compute.models.ValidationStatus)",
+ "justification": "ExecutedValidation is output-only; fluent setter removed as part of immutable model cleanup."
}
]
}
diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 822b9e425245..d54a3999f5f5 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -277,7 +277,7 @@ com.azure.resourcemanager:azure-resourcemanager-appplatform;2.51.0;2.52.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-appservice;2.54.1;2.55.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-authorization;2.53.6;2.54.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-cdn;2.53.5;2.54.0-beta.1
-com.azure.resourcemanager:azure-resourcemanager-compute;2.55.1;2.56.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-compute;2.55.1;2.56.0
com.azure.resourcemanager:azure-resourcemanager-containerinstance;2.53.6;2.54.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-containerregistry;2.54.1;2.55.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-containerservice;2.57.0;2.58.0-beta.2
@@ -553,6 +553,7 @@ unreleased_com.azure:azure-core-test;1.27.0-beta.14
unreleased_com.azure.v2:azure-identity;2.0.0-beta.1
unreleased_com.azure.v2:azure-data-appconfiguration;2.0.0-beta.1
unreleased_io.clientcore:http-netty4;1.0.0-beta.1
+unreleased_com.azure.resourcemanager:azure-resourcemanager-compute;2.56.0
# Released Beta dependencies: Copy the entry from above, prepend "beta_", remove the current
# version and set the version to the released beta. Released beta dependencies are only valid
diff --git a/sdk/compute/azure-resourcemanager-compute/CHANGELOG.md b/sdk/compute/azure-resourcemanager-compute/CHANGELOG.md
index 842551add4dd..58acbbc1fb0a 100644
--- a/sdk/compute/azure-resourcemanager-compute/CHANGELOG.md
+++ b/sdk/compute/azure-resourcemanager-compute/CHANGELOG.md
@@ -1,14 +1,12 @@
# Release History
-## 2.56.0-beta.1 (Unreleased)
+## 2.56.0 (2026-01-12)
-### Features Added
-
-### Breaking Changes
+### Other Changes
-### Bugs Fixed
+#### Dependency Updates
-### Other Changes
+- Updated `GalleryRP api-version` to `2025-03-03`.
## 2.55.1 (2025-11-24)
diff --git a/sdk/compute/azure-resourcemanager-compute/README.md b/sdk/compute/azure-resourcemanager-compute/README.md
index 44833d95f6b1..48c9f4451c34 100644
--- a/sdk/compute/azure-resourcemanager-compute/README.md
+++ b/sdk/compute/azure-resourcemanager-compute/README.md
@@ -18,7 +18,7 @@ For documentation on how to use this package, please see [Azure Management Libra
com.azure.resourcemanager
azure-resourcemanager-compute
- 2.55.0
+ 2.56.0
```
[//]: # ({x-version-update-end})
diff --git a/sdk/compute/azure-resourcemanager-compute/assets.json b/sdk/compute/azure-resourcemanager-compute/assets.json
index 145f980ec880..cb9dbc709018 100644
--- a/sdk/compute/azure-resourcemanager-compute/assets.json
+++ b/sdk/compute/azure-resourcemanager-compute/assets.json
@@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "java",
"TagPrefix": "java/compute/azure-resourcemanager-compute",
- "Tag": "java/compute/azure-resourcemanager-compute_6539f79365"
+ "Tag": "java/compute/azure-resourcemanager-compute_6a5861292e"
}
diff --git a/sdk/compute/azure-resourcemanager-compute/pom.xml b/sdk/compute/azure-resourcemanager-compute/pom.xml
index 5b7045da2805..1b02ea7e4073 100644
--- a/sdk/compute/azure-resourcemanager-compute/pom.xml
+++ b/sdk/compute/azure-resourcemanager-compute/pom.xml
@@ -14,7 +14,7 @@
com.azure.resourcemanager
azure-resourcemanager-compute
- 2.56.0-beta.1
+ 2.56.0
jar
Microsoft Azure SDK for Compute Management
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/ComputeManagementClient.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/ComputeManagementClient.java
index c2308d8125ba..2af6f5d3ab52 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/ComputeManagementClient.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/ComputeManagementClient.java
@@ -354,6 +354,20 @@ public interface ComputeManagementClient {
*/
GalleryInVMAccessControlProfileVersionsClient getGalleryInVMAccessControlProfileVersions();
+ /**
+ * Gets the GalleryScriptsClient object to access its operations.
+ *
+ * @return the GalleryScriptsClient object.
+ */
+ GalleryScriptsClient getGalleryScripts();
+
+ /**
+ * Gets the GalleryScriptVersionsClient object to access its operations.
+ *
+ * @return the GalleryScriptVersionsClient object.
+ */
+ GalleryScriptVersionsClient getGalleryScriptVersions();
+
/**
* Gets the GallerySharingProfilesClient object to access its operations.
*
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/GalleryScriptVersionsClient.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/GalleryScriptVersionsClient.java
new file mode 100644
index 000000000000..5f52a60fbb44
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/GalleryScriptVersionsClient.java
@@ -0,0 +1,509 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.compute.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.compute.fluent.models.GalleryScriptVersionInner;
+import com.azure.resourcemanager.compute.models.GalleryScriptVersionUpdate;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in GalleryScriptVersionsClient.
+ */
+public interface GalleryScriptVersionsClient {
+ /**
+ * List gallery Script Versions in a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of GalleryScriptVersion items as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByGalleryScriptAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName);
+
+ /**
+ * List gallery Script Versions in a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of GalleryScriptVersion items as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByGalleryScript(String resourceGroupName, String galleryName,
+ String galleryScriptName);
+
+ /**
+ * List gallery Script Versions in a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of GalleryScriptVersion items as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByGalleryScript(String resourceGroupName, String galleryName,
+ String galleryScriptName, Context context);
+
+ /**
+ * Custom ArmResourceRead operation template with CloudError as Error.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getWithResponseAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName);
+
+ /**
+ * Custom ArmResourceRead operation template with CloudError as Error.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(String resourceGroupName, String galleryName, String galleryScriptName,
+ String galleryScriptVersionName);
+
+ /**
+ * Custom ArmResourceRead operation template with CloudError as Error.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName, Context context);
+
+ /**
+ * Custom ArmResourceRead operation template with CloudError as Error.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GalleryScriptVersionInner get(String resourceGroupName, String galleryName, String galleryScriptName,
+ String galleryScriptVersionName);
+
+ /**
+ * Create or update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName, GalleryScriptVersionInner galleryScriptVersion);
+
+ /**
+ * Create or update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, GalleryScriptVersionInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String galleryName, String galleryScriptName, String galleryScriptVersionName,
+ GalleryScriptVersionInner galleryScriptVersion);
+
+ /**
+ * Create or update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GalleryScriptVersionInner> beginCreateOrUpdate(
+ String resourceGroupName, String galleryName, String galleryScriptName, String galleryScriptVersionName,
+ GalleryScriptVersionInner galleryScriptVersion);
+
+ /**
+ * Create or update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GalleryScriptVersionInner> beginCreateOrUpdate(
+ String resourceGroupName, String galleryName, String galleryScriptName, String galleryScriptVersionName,
+ GalleryScriptVersionInner galleryScriptVersion, Context context);
+
+ /**
+ * Create or update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono createOrUpdateAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName, GalleryScriptVersionInner galleryScriptVersion);
+
+ /**
+ * Create or update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GalleryScriptVersionInner createOrUpdate(String resourceGroupName, String galleryName, String galleryScriptName,
+ String galleryScriptVersionName, GalleryScriptVersionInner galleryScriptVersion);
+
+ /**
+ * Create or update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GalleryScriptVersionInner createOrUpdate(String resourceGroupName, String galleryName, String galleryScriptName,
+ String galleryScriptVersionName, GalleryScriptVersionInner galleryScriptVersion, Context context);
+
+ /**
+ * Update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the update gallery Script Version operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> updateWithResponseAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName, GalleryScriptVersionUpdate galleryScriptVersion);
+
+ /**
+ * Update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the update gallery Script Version operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, GalleryScriptVersionInner> beginUpdateAsync(
+ String resourceGroupName, String galleryName, String galleryScriptName, String galleryScriptVersionName,
+ GalleryScriptVersionUpdate galleryScriptVersion);
+
+ /**
+ * Update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the update gallery Script Version operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GalleryScriptVersionInner> beginUpdate(String resourceGroupName,
+ String galleryName, String galleryScriptName, String galleryScriptVersionName,
+ GalleryScriptVersionUpdate galleryScriptVersion);
+
+ /**
+ * Update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the update gallery Script Version operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GalleryScriptVersionInner> beginUpdate(String resourceGroupName,
+ String galleryName, String galleryScriptName, String galleryScriptVersionName,
+ GalleryScriptVersionUpdate galleryScriptVersion, Context context);
+
+ /**
+ * Update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the update gallery Script Version operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono updateAsync(String resourceGroupName, String galleryName, String galleryScriptName,
+ String galleryScriptVersionName, GalleryScriptVersionUpdate galleryScriptVersion);
+
+ /**
+ * Update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the update gallery Script Version operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GalleryScriptVersionInner update(String resourceGroupName, String galleryName, String galleryScriptName,
+ String galleryScriptVersionName, GalleryScriptVersionUpdate galleryScriptVersion);
+
+ /**
+ * Update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the update gallery Script Version operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GalleryScriptVersionInner update(String resourceGroupName, String galleryName, String galleryScriptName,
+ String galleryScriptVersionName, GalleryScriptVersionUpdate galleryScriptVersion, Context context);
+
+ /**
+ * Delete a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> deleteWithResponseAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName);
+
+ /**
+ * Delete a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName);
+
+ /**
+ * Delete a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName);
+
+ /**
+ * Delete a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName, Context context);
+
+ /**
+ * Delete a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(String resourceGroupName, String galleryName, String galleryScriptName,
+ String galleryScriptVersionName);
+
+ /**
+ * Delete a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException 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)
+ void delete(String resourceGroupName, String galleryName, String galleryScriptName,
+ String galleryScriptVersionName);
+
+ /**
+ * Delete a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException 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)
+ void delete(String resourceGroupName, String galleryName, String galleryScriptName, String galleryScriptVersionName,
+ Context context);
+}
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/GalleryScriptsClient.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/GalleryScriptsClient.java
new file mode 100644
index 000000000000..8926715dc47c
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/GalleryScriptsClient.java
@@ -0,0 +1,474 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.compute.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.compute.fluent.models.GalleryScriptInner;
+import com.azure.resourcemanager.compute.models.GalleryScriptUpdate;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in GalleryScriptsClient.
+ */
+public interface GalleryScriptsClient {
+ /**
+ * List gallery Script Definitions in a gallery.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List Gallery Script operation response as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByGalleryAsync(String resourceGroupName, String galleryName);
+
+ /**
+ * List gallery Script Definitions in a gallery.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List Gallery Script operation response as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByGallery(String resourceGroupName, String galleryName);
+
+ /**
+ * List gallery Script Definitions in a gallery.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List Gallery Script operation response as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByGallery(String resourceGroupName, String galleryName, Context context);
+
+ /**
+ * Retrieves information about a gallery script definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getWithResponseAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName);
+
+ /**
+ * Retrieves information about a gallery script definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(String resourceGroupName, String galleryName, String galleryScriptName);
+
+ /**
+ * Retrieves information about a gallery script definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String galleryName, String galleryScriptName,
+ Context context);
+
+ /**
+ * Retrieves information about a gallery script definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GalleryScriptInner get(String resourceGroupName, String galleryName, String galleryScriptName);
+
+ /**
+ * Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common
+ * scripts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the create or update gallery Script operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, GalleryScriptInner galleryScript);
+
+ /**
+ * Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common
+ * scripts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the create or update gallery Script operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of specifies information about the gallery Script Definition that you
+ * want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, GalleryScriptInner> beginCreateOrUpdateAsync(String resourceGroupName,
+ String galleryName, String galleryScriptName, GalleryScriptInner galleryScript);
+
+ /**
+ * Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common
+ * scripts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the create or update gallery Script operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of specifies information about the gallery Script Definition that you
+ * want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GalleryScriptInner> beginCreateOrUpdate(String resourceGroupName,
+ String galleryName, String galleryScriptName, GalleryScriptInner galleryScript);
+
+ /**
+ * Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common
+ * scripts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the create or update gallery Script operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of specifies information about the gallery Script Definition that you
+ * want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GalleryScriptInner> beginCreateOrUpdate(String resourceGroupName,
+ String galleryName, String galleryScriptName, GalleryScriptInner galleryScript, Context context);
+
+ /**
+ * Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common
+ * scripts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the create or update gallery Script operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono createOrUpdateAsync(String resourceGroupName, String galleryName, String galleryScriptName,
+ GalleryScriptInner galleryScript);
+
+ /**
+ * Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common
+ * scripts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the create or update gallery Script operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GalleryScriptInner createOrUpdate(String resourceGroupName, String galleryName, String galleryScriptName,
+ GalleryScriptInner galleryScript);
+
+ /**
+ * Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common
+ * scripts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the create or update gallery Script operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GalleryScriptInner createOrUpdate(String resourceGroupName, String galleryName, String galleryScriptName,
+ GalleryScriptInner galleryScript, Context context);
+
+ /**
+ * Update a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the update gallery Script operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> updateWithResponseAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, GalleryScriptUpdate galleryScript);
+
+ /**
+ * Update a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the update gallery Script operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of specifies information about the gallery Script Definition that you
+ * want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, GalleryScriptInner> beginUpdateAsync(String resourceGroupName,
+ String galleryName, String galleryScriptName, GalleryScriptUpdate galleryScript);
+
+ /**
+ * Update a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the update gallery Script operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of specifies information about the gallery Script Definition that you
+ * want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GalleryScriptInner> beginUpdate(String resourceGroupName,
+ String galleryName, String galleryScriptName, GalleryScriptUpdate galleryScript);
+
+ /**
+ * Update a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the update gallery Script operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of specifies information about the gallery Script Definition that you
+ * want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, GalleryScriptInner> beginUpdate(String resourceGroupName,
+ String galleryName, String galleryScriptName, GalleryScriptUpdate galleryScript, Context context);
+
+ /**
+ * Update a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the update gallery Script operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono updateAsync(String resourceGroupName, String galleryName, String galleryScriptName,
+ GalleryScriptUpdate galleryScript);
+
+ /**
+ * Update a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the update gallery Script operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GalleryScriptInner update(String resourceGroupName, String galleryName, String galleryScriptName,
+ GalleryScriptUpdate galleryScript);
+
+ /**
+ * Update a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the update gallery Script operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GalleryScriptInner update(String resourceGroupName, String galleryName, String galleryScriptName,
+ GalleryScriptUpdate galleryScript, Context context);
+
+ /**
+ * Delete a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> deleteWithResponseAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName);
+
+ /**
+ * Delete a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName);
+
+ /**
+ * Delete a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String galleryName,
+ String galleryScriptName);
+
+ /**
+ * Delete a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String galleryName,
+ String galleryScriptName, Context context);
+
+ /**
+ * Delete a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(String resourceGroupName, String galleryName, String galleryScriptName);
+
+ /**
+ * Delete a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException 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)
+ void delete(String resourceGroupName, String galleryName, String galleryScriptName);
+
+ /**
+ * Delete a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException 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)
+ void delete(String resourceGroupName, String galleryName, String galleryScriptName, Context context);
+}
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryScriptInner.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryScriptInner.java
new file mode 100644
index 000000000000..b6121b6df01c
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryScriptInner.java
@@ -0,0 +1,191 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.compute.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * Specifies information about the gallery Script Definition that you want to create or update.
+ */
+@Fluent
+public final class GalleryScriptInner extends Resource {
+ /*
+ * Describes the properties of a gallery Script Definition.
+ */
+ private GalleryScriptProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of GalleryScriptInner class.
+ */
+ public GalleryScriptInner() {
+ }
+
+ /**
+ * Get the properties property: Describes the properties of a gallery Script Definition.
+ *
+ * @return the properties value.
+ */
+ public GalleryScriptProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Describes the properties of a gallery Script Definition.
+ *
+ * @param properties the properties value to set.
+ * @return the GalleryScriptInner object itself.
+ */
+ public GalleryScriptInner withProperties(GalleryScriptProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public GalleryScriptInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public GalleryScriptInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of GalleryScriptInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of GalleryScriptInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the GalleryScriptInner.
+ */
+ public static GalleryScriptInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ GalleryScriptInner deserializedGalleryScriptInner = new GalleryScriptInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedGalleryScriptInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedGalleryScriptInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedGalleryScriptInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedGalleryScriptInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedGalleryScriptInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedGalleryScriptInner.properties = GalleryScriptProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedGalleryScriptInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedGalleryScriptInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryScriptProperties.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryScriptProperties.java
new file mode 100644
index 000000000000..37fd002e8e53
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryScriptProperties.java
@@ -0,0 +1,276 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.compute.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.CoreUtils;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.models.GalleryProvisioningState;
+import com.azure.resourcemanager.compute.models.OperatingSystemTypes;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.format.DateTimeFormatter;
+
+/**
+ * Describes the properties of a gallery script definition.
+ */
+@Fluent
+public final class GalleryScriptProperties implements JsonSerializable {
+ /*
+ * The description of this gallery script definition resource. This property is updatable.
+ */
+ private String description;
+
+ /*
+ * The Eula agreement (End User License Agreement) for the gallery Script Definition.
+ */
+ private String eula;
+
+ /*
+ * The privacy statement uri.
+ */
+ private String privacyStatementUri;
+
+ /*
+ * The release note uri.
+ */
+ private String releaseNoteUri;
+
+ /*
+ * The end of life date of the gallery Script Definition. This property can be used for decommissioning purposes.
+ * This property is updatable.
+ */
+ private OffsetDateTime endOfLifeDate;
+
+ /*
+ * This property allows you to specify the supported type of the OS that application is built for. Possible values
+ * are: **Windows,** **Linux.**
+ */
+ private OperatingSystemTypes supportedOSType;
+
+ /*
+ * The provisioning state, which only appears in the response.
+ */
+ private GalleryProvisioningState provisioningState;
+
+ /**
+ * Creates an instance of GalleryScriptProperties class.
+ */
+ public GalleryScriptProperties() {
+ }
+
+ /**
+ * Get the description property: The description of this gallery script definition resource. This property is
+ * updatable.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: The description of this gallery script definition resource. This property is
+ * updatable.
+ *
+ * @param description the description value to set.
+ * @return the GalleryScriptProperties object itself.
+ */
+ public GalleryScriptProperties withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the eula property: The Eula agreement (End User License Agreement) for the gallery Script Definition.
+ *
+ * @return the eula value.
+ */
+ public String eula() {
+ return this.eula;
+ }
+
+ /**
+ * Set the eula property: The Eula agreement (End User License Agreement) for the gallery Script Definition.
+ *
+ * @param eula the eula value to set.
+ * @return the GalleryScriptProperties object itself.
+ */
+ public GalleryScriptProperties withEula(String eula) {
+ this.eula = eula;
+ return this;
+ }
+
+ /**
+ * Get the privacyStatementUri property: The privacy statement uri.
+ *
+ * @return the privacyStatementUri value.
+ */
+ public String privacyStatementUri() {
+ return this.privacyStatementUri;
+ }
+
+ /**
+ * Set the privacyStatementUri property: The privacy statement uri.
+ *
+ * @param privacyStatementUri the privacyStatementUri value to set.
+ * @return the GalleryScriptProperties object itself.
+ */
+ public GalleryScriptProperties withPrivacyStatementUri(String privacyStatementUri) {
+ this.privacyStatementUri = privacyStatementUri;
+ return this;
+ }
+
+ /**
+ * Get the releaseNoteUri property: The release note uri.
+ *
+ * @return the releaseNoteUri value.
+ */
+ public String releaseNoteUri() {
+ return this.releaseNoteUri;
+ }
+
+ /**
+ * Set the releaseNoteUri property: The release note uri.
+ *
+ * @param releaseNoteUri the releaseNoteUri value to set.
+ * @return the GalleryScriptProperties object itself.
+ */
+ public GalleryScriptProperties withReleaseNoteUri(String releaseNoteUri) {
+ this.releaseNoteUri = releaseNoteUri;
+ return this;
+ }
+
+ /**
+ * Get the endOfLifeDate property: The end of life date of the gallery Script Definition. This property can be used
+ * for decommissioning purposes. This property is updatable.
+ *
+ * @return the endOfLifeDate value.
+ */
+ public OffsetDateTime endOfLifeDate() {
+ return this.endOfLifeDate;
+ }
+
+ /**
+ * Set the endOfLifeDate property: The end of life date of the gallery Script Definition. This property can be used
+ * for decommissioning purposes. This property is updatable.
+ *
+ * @param endOfLifeDate the endOfLifeDate value to set.
+ * @return the GalleryScriptProperties object itself.
+ */
+ public GalleryScriptProperties withEndOfLifeDate(OffsetDateTime endOfLifeDate) {
+ this.endOfLifeDate = endOfLifeDate;
+ return this;
+ }
+
+ /**
+ * Get the supportedOSType property: This property allows you to specify the supported type of the OS that
+ * application is built for. Possible values are: **Windows,** **Linux.**.
+ *
+ * @return the supportedOSType value.
+ */
+ public OperatingSystemTypes supportedOSType() {
+ return this.supportedOSType;
+ }
+
+ /**
+ * Set the supportedOSType property: This property allows you to specify the supported type of the OS that
+ * application is built for. Possible values are: **Windows,** **Linux.**.
+ *
+ * @param supportedOSType the supportedOSType value to set.
+ * @return the GalleryScriptProperties object itself.
+ */
+ public GalleryScriptProperties withSupportedOSType(OperatingSystemTypes supportedOSType) {
+ this.supportedOSType = supportedOSType;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state, which only appears in the response.
+ *
+ * @return the provisioningState value.
+ */
+ public GalleryProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (supportedOSType() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property supportedOSType in model GalleryScriptProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(GalleryScriptProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("supportedOSType",
+ this.supportedOSType == null ? null : this.supportedOSType.toString());
+ jsonWriter.writeStringField("description", this.description);
+ jsonWriter.writeStringField("eula", this.eula);
+ jsonWriter.writeStringField("privacyStatementUri", this.privacyStatementUri);
+ jsonWriter.writeStringField("releaseNoteUri", this.releaseNoteUri);
+ jsonWriter.writeStringField("endOfLifeDate",
+ this.endOfLifeDate == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.endOfLifeDate));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of GalleryScriptProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of GalleryScriptProperties if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the GalleryScriptProperties.
+ */
+ public static GalleryScriptProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ GalleryScriptProperties deserializedGalleryScriptProperties = new GalleryScriptProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("supportedOSType".equals(fieldName)) {
+ deserializedGalleryScriptProperties.supportedOSType
+ = OperatingSystemTypes.fromString(reader.getString());
+ } else if ("description".equals(fieldName)) {
+ deserializedGalleryScriptProperties.description = reader.getString();
+ } else if ("eula".equals(fieldName)) {
+ deserializedGalleryScriptProperties.eula = reader.getString();
+ } else if ("privacyStatementUri".equals(fieldName)) {
+ deserializedGalleryScriptProperties.privacyStatementUri = reader.getString();
+ } else if ("releaseNoteUri".equals(fieldName)) {
+ deserializedGalleryScriptProperties.releaseNoteUri = reader.getString();
+ } else if ("endOfLifeDate".equals(fieldName)) {
+ deserializedGalleryScriptProperties.endOfLifeDate = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedGalleryScriptProperties.provisioningState
+ = GalleryProvisioningState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedGalleryScriptProperties;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryScriptVersionInner.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryScriptVersionInner.java
new file mode 100644
index 000000000000..2a61efb82073
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryScriptVersionInner.java
@@ -0,0 +1,191 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.compute.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * Concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+@Fluent
+public final class GalleryScriptVersionInner extends Resource {
+ /*
+ * Describes the properties of a gallery Script Version.
+ */
+ private GalleryScriptVersionProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of GalleryScriptVersionInner class.
+ */
+ public GalleryScriptVersionInner() {
+ }
+
+ /**
+ * Get the properties property: Describes the properties of a gallery Script Version.
+ *
+ * @return the properties value.
+ */
+ public GalleryScriptVersionProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Describes the properties of a gallery Script Version.
+ *
+ * @param properties the properties value to set.
+ * @return the GalleryScriptVersionInner object itself.
+ */
+ public GalleryScriptVersionInner withProperties(GalleryScriptVersionProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public GalleryScriptVersionInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public GalleryScriptVersionInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of GalleryScriptVersionInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of GalleryScriptVersionInner if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the GalleryScriptVersionInner.
+ */
+ public static GalleryScriptVersionInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ GalleryScriptVersionInner deserializedGalleryScriptVersionInner = new GalleryScriptVersionInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedGalleryScriptVersionInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedGalleryScriptVersionInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedGalleryScriptVersionInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedGalleryScriptVersionInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedGalleryScriptVersionInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedGalleryScriptVersionInner.properties = GalleryScriptVersionProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedGalleryScriptVersionInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedGalleryScriptVersionInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryScriptVersionProperties.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryScriptVersionProperties.java
new file mode 100644
index 000000000000..c808ac63e8a6
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryScriptVersionProperties.java
@@ -0,0 +1,179 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.compute.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.models.GalleryProvisioningState;
+import com.azure.resourcemanager.compute.models.GalleryScriptVersionPublishingProfile;
+import com.azure.resourcemanager.compute.models.GalleryScriptVersionSafetyProfile;
+import com.azure.resourcemanager.compute.models.ReplicationStatus;
+import java.io.IOException;
+
+/**
+ * Describes the properties of a gallery script version.
+ */
+@Fluent
+public final class GalleryScriptVersionProperties implements JsonSerializable {
+ /*
+ * The publishing profile of a gallery image version.
+ */
+ private GalleryScriptVersionPublishingProfile publishingProfile;
+
+ /*
+ * The safety profile of the Gallery Script Version.
+ */
+ private GalleryScriptVersionSafetyProfile safetyProfile;
+
+ /*
+ * The provisioning state, which only appears in the response.
+ */
+ private GalleryProvisioningState provisioningState;
+
+ /*
+ * This is the replication status of the gallery image version.
+ */
+ private ReplicationStatus replicationStatus;
+
+ /**
+ * Creates an instance of GalleryScriptVersionProperties class.
+ */
+ public GalleryScriptVersionProperties() {
+ }
+
+ /**
+ * Get the publishingProfile property: The publishing profile of a gallery image version.
+ *
+ * @return the publishingProfile value.
+ */
+ public GalleryScriptVersionPublishingProfile publishingProfile() {
+ return this.publishingProfile;
+ }
+
+ /**
+ * Set the publishingProfile property: The publishing profile of a gallery image version.
+ *
+ * @param publishingProfile the publishingProfile value to set.
+ * @return the GalleryScriptVersionProperties object itself.
+ */
+ public GalleryScriptVersionProperties
+ withPublishingProfile(GalleryScriptVersionPublishingProfile publishingProfile) {
+ this.publishingProfile = publishingProfile;
+ return this;
+ }
+
+ /**
+ * Get the safetyProfile property: The safety profile of the Gallery Script Version.
+ *
+ * @return the safetyProfile value.
+ */
+ public GalleryScriptVersionSafetyProfile safetyProfile() {
+ return this.safetyProfile;
+ }
+
+ /**
+ * Set the safetyProfile property: The safety profile of the Gallery Script Version.
+ *
+ * @param safetyProfile the safetyProfile value to set.
+ * @return the GalleryScriptVersionProperties object itself.
+ */
+ public GalleryScriptVersionProperties withSafetyProfile(GalleryScriptVersionSafetyProfile safetyProfile) {
+ this.safetyProfile = safetyProfile;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state, which only appears in the response.
+ *
+ * @return the provisioningState value.
+ */
+ public GalleryProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the replicationStatus property: This is the replication status of the gallery image version.
+ *
+ * @return the replicationStatus value.
+ */
+ public ReplicationStatus replicationStatus() {
+ return this.replicationStatus;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (publishingProfile() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property publishingProfile in model GalleryScriptVersionProperties"));
+ } else {
+ publishingProfile().validate();
+ }
+ if (safetyProfile() != null) {
+ safetyProfile().validate();
+ }
+ if (replicationStatus() != null) {
+ replicationStatus().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(GalleryScriptVersionProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("publishingProfile", this.publishingProfile);
+ jsonWriter.writeJsonField("safetyProfile", this.safetyProfile);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of GalleryScriptVersionProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of GalleryScriptVersionProperties if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the GalleryScriptVersionProperties.
+ */
+ public static GalleryScriptVersionProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ GalleryScriptVersionProperties deserializedGalleryScriptVersionProperties
+ = new GalleryScriptVersionProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("publishingProfile".equals(fieldName)) {
+ deserializedGalleryScriptVersionProperties.publishingProfile
+ = GalleryScriptVersionPublishingProfile.fromJson(reader);
+ } else if ("safetyProfile".equals(fieldName)) {
+ deserializedGalleryScriptVersionProperties.safetyProfile
+ = GalleryScriptVersionSafetyProfile.fromJson(reader);
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedGalleryScriptVersionProperties.provisioningState
+ = GalleryProvisioningState.fromString(reader.getString());
+ } else if ("replicationStatus".equals(fieldName)) {
+ deserializedGalleryScriptVersionProperties.replicationStatus = ReplicationStatus.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedGalleryScriptVersionProperties;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CommunityGalleriesClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CommunityGalleriesClientImpl.java
index 0ede6492e712..c20a0769505e 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CommunityGalleriesClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CommunityGalleriesClientImpl.java
@@ -95,7 +95,7 @@ public Mono> getWithResponseAsync(String locatio
return Mono
.error(new IllegalArgumentException("Parameter publicGalleryName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -133,7 +133,7 @@ private Mono> getWithResponseAsync(String locati
return Mono
.error(new IllegalArgumentException("Parameter publicGalleryName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location,
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CommunityGalleryImageVersionsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CommunityGalleryImageVersionsClientImpl.java
index a12dd69096d4..d57a0d83fa34 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CommunityGalleryImageVersionsClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CommunityGalleryImageVersionsClientImpl.java
@@ -126,7 +126,7 @@ private Mono> listSinglePageAsy
return Mono
.error(new IllegalArgumentException("Parameter galleryImageName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -171,7 +171,7 @@ private Mono> listSinglePageAsy
return Mono
.error(new IllegalArgumentException("Parameter galleryImageName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -297,7 +297,7 @@ public Mono> getWithResponseAsync(St
return Mono.error(
new IllegalArgumentException("Parameter galleryImageVersionName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -346,7 +346,7 @@ private Mono> getWithResponseAsync(S
return Mono.error(
new IllegalArgumentException("Parameter galleryImageVersionName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location,
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CommunityGalleryImagesClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CommunityGalleryImagesClientImpl.java
index 6c9c89cb3ddc..e01bb3d09166 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CommunityGalleryImagesClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CommunityGalleryImagesClientImpl.java
@@ -119,7 +119,7 @@ private Mono> listSinglePageAsync(Stri
return Mono
.error(new IllegalArgumentException("Parameter publicGalleryName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -159,7 +159,7 @@ private Mono> listSinglePageAsync(Stri
return Mono
.error(new IllegalArgumentException("Parameter publicGalleryName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -267,7 +267,7 @@ public Mono> getWithResponseAsync(String lo
return Mono
.error(new IllegalArgumentException("Parameter galleryImageName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -309,7 +309,7 @@ private Mono> getWithResponseAsync(String l
return Mono
.error(new IllegalArgumentException("Parameter galleryImageName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location,
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ComputeManagementClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ComputeManagementClientImpl.java
index e0064856d407..c5862bfec946 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ComputeManagementClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ComputeManagementClientImpl.java
@@ -33,6 +33,8 @@
import com.azure.resourcemanager.compute.fluent.GalleryImagesClient;
import com.azure.resourcemanager.compute.fluent.GalleryInVMAccessControlProfileVersionsClient;
import com.azure.resourcemanager.compute.fluent.GalleryInVMAccessControlProfilesClient;
+import com.azure.resourcemanager.compute.fluent.GalleryScriptVersionsClient;
+import com.azure.resourcemanager.compute.fluent.GalleryScriptsClient;
import com.azure.resourcemanager.compute.fluent.GallerySharingProfilesClient;
import com.azure.resourcemanager.compute.fluent.ImagesClient;
import com.azure.resourcemanager.compute.fluent.LogAnalyticsClient;
@@ -769,6 +771,34 @@ public GalleryInVMAccessControlProfileVersionsClient getGalleryInVMAccessControl
return this.galleryInVMAccessControlProfileVersions;
}
+ /**
+ * The GalleryScriptsClient object to access its operations.
+ */
+ private final GalleryScriptsClient galleryScripts;
+
+ /**
+ * Gets the GalleryScriptsClient object to access its operations.
+ *
+ * @return the GalleryScriptsClient object.
+ */
+ public GalleryScriptsClient getGalleryScripts() {
+ return this.galleryScripts;
+ }
+
+ /**
+ * The GalleryScriptVersionsClient object to access its operations.
+ */
+ private final GalleryScriptVersionsClient galleryScriptVersions;
+
+ /**
+ * Gets the GalleryScriptVersionsClient object to access its operations.
+ *
+ * @return the GalleryScriptVersionsClient object.
+ */
+ public GalleryScriptVersionsClient getGalleryScriptVersions() {
+ return this.galleryScriptVersions;
+ }
+
/**
* The GallerySharingProfilesClient object to access its operations.
*/
@@ -930,6 +960,8 @@ public CloudServiceOperatingSystemsClient getCloudServiceOperatingSystems() {
this.galleryImageVersions = new GalleryImageVersionsClientImpl(this);
this.galleryInVMAccessControlProfiles = new GalleryInVMAccessControlProfilesClientImpl(this);
this.galleryInVMAccessControlProfileVersions = new GalleryInVMAccessControlProfileVersionsClientImpl(this);
+ this.galleryScripts = new GalleryScriptsClientImpl(this);
+ this.galleryScriptVersions = new GalleryScriptVersionsClientImpl(this);
this.gallerySharingProfiles = new GallerySharingProfilesClientImpl(this);
this.softDeletedResources = new SoftDeletedResourcesClientImpl(this);
this.cloudServiceRoleInstances = new CloudServiceRoleInstancesClientImpl(this);
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleriesClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleriesClientImpl.java
index 7ff2787e9575..3351bb93ee87 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleriesClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleriesClientImpl.java
@@ -167,7 +167,7 @@ private Mono> listSinglePageAsync() {
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -197,7 +197,7 @@ private Mono> listSinglePageAsync(Context context) {
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)
@@ -282,7 +282,7 @@ private Mono> listByResourceGroupSinglePageAsync(Str
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion,
@@ -318,7 +318,7 @@ private Mono> listByResourceGroupSinglePageAsync(Str
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -419,7 +419,7 @@ public Mono> getByResourceGroupWithResponseAsync(String r
if (galleryName == null) {
return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion,
@@ -459,7 +459,7 @@ private Mono> getByResourceGroupWithResponseAsync(String
if (galleryName == null) {
return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -557,7 +557,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r
} else {
gallery.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion,
@@ -601,7 +601,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
} else {
gallery.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -796,7 +796,7 @@ public Mono>> updateWithResponseAsync(String resourceG
} else {
gallery.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.update(this.client.getEndpoint(), apiVersion,
@@ -840,7 +840,7 @@ private Mono>> updateWithResponseAsync(String resource
} else {
gallery.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
@@ -1025,7 +1025,7 @@ public Mono>> deleteWithResponseAsync(String resourceG
if (galleryName == null) {
return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
@@ -1062,7 +1062,7 @@ private Mono>> deleteWithResponseAsync(String resource
if (galleryName == null) {
return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryApplicationVersionsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryApplicationVersionsClientImpl.java
index 2a64123adfdd..c6310b8e14b7 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryApplicationVersionsClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryApplicationVersionsClientImpl.java
@@ -173,7 +173,7 @@ private Mono> listByGalleryApplica
return Mono.error(
new IllegalArgumentException("Parameter galleryApplicationName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil.withContext(context -> service.listByGalleryApplication(this.client.getEndpoint(), apiVersion,
this.client.getSubscriptionId(), resourceGroupName, galleryName, galleryApplicationName, accept, context))
@@ -217,7 +217,7 @@ private Mono> listByGalleryApplica
return Mono.error(
new IllegalArgumentException("Parameter galleryApplicationName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -344,7 +344,7 @@ public Mono> getWithResponseAsync(Strin
return Mono.error(new IllegalArgumentException(
"Parameter galleryApplicationVersionName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -395,7 +395,7 @@ private Mono> getWithResponseAsync(Stri
return Mono.error(new IllegalArgumentException(
"Parameter galleryApplicationVersionName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
@@ -514,7 +514,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r
} else {
galleryApplicationVersion.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion,
@@ -572,7 +572,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
} else {
galleryApplicationVersion.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -828,7 +828,7 @@ public Mono>> updateWithResponseAsync(String resourceG
} else {
galleryApplicationVersion.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.update(this.client.getEndpoint(), apiVersion,
@@ -885,7 +885,7 @@ private Mono>> updateWithResponseAsync(String resource
} else {
galleryApplicationVersion.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
@@ -1122,7 +1122,7 @@ public Mono>> deleteWithResponseAsync(String resourceG
return Mono.error(new IllegalArgumentException(
"Parameter galleryApplicationVersionName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
@@ -1170,7 +1170,7 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono.error(new IllegalArgumentException(
"Parameter galleryApplicationVersionName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryApplicationsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryApplicationsClientImpl.java
index 6a08165d3f97..900e39f3ca7e 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryApplicationsClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryApplicationsClientImpl.java
@@ -161,7 +161,7 @@ private Mono> listByGallerySinglePageAsyn
if (galleryName == null) {
return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByGallery(this.client.getEndpoint(), apiVersion,
@@ -201,7 +201,7 @@ private Mono> listByGallerySinglePageAsyn
if (galleryName == null) {
return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -311,7 +311,7 @@ public Mono> getWithResponseAsync(String resou
return Mono.error(
new IllegalArgumentException("Parameter galleryApplicationName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -354,7 +354,7 @@ private Mono> getWithResponseAsync(String reso
return Mono.error(
new IllegalArgumentException("Parameter galleryApplicationName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
@@ -456,7 +456,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r
} else {
galleryApplication.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion,
@@ -508,7 +508,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
} else {
galleryApplication.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -730,7 +730,7 @@ public Mono>> updateWithResponseAsync(String resourceG
} else {
galleryApplication.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -781,7 +781,7 @@ private Mono>> updateWithResponseAsync(String resource
} else {
galleryApplication.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
@@ -993,7 +993,7 @@ public Mono>> deleteWithResponseAsync(String resourceG
return Mono.error(
new IllegalArgumentException("Parameter galleryApplicationName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -1036,7 +1036,7 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono.error(
new IllegalArgumentException("Parameter galleryApplicationName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryImageVersionsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryImageVersionsClientImpl.java
index 23180dfa095e..249d019b6cad 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryImageVersionsClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryImageVersionsClientImpl.java
@@ -173,7 +173,7 @@ private Mono> listByGalleryImageSinglePa
return Mono
.error(new IllegalArgumentException("Parameter galleryImageName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByGalleryImage(this.client.getEndpoint(), apiVersion,
@@ -218,7 +218,7 @@ private Mono> listByGalleryImageSinglePa
return Mono
.error(new IllegalArgumentException("Parameter galleryImageName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -342,7 +342,7 @@ public Mono> getWithResponseAsync(String reso
return Mono.error(
new IllegalArgumentException("Parameter galleryImageVersionName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -391,7 +391,7 @@ private Mono> getWithResponseAsync(String res
return Mono.error(
new IllegalArgumentException("Parameter galleryImageVersionName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
@@ -508,7 +508,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r
} else {
galleryImageVersion.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion,
@@ -565,7 +565,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
} else {
galleryImageVersion.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -805,7 +805,7 @@ public Mono>> updateWithResponseAsync(String resourceG
} else {
galleryImageVersion.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.update(this.client.getEndpoint(), apiVersion,
@@ -862,7 +862,7 @@ private Mono>> updateWithResponseAsync(String resource
} else {
galleryImageVersion.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
@@ -1092,7 +1092,7 @@ public Mono>> deleteWithResponseAsync(String resourceG
return Mono.error(
new IllegalArgumentException("Parameter galleryImageVersionName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -1140,7 +1140,7 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono.error(
new IllegalArgumentException("Parameter galleryImageVersionName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryImagesClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryImagesClientImpl.java
index 4d4648ccdbbe..98095fda65a4 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryImagesClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryImagesClientImpl.java
@@ -161,7 +161,7 @@ private Mono> listByGallerySinglePageAsync(Stri
if (galleryName == null) {
return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByGallery(this.client.getEndpoint(), apiVersion,
@@ -201,7 +201,7 @@ private Mono> listByGallerySinglePageAsync(Stri
if (galleryName == null) {
return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -311,7 +311,7 @@ public Mono> getWithResponseAsync(String resourceGro
return Mono
.error(new IllegalArgumentException("Parameter galleryImageName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -354,7 +354,7 @@ private Mono> getWithResponseAsync(String resourceGr
return Mono
.error(new IllegalArgumentException("Parameter galleryImageName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
@@ -454,7 +454,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r
} else {
galleryImage.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion,
@@ -504,7 +504,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
} else {
galleryImage.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -717,7 +717,7 @@ public Mono>> updateWithResponseAsync(String resourceG
} else {
galleryImage.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -767,7 +767,7 @@ private Mono>> updateWithResponseAsync(String resource
} else {
galleryImage.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
@@ -971,7 +971,7 @@ public Mono>> deleteWithResponseAsync(String resourceG
return Mono
.error(new IllegalArgumentException("Parameter galleryImageName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
@@ -1013,7 +1013,7 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono
.error(new IllegalArgumentException("Parameter galleryImageName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryInVMAccessControlProfileVersionsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryInVMAccessControlProfileVersionsClientImpl.java
index 530c0fda9331..95d194a48c18 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryInVMAccessControlProfileVersionsClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryInVMAccessControlProfileVersionsClientImpl.java
@@ -175,7 +175,7 @@ Mono> listByGalleryInVMAcce
return Mono.error(
new IllegalArgumentException("Parameter inVMAccessControlProfileName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByGalleryInVMAccessControlProfile(this.client.getEndpoint(), apiVersion,
@@ -223,7 +223,7 @@ Mono> listByGalleryInVMAcce
return Mono.error(
new IllegalArgumentException("Parameter inVMAccessControlProfileName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -356,7 +356,7 @@ public Mono> getWithRespon
return Mono.error(new IllegalArgumentException(
"Parameter inVMAccessControlProfileVersionName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -407,7 +407,7 @@ private Mono> getWithRespo
return Mono.error(new IllegalArgumentException(
"Parameter inVMAccessControlProfileVersionName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
@@ -528,7 +528,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r
} else {
galleryInVMAccessControlProfileVersion.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion,
@@ -587,7 +587,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
} else {
galleryInVMAccessControlProfileVersion.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -864,7 +864,7 @@ public Mono>> updateWithResponseAsync(String resourceG
} else {
galleryInVMAccessControlProfileVersion.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.update(this.client.getEndpoint(), apiVersion,
@@ -923,7 +923,7 @@ private Mono>> updateWithResponseAsync(String resource
} else {
galleryInVMAccessControlProfileVersion.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
@@ -1190,7 +1190,7 @@ public Mono>> deleteWithResponseAsync(String resourceG
return Mono.error(new IllegalArgumentException(
"Parameter inVMAccessControlProfileVersionName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
@@ -1239,7 +1239,7 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono.error(new IllegalArgumentException(
"Parameter inVMAccessControlProfileVersionName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryInVMAccessControlProfilesClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryInVMAccessControlProfilesClientImpl.java
index 0dcc8b4f753c..39faae2b510d 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryInVMAccessControlProfilesClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryInVMAccessControlProfilesClientImpl.java
@@ -161,7 +161,7 @@ Mono> listByGalleryNext(
if (galleryName == null) {
return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByGallery(this.client.getEndpoint(), apiVersion,
@@ -201,7 +201,7 @@ Mono> listByGalleryNext(
if (galleryName == null) {
return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -317,7 +317,7 @@ public Mono> getWithResponseAsync
return Mono.error(
new IllegalArgumentException("Parameter inVMAccessControlProfileName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -360,7 +360,7 @@ private Mono> getWithResponseAsyn
return Mono.error(
new IllegalArgumentException("Parameter inVMAccessControlProfileName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
@@ -465,7 +465,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r
} else {
galleryInVMAccessControlProfile.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion,
@@ -518,7 +518,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
} else {
galleryInVMAccessControlProfile.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -755,7 +755,7 @@ public Mono>> updateWithResponseAsync(String resourceG
} else {
galleryInVMAccessControlProfile.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.update(this.client.getEndpoint(), apiVersion,
@@ -808,7 +808,7 @@ private Mono>> updateWithResponseAsync(String resource
} else {
galleryInVMAccessControlProfile.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
@@ -1035,7 +1035,7 @@ public Mono>> deleteWithResponseAsync(String resourceG
return Mono.error(
new IllegalArgumentException("Parameter inVMAccessControlProfileName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -1078,7 +1078,7 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono.error(
new IllegalArgumentException("Parameter inVMAccessControlProfileName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryScriptVersionsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryScriptVersionsClientImpl.java
new file mode 100644
index 000000000000..eb94c0444d91
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryScriptVersionsClientImpl.java
@@ -0,0 +1,1358 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.compute.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+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.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.compute.fluent.GalleryScriptVersionsClient;
+import com.azure.resourcemanager.compute.fluent.models.GalleryScriptVersionInner;
+import com.azure.resourcemanager.compute.models.ApiErrorException;
+import com.azure.resourcemanager.compute.models.GalleryScriptVersionList;
+import com.azure.resourcemanager.compute.models.GalleryScriptVersionUpdate;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in GalleryScriptVersionsClient.
+ */
+public final class GalleryScriptVersionsClientImpl implements GalleryScriptVersionsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final GalleryScriptVersionsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final ComputeManagementClientImpl client;
+
+ /**
+ * Initializes an instance of GalleryScriptVersionsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ GalleryScriptVersionsClientImpl(ComputeManagementClientImpl client) {
+ this.service = RestProxy.create(GalleryScriptVersionsService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ComputeManagementClientGalleryScriptVersions to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ComputeManagementClientGalleryScriptVersions")
+ public interface GalleryScriptVersionsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}/versions")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ApiErrorException.class)
+ Mono> listByGalleryScript(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("galleryName") String galleryName,
+ @PathParam("galleryScriptName") String galleryScriptName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}/versions/{galleryScriptVersionName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ApiErrorException.class)
+ Mono> get(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("galleryName") String galleryName,
+ @PathParam("galleryScriptName") String galleryScriptName,
+ @PathParam("galleryScriptVersionName") String galleryScriptVersionName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}/versions/{galleryScriptVersionName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ApiErrorException.class)
+ Mono>> createOrUpdate(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("galleryName") String galleryName,
+ @PathParam("galleryScriptName") String galleryScriptName,
+ @PathParam("galleryScriptVersionName") String galleryScriptVersionName,
+ @BodyParam("application/json") GalleryScriptVersionInner galleryScriptVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}/versions/{galleryScriptVersionName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ApiErrorException.class)
+ Mono>> update(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("galleryName") String galleryName,
+ @PathParam("galleryScriptName") String galleryScriptName,
+ @PathParam("galleryScriptVersionName") String galleryScriptVersionName,
+ @BodyParam("application/json") GalleryScriptVersionUpdate galleryScriptVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}/versions/{galleryScriptVersionName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ApiErrorException.class)
+ Mono>> delete(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("galleryName") String galleryName,
+ @PathParam("galleryScriptName") String galleryScriptName,
+ @PathParam("galleryScriptVersionName") String galleryScriptVersionName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ApiErrorException.class)
+ Mono> listByGalleryScriptNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * List gallery Script Versions in a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of GalleryScriptVersion items along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByGalleryScriptSinglePageAsync(String resourceGroupName,
+ String galleryName, String galleryScriptName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
+ }
+ if (galleryScriptName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryScriptName is required and cannot be null."));
+ }
+ final String apiVersion = "2025-03-03";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByGalleryScript(this.client.getEndpoint(), apiVersion,
+ this.client.getSubscriptionId(), resourceGroupName, galleryName, galleryScriptName, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List gallery Script Versions in a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of GalleryScriptVersion items along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByGalleryScriptSinglePageAsync(String resourceGroupName,
+ String galleryName, String galleryScriptName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
+ }
+ if (galleryScriptName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryScriptName is required and cannot be null."));
+ }
+ final String apiVersion = "2025-03-03";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByGalleryScript(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
+ resourceGroupName, galleryName, galleryScriptName, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * List gallery Script Versions in a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of GalleryScriptVersion items as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listByGalleryScriptAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName) {
+ return new PagedFlux<>(
+ () -> listByGalleryScriptSinglePageAsync(resourceGroupName, galleryName, galleryScriptName),
+ nextLink -> listByGalleryScriptNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List gallery Script Versions in a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of GalleryScriptVersion items as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByGalleryScriptAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, Context context) {
+ return new PagedFlux<>(
+ () -> listByGalleryScriptSinglePageAsync(resourceGroupName, galleryName, galleryScriptName, context),
+ nextLink -> listByGalleryScriptNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List gallery Script Versions in a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of GalleryScriptVersion items as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByGalleryScript(String resourceGroupName, String galleryName,
+ String galleryScriptName) {
+ return new PagedIterable<>(listByGalleryScriptAsync(resourceGroupName, galleryName, galleryScriptName));
+ }
+
+ /**
+ * List gallery Script Versions in a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of GalleryScriptVersion items as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByGalleryScript(String resourceGroupName, String galleryName,
+ String galleryScriptName, Context context) {
+ return new PagedIterable<>(
+ listByGalleryScriptAsync(resourceGroupName, galleryName, galleryScriptName, context));
+ }
+
+ /**
+ * Custom ArmResourceRead operation template with CloudError as Error.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
+ }
+ if (galleryScriptName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryScriptName is required and cannot be null."));
+ }
+ if (galleryScriptVersionName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter galleryScriptVersionName is required and cannot be null."));
+ }
+ final String apiVersion = "2025-03-03";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
+ resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Custom ArmResourceRead operation template with CloudError as Error.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
+ }
+ if (galleryScriptName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryScriptName is required and cannot be null."));
+ }
+ if (galleryScriptVersionName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter galleryScriptVersionName is required and cannot be null."));
+ }
+ final String apiVersion = "2025-03-03";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
+ galleryName, galleryScriptName, galleryScriptVersionName, accept, context);
+ }
+
+ /**
+ * Custom ArmResourceRead operation template with CloudError as Error.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName) {
+ return getWithResponseAsync(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Custom ArmResourceRead operation template with CloudError as Error.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName, Context context) {
+ return getWithResponseAsync(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName,
+ context).block();
+ }
+
+ /**
+ * Custom ArmResourceRead operation template with CloudError as Error.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public GalleryScriptVersionInner get(String resourceGroupName, String galleryName, String galleryScriptName,
+ String galleryScriptVersionName) {
+ return getWithResponse(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName,
+ Context.NONE).getValue();
+ }
+
+ /**
+ * Create or update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String galleryName, String galleryScriptName, String galleryScriptVersionName,
+ GalleryScriptVersionInner galleryScriptVersion) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
+ }
+ if (galleryScriptName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryScriptName is required and cannot be null."));
+ }
+ if (galleryScriptVersionName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter galleryScriptVersionName is required and cannot be null."));
+ }
+ if (galleryScriptVersion == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryScriptVersion is required and cannot be null."));
+ } else {
+ galleryScriptVersion.validate();
+ }
+ final String apiVersion = "2025-03-03";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion,
+ this.client.getSubscriptionId(), resourceGroupName, galleryName, galleryScriptName,
+ galleryScriptVersionName, galleryScriptVersion, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create or update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String galleryName, String galleryScriptName, String galleryScriptVersionName,
+ GalleryScriptVersionInner galleryScriptVersion, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
+ }
+ if (galleryScriptName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryScriptName is required and cannot be null."));
+ }
+ if (galleryScriptVersionName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter galleryScriptVersionName is required and cannot be null."));
+ }
+ if (galleryScriptVersion == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryScriptVersion is required and cannot be null."));
+ } else {
+ galleryScriptVersion.validate();
+ }
+ final String apiVersion = "2025-03-03";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
+ resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName, galleryScriptVersion, accept,
+ context);
+ }
+
+ /**
+ * Create or update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux, GalleryScriptVersionInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String galleryName, String galleryScriptName, String galleryScriptVersionName,
+ GalleryScriptVersionInner galleryScriptVersion) {
+ Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, galleryName,
+ galleryScriptName, galleryScriptVersionName, galleryScriptVersion);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), GalleryScriptVersionInner.class, GalleryScriptVersionInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Create or update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, GalleryScriptVersionInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String galleryName, String galleryScriptName, String galleryScriptVersionName,
+ GalleryScriptVersionInner galleryScriptVersion, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, galleryName,
+ galleryScriptName, galleryScriptVersionName, galleryScriptVersion, context);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), GalleryScriptVersionInner.class, GalleryScriptVersionInner.class, context);
+ }
+
+ /**
+ * Create or update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, GalleryScriptVersionInner> beginCreateOrUpdate(
+ String resourceGroupName, String galleryName, String galleryScriptName, String galleryScriptVersionName,
+ GalleryScriptVersionInner galleryScriptVersion) {
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName,
+ galleryScriptVersion)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create or update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, GalleryScriptVersionInner> beginCreateOrUpdate(
+ String resourceGroupName, String galleryName, String galleryScriptName, String galleryScriptVersionName,
+ GalleryScriptVersionInner galleryScriptVersion, Context context) {
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName,
+ galleryScriptVersion, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create or update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName, GalleryScriptVersionInner galleryScriptVersion) {
+ return beginCreateOrUpdateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName,
+ galleryScriptVersion).last().flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName, GalleryScriptVersionInner galleryScriptVersion,
+ Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName,
+ galleryScriptVersion, context).last().flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public GalleryScriptVersionInner createOrUpdate(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName, GalleryScriptVersionInner galleryScriptVersion) {
+ return createOrUpdateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName,
+ galleryScriptVersion).block();
+ }
+
+ /**
+ * Create or update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the create or update gallery Script Version 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public GalleryScriptVersionInner createOrUpdate(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName, GalleryScriptVersionInner galleryScriptVersion,
+ Context context) {
+ return createOrUpdateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName,
+ galleryScriptVersion, context).block();
+ }
+
+ /**
+ * Update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the update gallery Script Version operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> updateWithResponseAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName, GalleryScriptVersionUpdate galleryScriptVersion) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
+ }
+ if (galleryScriptName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryScriptName is required and cannot be null."));
+ }
+ if (galleryScriptVersionName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter galleryScriptVersionName is required and cannot be null."));
+ }
+ if (galleryScriptVersion == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryScriptVersion is required and cannot be null."));
+ } else {
+ galleryScriptVersion.validate();
+ }
+ final String apiVersion = "2025-03-03";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.update(this.client.getEndpoint(), apiVersion,
+ this.client.getSubscriptionId(), resourceGroupName, galleryName, galleryScriptName,
+ galleryScriptVersionName, galleryScriptVersion, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the update gallery Script Version 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName, GalleryScriptVersionUpdate galleryScriptVersion,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
+ }
+ if (galleryScriptName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryScriptName is required and cannot be null."));
+ }
+ if (galleryScriptVersionName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter galleryScriptVersionName is required and cannot be null."));
+ }
+ if (galleryScriptVersion == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryScriptVersion is required and cannot be null."));
+ } else {
+ galleryScriptVersion.validate();
+ }
+ final String apiVersion = "2025-03-03";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
+ galleryName, galleryScriptName, galleryScriptVersionName, galleryScriptVersion, accept, context);
+ }
+
+ /**
+ * Update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the update gallery Script Version operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux, GalleryScriptVersionInner> beginUpdateAsync(
+ String resourceGroupName, String galleryName, String galleryScriptName, String galleryScriptVersionName,
+ GalleryScriptVersionUpdate galleryScriptVersion) {
+ Mono>> mono = updateWithResponseAsync(resourceGroupName, galleryName,
+ galleryScriptName, galleryScriptVersionName, galleryScriptVersion);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), GalleryScriptVersionInner.class, GalleryScriptVersionInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the update gallery Script Version 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, GalleryScriptVersionInner> beginUpdateAsync(
+ String resourceGroupName, String galleryName, String galleryScriptName, String galleryScriptVersionName,
+ GalleryScriptVersionUpdate galleryScriptVersion, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = updateWithResponseAsync(resourceGroupName, galleryName,
+ galleryScriptName, galleryScriptVersionName, galleryScriptVersion, context);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), GalleryScriptVersionInner.class, GalleryScriptVersionInner.class, context);
+ }
+
+ /**
+ * Update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the update gallery Script Version operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, GalleryScriptVersionInner> beginUpdate(
+ String resourceGroupName, String galleryName, String galleryScriptName, String galleryScriptVersionName,
+ GalleryScriptVersionUpdate galleryScriptVersion) {
+ return this
+ .beginUpdateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName,
+ galleryScriptVersion)
+ .getSyncPoller();
+ }
+
+ /**
+ * Update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the update gallery Script Version 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, GalleryScriptVersionInner> beginUpdate(
+ String resourceGroupName, String galleryName, String galleryScriptName, String galleryScriptVersionName,
+ GalleryScriptVersionUpdate galleryScriptVersion, Context context) {
+ return this
+ .beginUpdateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName,
+ galleryScriptVersion, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the update gallery Script Version operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono updateAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName, GalleryScriptVersionUpdate galleryScriptVersion) {
+ return beginUpdateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName,
+ galleryScriptVersion).last().flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the update gallery Script Version 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName, GalleryScriptVersionUpdate galleryScriptVersion,
+ Context context) {
+ return beginUpdateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName,
+ galleryScriptVersion, context).last().flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the update gallery Script Version operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public GalleryScriptVersionInner update(String resourceGroupName, String galleryName, String galleryScriptName,
+ String galleryScriptVersionName, GalleryScriptVersionUpdate galleryScriptVersion) {
+ return updateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName,
+ galleryScriptVersion).block();
+ }
+
+ /**
+ * Update a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @param galleryScriptVersion Parameters supplied to the update gallery Script Version 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public GalleryScriptVersionInner update(String resourceGroupName, String galleryName, String galleryScriptName,
+ String galleryScriptVersionName, GalleryScriptVersionUpdate galleryScriptVersion, Context context) {
+ return updateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName,
+ galleryScriptVersion, context).block();
+ }
+
+ /**
+ * Delete a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> deleteWithResponseAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
+ }
+ if (galleryScriptName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryScriptName is required and cannot be null."));
+ }
+ if (galleryScriptVersionName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter galleryScriptVersionName is required and cannot be null."));
+ }
+ final String apiVersion = "2025-03-03";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
+ resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
+ }
+ if (galleryScriptName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryScriptName is required and cannot be null."));
+ }
+ if (galleryScriptVersionName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter galleryScriptVersionName is required and cannot be null."));
+ }
+ final String apiVersion = "2025-03-03";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
+ galleryName, galleryScriptName, galleryScriptVersionName, accept, context);
+ }
+
+ /**
+ * Delete a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName) {
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Delete a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, galleryName,
+ galleryScriptName, galleryScriptVersionName, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
+ }
+
+ /**
+ * Delete a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName) {
+ return this.beginDeleteAsync(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName)
+ .getSyncPoller();
+ }
+
+ /**
+ * Delete a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String galleryName,
+ String galleryScriptName, String galleryScriptVersionName, Context context) {
+ return this
+ .beginDeleteAsync(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Delete a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(String resourceGroupName, String galleryName, String galleryScriptName,
+ String galleryScriptVersionName) {
+ return beginDeleteAsync(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String galleryName, String galleryScriptName,
+ String galleryScriptVersionName, Context context) {
+ return beginDeleteAsync(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException 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)
+ public void delete(String resourceGroupName, String galleryName, String galleryScriptName,
+ String galleryScriptVersionName) {
+ deleteAsync(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName).block();
+ }
+
+ /**
+ * Delete a gallery Script Version.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScriptVersionName The name of the gallery Script Version to be retrieved.
+ * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String galleryName, String galleryScriptName,
+ String galleryScriptVersionName, Context context) {
+ deleteAsync(resourceGroupName, galleryName, galleryScriptName, galleryScriptVersionName, context).block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of GalleryScriptVersion items along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByGalleryScriptNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listByGalleryScriptNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of GalleryScriptVersion items along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByGalleryScriptNextSinglePageAsync(String nextLink,
+ Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listByGalleryScriptNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryScriptsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryScriptsClientImpl.java
new file mode 100644
index 000000000000..4fa485a98fee
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryScriptsClientImpl.java
@@ -0,0 +1,1231 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.compute.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+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.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.compute.fluent.GalleryScriptsClient;
+import com.azure.resourcemanager.compute.fluent.models.GalleryScriptInner;
+import com.azure.resourcemanager.compute.models.ApiErrorException;
+import com.azure.resourcemanager.compute.models.GalleryScriptList;
+import com.azure.resourcemanager.compute.models.GalleryScriptUpdate;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in GalleryScriptsClient.
+ */
+public final class GalleryScriptsClientImpl implements GalleryScriptsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final GalleryScriptsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final ComputeManagementClientImpl client;
+
+ /**
+ * Initializes an instance of GalleryScriptsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ GalleryScriptsClientImpl(ComputeManagementClientImpl client) {
+ this.service
+ = RestProxy.create(GalleryScriptsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ComputeManagementClientGalleryScripts to be used by the proxy service
+ * to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ComputeManagementClientGalleryScripts")
+ public interface GalleryScriptsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ApiErrorException.class)
+ Mono> listByGallery(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("galleryName") String galleryName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ApiErrorException.class)
+ Mono> get(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("galleryName") String galleryName,
+ @PathParam("galleryScriptName") String galleryScriptName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ApiErrorException.class)
+ Mono>> createOrUpdate(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("galleryName") String galleryName,
+ @PathParam("galleryScriptName") String galleryScriptName,
+ @BodyParam("application/json") GalleryScriptInner galleryScript, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ApiErrorException.class)
+ Mono>> update(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("galleryName") String galleryName,
+ @PathParam("galleryScriptName") String galleryScriptName,
+ @BodyParam("application/json") GalleryScriptUpdate galleryScript, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/scripts/{galleryScriptName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ApiErrorException.class)
+ Mono>> delete(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("galleryName") String galleryName,
+ @PathParam("galleryScriptName") String galleryScriptName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ApiErrorException.class)
+ Mono> listByGalleryNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * List gallery Script Definitions in a gallery.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List Gallery Script operation response along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByGallerySinglePageAsync(String resourceGroupName,
+ String galleryName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
+ }
+ final String apiVersion = "2025-03-03";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByGallery(this.client.getEndpoint(), apiVersion,
+ this.client.getSubscriptionId(), resourceGroupName, galleryName, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List gallery Script Definitions in a gallery.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List Gallery Script operation response along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByGallerySinglePageAsync(String resourceGroupName,
+ String galleryName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
+ }
+ final String apiVersion = "2025-03-03";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByGallery(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
+ galleryName, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * List gallery Script Definitions in a gallery.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List Gallery Script operation response as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listByGalleryAsync(String resourceGroupName, String galleryName) {
+ return new PagedFlux<>(() -> listByGallerySinglePageAsync(resourceGroupName, galleryName),
+ nextLink -> listByGalleryNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List gallery Script Definitions in a gallery.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List Gallery Script operation response as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByGalleryAsync(String resourceGroupName, String galleryName,
+ Context context) {
+ return new PagedFlux<>(() -> listByGallerySinglePageAsync(resourceGroupName, galleryName, context),
+ nextLink -> listByGalleryNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List gallery Script Definitions in a gallery.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List Gallery Script operation response as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByGallery(String resourceGroupName, String galleryName) {
+ return new PagedIterable<>(listByGalleryAsync(resourceGroupName, galleryName));
+ }
+
+ /**
+ * List gallery Script Definitions in a gallery.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List Gallery Script operation response as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByGallery(String resourceGroupName, String galleryName,
+ Context context) {
+ return new PagedIterable<>(listByGalleryAsync(resourceGroupName, galleryName, context));
+ }
+
+ /**
+ * Retrieves information about a gallery script definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getWithResponseAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
+ }
+ if (galleryScriptName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryScriptName is required and cannot be null."));
+ }
+ final String apiVersion = "2025-03-03";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
+ resourceGroupName, galleryName, galleryScriptName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Retrieves information about a gallery script definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
+ }
+ if (galleryScriptName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryScriptName is required and cannot be null."));
+ }
+ final String apiVersion = "2025-03-03";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
+ galleryName, galleryScriptName, accept, context);
+ }
+
+ /**
+ * Retrieves information about a gallery script definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getAsync(String resourceGroupName, String galleryName, String galleryScriptName) {
+ return getWithResponseAsync(resourceGroupName, galleryName, galleryScriptName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Retrieves information about a gallery script definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String resourceGroupName, String galleryName,
+ String galleryScriptName, Context context) {
+ return getWithResponseAsync(resourceGroupName, galleryName, galleryScriptName, context).block();
+ }
+
+ /**
+ * Retrieves information about a gallery script definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public GalleryScriptInner get(String resourceGroupName, String galleryName, String galleryScriptName) {
+ return getWithResponse(resourceGroupName, galleryName, galleryScriptName, Context.NONE).getValue();
+ }
+
+ /**
+ * Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common
+ * scripts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the create or update gallery Script operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String galleryName, String galleryScriptName, GalleryScriptInner galleryScript) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
+ }
+ if (galleryScriptName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryScriptName is required and cannot be null."));
+ }
+ if (galleryScript == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryScript is required and cannot be null."));
+ } else {
+ galleryScript.validate();
+ }
+ final String apiVersion = "2025-03-03";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion,
+ this.client.getSubscriptionId(), resourceGroupName, galleryName, galleryScriptName, galleryScript,
+ accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common
+ * scripts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the create or update gallery Script 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String galleryName, String galleryScriptName, GalleryScriptInner galleryScript, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
+ }
+ if (galleryScriptName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryScriptName is required and cannot be null."));
+ }
+ if (galleryScript == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryScript is required and cannot be null."));
+ } else {
+ galleryScript.validate();
+ }
+ final String apiVersion = "2025-03-03";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
+ resourceGroupName, galleryName, galleryScriptName, galleryScript, accept, context);
+ }
+
+ /**
+ * Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common
+ * scripts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the create or update gallery Script operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of specifies information about the gallery Script Definition that you
+ * want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux, GalleryScriptInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String galleryName, String galleryScriptName, GalleryScriptInner galleryScript) {
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, galleryName, galleryScriptName, galleryScript);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ GalleryScriptInner.class, GalleryScriptInner.class, this.client.getContext());
+ }
+
+ /**
+ * Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common
+ * scripts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the create or update gallery Script 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of specifies information about the gallery Script Definition that you
+ * want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, GalleryScriptInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String galleryName, String galleryScriptName, GalleryScriptInner galleryScript,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, galleryName,
+ galleryScriptName, galleryScript, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ GalleryScriptInner.class, GalleryScriptInner.class, context);
+ }
+
+ /**
+ * Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common
+ * scripts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the create or update gallery Script operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of specifies information about the gallery Script Definition that you
+ * want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, GalleryScriptInner> beginCreateOrUpdate(String resourceGroupName,
+ String galleryName, String galleryScriptName, GalleryScriptInner galleryScript) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScript)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common
+ * scripts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the create or update gallery Script 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of specifies information about the gallery Script Definition that you
+ * want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, GalleryScriptInner> beginCreateOrUpdate(String resourceGroupName,
+ String galleryName, String galleryScriptName, GalleryScriptInner galleryScript, Context context) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScript, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common
+ * scripts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the create or update gallery Script operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, GalleryScriptInner galleryScript) {
+ return beginCreateOrUpdateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScript).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common
+ * scripts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the create or update gallery Script 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, GalleryScriptInner galleryScript, Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScript, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common
+ * scripts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the create or update gallery Script operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public GalleryScriptInner createOrUpdate(String resourceGroupName, String galleryName, String galleryScriptName,
+ GalleryScriptInner galleryScript) {
+ return createOrUpdateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScript).block();
+ }
+
+ /**
+ * Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common
+ * scripts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the create or update gallery Script 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public GalleryScriptInner createOrUpdate(String resourceGroupName, String galleryName, String galleryScriptName,
+ GalleryScriptInner galleryScript, Context context) {
+ return createOrUpdateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScript, context).block();
+ }
+
+ /**
+ * Update a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the update gallery Script operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> updateWithResponseAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, GalleryScriptUpdate galleryScript) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
+ }
+ if (galleryScriptName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryScriptName is required and cannot be null."));
+ }
+ if (galleryScript == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryScript is required and cannot be null."));
+ } else {
+ galleryScript.validate();
+ }
+ final String apiVersion = "2025-03-03";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
+ resourceGroupName, galleryName, galleryScriptName, galleryScript, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Update a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the update gallery Script 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, GalleryScriptUpdate galleryScript, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
+ }
+ if (galleryScriptName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryScriptName is required and cannot be null."));
+ }
+ if (galleryScript == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryScript is required and cannot be null."));
+ } else {
+ galleryScript.validate();
+ }
+ final String apiVersion = "2025-03-03";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
+ galleryName, galleryScriptName, galleryScript, accept, context);
+ }
+
+ /**
+ * Update a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the update gallery Script operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of specifies information about the gallery Script Definition that you
+ * want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux, GalleryScriptInner> beginUpdateAsync(String resourceGroupName,
+ String galleryName, String galleryScriptName, GalleryScriptUpdate galleryScript) {
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, galleryName, galleryScriptName, galleryScript);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ GalleryScriptInner.class, GalleryScriptInner.class, this.client.getContext());
+ }
+
+ /**
+ * Update a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the update gallery Script 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of specifies information about the gallery Script Definition that you
+ * want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, GalleryScriptInner> beginUpdateAsync(String resourceGroupName,
+ String galleryName, String galleryScriptName, GalleryScriptUpdate galleryScript, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, galleryName, galleryScriptName, galleryScript, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ GalleryScriptInner.class, GalleryScriptInner.class, context);
+ }
+
+ /**
+ * Update a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the update gallery Script operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of specifies information about the gallery Script Definition that you
+ * want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, GalleryScriptInner> beginUpdate(String resourceGroupName,
+ String galleryName, String galleryScriptName, GalleryScriptUpdate galleryScript) {
+ return this.beginUpdateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScript).getSyncPoller();
+ }
+
+ /**
+ * Update a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the update gallery Script 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of specifies information about the gallery Script Definition that you
+ * want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, GalleryScriptInner> beginUpdate(String resourceGroupName,
+ String galleryName, String galleryScriptName, GalleryScriptUpdate galleryScript, Context context) {
+ return this.beginUpdateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScript, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Update a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the update gallery Script operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono updateAsync(String resourceGroupName, String galleryName, String galleryScriptName,
+ GalleryScriptUpdate galleryScript) {
+ return beginUpdateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScript).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the update gallery Script 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String galleryName, String galleryScriptName,
+ GalleryScriptUpdate galleryScript, Context context) {
+ return beginUpdateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScript, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the update gallery Script operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public GalleryScriptInner update(String resourceGroupName, String galleryName, String galleryScriptName,
+ GalleryScriptUpdate galleryScript) {
+ return updateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScript).block();
+ }
+
+ /**
+ * Update a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @param galleryScript Parameters supplied to the update gallery Script 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the gallery Script Definition that you want to create or update.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public GalleryScriptInner update(String resourceGroupName, String galleryName, String galleryScriptName,
+ GalleryScriptUpdate galleryScript, Context context) {
+ return updateAsync(resourceGroupName, galleryName, galleryScriptName, galleryScript, context).block();
+ }
+
+ /**
+ * Delete a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> deleteWithResponseAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
+ }
+ if (galleryScriptName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryScriptName is required and cannot be null."));
+ }
+ final String apiVersion = "2025-03-03";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
+ this.client.getSubscriptionId(), resourceGroupName, galleryName, galleryScriptName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (galleryName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter galleryName is required and cannot be null."));
+ }
+ if (galleryScriptName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter galleryScriptName is required and cannot be null."));
+ }
+ final String apiVersion = "2025-03-03";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
+ galleryName, galleryScriptName, accept, context);
+ }
+
+ /**
+ * Delete a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName) {
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, galleryName, galleryScriptName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Delete a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String galleryName,
+ String galleryScriptName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, galleryName, galleryScriptName, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
+ }
+
+ /**
+ * Delete a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String galleryName,
+ String galleryScriptName) {
+ return this.beginDeleteAsync(resourceGroupName, galleryName, galleryScriptName).getSyncPoller();
+ }
+
+ /**
+ * Delete a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String galleryName,
+ String galleryScriptName, Context context) {
+ return this.beginDeleteAsync(resourceGroupName, galleryName, galleryScriptName, context).getSyncPoller();
+ }
+
+ /**
+ * Delete a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(String resourceGroupName, String galleryName, String galleryScriptName) {
+ return beginDeleteAsync(resourceGroupName, galleryName, galleryScriptName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String galleryName, String galleryScriptName,
+ Context context) {
+ return beginDeleteAsync(resourceGroupName, galleryName, galleryScriptName, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException 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)
+ public void delete(String resourceGroupName, String galleryName, String galleryScriptName) {
+ deleteAsync(resourceGroupName, galleryName, galleryScriptName).block();
+ }
+
+ /**
+ * Delete a gallery Script Definition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param galleryName The name of the Shared Image Gallery.
+ * @param galleryScriptName The name of the gallery Script Definition to be retrieved.
+ * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String galleryName, String galleryScriptName, Context context) {
+ deleteAsync(resourceGroupName, galleryName, galleryScriptName, context).block();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List Gallery Script operation response along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByGalleryNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByGalleryNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List Gallery Script operation response along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByGalleryNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listByGalleryNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GallerySharingProfilesClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GallerySharingProfilesClientImpl.java
index 7bb8713b3d2f..e55cf741a9b4 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GallerySharingProfilesClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GallerySharingProfilesClientImpl.java
@@ -109,7 +109,7 @@ public Mono>> updateWithResponseAsync(String resourceG
} else {
sharingUpdate.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.update(this.client.getEndpoint(), apiVersion,
@@ -153,7 +153,7 @@ private Mono>> updateWithResponseAsync(String resource
} else {
sharingUpdate.validate();
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/SharedGalleriesClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/SharedGalleriesClientImpl.java
index 9cf0170437e0..515aeac03e6b 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/SharedGalleriesClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/SharedGalleriesClientImpl.java
@@ -113,7 +113,7 @@ private Mono> listSinglePageAsync(String locat
if (location == null) {
return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -149,7 +149,7 @@ private Mono> listSinglePageAsync(String locat
if (location == null) {
return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -267,7 +267,7 @@ public Mono> getWithResponseAsync(String location,
return Mono
.error(new IllegalArgumentException("Parameter galleryUniqueName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -305,7 +305,7 @@ private Mono> getWithResponseAsync(String location,
return Mono
.error(new IllegalArgumentException("Parameter galleryUniqueName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location,
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/SharedGalleryImageVersionsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/SharedGalleryImageVersionsClientImpl.java
index aae8584a7748..20cbfaa1a9f6 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/SharedGalleryImageVersionsClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/SharedGalleryImageVersionsClientImpl.java
@@ -129,7 +129,7 @@ private Mono> listSinglePageAsync(
return Mono
.error(new IllegalArgumentException("Parameter galleryImageName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -176,7 +176,7 @@ private Mono> listSinglePageAsync(
return Mono
.error(new IllegalArgumentException("Parameter galleryImageName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -331,7 +331,7 @@ public Mono> getWithResponseAsync(Strin
return Mono.error(
new IllegalArgumentException("Parameter galleryImageVersionName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -382,7 +382,7 @@ private Mono> getWithResponseAsync(Stri
return Mono.error(
new IllegalArgumentException("Parameter galleryImageVersionName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location,
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/SharedGalleryImagesClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/SharedGalleryImagesClientImpl.java
index f00a1d103fe3..40fffa90af8a 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/SharedGalleryImagesClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/SharedGalleryImagesClientImpl.java
@@ -120,7 +120,7 @@ private Mono> listSinglePageAsync(String
return Mono
.error(new IllegalArgumentException("Parameter galleryUniqueName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -161,7 +161,7 @@ private Mono> listSinglePageAsync(String
return Mono
.error(new IllegalArgumentException("Parameter galleryUniqueName is required and cannot be null."));
}
- final String apiVersion = "2024-03-03";
+ final String apiVersion = "2025-03-03";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -294,7 +294,7 @@ public Mono