diff --git a/eng/emitter-package-lock.json b/eng/emitter-package-lock.json index 43389f85d695..ab99df255956 100644 --- a/eng/emitter-package-lock.json +++ b/eng/emitter-package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@azure-tools/typespec-java": "0.37.1" + "@azure-tools/typespec-java": "/mnt/vss/_work/1/s/autorest.java/typespec-extension/azure-tools-typespec-java-0.37.2.tgz" }, "devDependencies": { "@azure-tools/typespec-autorest": "0.62.0", @@ -173,9 +173,9 @@ } }, "node_modules/@azure-tools/typespec-java": { - "version": "0.37.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-java/-/typespec-java-0.37.1.tgz", - "integrity": "sha512-8tjfaOURstBel60NGE41Y8ok+sHkjTRTQNFc8oFghaVuNTtSU1GBHGmI8NTKOMdqsgpC18/Cihiz7fdEYL4P9A==", + "version": "0.37.2", + "resolved": "file:../../autorest.java/typespec-extension/azure-tools-typespec-java-0.37.2.tgz", + "integrity": "sha512-1pDwS9l2mSpf2f9FEnUgvWtEaSwdBEvISbyxB9D/YLE6TuskKj8afZLDTtUYAAHkexoMkYFdfrIWXxjy4IzNWA==", "license": "MIT", "dependencies": { "@autorest/codemodel": "~4.20.1", diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 19b8260968d9..71132185c190 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,7 +1,7 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-java": "0.37.1" + "@azure-tools/typespec-java": "/mnt/vss/_work/1/s/autorest.java/typespec-extension/azure-tools-typespec-java-0.37.2.tgz" }, "devDependencies": { "@azure-tools/typespec-autorest": "0.62.0", diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CachePropertiesExportPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CachePropertiesExportPolicy.java deleted file mode 100644 index 1300d4693b12..000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CachePropertiesExportPolicy.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.List; - -/** - * Set of export policy rules. - */ -@Fluent -public final class CachePropertiesExportPolicy implements JsonSerializable { - /* - * Export policy rule - */ - private List rules; - - /** - * Creates an instance of CachePropertiesExportPolicy class. - */ - public CachePropertiesExportPolicy() { - } - - /** - * Get the rules property: Export policy rule. - * - * @return the rules value. - */ - public List rules() { - return this.rules; - } - - /** - * Set the rules property: Export policy rule. - * - * @param rules the rules value to set. - * @return the CachePropertiesExportPolicy object itself. - */ - public CachePropertiesExportPolicy withRules(List rules) { - this.rules = rules; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (rules() != null) { - rules().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("rules", this.rules, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of CachePropertiesExportPolicy from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of CachePropertiesExportPolicy if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. - * @throws IOException If an error occurs while reading the CachePropertiesExportPolicy. - */ - public static CachePropertiesExportPolicy fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - CachePropertiesExportPolicy deserializedCachePropertiesExportPolicy = new CachePropertiesExportPolicy(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("rules".equals(fieldName)) { - List rules = reader.readArray(reader1 -> ExportPolicyRule.fromJson(reader1)); - deserializedCachePropertiesExportPolicy.rules = rules; - } else { - reader.skipChildren(); - } - } - - return deserializedCachePropertiesExportPolicy; - }); - } -}