diff --git a/sdk/terraform/azure-resourcemanager-terraform/CHANGELOG.md b/sdk/terraform/azure-resourcemanager-terraform/CHANGELOG.md
index 024cc8c563dd..f1288e909abd 100644
--- a/sdk/terraform/azure-resourcemanager-terraform/CHANGELOG.md
+++ b/sdk/terraform/azure-resourcemanager-terraform/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
+## 1.0.0-beta.2 (2025-02-28)
+
+- Azure Resource Manager Azure Terraform client library for Java. This package contains Microsoft Azure SDK for Azure Terraform Management SDK. The Azure Terraform management API provides a RESTful set of web services that used to manage your Azure Terraform resources. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/terraform/azure-resourcemanager-terraform/README.md b/sdk/terraform/azure-resourcemanager-terraform/README.md
index 213c3eb43788..7b2622fe834c 100644
--- a/sdk/terraform/azure-resourcemanager-terraform/README.md
+++ b/sdk/terraform/azure-resourcemanager-terraform/README.md
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-terraform
- 1.0.0-beta.1
+ 1.0.0-beta.2
```
[//]: # ({x-version-update-end})
@@ -52,7 +52,7 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
```java
-AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
@@ -60,7 +60,7 @@ AzureTerraformManager manager = AzureTerraformManager
.authenticate(credential, profile);
```
-The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
See [Authentication][authenticate] for more options.
@@ -100,5 +100,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
-
-
diff --git a/sdk/terraform/azure-resourcemanager-terraform/pom.xml b/sdk/terraform/azure-resourcemanager-terraform/pom.xml
index 9eb56b1ba941..4f58ac87386a 100644
--- a/sdk/terraform/azure-resourcemanager-terraform/pom.xml
+++ b/sdk/terraform/azure-resourcemanager-terraform/pom.xml
@@ -46,7 +46,6 @@
0
0
true
- false
diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/AuthorizationScopeFilter.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/AuthorizationScopeFilter.java
new file mode 100644
index 000000000000..2aab1f5ba2c5
--- /dev/null
+++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/AuthorizationScopeFilter.java
@@ -0,0 +1,61 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.terraform.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * The Azure Resource Graph Authorization Scope Filter parameter.
+ */
+public final class AuthorizationScopeFilter extends ExpandableStringEnum {
+ /**
+ * Returns assignments for the given scope and all child scopes.
+ */
+ public static final AuthorizationScopeFilter AT_SCOPE_AND_BELOW = fromString("AtScopeAndBelow");
+
+ /**
+ * Returns assignments for the given scope and all parent scopes, but not child scopes.
+ */
+ public static final AuthorizationScopeFilter AT_SCOPE_AND_ABOVE = fromString("AtScopeAndAbove");
+
+ /**
+ * Returns assignments for the given scope, all parent scopes, and all child scopes.
+ */
+ public static final AuthorizationScopeFilter AT_SCOPE_ABOVE_AND_BELOW = fromString("AtScopeAboveAndBelow");
+
+ /**
+ * Returns assignments only for the given scope; no parent or child scopes are included.
+ */
+ public static final AuthorizationScopeFilter AT_SCOPE_EXACT = fromString("AtScopeExact");
+
+ /**
+ * Creates a new instance of AuthorizationScopeFilter value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public AuthorizationScopeFilter() {
+ }
+
+ /**
+ * Creates or finds a AuthorizationScopeFilter from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding AuthorizationScopeFilter.
+ */
+ public static AuthorizationScopeFilter fromString(String name) {
+ return fromString(name, AuthorizationScopeFilter.class);
+ }
+
+ /**
+ * Gets known AuthorizationScopeFilter values.
+ *
+ * @return known AuthorizationScopeFilter values.
+ */
+ public static Collection values() {
+ return values(AuthorizationScopeFilter.class);
+ }
+}
diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/ExportQuery.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/ExportQuery.java
index 027be1acfee0..92f68506bab1 100644
--- a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/ExportQuery.java
+++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/ExportQuery.java
@@ -37,6 +37,16 @@ public final class ExportQuery extends BaseExportModel {
*/
private Boolean recursive;
+ /*
+ * The ARG table name
+ */
+ private String table;
+
+ /*
+ * The ARG Scope Filter parameter
+ */
+ private AuthorizationScopeFilter authorizationScopeFilter;
+
/**
* Creates an instance of ExportQuery class.
*/
@@ -115,6 +125,46 @@ public ExportQuery withRecursive(Boolean recursive) {
return this;
}
+ /**
+ * Get the table property: The ARG table name.
+ *
+ * @return the table value.
+ */
+ public String table() {
+ return this.table;
+ }
+
+ /**
+ * Set the table property: The ARG table name.
+ *
+ * @param table the table value to set.
+ * @return the ExportQuery object itself.
+ */
+ public ExportQuery withTable(String table) {
+ this.table = table;
+ return this;
+ }
+
+ /**
+ * Get the authorizationScopeFilter property: The ARG Scope Filter parameter.
+ *
+ * @return the authorizationScopeFilter value.
+ */
+ public AuthorizationScopeFilter authorizationScopeFilter() {
+ return this.authorizationScopeFilter;
+ }
+
+ /**
+ * Set the authorizationScopeFilter property: The ARG Scope Filter parameter.
+ *
+ * @param authorizationScopeFilter the authorizationScopeFilter value to set.
+ * @return the ExportQuery object itself.
+ */
+ public ExportQuery withAuthorizationScopeFilter(AuthorizationScopeFilter authorizationScopeFilter) {
+ this.authorizationScopeFilter = authorizationScopeFilter;
+ return this;
+ }
+
/**
* {@inheritDoc}
*/
@@ -170,6 +220,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString());
jsonWriter.writeStringField("namePattern", this.namePattern);
jsonWriter.writeBooleanField("recursive", this.recursive);
+ jsonWriter.writeStringField("table", this.table);
+ jsonWriter.writeStringField("authorizationScopeFilter",
+ this.authorizationScopeFilter == null ? null : this.authorizationScopeFilter.toString());
return jsonWriter.writeEndObject();
}
@@ -203,6 +256,11 @@ public static ExportQuery fromJson(JsonReader jsonReader) throws IOException {
deserializedExportQuery.namePattern = reader.getString();
} else if ("recursive".equals(fieldName)) {
deserializedExportQuery.recursive = reader.getNullable(JsonReader::getBoolean);
+ } else if ("table".equals(fieldName)) {
+ deserializedExportQuery.table = reader.getString();
+ } else if ("authorizationScopeFilter".equals(fieldName)) {
+ deserializedExportQuery.authorizationScopeFilter
+ = AuthorizationScopeFilter.fromString(reader.getString());
} else {
reader.skipChildren();
}
diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/ExportQueryTests.java b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/ExportQueryTests.java
deleted file mode 100644
index 2c3ec3df3177..000000000000
--- a/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/ExportQueryTests.java
+++ /dev/null
@@ -1,42 +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.terraform.generated;
-
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.terraform.models.ExportQuery;
-import com.azure.resourcemanager.terraform.models.TargetProvider;
-import org.junit.jupiter.api.Assertions;
-
-public final class ExportQueryTests {
- @org.junit.jupiter.api.Test
- public void testDeserialize() throws Exception {
- ExportQuery model = BinaryData.fromString(
- "{\"type\":\"ExportQuery\",\"query\":\"vg\",\"namePattern\":\"zsymglzufcyzkohd\",\"recursive\":true,\"targetProvider\":\"azurerm\",\"fullProperties\":false,\"maskSensitive\":true}")
- .toObject(ExportQuery.class);
- Assertions.assertEquals(TargetProvider.AZURERM, model.targetProvider());
- Assertions.assertEquals(false, model.fullProperties());
- Assertions.assertEquals(true, model.maskSensitive());
- Assertions.assertEquals("vg", model.query());
- Assertions.assertEquals("zsymglzufcyzkohd", model.namePattern());
- Assertions.assertEquals(true, model.recursive());
- }
-
- @org.junit.jupiter.api.Test
- public void testSerialize() throws Exception {
- ExportQuery model = new ExportQuery().withTargetProvider(TargetProvider.AZURERM)
- .withFullProperties(false)
- .withMaskSensitive(true)
- .withQuery("vg")
- .withNamePattern("zsymglzufcyzkohd")
- .withRecursive(true);
- model = BinaryData.fromObject(model).toObject(ExportQuery.class);
- Assertions.assertEquals(TargetProvider.AZURERM, model.targetProvider());
- Assertions.assertEquals(false, model.fullProperties());
- Assertions.assertEquals(true, model.maskSensitive());
- Assertions.assertEquals("vg", model.query());
- Assertions.assertEquals("zsymglzufcyzkohd", model.namePattern());
- Assertions.assertEquals(true, model.recursive());
- }
-}
diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/ExportResourceGroupTests.java b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/ExportResourceGroupTests.java
index f06f727717e8..693dca6c1b43 100644
--- a/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/ExportResourceGroupTests.java
+++ b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/ExportResourceGroupTests.java
@@ -13,27 +13,27 @@ public final class ExportResourceGroupTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ExportResourceGroup model = BinaryData.fromString(
- "{\"type\":\"ExportResourceGroup\",\"resourceGroupName\":\"czbysc\",\"namePattern\":\"q\",\"targetProvider\":\"azurerm\",\"fullProperties\":false,\"maskSensitive\":true}")
+ "{\"type\":\"ExportResourceGroup\",\"resourceGroupName\":\"wby\",\"namePattern\":\"k\",\"targetProvider\":\"azapi\",\"fullProperties\":false,\"maskSensitive\":false}")
.toObject(ExportResourceGroup.class);
- Assertions.assertEquals(TargetProvider.AZURERM, model.targetProvider());
+ Assertions.assertEquals(TargetProvider.AZAPI, model.targetProvider());
Assertions.assertEquals(false, model.fullProperties());
- Assertions.assertEquals(true, model.maskSensitive());
- Assertions.assertEquals("czbysc", model.resourceGroupName());
- Assertions.assertEquals("q", model.namePattern());
+ Assertions.assertEquals(false, model.maskSensitive());
+ Assertions.assertEquals("wby", model.resourceGroupName());
+ Assertions.assertEquals("k", model.namePattern());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- ExportResourceGroup model = new ExportResourceGroup().withTargetProvider(TargetProvider.AZURERM)
+ ExportResourceGroup model = new ExportResourceGroup().withTargetProvider(TargetProvider.AZAPI)
.withFullProperties(false)
- .withMaskSensitive(true)
- .withResourceGroupName("czbysc")
- .withNamePattern("q");
+ .withMaskSensitive(false)
+ .withResourceGroupName("wby")
+ .withNamePattern("k");
model = BinaryData.fromObject(model).toObject(ExportResourceGroup.class);
- Assertions.assertEquals(TargetProvider.AZURERM, model.targetProvider());
+ Assertions.assertEquals(TargetProvider.AZAPI, model.targetProvider());
Assertions.assertEquals(false, model.fullProperties());
- Assertions.assertEquals(true, model.maskSensitive());
- Assertions.assertEquals("czbysc", model.resourceGroupName());
- Assertions.assertEquals("q", model.namePattern());
+ Assertions.assertEquals(false, model.maskSensitive());
+ Assertions.assertEquals("wby", model.resourceGroupName());
+ Assertions.assertEquals("k", model.namePattern());
}
}
diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/ExportResourceTests.java b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/ExportResourceTests.java
index 92387330be9a..664eca6e6396 100644
--- a/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/ExportResourceTests.java
+++ b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/ExportResourceTests.java
@@ -14,33 +14,33 @@ public final class ExportResourceTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ExportResource model = BinaryData.fromString(
- "{\"type\":\"ExportResource\",\"resourceIds\":[\"bj\"],\"resourceName\":\"a\",\"resourceType\":\"th\",\"namePattern\":\"hab\",\"targetProvider\":\"azapi\",\"fullProperties\":true,\"maskSensitive\":false}")
+ "{\"type\":\"ExportResource\",\"resourceIds\":[\"s\"],\"resourceName\":\"ithxqhabifpi\",\"resourceType\":\"wczbys\",\"namePattern\":\"pqxu\",\"targetProvider\":\"azurerm\",\"fullProperties\":true,\"maskSensitive\":true}")
.toObject(ExportResource.class);
- Assertions.assertEquals(TargetProvider.AZAPI, model.targetProvider());
+ Assertions.assertEquals(TargetProvider.AZURERM, model.targetProvider());
Assertions.assertEquals(true, model.fullProperties());
- Assertions.assertEquals(false, model.maskSensitive());
- Assertions.assertEquals("bj", model.resourceIds().get(0));
- Assertions.assertEquals("a", model.resourceName());
- Assertions.assertEquals("th", model.resourceType());
- Assertions.assertEquals("hab", model.namePattern());
+ Assertions.assertEquals(true, model.maskSensitive());
+ Assertions.assertEquals("s", model.resourceIds().get(0));
+ Assertions.assertEquals("ithxqhabifpi", model.resourceName());
+ Assertions.assertEquals("wczbys", model.resourceType());
+ Assertions.assertEquals("pqxu", model.namePattern());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- ExportResource model = new ExportResource().withTargetProvider(TargetProvider.AZAPI)
+ ExportResource model = new ExportResource().withTargetProvider(TargetProvider.AZURERM)
.withFullProperties(true)
- .withMaskSensitive(false)
- .withResourceIds(Arrays.asList("bj"))
- .withResourceName("a")
- .withResourceType("th")
- .withNamePattern("hab");
+ .withMaskSensitive(true)
+ .withResourceIds(Arrays.asList("s"))
+ .withResourceName("ithxqhabifpi")
+ .withResourceType("wczbys")
+ .withNamePattern("pqxu");
model = BinaryData.fromObject(model).toObject(ExportResource.class);
- Assertions.assertEquals(TargetProvider.AZAPI, model.targetProvider());
+ Assertions.assertEquals(TargetProvider.AZURERM, model.targetProvider());
Assertions.assertEquals(true, model.fullProperties());
- Assertions.assertEquals(false, model.maskSensitive());
- Assertions.assertEquals("bj", model.resourceIds().get(0));
- Assertions.assertEquals("a", model.resourceName());
- Assertions.assertEquals("th", model.resourceType());
- Assertions.assertEquals("hab", model.namePattern());
+ Assertions.assertEquals(true, model.maskSensitive());
+ Assertions.assertEquals("s", model.resourceIds().get(0));
+ Assertions.assertEquals("ithxqhabifpi", model.resourceName());
+ Assertions.assertEquals("wczbys", model.resourceType());
+ Assertions.assertEquals("pqxu", model.namePattern());
}
}
diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationInnerTests.java b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationInnerTests.java
index 5f2b663705a4..6f9fa9353c20 100644
--- a/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationInnerTests.java
+++ b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationInnerTests.java
@@ -6,8 +6,6 @@
import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.terraform.fluent.models.OperationInner;
-import com.azure.resourcemanager.terraform.models.ActionType;
-import org.junit.jupiter.api.Assertions;
public final class OperationInnerTests {
@org.junit.jupiter.api.Test
@@ -15,6 +13,5 @@ public void testDeserialize() throws Exception {
OperationInner model = BinaryData.fromString(
"{\"name\":\"nygj\",\"isDataAction\":true,\"display\":{\"provider\":\"eqsrdeupewnwreit\",\"resource\":\"yflusarhmofc\",\"operation\":\"smy\",\"description\":\"kdtmlxhekuk\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}")
.toObject(OperationInner.class);
- Assertions.assertEquals(ActionType.INTERNAL, model.actionType());
}
}
diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationListResultTests.java b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationListResultTests.java
index 7bd4fbfcf9aa..05f8f850ca38 100644
--- a/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationListResultTests.java
+++ b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationListResultTests.java
@@ -6,7 +6,6 @@
import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.terraform.implementation.models.OperationListResult;
-import com.azure.resourcemanager.terraform.models.ActionType;
import org.junit.jupiter.api.Assertions;
public final class OperationListResultTests {
@@ -15,7 +14,6 @@ public void testDeserialize() throws Exception {
OperationListResult model = BinaryData.fromString(
"{\"value\":[{\"name\":\"hq\",\"isDataAction\":true,\"display\":{\"provider\":\"pybczmehmtzopb\",\"resource\":\"h\",\"operation\":\"pidgsybbejhphoyc\",\"description\":\"xaobhdxbmtqioqjz\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"fpownoizhwlr\",\"isDataAction\":false,\"display\":{\"provider\":\"oqijgkdmbpaz\",\"resource\":\"bc\",\"operation\":\"pdznrbtcqqjnqgl\",\"description\":\"gnufoooj\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"esaagdfm\",\"isDataAction\":true,\"display\":{\"provider\":\"j\",\"resource\":\"ifkwmrvktsizntoc\",\"operation\":\"a\",\"description\":\"ajpsquc\"},\"origin\":\"system\",\"actionType\":\"Internal\"}],\"nextLink\":\"kfo\"}")
.toObject(OperationListResult.class);
- Assertions.assertEquals(ActionType.INTERNAL, model.value().get(0).actionType());
Assertions.assertEquals("kfo", model.nextLink());
}
}
diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationsListMockTests.java b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationsListMockTests.java
index c6f79a9a0572..072477353432 100644
--- a/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationsListMockTests.java
+++ b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationsListMockTests.java
@@ -7,15 +7,13 @@
import com.azure.core.credential.AccessToken;
import com.azure.core.http.HttpClient;
import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.models.AzureCloud;
import com.azure.core.test.http.MockHttpResponse;
import com.azure.resourcemanager.terraform.AzureTerraformManager;
-import com.azure.resourcemanager.terraform.models.ActionType;
import com.azure.resourcemanager.terraform.models.Operation;
import java.nio.charset.StandardCharsets;
import java.time.OffsetDateTime;
-import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import reactor.core.publisher.Mono;
@@ -23,17 +21,16 @@ public final class OperationsListMockTests {
@Test
public void testList() throws Exception {
String responseStr
- = "{\"value\":[{\"name\":\"iwbybrkxvdumjg\",\"isDataAction\":false,\"display\":{\"provider\":\"ukxgaud\",\"resource\":\"snhsjcnyejhkryh\",\"operation\":\"apcz\",\"description\":\"okjye\"},\"origin\":\"system\",\"actionType\":\"Internal\"}]}";
+ = "{\"value\":[{\"name\":\"tfwvukxgaudc\",\"isDataAction\":true,\"display\":{\"provider\":\"jcny\",\"resource\":\"hkryhtn\",\"operation\":\"czwlokjyem\",\"description\":\"vnipjox\"},\"origin\":\"user\",\"actionType\":\"Internal\"}]}";
HttpClient httpClient
= response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8)));
AzureTerraformManager manager = AzureTerraformManager.configure()
.withHttpClient(httpClient)
.authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)),
- new AzureProfile("", "", AzureEnvironment.AZURE));
+ new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD));
PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE);
- Assertions.assertEquals(ActionType.INTERNAL, response.iterator().next().actionType());
}
}
diff --git a/sdk/terraform/azure-resourcemanager-terraform/tsp-location.yaml b/sdk/terraform/azure-resourcemanager-terraform/tsp-location.yaml
index 3d2afc909690..e87d84791e35 100644
--- a/sdk/terraform/azure-resourcemanager-terraform/tsp-location.yaml
+++ b/sdk/terraform/azure-resourcemanager-terraform/tsp-location.yaml
@@ -1,4 +1,4 @@
directory: specification/terraform/Microsoft.AzureTerraform.Management
-commit: d477c7caa09bf82e22c419be0a99d170552b5892
+commit: a4f57d6542679fa11866345756f9251b51394353
repo: Azure/azure-rest-api-specs
additionalDirectories: