diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md b/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md
index 60a85f5bda76..e2c7684444e8 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.0.0-beta.30 (Unreleased)
+## 1.0.0-beta.1 (2024-07-22)
+
+- Azure Resource Manager DataFactory client library for Java. This package contains Microsoft Azure SDK for DataFactory Management SDK. The Azure Data Factory V2 management API provides a RESTful set of web services that interact with Azure Data Factory V2 services. Package tag package-2018-06. 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/datafactory/azure-resourcemanager-datafactory/README.md b/sdk/datafactory/azure-resourcemanager-datafactory/README.md
index 94f4838fce87..afff5f187a48 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/README.md
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/README.md
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-datafactory
- 1.0.0-beta.29
+ 1.0.0-beta.30
```
[//]: # ({x-version-update-end})
@@ -45,15 +45,11 @@ Azure Management Libraries require a `TokenCredential` implementation for authen
### Authentication
-By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables.
+Microsoft Entra ID token authentication relies on the [credential class][azure_identity_credentials] from [Azure Identity][azure_identity] package.
-- `AZURE_CLIENT_ID` for Azure client ID.
-- `AZURE_TENANT_ID` for Azure tenant ID.
-- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
+Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
-In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
-
-With above configuration, `azure` client can be authenticated using the following code:
+Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
@@ -184,6 +180,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
+[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity#credentials
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml b/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml
index b0b6ee142029..855358dd3926 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml
@@ -48,6 +48,11 @@
true
+
+ com.azure
+ azure-json
+ 1.1.0
+
com.azure
azure-core
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java
index 9b1f74961b2a..c2afc71e4881 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java
@@ -294,7 +294,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.datafactory")
.append("/")
- .append("1.0.0-beta.29");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AccessPolicyResponseInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AccessPolicyResponseInner.java
index 9e7b7a1b5f2f..906f91807fe1 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AccessPolicyResponseInner.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AccessPolicyResponseInner.java
@@ -5,30 +5,31 @@
package com.azure.resourcemanager.datafactory.fluent.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 com.azure.resourcemanager.datafactory.models.UserAccessPolicy;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Get Data Plane read only token response definition.
*/
@Fluent
-public final class AccessPolicyResponseInner {
+public final class AccessPolicyResponseInner implements JsonSerializable {
/*
* The user access policy.
*/
- @JsonProperty(value = "policy")
private UserAccessPolicy policy;
/*
* Data Plane read only access token.
*/
- @JsonProperty(value = "accessToken")
private String accessToken;
/*
* Data Plane service base URL.
*/
- @JsonProperty(value = "dataPlaneUrl")
private String dataPlaneUrl;
/**
@@ -107,4 +108,46 @@ public void validate() {
policy().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("policy", this.policy);
+ jsonWriter.writeStringField("accessToken", this.accessToken);
+ jsonWriter.writeStringField("dataPlaneUrl", this.dataPlaneUrl);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AccessPolicyResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AccessPolicyResponseInner 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 AccessPolicyResponseInner.
+ */
+ public static AccessPolicyResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AccessPolicyResponseInner deserializedAccessPolicyResponseInner = new AccessPolicyResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("policy".equals(fieldName)) {
+ deserializedAccessPolicyResponseInner.policy = UserAccessPolicy.fromJson(reader);
+ } else if ("accessToken".equals(fieldName)) {
+ deserializedAccessPolicyResponseInner.accessToken = reader.getString();
+ } else if ("dataPlaneUrl".equals(fieldName)) {
+ deserializedAccessPolicyResponseInner.dataPlaneUrl = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAccessPolicyResponseInner;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ActivityRunsQueryResponseInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ActivityRunsQueryResponseInner.java
index 9141559dd3f1..9c2f9aeb5e4d 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ActivityRunsQueryResponseInner.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ActivityRunsQueryResponseInner.java
@@ -6,25 +6,27 @@
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.datafactory.models.ActivityRun;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* A list activity runs.
*/
@Fluent
-public final class ActivityRunsQueryResponseInner {
+public final class ActivityRunsQueryResponseInner implements JsonSerializable {
/*
* List of activity runs.
*/
- @JsonProperty(value = "value", required = true)
private List value;
/*
* The continuation token for getting the next page of results, if any remaining results exist, null otherwise.
*/
- @JsonProperty(value = "continuationToken")
private String continuationToken;
/**
@@ -91,4 +93,46 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(ActivityRunsQueryResponseInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("continuationToken", this.continuationToken);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ActivityRunsQueryResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ActivityRunsQueryResponseInner 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 ActivityRunsQueryResponseInner.
+ */
+ public static ActivityRunsQueryResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ActivityRunsQueryResponseInner deserializedActivityRunsQueryResponseInner
+ = new ActivityRunsQueryResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("value".equals(fieldName)) {
+ List value = reader.readArray(reader1 -> ActivityRun.fromJson(reader1));
+ deserializedActivityRunsQueryResponseInner.value = value;
+ } else if ("continuationToken".equals(fieldName)) {
+ deserializedActivityRunsQueryResponseInner.continuationToken = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedActivityRunsQueryResponseInner;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AddDataFlowToDebugSessionResponseInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AddDataFlowToDebugSessionResponseInner.java
index 3fe2c1ff3b9b..1a2565770b8b 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AddDataFlowToDebugSessionResponseInner.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AddDataFlowToDebugSessionResponseInner.java
@@ -5,17 +5,21 @@
package com.azure.resourcemanager.datafactory.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Response body structure for starting data flow debug session.
*/
@Fluent
-public final class AddDataFlowToDebugSessionResponseInner {
+public final class AddDataFlowToDebugSessionResponseInner
+ implements JsonSerializable {
/*
* The ID of data flow debug job version.
*/
- @JsonProperty(value = "jobVersion")
private String jobVersion;
/**
@@ -51,4 +55,41 @@ public AddDataFlowToDebugSessionResponseInner withJobVersion(String jobVersion)
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("jobVersion", this.jobVersion);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AddDataFlowToDebugSessionResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AddDataFlowToDebugSessionResponseInner 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 AddDataFlowToDebugSessionResponseInner.
+ */
+ public static AddDataFlowToDebugSessionResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AddDataFlowToDebugSessionResponseInner deserializedAddDataFlowToDebugSessionResponseInner
+ = new AddDataFlowToDebugSessionResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("jobVersion".equals(fieldName)) {
+ deserializedAddDataFlowToDebugSessionResponseInner.jobVersion = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAddDataFlowToDebugSessionResponseInner;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonMwsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonMwsLinkedServiceTypeProperties.java
index 1c501ee290f7..0c15d4ff1fb9 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonMwsLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonMwsLinkedServiceTypeProperties.java
@@ -6,75 +6,70 @@
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.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Amazon Marketplace Web Service linked service properties.
*/
@Fluent
-public final class AmazonMwsLinkedServiceTypeProperties {
+public final class AmazonMwsLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* The endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com)
*/
- @JsonProperty(value = "endpoint", required = true)
private Object endpoint;
/*
* The Amazon Marketplace ID you want to retrieve data from. To retrieve data from multiple Marketplace IDs,
* separate them with a comma (,). (i.e. A2EUQ1WTGCTBG2)
*/
- @JsonProperty(value = "marketplaceID", required = true)
private Object marketplaceId;
/*
* The Amazon seller ID.
*/
- @JsonProperty(value = "sellerID", required = true)
private Object sellerId;
/*
* The Amazon MWS authentication token.
*/
- @JsonProperty(value = "mwsAuthToken")
private SecretBase mwsAuthToken;
/*
* The access key id used to access data.
*/
- @JsonProperty(value = "accessKeyId", required = true)
private Object accessKeyId;
/*
* The secret key used to access data.
*/
- @JsonProperty(value = "secretKey")
private SecretBase secretKey;
/*
* Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true.
*/
- @JsonProperty(value = "useEncryptedEndpoints")
private Object useEncryptedEndpoints;
/*
* Specifies whether to require the host name in the server's certificate to match the host name of the server when
* connecting over SSL. The default value is true.
*/
- @JsonProperty(value = "useHostVerification")
private Object useHostVerification;
/*
* Specifies whether to verify the identity of the server when connecting over SSL. The default value is true.
*/
- @JsonProperty(value = "usePeerVerification")
private Object usePeerVerification;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/**
@@ -328,4 +323,69 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AmazonMwsLinkedServiceTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("endpoint", this.endpoint);
+ jsonWriter.writeUntypedField("marketplaceID", this.marketplaceId);
+ jsonWriter.writeUntypedField("sellerID", this.sellerId);
+ jsonWriter.writeUntypedField("accessKeyId", this.accessKeyId);
+ jsonWriter.writeJsonField("mwsAuthToken", this.mwsAuthToken);
+ jsonWriter.writeJsonField("secretKey", this.secretKey);
+ jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
+ jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
+ jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AmazonMwsLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AmazonMwsLinkedServiceTypeProperties 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 AmazonMwsLinkedServiceTypeProperties.
+ */
+ public static AmazonMwsLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AmazonMwsLinkedServiceTypeProperties deserializedAmazonMwsLinkedServiceTypeProperties
+ = new AmazonMwsLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("endpoint".equals(fieldName)) {
+ deserializedAmazonMwsLinkedServiceTypeProperties.endpoint = reader.readUntyped();
+ } else if ("marketplaceID".equals(fieldName)) {
+ deserializedAmazonMwsLinkedServiceTypeProperties.marketplaceId = reader.readUntyped();
+ } else if ("sellerID".equals(fieldName)) {
+ deserializedAmazonMwsLinkedServiceTypeProperties.sellerId = reader.readUntyped();
+ } else if ("accessKeyId".equals(fieldName)) {
+ deserializedAmazonMwsLinkedServiceTypeProperties.accessKeyId = reader.readUntyped();
+ } else if ("mwsAuthToken".equals(fieldName)) {
+ deserializedAmazonMwsLinkedServiceTypeProperties.mwsAuthToken = SecretBase.fromJson(reader);
+ } else if ("secretKey".equals(fieldName)) {
+ deserializedAmazonMwsLinkedServiceTypeProperties.secretKey = SecretBase.fromJson(reader);
+ } else if ("useEncryptedEndpoints".equals(fieldName)) {
+ deserializedAmazonMwsLinkedServiceTypeProperties.useEncryptedEndpoints = reader.readUntyped();
+ } else if ("useHostVerification".equals(fieldName)) {
+ deserializedAmazonMwsLinkedServiceTypeProperties.useHostVerification = reader.readUntyped();
+ } else if ("usePeerVerification".equals(fieldName)) {
+ deserializedAmazonMwsLinkedServiceTypeProperties.usePeerVerification = reader.readUntyped();
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAmazonMwsLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAmazonMwsLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForLinkedServiceTypeProperties.java
index 8a913b44b1e0..b0682f3245e0 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForLinkedServiceTypeProperties.java
@@ -6,31 +6,33 @@
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.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* AmazonRdsForOracle database linked service properties.
*/
@Fluent
-public final class AmazonRdsForLinkedServiceTypeProperties {
+public final class AmazonRdsForLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.
*/
- @JsonProperty(value = "connectionString", required = true)
private Object connectionString;
/*
* The Azure key vault secret reference of password in connection string.
*/
- @JsonProperty(value = "password")
private SecretBase password;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/**
@@ -120,4 +122,48 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AmazonRdsForLinkedServiceTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ jsonWriter.writeJsonField("password", this.password);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AmazonRdsForLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AmazonRdsForLinkedServiceTypeProperties 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 AmazonRdsForLinkedServiceTypeProperties.
+ */
+ public static AmazonRdsForLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AmazonRdsForLinkedServiceTypeProperties deserializedAmazonRdsForLinkedServiceTypeProperties
+ = new AmazonRdsForLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("connectionString".equals(fieldName)) {
+ deserializedAmazonRdsForLinkedServiceTypeProperties.connectionString = reader.readUntyped();
+ } else if ("password".equals(fieldName)) {
+ deserializedAmazonRdsForLinkedServiceTypeProperties.password = SecretBase.fromJson(reader);
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAmazonRdsForLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAmazonRdsForLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForOracleTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForOracleTableDatasetTypeProperties.java
index 1167f3f25fb3..ec433462da5c 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForOracleTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForOracleTableDatasetTypeProperties.java
@@ -5,23 +5,26 @@
package com.azure.resourcemanager.datafactory.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* AmazonRdsForOracle dataset properties.
*/
@Fluent
-public final class AmazonRdsForOracleTableDatasetTypeProperties {
+public final class AmazonRdsForOracleTableDatasetTypeProperties
+ implements JsonSerializable {
/*
* The schema name of the AmazonRdsForOracle database. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "schema")
private Object schema;
/*
* The table name of the AmazonRdsForOracle database. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "table")
private Object table;
/**
@@ -81,4 +84,44 @@ public AmazonRdsForOracleTableDatasetTypeProperties withTable(Object table) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("schema", this.schema);
+ jsonWriter.writeUntypedField("table", this.table);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AmazonRdsForOracleTableDatasetTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AmazonRdsForOracleTableDatasetTypeProperties 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 AmazonRdsForOracleTableDatasetTypeProperties.
+ */
+ public static AmazonRdsForOracleTableDatasetTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AmazonRdsForOracleTableDatasetTypeProperties deserializedAmazonRdsForOracleTableDatasetTypeProperties
+ = new AmazonRdsForOracleTableDatasetTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("schema".equals(fieldName)) {
+ deserializedAmazonRdsForOracleTableDatasetTypeProperties.schema = reader.readUntyped();
+ } else if ("table".equals(fieldName)) {
+ deserializedAmazonRdsForOracleTableDatasetTypeProperties.table = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAmazonRdsForOracleTableDatasetTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerLinkedServiceTypeProperties.java
index 97c8017999b4..3f69aa1cc079 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerLinkedServiceTypeProperties.java
@@ -5,11 +5,14 @@
package com.azure.resourcemanager.datafactory.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.datafactory.models.AmazonRdsForSqlAuthenticationType;
import com.azure.resourcemanager.datafactory.models.SecretBase;
import com.azure.resourcemanager.datafactory.models.SqlAlwaysEncryptedProperties;
import com.azure.resourcemanager.datafactory.models.SqlServerBaseLinkedServiceTypeProperties;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Amazon Rds for SQL Server linked service properties.
@@ -19,38 +22,32 @@ public final class AmazonRdsForSqlServerLinkedServiceTypeProperties extends SqlS
/*
* The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.
*/
- @JsonProperty(value = "connectionString")
private Object connectionString;
/*
* The type used for authentication. Type: string.
*/
- @JsonProperty(value = "authenticationType")
private AmazonRdsForSqlAuthenticationType authenticationType;
/*
* The on-premises Windows authentication user name. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "userName")
private Object username;
/*
* The on-premises Windows authentication password.
*/
- @JsonProperty(value = "password")
private SecretBase password;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/*
* Sql always encrypted properties.
*/
- @JsonProperty(value = "alwaysEncryptedSettings")
private SqlAlwaysEncryptedProperties alwaysEncryptedSettings;
/**
@@ -374,4 +371,130 @@ public void validate() {
alwaysEncryptedSettings().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("server", server());
+ jsonWriter.writeUntypedField("database", database());
+ jsonWriter.writeUntypedField("encrypt", encrypt());
+ jsonWriter.writeUntypedField("trustServerCertificate", trustServerCertificate());
+ jsonWriter.writeUntypedField("hostNameInCertificate", hostnameInCertificate());
+ jsonWriter.writeUntypedField("applicationIntent", applicationIntent());
+ jsonWriter.writeUntypedField("connectTimeout", connectTimeout());
+ jsonWriter.writeUntypedField("connectRetryCount", connectRetryCount());
+ jsonWriter.writeUntypedField("connectRetryInterval", connectRetryInterval());
+ jsonWriter.writeUntypedField("loadBalanceTimeout", loadBalanceTimeout());
+ jsonWriter.writeUntypedField("commandTimeout", commandTimeout());
+ jsonWriter.writeUntypedField("integratedSecurity", integratedSecurity());
+ jsonWriter.writeUntypedField("failoverPartner", failoverPartner());
+ jsonWriter.writeUntypedField("maxPoolSize", maxPoolSize());
+ jsonWriter.writeUntypedField("minPoolSize", minPoolSize());
+ jsonWriter.writeUntypedField("multipleActiveResultSets", multipleActiveResultSets());
+ jsonWriter.writeUntypedField("multiSubnetFailover", multiSubnetFailover());
+ jsonWriter.writeUntypedField("packetSize", packetSize());
+ jsonWriter.writeUntypedField("pooling", pooling());
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ jsonWriter.writeStringField("authenticationType",
+ this.authenticationType == null ? null : this.authenticationType.toString());
+ jsonWriter.writeUntypedField("userName", this.username);
+ jsonWriter.writeJsonField("password", this.password);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ jsonWriter.writeJsonField("alwaysEncryptedSettings", this.alwaysEncryptedSettings);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AmazonRdsForSqlServerLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AmazonRdsForSqlServerLinkedServiceTypeProperties 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 AmazonRdsForSqlServerLinkedServiceTypeProperties.
+ */
+ public static AmazonRdsForSqlServerLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AmazonRdsForSqlServerLinkedServiceTypeProperties deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties
+ = new AmazonRdsForSqlServerLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("server".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties.withServer(reader.readUntyped());
+ } else if ("database".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties.withDatabase(reader.readUntyped());
+ } else if ("encrypt".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties.withEncrypt(reader.readUntyped());
+ } else if ("trustServerCertificate".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties
+ .withTrustServerCertificate(reader.readUntyped());
+ } else if ("hostNameInCertificate".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties
+ .withHostnameInCertificate(reader.readUntyped());
+ } else if ("applicationIntent".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties
+ .withApplicationIntent(reader.readUntyped());
+ } else if ("connectTimeout".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties
+ .withConnectTimeout(reader.readUntyped());
+ } else if ("connectRetryCount".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties
+ .withConnectRetryCount(reader.readUntyped());
+ } else if ("connectRetryInterval".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties
+ .withConnectRetryInterval(reader.readUntyped());
+ } else if ("loadBalanceTimeout".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties
+ .withLoadBalanceTimeout(reader.readUntyped());
+ } else if ("commandTimeout".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties
+ .withCommandTimeout(reader.readUntyped());
+ } else if ("integratedSecurity".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties
+ .withIntegratedSecurity(reader.readUntyped());
+ } else if ("failoverPartner".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties
+ .withFailoverPartner(reader.readUntyped());
+ } else if ("maxPoolSize".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties.withMaxPoolSize(reader.readUntyped());
+ } else if ("minPoolSize".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties.withMinPoolSize(reader.readUntyped());
+ } else if ("multipleActiveResultSets".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties
+ .withMultipleActiveResultSets(reader.readUntyped());
+ } else if ("multiSubnetFailover".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties
+ .withMultiSubnetFailover(reader.readUntyped());
+ } else if ("packetSize".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties.withPacketSize(reader.readUntyped());
+ } else if ("pooling".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties.withPooling(reader.readUntyped());
+ } else if ("connectionString".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties.connectionString
+ = reader.readUntyped();
+ } else if ("authenticationType".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties.authenticationType
+ = AmazonRdsForSqlAuthenticationType.fromString(reader.getString());
+ } else if ("userName".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties.username = reader.readUntyped();
+ } else if ("password".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties.password = SecretBase.fromJson(reader);
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties.encryptedCredential
+ = reader.getString();
+ } else if ("alwaysEncryptedSettings".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties.alwaysEncryptedSettings
+ = SqlAlwaysEncryptedProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAmazonRdsForSqlServerLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerTableDatasetTypeProperties.java
index cafa3a775214..2d29e3d41cec 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRdsForSqlServerTableDatasetTypeProperties.java
@@ -5,23 +5,26 @@
package com.azure.resourcemanager.datafactory.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* The Amazon RDS for SQL Server dataset properties.
*/
@Fluent
-public final class AmazonRdsForSqlServerTableDatasetTypeProperties {
+public final class AmazonRdsForSqlServerTableDatasetTypeProperties
+ implements JsonSerializable {
/*
* The schema name of the SQL Server dataset. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "schema")
private Object schema;
/*
* The table name of the SQL Server dataset. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "table")
private Object table;
/**
@@ -81,4 +84,44 @@ public AmazonRdsForSqlServerTableDatasetTypeProperties withTable(Object table) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("schema", this.schema);
+ jsonWriter.writeUntypedField("table", this.table);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AmazonRdsForSqlServerTableDatasetTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AmazonRdsForSqlServerTableDatasetTypeProperties 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 AmazonRdsForSqlServerTableDatasetTypeProperties.
+ */
+ public static AmazonRdsForSqlServerTableDatasetTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AmazonRdsForSqlServerTableDatasetTypeProperties deserializedAmazonRdsForSqlServerTableDatasetTypeProperties
+ = new AmazonRdsForSqlServerTableDatasetTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("schema".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerTableDatasetTypeProperties.schema = reader.readUntyped();
+ } else if ("table".equals(fieldName)) {
+ deserializedAmazonRdsForSqlServerTableDatasetTypeProperties.table = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAmazonRdsForSqlServerTableDatasetTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftLinkedServiceTypeProperties.java
index 6ff0be04434a..575bf5e7c626 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftLinkedServiceTypeProperties.java
@@ -6,50 +6,49 @@
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.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Amazon Redshift linked service properties.
*/
@Fluent
-public final class AmazonRedshiftLinkedServiceTypeProperties {
+public final class AmazonRedshiftLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* The name of the Amazon Redshift server. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "server", required = true)
private Object server;
/*
* The username of the Amazon Redshift source. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "username")
private Object username;
/*
* The password of the Amazon Redshift source.
*/
- @JsonProperty(value = "password")
private SecretBase password;
/*
* The database name of the Amazon Redshift source. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "database", required = true)
private Object database;
/*
* The TCP port number that the Amazon Redshift server uses to listen for client connections. The default value is
* 5439. Type: integer (or Expression with resultType integer).
*/
- @JsonProperty(value = "port")
private Object port;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/**
@@ -210,4 +209,57 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AmazonRedshiftLinkedServiceTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("server", this.server);
+ jsonWriter.writeUntypedField("database", this.database);
+ jsonWriter.writeUntypedField("username", this.username);
+ jsonWriter.writeJsonField("password", this.password);
+ jsonWriter.writeUntypedField("port", this.port);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AmazonRedshiftLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AmazonRedshiftLinkedServiceTypeProperties 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 AmazonRedshiftLinkedServiceTypeProperties.
+ */
+ public static AmazonRedshiftLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AmazonRedshiftLinkedServiceTypeProperties deserializedAmazonRedshiftLinkedServiceTypeProperties
+ = new AmazonRedshiftLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("server".equals(fieldName)) {
+ deserializedAmazonRedshiftLinkedServiceTypeProperties.server = reader.readUntyped();
+ } else if ("database".equals(fieldName)) {
+ deserializedAmazonRedshiftLinkedServiceTypeProperties.database = reader.readUntyped();
+ } else if ("username".equals(fieldName)) {
+ deserializedAmazonRedshiftLinkedServiceTypeProperties.username = reader.readUntyped();
+ } else if ("password".equals(fieldName)) {
+ deserializedAmazonRedshiftLinkedServiceTypeProperties.password = SecretBase.fromJson(reader);
+ } else if ("port".equals(fieldName)) {
+ deserializedAmazonRedshiftLinkedServiceTypeProperties.port = reader.readUntyped();
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAmazonRedshiftLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAmazonRedshiftLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftTableDatasetTypeProperties.java
index 11b24566e84b..808fdc742dc0 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonRedshiftTableDatasetTypeProperties.java
@@ -5,29 +5,31 @@
package com.azure.resourcemanager.datafactory.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Amazon Redshift table dataset properties.
*/
@Fluent
-public final class AmazonRedshiftTableDatasetTypeProperties {
+public final class AmazonRedshiftTableDatasetTypeProperties
+ implements JsonSerializable {
/*
* This property will be retired. Please consider using schema + table properties instead.
*/
- @JsonProperty(value = "tableName")
private Object tableName;
/*
* The Amazon Redshift table name. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "table")
private Object table;
/*
* The Amazon Redshift schema name. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "schema")
private Object schema;
/**
@@ -105,4 +107,47 @@ public AmazonRedshiftTableDatasetTypeProperties withSchema(Object schema) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ jsonWriter.writeUntypedField("table", this.table);
+ jsonWriter.writeUntypedField("schema", this.schema);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AmazonRedshiftTableDatasetTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AmazonRedshiftTableDatasetTypeProperties 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 AmazonRedshiftTableDatasetTypeProperties.
+ */
+ public static AmazonRedshiftTableDatasetTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AmazonRedshiftTableDatasetTypeProperties deserializedAmazonRedshiftTableDatasetTypeProperties
+ = new AmazonRedshiftTableDatasetTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("tableName".equals(fieldName)) {
+ deserializedAmazonRedshiftTableDatasetTypeProperties.tableName = reader.readUntyped();
+ } else if ("table".equals(fieldName)) {
+ deserializedAmazonRedshiftTableDatasetTypeProperties.table = reader.readUntyped();
+ } else if ("schema".equals(fieldName)) {
+ deserializedAmazonRedshiftTableDatasetTypeProperties.schema = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAmazonRedshiftTableDatasetTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3CompatibleLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3CompatibleLinkedServiceTypeProperties.java
index d9c44432fe3b..55519786c691 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3CompatibleLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3CompatibleLinkedServiceTypeProperties.java
@@ -5,25 +5,28 @@
package com.azure.resourcemanager.datafactory.fluent.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 com.azure.resourcemanager.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Amazon S3 Compatible linked service properties.
*/
@Fluent
-public final class AmazonS3CompatibleLinkedServiceTypeProperties {
+public final class AmazonS3CompatibleLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* The access key identifier of the Amazon S3 Compatible Identity and Access Management (IAM) user. Type: string (or
* Expression with resultType string).
*/
- @JsonProperty(value = "accessKeyId")
private Object accessKeyId;
/*
* The secret access key of the Amazon S3 Compatible Identity and Access Management (IAM) user.
*/
- @JsonProperty(value = "secretAccessKey")
private SecretBase secretAccessKey;
/*
@@ -31,21 +34,18 @@ public final class AmazonS3CompatibleLinkedServiceTypeProperties {
* property; change it only if you want to try a different service endpoint or want to switch between https and
* http. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "serviceUrl")
private Object serviceUrl;
/*
* If true, use S3 path-style access instead of virtual hosted-style access. Default value is false. Type: boolean
* (or Expression with resultType boolean).
*/
- @JsonProperty(value = "forcePathStyle")
private Object forcePathStyle;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/**
@@ -176,4 +176,54 @@ public void validate() {
secretAccessKey().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("accessKeyId", this.accessKeyId);
+ jsonWriter.writeJsonField("secretAccessKey", this.secretAccessKey);
+ jsonWriter.writeUntypedField("serviceUrl", this.serviceUrl);
+ jsonWriter.writeUntypedField("forcePathStyle", this.forcePathStyle);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AmazonS3CompatibleLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AmazonS3CompatibleLinkedServiceTypeProperties 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 AmazonS3CompatibleLinkedServiceTypeProperties.
+ */
+ public static AmazonS3CompatibleLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AmazonS3CompatibleLinkedServiceTypeProperties deserializedAmazonS3CompatibleLinkedServiceTypeProperties
+ = new AmazonS3CompatibleLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("accessKeyId".equals(fieldName)) {
+ deserializedAmazonS3CompatibleLinkedServiceTypeProperties.accessKeyId = reader.readUntyped();
+ } else if ("secretAccessKey".equals(fieldName)) {
+ deserializedAmazonS3CompatibleLinkedServiceTypeProperties.secretAccessKey
+ = SecretBase.fromJson(reader);
+ } else if ("serviceUrl".equals(fieldName)) {
+ deserializedAmazonS3CompatibleLinkedServiceTypeProperties.serviceUrl = reader.readUntyped();
+ } else if ("forcePathStyle".equals(fieldName)) {
+ deserializedAmazonS3CompatibleLinkedServiceTypeProperties.forcePathStyle = reader.readUntyped();
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAmazonS3CompatibleLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAmazonS3CompatibleLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3DatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3DatasetTypeProperties.java
index 43bfe345ff1b..c8ca7abdf8f9 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3DatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3DatasetTypeProperties.java
@@ -6,61 +6,57 @@
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.datafactory.models.DatasetCompression;
import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Amazon S3 dataset properties.
*/
@Fluent
-public final class AmazonS3DatasetTypeProperties {
+public final class AmazonS3DatasetTypeProperties implements JsonSerializable {
/*
* The name of the Amazon S3 bucket. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "bucketName", required = true)
private Object bucketName;
/*
* The key of the Amazon S3 object. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "key")
private Object key;
/*
* The prefix filter for the S3 object name. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "prefix")
private Object prefix;
/*
* The version for the S3 object. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "version")
private Object version;
/*
* The start of S3 object's modified datetime. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "modifiedDatetimeStart")
private Object modifiedDatetimeStart;
/*
* The end of S3 object's modified datetime. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "modifiedDatetimeEnd")
private Object modifiedDatetimeEnd;
/*
* The format of files.
*/
- @JsonProperty(value = "format")
private DatasetStorageFormat format;
/*
* The data compression method used for the Amazon S3 object.
*/
- @JsonProperty(value = "compression")
private DatasetCompression compression;
/**
@@ -257,4 +253,63 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AmazonS3DatasetTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("bucketName", this.bucketName);
+ jsonWriter.writeUntypedField("key", this.key);
+ jsonWriter.writeUntypedField("prefix", this.prefix);
+ jsonWriter.writeUntypedField("version", this.version);
+ jsonWriter.writeUntypedField("modifiedDatetimeStart", this.modifiedDatetimeStart);
+ jsonWriter.writeUntypedField("modifiedDatetimeEnd", this.modifiedDatetimeEnd);
+ jsonWriter.writeJsonField("format", this.format);
+ jsonWriter.writeJsonField("compression", this.compression);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AmazonS3DatasetTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AmazonS3DatasetTypeProperties 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 AmazonS3DatasetTypeProperties.
+ */
+ public static AmazonS3DatasetTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AmazonS3DatasetTypeProperties deserializedAmazonS3DatasetTypeProperties
+ = new AmazonS3DatasetTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("bucketName".equals(fieldName)) {
+ deserializedAmazonS3DatasetTypeProperties.bucketName = reader.readUntyped();
+ } else if ("key".equals(fieldName)) {
+ deserializedAmazonS3DatasetTypeProperties.key = reader.readUntyped();
+ } else if ("prefix".equals(fieldName)) {
+ deserializedAmazonS3DatasetTypeProperties.prefix = reader.readUntyped();
+ } else if ("version".equals(fieldName)) {
+ deserializedAmazonS3DatasetTypeProperties.version = reader.readUntyped();
+ } else if ("modifiedDatetimeStart".equals(fieldName)) {
+ deserializedAmazonS3DatasetTypeProperties.modifiedDatetimeStart = reader.readUntyped();
+ } else if ("modifiedDatetimeEnd".equals(fieldName)) {
+ deserializedAmazonS3DatasetTypeProperties.modifiedDatetimeEnd = reader.readUntyped();
+ } else if ("format".equals(fieldName)) {
+ deserializedAmazonS3DatasetTypeProperties.format = DatasetStorageFormat.fromJson(reader);
+ } else if ("compression".equals(fieldName)) {
+ deserializedAmazonS3DatasetTypeProperties.compression = DatasetCompression.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAmazonS3DatasetTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3LinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3LinkedServiceTypeProperties.java
index aaafe4cabf66..49ade57c577d 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3LinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AmazonS3LinkedServiceTypeProperties.java
@@ -5,32 +5,34 @@
package com.azure.resourcemanager.datafactory.fluent.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 com.azure.resourcemanager.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Amazon S3 linked service properties.
*/
@Fluent
-public final class AmazonS3LinkedServiceTypeProperties {
+public final class AmazonS3LinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* The authentication type of S3. Allowed value: AccessKey (default) or TemporarySecurityCredentials. Type: string
* (or Expression with resultType string).
*/
- @JsonProperty(value = "authenticationType")
private Object authenticationType;
/*
* The access key identifier of the Amazon S3 Identity and Access Management (IAM) user. Type: string (or Expression
* with resultType string).
*/
- @JsonProperty(value = "accessKeyId")
private Object accessKeyId;
/*
* The secret access key of the Amazon S3 Identity and Access Management (IAM) user.
*/
- @JsonProperty(value = "secretAccessKey")
private SecretBase secretAccessKey;
/*
@@ -38,20 +40,17 @@ public final class AmazonS3LinkedServiceTypeProperties {
* if you want to try a different service endpoint or want to switch between https and http. Type: string (or
* Expression with resultType string).
*/
- @JsonProperty(value = "serviceUrl")
private Object serviceUrl;
/*
* The session token for the S3 temporary security credential.
*/
- @JsonProperty(value = "sessionToken")
private SecretBase sessionToken;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/**
@@ -205,4 +204,56 @@ public void validate() {
sessionToken().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("authenticationType", this.authenticationType);
+ jsonWriter.writeUntypedField("accessKeyId", this.accessKeyId);
+ jsonWriter.writeJsonField("secretAccessKey", this.secretAccessKey);
+ jsonWriter.writeUntypedField("serviceUrl", this.serviceUrl);
+ jsonWriter.writeJsonField("sessionToken", this.sessionToken);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AmazonS3LinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AmazonS3LinkedServiceTypeProperties 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 AmazonS3LinkedServiceTypeProperties.
+ */
+ public static AmazonS3LinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AmazonS3LinkedServiceTypeProperties deserializedAmazonS3LinkedServiceTypeProperties
+ = new AmazonS3LinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("authenticationType".equals(fieldName)) {
+ deserializedAmazonS3LinkedServiceTypeProperties.authenticationType = reader.readUntyped();
+ } else if ("accessKeyId".equals(fieldName)) {
+ deserializedAmazonS3LinkedServiceTypeProperties.accessKeyId = reader.readUntyped();
+ } else if ("secretAccessKey".equals(fieldName)) {
+ deserializedAmazonS3LinkedServiceTypeProperties.secretAccessKey = SecretBase.fromJson(reader);
+ } else if ("serviceUrl".equals(fieldName)) {
+ deserializedAmazonS3LinkedServiceTypeProperties.serviceUrl = reader.readUntyped();
+ } else if ("sessionToken".equals(fieldName)) {
+ deserializedAmazonS3LinkedServiceTypeProperties.sessionToken = SecretBase.fromJson(reader);
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAmazonS3LinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAmazonS3LinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AppFiguresLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AppFiguresLinkedServiceTypeProperties.java
index bd82a9826ec1..a38d510ec994 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AppFiguresLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AppFiguresLinkedServiceTypeProperties.java
@@ -6,30 +6,32 @@
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.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* AppFigures linked service type properties.
*/
@Fluent
-public final class AppFiguresLinkedServiceTypeProperties {
+public final class AppFiguresLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* The username of the Appfigures source. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "userName", required = true)
private Object username;
/*
* The password of the AppFigures source.
*/
- @JsonProperty(value = "password", required = true)
private SecretBase password;
/*
* The client key for the AppFigures source.
*/
- @JsonProperty(value = "clientKey", required = true)
private SecretBase clientKey;
/**
@@ -128,4 +130,48 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AppFiguresLinkedServiceTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("userName", this.username);
+ jsonWriter.writeJsonField("password", this.password);
+ jsonWriter.writeJsonField("clientKey", this.clientKey);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AppFiguresLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AppFiguresLinkedServiceTypeProperties 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 AppFiguresLinkedServiceTypeProperties.
+ */
+ public static AppFiguresLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AppFiguresLinkedServiceTypeProperties deserializedAppFiguresLinkedServiceTypeProperties
+ = new AppFiguresLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("userName".equals(fieldName)) {
+ deserializedAppFiguresLinkedServiceTypeProperties.username = reader.readUntyped();
+ } else if ("password".equals(fieldName)) {
+ deserializedAppFiguresLinkedServiceTypeProperties.password = SecretBase.fromJson(reader);
+ } else if ("clientKey".equals(fieldName)) {
+ deserializedAppFiguresLinkedServiceTypeProperties.clientKey = SecretBase.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAppFiguresLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AppendVariableActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AppendVariableActivityTypeProperties.java
index 30f90a79862c..95d8432ac501 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AppendVariableActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AppendVariableActivityTypeProperties.java
@@ -5,24 +5,27 @@
package com.azure.resourcemanager.datafactory.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* AppendVariable activity properties.
*/
@Fluent
-public final class AppendVariableActivityTypeProperties {
+public final class AppendVariableActivityTypeProperties
+ implements JsonSerializable {
/*
* Name of the variable whose value needs to be appended to.
*/
- @JsonProperty(value = "variableName")
private String variableName;
/*
* Value to be appended. Type: could be a static value matching type of the variable item or Expression with
* resultType matching type of the variable item
*/
- @JsonProperty(value = "value")
private Object value;
/**
@@ -80,4 +83,44 @@ public AppendVariableActivityTypeProperties withValue(Object value) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("variableName", this.variableName);
+ jsonWriter.writeUntypedField("value", this.value);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AppendVariableActivityTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AppendVariableActivityTypeProperties 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 AppendVariableActivityTypeProperties.
+ */
+ public static AppendVariableActivityTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AppendVariableActivityTypeProperties deserializedAppendVariableActivityTypeProperties
+ = new AppendVariableActivityTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("variableName".equals(fieldName)) {
+ deserializedAppendVariableActivityTypeProperties.variableName = reader.getString();
+ } else if ("value".equals(fieldName)) {
+ deserializedAppendVariableActivityTypeProperties.value = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAppendVariableActivityTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AsanaLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AsanaLinkedServiceTypeProperties.java
index abe77c64b662..5799378ce2da 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AsanaLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AsanaLinkedServiceTypeProperties.java
@@ -6,25 +6,27 @@
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.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Asana linked service type properties.
*/
@Fluent
-public final class AsanaLinkedServiceTypeProperties {
+public final class AsanaLinkedServiceTypeProperties implements JsonSerializable {
/*
* The api token for the Asana source.
*/
- @JsonProperty(value = "apiToken", required = true)
private SecretBase apiToken;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/**
@@ -91,4 +93,45 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AsanaLinkedServiceTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("apiToken", this.apiToken);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AsanaLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AsanaLinkedServiceTypeProperties 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 AsanaLinkedServiceTypeProperties.
+ */
+ public static AsanaLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AsanaLinkedServiceTypeProperties deserializedAsanaLinkedServiceTypeProperties
+ = new AsanaLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("apiToken".equals(fieldName)) {
+ deserializedAsanaLinkedServiceTypeProperties.apiToken = SecretBase.fromJson(reader);
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAsanaLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAsanaLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AvroDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AvroDatasetTypeProperties.java
index 46ff88791532..5d97039923f4 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AvroDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AvroDatasetTypeProperties.java
@@ -6,30 +6,31 @@
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.datafactory.models.DatasetLocation;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Avro dataset properties.
*/
@Fluent
-public final class AvroDatasetTypeProperties {
+public final class AvroDatasetTypeProperties implements JsonSerializable {
/*
* The location of the avro storage.
*/
- @JsonProperty(value = "location", required = true)
private DatasetLocation location;
/*
* The data avroCompressionCodec. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "avroCompressionCodec")
private Object avroCompressionCodec;
/*
* The avroCompressionLevel property.
*/
- @JsonProperty(value = "avroCompressionLevel")
private Integer avroCompressionLevel;
/**
@@ -116,4 +117,47 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AvroDatasetTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("location", this.location);
+ jsonWriter.writeUntypedField("avroCompressionCodec", this.avroCompressionCodec);
+ jsonWriter.writeNumberField("avroCompressionLevel", this.avroCompressionLevel);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AvroDatasetTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AvroDatasetTypeProperties 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 AvroDatasetTypeProperties.
+ */
+ public static AvroDatasetTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AvroDatasetTypeProperties deserializedAvroDatasetTypeProperties = new AvroDatasetTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("location".equals(fieldName)) {
+ deserializedAvroDatasetTypeProperties.location = DatasetLocation.fromJson(reader);
+ } else if ("avroCompressionCodec".equals(fieldName)) {
+ deserializedAvroDatasetTypeProperties.avroCompressionCodec = reader.readUntyped();
+ } else if ("avroCompressionLevel".equals(fieldName)) {
+ deserializedAvroDatasetTypeProperties.avroCompressionLevel = reader.getNullable(JsonReader::getInt);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAvroDatasetTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzPowerShellSetupTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzPowerShellSetupTypeProperties.java
index c000e405ae95..c78e5460d7da 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzPowerShellSetupTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzPowerShellSetupTypeProperties.java
@@ -6,17 +6,20 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Installation of Azure PowerShell type properties.
*/
@Fluent
-public final class AzPowerShellSetupTypeProperties {
+public final class AzPowerShellSetupTypeProperties implements JsonSerializable {
/*
* The required version of Azure PowerShell to install.
*/
- @JsonProperty(value = "version", required = true)
private String version;
/**
@@ -59,4 +62,42 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AzPowerShellSetupTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("version", this.version);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzPowerShellSetupTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzPowerShellSetupTypeProperties 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 AzPowerShellSetupTypeProperties.
+ */
+ public static AzPowerShellSetupTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzPowerShellSetupTypeProperties deserializedAzPowerShellSetupTypeProperties
+ = new AzPowerShellSetupTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("version".equals(fieldName)) {
+ deserializedAzPowerShellSetupTypeProperties.version = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzPowerShellSetupTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBatchLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBatchLinkedServiceTypeProperties.java
index 3a88f604fae3..c98aad961407 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBatchLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBatchLinkedServiceTypeProperties.java
@@ -6,57 +6,55 @@
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.datafactory.models.CredentialReference;
import com.azure.resourcemanager.datafactory.models.LinkedServiceReference;
import com.azure.resourcemanager.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Azure Batch linked service properties.
*/
@Fluent
-public final class AzureBatchLinkedServiceTypeProperties {
+public final class AzureBatchLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* The Azure Batch account name. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "accountName", required = true)
private Object accountName;
/*
* The Azure Batch account access key.
*/
- @JsonProperty(value = "accessKey")
private SecretBase accessKey;
/*
* The Azure Batch URI. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "batchUri", required = true)
private Object batchUri;
/*
* The Azure Batch pool name. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "poolName", required = true)
private Object poolName;
/*
* The Azure Storage linked service reference.
*/
- @JsonProperty(value = "linkedServiceName", required = true)
private LinkedServiceReference linkedServiceName;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/*
* The credential reference containing authentication information.
*/
- @JsonProperty(value = "credential")
private CredentialReference credential;
/**
@@ -244,4 +242,61 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AzureBatchLinkedServiceTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("accountName", this.accountName);
+ jsonWriter.writeUntypedField("batchUri", this.batchUri);
+ jsonWriter.writeUntypedField("poolName", this.poolName);
+ jsonWriter.writeJsonField("linkedServiceName", this.linkedServiceName);
+ jsonWriter.writeJsonField("accessKey", this.accessKey);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ jsonWriter.writeJsonField("credential", this.credential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureBatchLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureBatchLinkedServiceTypeProperties 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 AzureBatchLinkedServiceTypeProperties.
+ */
+ public static AzureBatchLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureBatchLinkedServiceTypeProperties deserializedAzureBatchLinkedServiceTypeProperties
+ = new AzureBatchLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("accountName".equals(fieldName)) {
+ deserializedAzureBatchLinkedServiceTypeProperties.accountName = reader.readUntyped();
+ } else if ("batchUri".equals(fieldName)) {
+ deserializedAzureBatchLinkedServiceTypeProperties.batchUri = reader.readUntyped();
+ } else if ("poolName".equals(fieldName)) {
+ deserializedAzureBatchLinkedServiceTypeProperties.poolName = reader.readUntyped();
+ } else if ("linkedServiceName".equals(fieldName)) {
+ deserializedAzureBatchLinkedServiceTypeProperties.linkedServiceName
+ = LinkedServiceReference.fromJson(reader);
+ } else if ("accessKey".equals(fieldName)) {
+ deserializedAzureBatchLinkedServiceTypeProperties.accessKey = SecretBase.fromJson(reader);
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAzureBatchLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else if ("credential".equals(fieldName)) {
+ deserializedAzureBatchLinkedServiceTypeProperties.credential = CredentialReference.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureBatchLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobDatasetTypeProperties.java
index f2bc706f1e21..03468ad49d20 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobDatasetTypeProperties.java
@@ -5,55 +5,52 @@
package com.azure.resourcemanager.datafactory.fluent.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 com.azure.resourcemanager.datafactory.models.DatasetCompression;
import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Azure Blob dataset properties.
*/
@Fluent
-public final class AzureBlobDatasetTypeProperties {
+public final class AzureBlobDatasetTypeProperties implements JsonSerializable {
/*
* The path of the Azure Blob storage. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "folderPath")
private Object folderPath;
/*
* The root of blob path. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "tableRootLocation")
private Object tableRootLocation;
/*
* The name of the Azure Blob. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "fileName")
private Object fileName;
/*
* The start of Azure Blob's modified datetime. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "modifiedDatetimeStart")
private Object modifiedDatetimeStart;
/*
* The end of Azure Blob's modified datetime. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "modifiedDatetimeEnd")
private Object modifiedDatetimeEnd;
/*
* The format of the Azure Blob storage.
*/
- @JsonProperty(value = "format")
private DatasetStorageFormat format;
/*
* The data compression method used for the blob storage.
*/
- @JsonProperty(value = "compression")
private DatasetCompression compression;
/**
@@ -221,4 +218,59 @@ public void validate() {
compression().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("folderPath", this.folderPath);
+ jsonWriter.writeUntypedField("tableRootLocation", this.tableRootLocation);
+ jsonWriter.writeUntypedField("fileName", this.fileName);
+ jsonWriter.writeUntypedField("modifiedDatetimeStart", this.modifiedDatetimeStart);
+ jsonWriter.writeUntypedField("modifiedDatetimeEnd", this.modifiedDatetimeEnd);
+ jsonWriter.writeJsonField("format", this.format);
+ jsonWriter.writeJsonField("compression", this.compression);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureBlobDatasetTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureBlobDatasetTypeProperties 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 AzureBlobDatasetTypeProperties.
+ */
+ public static AzureBlobDatasetTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureBlobDatasetTypeProperties deserializedAzureBlobDatasetTypeProperties
+ = new AzureBlobDatasetTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("folderPath".equals(fieldName)) {
+ deserializedAzureBlobDatasetTypeProperties.folderPath = reader.readUntyped();
+ } else if ("tableRootLocation".equals(fieldName)) {
+ deserializedAzureBlobDatasetTypeProperties.tableRootLocation = reader.readUntyped();
+ } else if ("fileName".equals(fieldName)) {
+ deserializedAzureBlobDatasetTypeProperties.fileName = reader.readUntyped();
+ } else if ("modifiedDatetimeStart".equals(fieldName)) {
+ deserializedAzureBlobDatasetTypeProperties.modifiedDatetimeStart = reader.readUntyped();
+ } else if ("modifiedDatetimeEnd".equals(fieldName)) {
+ deserializedAzureBlobDatasetTypeProperties.modifiedDatetimeEnd = reader.readUntyped();
+ } else if ("format".equals(fieldName)) {
+ deserializedAzureBlobDatasetTypeProperties.format = DatasetStorageFormat.fromJson(reader);
+ } else if ("compression".equals(fieldName)) {
+ deserializedAzureBlobDatasetTypeProperties.compression = DatasetCompression.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureBlobDatasetTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSDatasetTypeProperties.java
index 74ef179e7fc7..ef25dfaee8f9 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSDatasetTypeProperties.java
@@ -5,37 +5,37 @@
package com.azure.resourcemanager.datafactory.fluent.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 com.azure.resourcemanager.datafactory.models.DatasetCompression;
import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Azure Data Lake Storage Gen2 dataset properties.
*/
@Fluent
-public final class AzureBlobFSDatasetTypeProperties {
+public final class AzureBlobFSDatasetTypeProperties implements JsonSerializable {
/*
* The path of the Azure Data Lake Storage Gen2 storage. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "folderPath")
private Object folderPath;
/*
* The name of the Azure Data Lake Storage Gen2. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "fileName")
private Object fileName;
/*
* The format of the Azure Data Lake Storage Gen2 storage.
*/
- @JsonProperty(value = "format")
private DatasetStorageFormat format;
/*
* The data compression method used for the blob storage.
*/
- @JsonProperty(value = "compression")
private DatasetCompression compression;
/**
@@ -141,4 +141,50 @@ public void validate() {
compression().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("folderPath", this.folderPath);
+ jsonWriter.writeUntypedField("fileName", this.fileName);
+ jsonWriter.writeJsonField("format", this.format);
+ jsonWriter.writeJsonField("compression", this.compression);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureBlobFSDatasetTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureBlobFSDatasetTypeProperties 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 AzureBlobFSDatasetTypeProperties.
+ */
+ public static AzureBlobFSDatasetTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureBlobFSDatasetTypeProperties deserializedAzureBlobFSDatasetTypeProperties
+ = new AzureBlobFSDatasetTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("folderPath".equals(fieldName)) {
+ deserializedAzureBlobFSDatasetTypeProperties.folderPath = reader.readUntyped();
+ } else if ("fileName".equals(fieldName)) {
+ deserializedAzureBlobFSDatasetTypeProperties.fileName = reader.readUntyped();
+ } else if ("format".equals(fieldName)) {
+ deserializedAzureBlobFSDatasetTypeProperties.format = DatasetStorageFormat.fromJson(reader);
+ } else if ("compression".equals(fieldName)) {
+ deserializedAzureBlobFSDatasetTypeProperties.compression = DatasetCompression.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureBlobFSDatasetTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSLinkedServiceTypeProperties.java
index 8f82b9b4cbfc..c607921c1bf1 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobFSLinkedServiceTypeProperties.java
@@ -5,45 +5,45 @@
package com.azure.resourcemanager.datafactory.fluent.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 com.azure.resourcemanager.datafactory.models.CredentialReference;
import com.azure.resourcemanager.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Azure Data Lake Storage Gen2 linked service properties.
*/
@Fluent
-public final class AzureBlobFSLinkedServiceTypeProperties {
+public final class AzureBlobFSLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "url")
private Object url;
/*
* Account key for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "accountKey")
private Object accountKey;
/*
* The ID of the application used to authenticate against the Azure Data Lake Storage Gen2 account. Type: string (or
* Expression with resultType string).
*/
- @JsonProperty(value = "servicePrincipalId")
private Object servicePrincipalId;
/*
* The Key of the application used to authenticate against the Azure Data Lake Storage Gen2 account.
*/
- @JsonProperty(value = "servicePrincipalKey")
private SecretBase servicePrincipalKey;
/*
* The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType
* string).
*/
- @JsonProperty(value = "tenant")
private Object tenant;
/*
@@ -51,27 +51,23 @@ public final class AzureBlobFSLinkedServiceTypeProperties {
* AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or
* Expression with resultType string).
*/
- @JsonProperty(value = "azureCloudType")
private Object azureCloudType;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/*
* The credential reference containing authentication information.
*/
- @JsonProperty(value = "credential")
private CredentialReference credential;
/*
* The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for
* key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "servicePrincipalCredentialType")
private Object servicePrincipalCredentialType;
/*
@@ -80,19 +76,16 @@ public final class AzureBlobFSLinkedServiceTypeProperties {
* servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be
* AzureKeyVaultSecretReference.
*/
- @JsonProperty(value = "servicePrincipalCredential")
private SecretBase servicePrincipalCredential;
/*
* SAS URI of the Azure Data Lake Storage Gen2 service. Type: string, SecureString or AzureKeyVaultSecretReference.
*/
- @JsonProperty(value = "sasUri")
private Object sasUri;
/*
* The Azure key vault secret reference of sasToken in sas uri.
*/
- @JsonProperty(value = "sasToken")
private SecretBase sasToken;
/**
@@ -390,4 +383,78 @@ public void validate() {
sasToken().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("url", this.url);
+ jsonWriter.writeUntypedField("accountKey", this.accountKey);
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ jsonWriter.writeJsonField("credential", this.credential);
+ jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ jsonWriter.writeJsonField("servicePrincipalCredential", this.servicePrincipalCredential);
+ jsonWriter.writeUntypedField("sasUri", this.sasUri);
+ jsonWriter.writeJsonField("sasToken", this.sasToken);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureBlobFSLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureBlobFSLinkedServiceTypeProperties 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 AzureBlobFSLinkedServiceTypeProperties.
+ */
+ public static AzureBlobFSLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureBlobFSLinkedServiceTypeProperties deserializedAzureBlobFSLinkedServiceTypeProperties
+ = new AzureBlobFSLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("url".equals(fieldName)) {
+ deserializedAzureBlobFSLinkedServiceTypeProperties.url = reader.readUntyped();
+ } else if ("accountKey".equals(fieldName)) {
+ deserializedAzureBlobFSLinkedServiceTypeProperties.accountKey = reader.readUntyped();
+ } else if ("servicePrincipalId".equals(fieldName)) {
+ deserializedAzureBlobFSLinkedServiceTypeProperties.servicePrincipalId = reader.readUntyped();
+ } else if ("servicePrincipalKey".equals(fieldName)) {
+ deserializedAzureBlobFSLinkedServiceTypeProperties.servicePrincipalKey
+ = SecretBase.fromJson(reader);
+ } else if ("tenant".equals(fieldName)) {
+ deserializedAzureBlobFSLinkedServiceTypeProperties.tenant = reader.readUntyped();
+ } else if ("azureCloudType".equals(fieldName)) {
+ deserializedAzureBlobFSLinkedServiceTypeProperties.azureCloudType = reader.readUntyped();
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAzureBlobFSLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else if ("credential".equals(fieldName)) {
+ deserializedAzureBlobFSLinkedServiceTypeProperties.credential
+ = CredentialReference.fromJson(reader);
+ } else if ("servicePrincipalCredentialType".equals(fieldName)) {
+ deserializedAzureBlobFSLinkedServiceTypeProperties.servicePrincipalCredentialType
+ = reader.readUntyped();
+ } else if ("servicePrincipalCredential".equals(fieldName)) {
+ deserializedAzureBlobFSLinkedServiceTypeProperties.servicePrincipalCredential
+ = SecretBase.fromJson(reader);
+ } else if ("sasUri".equals(fieldName)) {
+ deserializedAzureBlobFSLinkedServiceTypeProperties.sasUri = reader.readUntyped();
+ } else if ("sasToken".equals(fieldName)) {
+ deserializedAzureBlobFSLinkedServiceTypeProperties.sasToken = SecretBase.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureBlobFSLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobStorageLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobStorageLinkedServiceTypeProperties.java
index 6fcd32b211df..d9359edf275e 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobStorageLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureBlobStorageLinkedServiceTypeProperties.java
@@ -5,68 +5,65 @@
package com.azure.resourcemanager.datafactory.fluent.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 com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference;
import com.azure.resourcemanager.datafactory.models.AzureStorageAuthenticationType;
import com.azure.resourcemanager.datafactory.models.CredentialReference;
import com.azure.resourcemanager.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Azure Blob Storage linked service properties.
*/
@Fluent
-public final class AzureBlobStorageLinkedServiceTypeProperties {
+public final class AzureBlobStorageLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* The connection string. It is mutually exclusive with sasUri, serviceEndpoint property. Type: string, SecureString
* or AzureKeyVaultSecretReference.
*/
- @JsonProperty(value = "connectionString")
private Object connectionString;
/*
* The Azure key vault secret reference of accountKey in connection string.
*/
- @JsonProperty(value = "accountKey")
private AzureKeyVaultSecretReference accountKey;
/*
* SAS URI of the Azure Blob Storage resource. It is mutually exclusive with connectionString, serviceEndpoint
* property. Type: string, SecureString or AzureKeyVaultSecretReference.
*/
- @JsonProperty(value = "sasUri")
private Object sasUri;
/*
* The Azure key vault secret reference of sasToken in sas uri.
*/
- @JsonProperty(value = "sasToken")
private AzureKeyVaultSecretReference sasToken;
/*
* Blob service endpoint of the Azure Blob Storage resource. It is mutually exclusive with connectionString, sasUri
* property.
*/
- @JsonProperty(value = "serviceEndpoint")
private Object serviceEndpoint;
/*
* The ID of the service principal used to authenticate against Azure SQL Data Warehouse. Type: string (or
* Expression with resultType string).
*/
- @JsonProperty(value = "servicePrincipalId")
private Object servicePrincipalId;
/*
* The key of the service principal used to authenticate against Azure SQL Data Warehouse.
*/
- @JsonProperty(value = "servicePrincipalKey")
private SecretBase servicePrincipalKey;
/*
* The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType
* string).
*/
- @JsonProperty(value = "tenant")
private Object tenant;
/*
@@ -74,40 +71,34 @@ public final class AzureBlobStorageLinkedServiceTypeProperties {
* AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or
* Expression with resultType string).
*/
- @JsonProperty(value = "azureCloudType")
private Object azureCloudType;
/*
* Specify the kind of your storage account. Allowed values are: Storage (general purpose v1), StorageV2 (general
* purpose v2), BlobStorage, or BlockBlobStorage. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "accountKind")
private Object accountKind;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/*
* The credential reference containing authentication information.
*/
- @JsonProperty(value = "credential")
private CredentialReference credential;
/*
* The type used for authentication. Type: string.
*/
- @JsonProperty(value = "authenticationType")
private AzureStorageAuthenticationType authenticationType;
/*
* Container uri of the Azure Blob Storage resource only support for anonymous access. Type: string (or Expression
* with resultType string).
*/
- @JsonProperty(value = "containerUri")
private Object containerUri;
/**
@@ -440,4 +431,86 @@ public void validate() {
credential().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ jsonWriter.writeJsonField("accountKey", this.accountKey);
+ jsonWriter.writeUntypedField("sasUri", this.sasUri);
+ jsonWriter.writeJsonField("sasToken", this.sasToken);
+ jsonWriter.writeUntypedField("serviceEndpoint", this.serviceEndpoint);
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
+ jsonWriter.writeUntypedField("accountKind", this.accountKind);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ jsonWriter.writeJsonField("credential", this.credential);
+ jsonWriter.writeStringField("authenticationType",
+ this.authenticationType == null ? null : this.authenticationType.toString());
+ jsonWriter.writeUntypedField("containerUri", this.containerUri);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureBlobStorageLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureBlobStorageLinkedServiceTypeProperties 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 AzureBlobStorageLinkedServiceTypeProperties.
+ */
+ public static AzureBlobStorageLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureBlobStorageLinkedServiceTypeProperties deserializedAzureBlobStorageLinkedServiceTypeProperties
+ = new AzureBlobStorageLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("connectionString".equals(fieldName)) {
+ deserializedAzureBlobStorageLinkedServiceTypeProperties.connectionString = reader.readUntyped();
+ } else if ("accountKey".equals(fieldName)) {
+ deserializedAzureBlobStorageLinkedServiceTypeProperties.accountKey
+ = AzureKeyVaultSecretReference.fromJson(reader);
+ } else if ("sasUri".equals(fieldName)) {
+ deserializedAzureBlobStorageLinkedServiceTypeProperties.sasUri = reader.readUntyped();
+ } else if ("sasToken".equals(fieldName)) {
+ deserializedAzureBlobStorageLinkedServiceTypeProperties.sasToken
+ = AzureKeyVaultSecretReference.fromJson(reader);
+ } else if ("serviceEndpoint".equals(fieldName)) {
+ deserializedAzureBlobStorageLinkedServiceTypeProperties.serviceEndpoint = reader.readUntyped();
+ } else if ("servicePrincipalId".equals(fieldName)) {
+ deserializedAzureBlobStorageLinkedServiceTypeProperties.servicePrincipalId = reader.readUntyped();
+ } else if ("servicePrincipalKey".equals(fieldName)) {
+ deserializedAzureBlobStorageLinkedServiceTypeProperties.servicePrincipalKey
+ = SecretBase.fromJson(reader);
+ } else if ("tenant".equals(fieldName)) {
+ deserializedAzureBlobStorageLinkedServiceTypeProperties.tenant = reader.readUntyped();
+ } else if ("azureCloudType".equals(fieldName)) {
+ deserializedAzureBlobStorageLinkedServiceTypeProperties.azureCloudType = reader.readUntyped();
+ } else if ("accountKind".equals(fieldName)) {
+ deserializedAzureBlobStorageLinkedServiceTypeProperties.accountKind = reader.readUntyped();
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAzureBlobStorageLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else if ("credential".equals(fieldName)) {
+ deserializedAzureBlobStorageLinkedServiceTypeProperties.credential
+ = CredentialReference.fromJson(reader);
+ } else if ("authenticationType".equals(fieldName)) {
+ deserializedAzureBlobStorageLinkedServiceTypeProperties.authenticationType
+ = AzureStorageAuthenticationType.fromString(reader.getString());
+ } else if ("containerUri".equals(fieldName)) {
+ deserializedAzureBlobStorageLinkedServiceTypeProperties.containerUri = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureBlobStorageLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerCommandActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerCommandActivityTypeProperties.java
index 213912d2a690..7146b8ff2fd7 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerCommandActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerCommandActivityTypeProperties.java
@@ -6,25 +6,28 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Azure Data Explorer command activity properties.
*/
@Fluent
-public final class AzureDataExplorerCommandActivityTypeProperties {
+public final class AzureDataExplorerCommandActivityTypeProperties
+ implements JsonSerializable {
/*
* A control command, according to the Azure Data Explorer command syntax. Type: string (or Expression with
* resultType string).
*/
- @JsonProperty(value = "command", required = true)
private Object command;
/*
* Control command timeout. Type: string (or Expression with resultType string), pattern:
* ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..)
*/
- @JsonProperty(value = "commandTimeout")
private Object commandTimeout;
/**
@@ -91,4 +94,45 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AzureDataExplorerCommandActivityTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("command", this.command);
+ jsonWriter.writeUntypedField("commandTimeout", this.commandTimeout);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureDataExplorerCommandActivityTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureDataExplorerCommandActivityTypeProperties 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 AzureDataExplorerCommandActivityTypeProperties.
+ */
+ public static AzureDataExplorerCommandActivityTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureDataExplorerCommandActivityTypeProperties deserializedAzureDataExplorerCommandActivityTypeProperties
+ = new AzureDataExplorerCommandActivityTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("command".equals(fieldName)) {
+ deserializedAzureDataExplorerCommandActivityTypeProperties.command = reader.readUntyped();
+ } else if ("commandTimeout".equals(fieldName)) {
+ deserializedAzureDataExplorerCommandActivityTypeProperties.commandTimeout = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureDataExplorerCommandActivityTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerDatasetTypeProperties.java
index b4a6d0e3bd06..1bb13d7e0a05 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerDatasetTypeProperties.java
@@ -5,17 +5,21 @@
package com.azure.resourcemanager.datafactory.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Azure Data Explorer (Kusto) dataset properties.
*/
@Fluent
-public final class AzureDataExplorerDatasetTypeProperties {
+public final class AzureDataExplorerDatasetTypeProperties
+ implements JsonSerializable {
/*
* The table name of the Azure Data Explorer database. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "table")
private Object table;
/**
@@ -53,4 +57,41 @@ public AzureDataExplorerDatasetTypeProperties withTable(Object table) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("table", this.table);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureDataExplorerDatasetTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureDataExplorerDatasetTypeProperties 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 AzureDataExplorerDatasetTypeProperties.
+ */
+ public static AzureDataExplorerDatasetTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureDataExplorerDatasetTypeProperties deserializedAzureDataExplorerDatasetTypeProperties
+ = new AzureDataExplorerDatasetTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("table".equals(fieldName)) {
+ deserializedAzureDataExplorerDatasetTypeProperties.table = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureDataExplorerDatasetTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerLinkedServiceTypeProperties.java
index df4181273130..4d0e6928bac0 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataExplorerLinkedServiceTypeProperties.java
@@ -6,52 +6,51 @@
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.datafactory.models.CredentialReference;
import com.azure.resourcemanager.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Azure Data Explorer (Kusto) linked service properties.
*/
@Fluent
-public final class AzureDataExplorerLinkedServiceTypeProperties {
+public final class AzureDataExplorerLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* The endpoint of Azure Data Explorer (the engine's endpoint). URL will be in the format
* https://..kusto.windows.net. Type: string (or Expression with resultType string)
*/
- @JsonProperty(value = "endpoint", required = true)
private Object endpoint;
/*
* The ID of the service principal used to authenticate against Azure Data Explorer. Type: string (or Expression
* with resultType string).
*/
- @JsonProperty(value = "servicePrincipalId")
private Object servicePrincipalId;
/*
* The key of the service principal used to authenticate against Kusto.
*/
- @JsonProperty(value = "servicePrincipalKey")
private SecretBase servicePrincipalKey;
/*
* Database name for connection. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "database", required = true)
private Object database;
/*
* The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType
* string).
*/
- @JsonProperty(value = "tenant")
private Object tenant;
/*
* The credential reference containing authentication information.
*/
- @JsonProperty(value = "credential")
private CredentialReference credential;
/**
@@ -213,4 +212,59 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AzureDataExplorerLinkedServiceTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("endpoint", this.endpoint);
+ jsonWriter.writeUntypedField("database", this.database);
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ jsonWriter.writeJsonField("credential", this.credential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureDataExplorerLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureDataExplorerLinkedServiceTypeProperties 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 AzureDataExplorerLinkedServiceTypeProperties.
+ */
+ public static AzureDataExplorerLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureDataExplorerLinkedServiceTypeProperties deserializedAzureDataExplorerLinkedServiceTypeProperties
+ = new AzureDataExplorerLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("endpoint".equals(fieldName)) {
+ deserializedAzureDataExplorerLinkedServiceTypeProperties.endpoint = reader.readUntyped();
+ } else if ("database".equals(fieldName)) {
+ deserializedAzureDataExplorerLinkedServiceTypeProperties.database = reader.readUntyped();
+ } else if ("servicePrincipalId".equals(fieldName)) {
+ deserializedAzureDataExplorerLinkedServiceTypeProperties.servicePrincipalId = reader.readUntyped();
+ } else if ("servicePrincipalKey".equals(fieldName)) {
+ deserializedAzureDataExplorerLinkedServiceTypeProperties.servicePrincipalKey
+ = SecretBase.fromJson(reader);
+ } else if ("tenant".equals(fieldName)) {
+ deserializedAzureDataExplorerLinkedServiceTypeProperties.tenant = reader.readUntyped();
+ } else if ("credential".equals(fieldName)) {
+ deserializedAzureDataExplorerLinkedServiceTypeProperties.credential
+ = CredentialReference.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureDataExplorerLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeAnalyticsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeAnalyticsLinkedServiceTypeProperties.java
index 58ad7c72fa87..ab46a2b4957c 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeAnalyticsLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeAnalyticsLinkedServiceTypeProperties.java
@@ -6,65 +6,62 @@
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.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Azure Data Lake Analytics linked service properties.
*/
@Fluent
-public final class AzureDataLakeAnalyticsLinkedServiceTypeProperties {
+public final class AzureDataLakeAnalyticsLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* The Azure Data Lake Analytics account name. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "accountName", required = true)
private Object accountName;
/*
* The ID of the application used to authenticate against the Azure Data Lake Analytics account. Type: string (or
* Expression with resultType string).
*/
- @JsonProperty(value = "servicePrincipalId")
private Object servicePrincipalId;
/*
* The Key of the application used to authenticate against the Azure Data Lake Analytics account.
*/
- @JsonProperty(value = "servicePrincipalKey")
private SecretBase servicePrincipalKey;
/*
* The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType
* string).
*/
- @JsonProperty(value = "tenant", required = true)
private Object tenant;
/*
* Data Lake Analytics account subscription ID (if different from Data Factory account). Type: string (or Expression
* with resultType string).
*/
- @JsonProperty(value = "subscriptionId")
private Object subscriptionId;
/*
* Data Lake Analytics account resource group name (if different from Data Factory account). Type: string (or
* Expression with resultType string).
*/
- @JsonProperty(value = "resourceGroupName")
private Object resourceGroupName;
/*
* Azure Data Lake Analytics URI Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "dataLakeAnalyticsUri")
private Object dataLakeAnalyticsUri;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/**
@@ -272,4 +269,68 @@ public void validate() {
private static final ClientLogger LOGGER
= new ClientLogger(AzureDataLakeAnalyticsLinkedServiceTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("accountName", this.accountName);
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
+ jsonWriter.writeUntypedField("subscriptionId", this.subscriptionId);
+ jsonWriter.writeUntypedField("resourceGroupName", this.resourceGroupName);
+ jsonWriter.writeUntypedField("dataLakeAnalyticsUri", this.dataLakeAnalyticsUri);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureDataLakeAnalyticsLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureDataLakeAnalyticsLinkedServiceTypeProperties 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 AzureDataLakeAnalyticsLinkedServiceTypeProperties.
+ */
+ public static AzureDataLakeAnalyticsLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureDataLakeAnalyticsLinkedServiceTypeProperties deserializedAzureDataLakeAnalyticsLinkedServiceTypeProperties
+ = new AzureDataLakeAnalyticsLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("accountName".equals(fieldName)) {
+ deserializedAzureDataLakeAnalyticsLinkedServiceTypeProperties.accountName = reader.readUntyped();
+ } else if ("tenant".equals(fieldName)) {
+ deserializedAzureDataLakeAnalyticsLinkedServiceTypeProperties.tenant = reader.readUntyped();
+ } else if ("servicePrincipalId".equals(fieldName)) {
+ deserializedAzureDataLakeAnalyticsLinkedServiceTypeProperties.servicePrincipalId
+ = reader.readUntyped();
+ } else if ("servicePrincipalKey".equals(fieldName)) {
+ deserializedAzureDataLakeAnalyticsLinkedServiceTypeProperties.servicePrincipalKey
+ = SecretBase.fromJson(reader);
+ } else if ("subscriptionId".equals(fieldName)) {
+ deserializedAzureDataLakeAnalyticsLinkedServiceTypeProperties.subscriptionId = reader.readUntyped();
+ } else if ("resourceGroupName".equals(fieldName)) {
+ deserializedAzureDataLakeAnalyticsLinkedServiceTypeProperties.resourceGroupName
+ = reader.readUntyped();
+ } else if ("dataLakeAnalyticsUri".equals(fieldName)) {
+ deserializedAzureDataLakeAnalyticsLinkedServiceTypeProperties.dataLakeAnalyticsUri
+ = reader.readUntyped();
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAzureDataLakeAnalyticsLinkedServiceTypeProperties.encryptedCredential
+ = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureDataLakeAnalyticsLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreDatasetTypeProperties.java
index e50b858b5a1e..abe8b202c289 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreDatasetTypeProperties.java
@@ -5,37 +5,38 @@
package com.azure.resourcemanager.datafactory.fluent.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 com.azure.resourcemanager.datafactory.models.DatasetCompression;
import com.azure.resourcemanager.datafactory.models.DatasetStorageFormat;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Azure Data Lake Store dataset properties.
*/
@Fluent
-public final class AzureDataLakeStoreDatasetTypeProperties {
+public final class AzureDataLakeStoreDatasetTypeProperties
+ implements JsonSerializable {
/*
* Path to the folder in the Azure Data Lake Store. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "folderPath")
private Object folderPath;
/*
* The name of the file in the Azure Data Lake Store. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "fileName")
private Object fileName;
/*
* The format of the Data Lake Store.
*/
- @JsonProperty(value = "format")
private DatasetStorageFormat format;
/*
* The data compression method used for the item(s) in the Azure Data Lake Store.
*/
- @JsonProperty(value = "compression")
private DatasetCompression compression;
/**
@@ -141,4 +142,51 @@ public void validate() {
compression().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("folderPath", this.folderPath);
+ jsonWriter.writeUntypedField("fileName", this.fileName);
+ jsonWriter.writeJsonField("format", this.format);
+ jsonWriter.writeJsonField("compression", this.compression);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureDataLakeStoreDatasetTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureDataLakeStoreDatasetTypeProperties 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 AzureDataLakeStoreDatasetTypeProperties.
+ */
+ public static AzureDataLakeStoreDatasetTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureDataLakeStoreDatasetTypeProperties deserializedAzureDataLakeStoreDatasetTypeProperties
+ = new AzureDataLakeStoreDatasetTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("folderPath".equals(fieldName)) {
+ deserializedAzureDataLakeStoreDatasetTypeProperties.folderPath = reader.readUntyped();
+ } else if ("fileName".equals(fieldName)) {
+ deserializedAzureDataLakeStoreDatasetTypeProperties.fileName = reader.readUntyped();
+ } else if ("format".equals(fieldName)) {
+ deserializedAzureDataLakeStoreDatasetTypeProperties.format = DatasetStorageFormat.fromJson(reader);
+ } else if ("compression".equals(fieldName)) {
+ deserializedAzureDataLakeStoreDatasetTypeProperties.compression
+ = DatasetCompression.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureDataLakeStoreDatasetTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreLinkedServiceTypeProperties.java
index 5d5c7a404534..ddeecc860546 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDataLakeStoreLinkedServiceTypeProperties.java
@@ -6,39 +6,40 @@
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.datafactory.models.CredentialReference;
import com.azure.resourcemanager.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Azure Data Lake Store linked service properties.
*/
@Fluent
-public final class AzureDataLakeStoreLinkedServiceTypeProperties {
+public final class AzureDataLakeStoreLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* Data Lake Store service URI. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "dataLakeStoreUri", required = true)
private Object dataLakeStoreUri;
/*
* The ID of the application used to authenticate against the Azure Data Lake Store account. Type: string (or
* Expression with resultType string).
*/
- @JsonProperty(value = "servicePrincipalId")
private Object servicePrincipalId;
/*
* The Key of the application used to authenticate against the Azure Data Lake Store account.
*/
- @JsonProperty(value = "servicePrincipalKey")
private SecretBase servicePrincipalKey;
/*
* The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType
* string).
*/
- @JsonProperty(value = "tenant")
private Object tenant;
/*
@@ -46,40 +47,34 @@ public final class AzureDataLakeStoreLinkedServiceTypeProperties {
* AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or
* Expression with resultType string).
*/
- @JsonProperty(value = "azureCloudType")
private Object azureCloudType;
/*
* Data Lake Store account name. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "accountName")
private Object accountName;
/*
* Data Lake Store account subscription ID (if different from Data Factory account). Type: string (or Expression
* with resultType string).
*/
- @JsonProperty(value = "subscriptionId")
private Object subscriptionId;
/*
* Data Lake Store account resource group name (if different from Data Factory account). Type: string (or Expression
* with resultType string).
*/
- @JsonProperty(value = "resourceGroupName")
private Object resourceGroupName;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/*
* The credential reference containing authentication information.
*/
- @JsonProperty(value = "credential")
private CredentialReference credential;
/**
@@ -326,4 +321,71 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AzureDataLakeStoreLinkedServiceTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("dataLakeStoreUri", this.dataLakeStoreUri);
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
+ jsonWriter.writeUntypedField("accountName", this.accountName);
+ jsonWriter.writeUntypedField("subscriptionId", this.subscriptionId);
+ jsonWriter.writeUntypedField("resourceGroupName", this.resourceGroupName);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ jsonWriter.writeJsonField("credential", this.credential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureDataLakeStoreLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureDataLakeStoreLinkedServiceTypeProperties 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 AzureDataLakeStoreLinkedServiceTypeProperties.
+ */
+ public static AzureDataLakeStoreLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureDataLakeStoreLinkedServiceTypeProperties deserializedAzureDataLakeStoreLinkedServiceTypeProperties
+ = new AzureDataLakeStoreLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("dataLakeStoreUri".equals(fieldName)) {
+ deserializedAzureDataLakeStoreLinkedServiceTypeProperties.dataLakeStoreUri = reader.readUntyped();
+ } else if ("servicePrincipalId".equals(fieldName)) {
+ deserializedAzureDataLakeStoreLinkedServiceTypeProperties.servicePrincipalId = reader.readUntyped();
+ } else if ("servicePrincipalKey".equals(fieldName)) {
+ deserializedAzureDataLakeStoreLinkedServiceTypeProperties.servicePrincipalKey
+ = SecretBase.fromJson(reader);
+ } else if ("tenant".equals(fieldName)) {
+ deserializedAzureDataLakeStoreLinkedServiceTypeProperties.tenant = reader.readUntyped();
+ } else if ("azureCloudType".equals(fieldName)) {
+ deserializedAzureDataLakeStoreLinkedServiceTypeProperties.azureCloudType = reader.readUntyped();
+ } else if ("accountName".equals(fieldName)) {
+ deserializedAzureDataLakeStoreLinkedServiceTypeProperties.accountName = reader.readUntyped();
+ } else if ("subscriptionId".equals(fieldName)) {
+ deserializedAzureDataLakeStoreLinkedServiceTypeProperties.subscriptionId = reader.readUntyped();
+ } else if ("resourceGroupName".equals(fieldName)) {
+ deserializedAzureDataLakeStoreLinkedServiceTypeProperties.resourceGroupName = reader.readUntyped();
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAzureDataLakeStoreLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else if ("credential".equals(fieldName)) {
+ deserializedAzureDataLakeStoreLinkedServiceTypeProperties.credential
+ = CredentialReference.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureDataLakeStoreLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDeltaLakeDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDeltaLakeDatasetTypeProperties.java
index c32e464f0019..aaf7a602e1fc 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDeltaLakeDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDeltaLakeDatasetTypeProperties.java
@@ -5,23 +5,26 @@
package com.azure.resourcemanager.datafactory.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Azure Databricks Delta Lake Dataset Properties.
*/
@Fluent
-public final class AzureDatabricksDeltaLakeDatasetTypeProperties {
+public final class AzureDatabricksDeltaLakeDatasetTypeProperties
+ implements JsonSerializable {
/*
* The name of delta table. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "table")
private Object table;
/*
* The database name of delta table. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "database")
private Object database;
/**
@@ -77,4 +80,44 @@ public AzureDatabricksDeltaLakeDatasetTypeProperties withDatabase(Object databas
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("table", this.table);
+ jsonWriter.writeUntypedField("database", this.database);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureDatabricksDeltaLakeDatasetTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureDatabricksDeltaLakeDatasetTypeProperties 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 AzureDatabricksDeltaLakeDatasetTypeProperties.
+ */
+ public static AzureDatabricksDeltaLakeDatasetTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureDatabricksDeltaLakeDatasetTypeProperties deserializedAzureDatabricksDeltaLakeDatasetTypeProperties
+ = new AzureDatabricksDeltaLakeDatasetTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("table".equals(fieldName)) {
+ deserializedAzureDatabricksDeltaLakeDatasetTypeProperties.table = reader.readUntyped();
+ } else if ("database".equals(fieldName)) {
+ deserializedAzureDatabricksDeltaLakeDatasetTypeProperties.database = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureDatabricksDeltaLakeDatasetTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDetltaLakeLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDetltaLakeLinkedServiceTypeProperties.java
index fc130bf2ad90..b097fadf1e84 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDetltaLakeLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksDetltaLakeLinkedServiceTypeProperties.java
@@ -6,53 +6,52 @@
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.datafactory.models.CredentialReference;
import com.azure.resourcemanager.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Azure Databricks Delta Lake linked service properties.
*/
@Fluent
-public final class AzureDatabricksDetltaLakeLinkedServiceTypeProperties {
+public final class AzureDatabricksDetltaLakeLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* .azuredatabricks.net, domain name of your Databricks deployment. Type: string (or Expression with
* resultType string).
*/
- @JsonProperty(value = "domain", required = true)
private Object domain;
/*
* Access token for databricks REST API. Refer to https://docs.azuredatabricks.net/api/latest/authentication.html.
* Type: string, SecureString or AzureKeyVaultSecretReference.
*/
- @JsonProperty(value = "accessToken")
private SecretBase accessToken;
/*
* The id of an existing interactive cluster that will be used for all runs of this job. Type: string (or Expression
* with resultType string).
*/
- @JsonProperty(value = "clusterId")
private Object clusterId;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/*
* The credential reference containing authentication information.
*/
- @JsonProperty(value = "credential")
private CredentialReference credential;
/*
* Workspace resource id for databricks REST API. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "workspaceResourceId")
private Object workspaceResourceId;
/**
@@ -214,4 +213,62 @@ public void validate() {
private static final ClientLogger LOGGER
= new ClientLogger(AzureDatabricksDetltaLakeLinkedServiceTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("domain", this.domain);
+ jsonWriter.writeJsonField("accessToken", this.accessToken);
+ jsonWriter.writeUntypedField("clusterId", this.clusterId);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ jsonWriter.writeJsonField("credential", this.credential);
+ jsonWriter.writeUntypedField("workspaceResourceId", this.workspaceResourceId);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureDatabricksDetltaLakeLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureDatabricksDetltaLakeLinkedServiceTypeProperties 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 AzureDatabricksDetltaLakeLinkedServiceTypeProperties.
+ */
+ public static AzureDatabricksDetltaLakeLinkedServiceTypeProperties fromJson(JsonReader jsonReader)
+ throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureDatabricksDetltaLakeLinkedServiceTypeProperties deserializedAzureDatabricksDetltaLakeLinkedServiceTypeProperties
+ = new AzureDatabricksDetltaLakeLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("domain".equals(fieldName)) {
+ deserializedAzureDatabricksDetltaLakeLinkedServiceTypeProperties.domain = reader.readUntyped();
+ } else if ("accessToken".equals(fieldName)) {
+ deserializedAzureDatabricksDetltaLakeLinkedServiceTypeProperties.accessToken
+ = SecretBase.fromJson(reader);
+ } else if ("clusterId".equals(fieldName)) {
+ deserializedAzureDatabricksDetltaLakeLinkedServiceTypeProperties.clusterId = reader.readUntyped();
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAzureDatabricksDetltaLakeLinkedServiceTypeProperties.encryptedCredential
+ = reader.getString();
+ } else if ("credential".equals(fieldName)) {
+ deserializedAzureDatabricksDetltaLakeLinkedServiceTypeProperties.credential
+ = CredentialReference.fromJson(reader);
+ } else if ("workspaceResourceId".equals(fieldName)) {
+ deserializedAzureDatabricksDetltaLakeLinkedServiceTypeProperties.workspaceResourceId
+ = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureDatabricksDetltaLakeLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksLinkedServiceTypeProperties.java
index 76487042bba6..e265b16d8d06 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureDatabricksLinkedServiceTypeProperties.java
@@ -6,56 +6,54 @@
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.datafactory.models.CredentialReference;
import com.azure.resourcemanager.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.Map;
/**
* Azure Databricks linked service properties.
*/
@Fluent
-public final class AzureDatabricksLinkedServiceTypeProperties {
+public final class AzureDatabricksLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* .azuredatabricks.net, domain name of your Databricks deployment. Type: string (or Expression with
* resultType string).
*/
- @JsonProperty(value = "domain", required = true)
private Object domain;
/*
* Access token for databricks REST API. Refer to https://docs.azuredatabricks.net/api/latest/authentication.html.
* Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "accessToken")
private SecretBase accessToken;
/*
* Required to specify MSI, if using Workspace resource id for databricks REST API. Type: string (or Expression with
* resultType string).
*/
- @JsonProperty(value = "authentication")
private Object authentication;
/*
* Workspace resource id for databricks REST API. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "workspaceResourceId")
private Object workspaceResourceId;
/*
* The id of an existing interactive cluster that will be used for all runs of this activity. Type: string (or
* Expression with resultType string).
*/
- @JsonProperty(value = "existingClusterId")
private Object existingClusterId;
/*
* The id of an existing instance pool that will be used for all runs of this activity. Type: string (or Expression
* with resultType string).
*/
- @JsonProperty(value = "instancePoolId")
private Object instancePoolId;
/*
@@ -63,7 +61,6 @@ public final class AzureDatabricksLinkedServiceTypeProperties {
* pool nodes created for each run of this activity. Required if instancePoolId is specified. Type: string (or
* Expression with resultType string).
*/
- @JsonProperty(value = "newClusterVersion")
private Object newClusterVersion;
/*
@@ -73,7 +70,6 @@ public final class AzureDatabricksLinkedServiceTypeProperties {
* only specify a fixed number of worker nodes, such as '2'. Required if newClusterVersion is specified. Type:
* string (or Expression with resultType string).
*/
- @JsonProperty(value = "newClusterNumOfWorker")
private Object newClusterNumOfWorker;
/*
@@ -81,76 +77,62 @@ public final class AzureDatabricksLinkedServiceTypeProperties {
* instancePoolId is not specified. If instancePoolId is specified, this property is ignored. Type: string (or
* Expression with resultType string).
*/
- @JsonProperty(value = "newClusterNodeType")
private Object newClusterNodeType;
/*
* A set of optional, user-specified Spark configuration key-value pairs.
*/
- @JsonProperty(value = "newClusterSparkConf")
- @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map newClusterSparkConf;
/*
* A set of optional, user-specified Spark environment variables key-value pairs.
*/
- @JsonProperty(value = "newClusterSparkEnvVars")
- @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map newClusterSparkEnvVars;
/*
* Additional tags for cluster resources. This property is ignored in instance pool configurations.
*/
- @JsonProperty(value = "newClusterCustomTags")
- @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map newClusterCustomTags;
/*
* Specify a location to deliver Spark driver, worker, and event logs. Type: string (or Expression with resultType
* string).
*/
- @JsonProperty(value = "newClusterLogDestination")
private Object newClusterLogDestination;
/*
* The driver node type for the new job cluster. This property is ignored in instance pool configurations. Type:
* string (or Expression with resultType string).
*/
- @JsonProperty(value = "newClusterDriverNodeType")
private Object newClusterDriverNodeType;
/*
* User-defined initialization scripts for the new cluster. Type: array of strings (or Expression with resultType
* array of strings).
*/
- @JsonProperty(value = "newClusterInitScripts")
private Object newClusterInitScripts;
/*
* Enable the elastic disk on the new cluster. This property is now ignored, and takes the default elastic disk
* behavior in Databricks (elastic disks are always enabled). Type: boolean (or Expression with resultType boolean).
*/
- @JsonProperty(value = "newClusterEnableElasticDisk")
private Object newClusterEnableElasticDisk;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/*
* The policy id for limiting the ability to configure clusters based on a user defined set of rules. Type: string
* (or Expression with resultType string).
*/
- @JsonProperty(value = "policyId")
private Object policyId;
/*
* The credential reference containing authentication information.
*/
- @JsonProperty(value = "credential")
private CredentialReference credential;
/**
@@ -610,4 +592,107 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AzureDatabricksLinkedServiceTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("domain", this.domain);
+ jsonWriter.writeJsonField("accessToken", this.accessToken);
+ jsonWriter.writeUntypedField("authentication", this.authentication);
+ jsonWriter.writeUntypedField("workspaceResourceId", this.workspaceResourceId);
+ jsonWriter.writeUntypedField("existingClusterId", this.existingClusterId);
+ jsonWriter.writeUntypedField("instancePoolId", this.instancePoolId);
+ jsonWriter.writeUntypedField("newClusterVersion", this.newClusterVersion);
+ jsonWriter.writeUntypedField("newClusterNumOfWorker", this.newClusterNumOfWorker);
+ jsonWriter.writeUntypedField("newClusterNodeType", this.newClusterNodeType);
+ jsonWriter.writeMapField("newClusterSparkConf", this.newClusterSparkConf,
+ (writer, element) -> writer.writeUntyped(element));
+ jsonWriter.writeMapField("newClusterSparkEnvVars", this.newClusterSparkEnvVars,
+ (writer, element) -> writer.writeUntyped(element));
+ jsonWriter.writeMapField("newClusterCustomTags", this.newClusterCustomTags,
+ (writer, element) -> writer.writeUntyped(element));
+ jsonWriter.writeUntypedField("newClusterLogDestination", this.newClusterLogDestination);
+ jsonWriter.writeUntypedField("newClusterDriverNodeType", this.newClusterDriverNodeType);
+ jsonWriter.writeUntypedField("newClusterInitScripts", this.newClusterInitScripts);
+ jsonWriter.writeUntypedField("newClusterEnableElasticDisk", this.newClusterEnableElasticDisk);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ jsonWriter.writeUntypedField("policyId", this.policyId);
+ jsonWriter.writeJsonField("credential", this.credential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureDatabricksLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureDatabricksLinkedServiceTypeProperties 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 AzureDatabricksLinkedServiceTypeProperties.
+ */
+ public static AzureDatabricksLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureDatabricksLinkedServiceTypeProperties deserializedAzureDatabricksLinkedServiceTypeProperties
+ = new AzureDatabricksLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("domain".equals(fieldName)) {
+ deserializedAzureDatabricksLinkedServiceTypeProperties.domain = reader.readUntyped();
+ } else if ("accessToken".equals(fieldName)) {
+ deserializedAzureDatabricksLinkedServiceTypeProperties.accessToken = SecretBase.fromJson(reader);
+ } else if ("authentication".equals(fieldName)) {
+ deserializedAzureDatabricksLinkedServiceTypeProperties.authentication = reader.readUntyped();
+ } else if ("workspaceResourceId".equals(fieldName)) {
+ deserializedAzureDatabricksLinkedServiceTypeProperties.workspaceResourceId = reader.readUntyped();
+ } else if ("existingClusterId".equals(fieldName)) {
+ deserializedAzureDatabricksLinkedServiceTypeProperties.existingClusterId = reader.readUntyped();
+ } else if ("instancePoolId".equals(fieldName)) {
+ deserializedAzureDatabricksLinkedServiceTypeProperties.instancePoolId = reader.readUntyped();
+ } else if ("newClusterVersion".equals(fieldName)) {
+ deserializedAzureDatabricksLinkedServiceTypeProperties.newClusterVersion = reader.readUntyped();
+ } else if ("newClusterNumOfWorker".equals(fieldName)) {
+ deserializedAzureDatabricksLinkedServiceTypeProperties.newClusterNumOfWorker = reader.readUntyped();
+ } else if ("newClusterNodeType".equals(fieldName)) {
+ deserializedAzureDatabricksLinkedServiceTypeProperties.newClusterNodeType = reader.readUntyped();
+ } else if ("newClusterSparkConf".equals(fieldName)) {
+ Map newClusterSparkConf = reader.readMap(reader1 -> reader1.readUntyped());
+ deserializedAzureDatabricksLinkedServiceTypeProperties.newClusterSparkConf = newClusterSparkConf;
+ } else if ("newClusterSparkEnvVars".equals(fieldName)) {
+ Map newClusterSparkEnvVars = reader.readMap(reader1 -> reader1.readUntyped());
+ deserializedAzureDatabricksLinkedServiceTypeProperties.newClusterSparkEnvVars
+ = newClusterSparkEnvVars;
+ } else if ("newClusterCustomTags".equals(fieldName)) {
+ Map newClusterCustomTags = reader.readMap(reader1 -> reader1.readUntyped());
+ deserializedAzureDatabricksLinkedServiceTypeProperties.newClusterCustomTags = newClusterCustomTags;
+ } else if ("newClusterLogDestination".equals(fieldName)) {
+ deserializedAzureDatabricksLinkedServiceTypeProperties.newClusterLogDestination
+ = reader.readUntyped();
+ } else if ("newClusterDriverNodeType".equals(fieldName)) {
+ deserializedAzureDatabricksLinkedServiceTypeProperties.newClusterDriverNodeType
+ = reader.readUntyped();
+ } else if ("newClusterInitScripts".equals(fieldName)) {
+ deserializedAzureDatabricksLinkedServiceTypeProperties.newClusterInitScripts = reader.readUntyped();
+ } else if ("newClusterEnableElasticDisk".equals(fieldName)) {
+ deserializedAzureDatabricksLinkedServiceTypeProperties.newClusterEnableElasticDisk
+ = reader.readUntyped();
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAzureDatabricksLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else if ("policyId".equals(fieldName)) {
+ deserializedAzureDatabricksLinkedServiceTypeProperties.policyId = reader.readUntyped();
+ } else if ("credential".equals(fieldName)) {
+ deserializedAzureDatabricksLinkedServiceTypeProperties.credential
+ = CredentialReference.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureDatabricksLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFileStorageLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFileStorageLinkedServiceTypeProperties.java
index c86b7def881d..2d0523f08a71 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFileStorageLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFileStorageLinkedServiceTypeProperties.java
@@ -5,79 +5,86 @@
package com.azure.resourcemanager.datafactory.fluent.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 com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference;
+import com.azure.resourcemanager.datafactory.models.CredentialReference;
import com.azure.resourcemanager.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Azure File Storage linked service properties.
*/
@Fluent
-public final class AzureFileStorageLinkedServiceTypeProperties {
+public final class AzureFileStorageLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* Host name of the server. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "host")
private Object host;
/*
* User ID to logon the server. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "userId")
private Object userId;
/*
* Password to logon the server.
*/
- @JsonProperty(value = "password")
private SecretBase password;
/*
* The connection string. It is mutually exclusive with sasUri property. Type: string, SecureString or
* AzureKeyVaultSecretReference.
*/
- @JsonProperty(value = "connectionString")
private Object connectionString;
/*
* The Azure key vault secret reference of accountKey in connection string.
*/
- @JsonProperty(value = "accountKey")
private AzureKeyVaultSecretReference accountKey;
/*
* SAS URI of the Azure File resource. It is mutually exclusive with connectionString property. Type: string,
* SecureString or AzureKeyVaultSecretReference.
*/
- @JsonProperty(value = "sasUri")
private Object sasUri;
/*
* The Azure key vault secret reference of sasToken in sas uri.
*/
- @JsonProperty(value = "sasToken")
private AzureKeyVaultSecretReference sasToken;
/*
* The azure file share name. It is required when auth with accountKey/sasToken. Type: string (or Expression with
* resultType string).
*/
- @JsonProperty(value = "fileShare")
private Object fileShare;
/*
* The azure file share snapshot version. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "snapshot")
private Object snapshot;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
+ /*
+ * File service endpoint of the Azure File Storage resource. It is mutually exclusive with connectionString, sasUri
+ * property.
+ */
+ private Object serviceEndpoint;
+
+ /*
+ * The credential reference containing authentication information.
+ */
+ private CredentialReference credential;
+
/**
* Creates an instance of AzureFileStorageLinkedServiceTypeProperties class.
*/
@@ -294,6 +301,48 @@ public AzureFileStorageLinkedServiceTypeProperties withEncryptedCredential(Strin
return this;
}
+ /**
+ * Get the serviceEndpoint property: File service endpoint of the Azure File Storage resource. It is mutually
+ * exclusive with connectionString, sasUri property.
+ *
+ * @return the serviceEndpoint value.
+ */
+ public Object serviceEndpoint() {
+ return this.serviceEndpoint;
+ }
+
+ /**
+ * Set the serviceEndpoint property: File service endpoint of the Azure File Storage resource. It is mutually
+ * exclusive with connectionString, sasUri property.
+ *
+ * @param serviceEndpoint the serviceEndpoint value to set.
+ * @return the AzureFileStorageLinkedServiceTypeProperties object itself.
+ */
+ public AzureFileStorageLinkedServiceTypeProperties withServiceEndpoint(Object serviceEndpoint) {
+ this.serviceEndpoint = serviceEndpoint;
+ return this;
+ }
+
+ /**
+ * Get the credential property: The credential reference containing authentication information.
+ *
+ * @return the credential value.
+ */
+ public CredentialReference credential() {
+ return this.credential;
+ }
+
+ /**
+ * Set the credential property: The credential reference containing authentication information.
+ *
+ * @param credential the credential value to set.
+ * @return the AzureFileStorageLinkedServiceTypeProperties object itself.
+ */
+ public AzureFileStorageLinkedServiceTypeProperties withCredential(CredentialReference credential) {
+ this.credential = credential;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -309,5 +358,81 @@ public void validate() {
if (sasToken() != null) {
sasToken().validate();
}
+ if (credential() != null) {
+ credential().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("host", this.host);
+ jsonWriter.writeUntypedField("userId", this.userId);
+ jsonWriter.writeJsonField("password", this.password);
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ jsonWriter.writeJsonField("accountKey", this.accountKey);
+ jsonWriter.writeUntypedField("sasUri", this.sasUri);
+ jsonWriter.writeJsonField("sasToken", this.sasToken);
+ jsonWriter.writeUntypedField("fileShare", this.fileShare);
+ jsonWriter.writeUntypedField("snapshot", this.snapshot);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ jsonWriter.writeUntypedField("serviceEndpoint", this.serviceEndpoint);
+ jsonWriter.writeJsonField("credential", this.credential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureFileStorageLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureFileStorageLinkedServiceTypeProperties 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 AzureFileStorageLinkedServiceTypeProperties.
+ */
+ public static AzureFileStorageLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureFileStorageLinkedServiceTypeProperties deserializedAzureFileStorageLinkedServiceTypeProperties
+ = new AzureFileStorageLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("host".equals(fieldName)) {
+ deserializedAzureFileStorageLinkedServiceTypeProperties.host = reader.readUntyped();
+ } else if ("userId".equals(fieldName)) {
+ deserializedAzureFileStorageLinkedServiceTypeProperties.userId = reader.readUntyped();
+ } else if ("password".equals(fieldName)) {
+ deserializedAzureFileStorageLinkedServiceTypeProperties.password = SecretBase.fromJson(reader);
+ } else if ("connectionString".equals(fieldName)) {
+ deserializedAzureFileStorageLinkedServiceTypeProperties.connectionString = reader.readUntyped();
+ } else if ("accountKey".equals(fieldName)) {
+ deserializedAzureFileStorageLinkedServiceTypeProperties.accountKey
+ = AzureKeyVaultSecretReference.fromJson(reader);
+ } else if ("sasUri".equals(fieldName)) {
+ deserializedAzureFileStorageLinkedServiceTypeProperties.sasUri = reader.readUntyped();
+ } else if ("sasToken".equals(fieldName)) {
+ deserializedAzureFileStorageLinkedServiceTypeProperties.sasToken
+ = AzureKeyVaultSecretReference.fromJson(reader);
+ } else if ("fileShare".equals(fieldName)) {
+ deserializedAzureFileStorageLinkedServiceTypeProperties.fileShare = reader.readUntyped();
+ } else if ("snapshot".equals(fieldName)) {
+ deserializedAzureFileStorageLinkedServiceTypeProperties.snapshot = reader.readUntyped();
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAzureFileStorageLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else if ("serviceEndpoint".equals(fieldName)) {
+ deserializedAzureFileStorageLinkedServiceTypeProperties.serviceEndpoint = reader.readUntyped();
+ } else if ("credential".equals(fieldName)) {
+ deserializedAzureFileStorageLinkedServiceTypeProperties.credential
+ = CredentialReference.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureFileStorageLinkedServiceTypeProperties;
+ });
}
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionActivityTypeProperties.java
index 053b1edb887a..c0625d819f1d 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionActivityTypeProperties.java
@@ -6,27 +6,29 @@
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.datafactory.models.AzureFunctionActivityMethod;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.Map;
/**
* Azure Function activity type properties.
*/
@Fluent
-public final class AzureFunctionActivityTypeProperties {
+public final class AzureFunctionActivityTypeProperties
+ implements JsonSerializable {
/*
* Rest API method for target endpoint.
*/
- @JsonProperty(value = "method", required = true)
private AzureFunctionActivityMethod method;
/*
* Name of the Function that the Azure Function Activity will call. Type: string (or Expression with resultType
* string)
*/
- @JsonProperty(value = "functionName", required = true)
private Object functionName;
/*
@@ -34,15 +36,12 @@ public final class AzureFunctionActivityTypeProperties {
* "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with
* resultType string).
*/
- @JsonProperty(value = "headers")
- @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map headers;
/*
* Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET
* method Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "body")
private Object body;
/**
@@ -158,4 +157,53 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AzureFunctionActivityTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("method", this.method == null ? null : this.method.toString());
+ jsonWriter.writeUntypedField("functionName", this.functionName);
+ jsonWriter.writeMapField("headers", this.headers, (writer, element) -> writer.writeUntyped(element));
+ jsonWriter.writeUntypedField("body", this.body);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureFunctionActivityTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureFunctionActivityTypeProperties 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 AzureFunctionActivityTypeProperties.
+ */
+ public static AzureFunctionActivityTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureFunctionActivityTypeProperties deserializedAzureFunctionActivityTypeProperties
+ = new AzureFunctionActivityTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("method".equals(fieldName)) {
+ deserializedAzureFunctionActivityTypeProperties.method
+ = AzureFunctionActivityMethod.fromString(reader.getString());
+ } else if ("functionName".equals(fieldName)) {
+ deserializedAzureFunctionActivityTypeProperties.functionName = reader.readUntyped();
+ } else if ("headers".equals(fieldName)) {
+ Map headers = reader.readMap(reader1 -> reader1.readUntyped());
+ deserializedAzureFunctionActivityTypeProperties.headers = headers;
+ } else if ("body".equals(fieldName)) {
+ deserializedAzureFunctionActivityTypeProperties.body = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureFunctionActivityTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionLinkedServiceTypeProperties.java
index 5478c6105bcb..a5c240c9d78f 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureFunctionLinkedServiceTypeProperties.java
@@ -6,52 +6,51 @@
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.datafactory.models.CredentialReference;
import com.azure.resourcemanager.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Azure Function linked service properties.
*/
@Fluent
-public final class AzureFunctionLinkedServiceTypeProperties {
+public final class AzureFunctionLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* The endpoint of the Azure Function App. URL will be in the format https://.azurewebsites.net. Type:
* string (or Expression with resultType string).
*/
- @JsonProperty(value = "functionAppUrl", required = true)
private Object functionAppUrl;
/*
* Function or Host key for Azure Function App.
*/
- @JsonProperty(value = "functionKey")
private SecretBase functionKey;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/*
* The credential reference containing authentication information.
*/
- @JsonProperty(value = "credential")
private CredentialReference credential;
/*
* Allowed token audiences for azure function. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "resourceId")
private Object resourceId;
/*
* Type of authentication (Required to specify MSI) used to connect to AzureFunction. Type: string (or Expression
* with resultType string).
*/
- @JsonProperty(value = "authentication")
private Object authentication;
/**
@@ -208,4 +207,58 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AzureFunctionLinkedServiceTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("functionAppUrl", this.functionAppUrl);
+ jsonWriter.writeJsonField("functionKey", this.functionKey);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ jsonWriter.writeJsonField("credential", this.credential);
+ jsonWriter.writeUntypedField("resourceId", this.resourceId);
+ jsonWriter.writeUntypedField("authentication", this.authentication);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureFunctionLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureFunctionLinkedServiceTypeProperties 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 AzureFunctionLinkedServiceTypeProperties.
+ */
+ public static AzureFunctionLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureFunctionLinkedServiceTypeProperties deserializedAzureFunctionLinkedServiceTypeProperties
+ = new AzureFunctionLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("functionAppUrl".equals(fieldName)) {
+ deserializedAzureFunctionLinkedServiceTypeProperties.functionAppUrl = reader.readUntyped();
+ } else if ("functionKey".equals(fieldName)) {
+ deserializedAzureFunctionLinkedServiceTypeProperties.functionKey = SecretBase.fromJson(reader);
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAzureFunctionLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else if ("credential".equals(fieldName)) {
+ deserializedAzureFunctionLinkedServiceTypeProperties.credential
+ = CredentialReference.fromJson(reader);
+ } else if ("resourceId".equals(fieldName)) {
+ deserializedAzureFunctionLinkedServiceTypeProperties.resourceId = reader.readUntyped();
+ } else if ("authentication".equals(fieldName)) {
+ deserializedAzureFunctionLinkedServiceTypeProperties.authentication = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureFunctionLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureKeyVaultLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureKeyVaultLinkedServiceTypeProperties.java
index 9098fe63cbe3..3cb36cb36265 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureKeyVaultLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureKeyVaultLinkedServiceTypeProperties.java
@@ -6,25 +6,28 @@
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.datafactory.models.CredentialReference;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Azure Key Vault linked service properties.
*/
@Fluent
-public final class AzureKeyVaultLinkedServiceTypeProperties {
+public final class AzureKeyVaultLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* The base URL of the Azure Key Vault. e.g. https://myakv.vault.azure.net Type: string (or Expression with
* resultType string).
*/
- @JsonProperty(value = "baseUrl", required = true)
private Object baseUrl;
/*
* The credential reference containing authentication information.
*/
- @JsonProperty(value = "credential")
private CredentialReference credential;
/**
@@ -92,4 +95,46 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AzureKeyVaultLinkedServiceTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("baseUrl", this.baseUrl);
+ jsonWriter.writeJsonField("credential", this.credential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureKeyVaultLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureKeyVaultLinkedServiceTypeProperties 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 AzureKeyVaultLinkedServiceTypeProperties.
+ */
+ public static AzureKeyVaultLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureKeyVaultLinkedServiceTypeProperties deserializedAzureKeyVaultLinkedServiceTypeProperties
+ = new AzureKeyVaultLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("baseUrl".equals(fieldName)) {
+ deserializedAzureKeyVaultLinkedServiceTypeProperties.baseUrl = reader.readUntyped();
+ } else if ("credential".equals(fieldName)) {
+ deserializedAzureKeyVaultLinkedServiceTypeProperties.credential
+ = CredentialReference.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureKeyVaultLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLBatchExecutionActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLBatchExecutionActivityTypeProperties.java
index fa6c9efba211..f2085ec8413c 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLBatchExecutionActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLBatchExecutionActivityTypeProperties.java
@@ -5,23 +5,25 @@
package com.azure.resourcemanager.datafactory.fluent.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 com.azure.resourcemanager.datafactory.models.AzureMLWebServiceFile;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.Map;
/**
* Azure ML Batch Execution activity properties.
*/
@Fluent
-public final class AzureMLBatchExecutionActivityTypeProperties {
+public final class AzureMLBatchExecutionActivityTypeProperties
+ implements JsonSerializable {
/*
* Key,Value pairs to be passed to the Azure ML Batch Execution Service endpoint. Keys must match the names of web
* service parameters defined in the published Azure ML web service. Values will be passed in the GlobalParameters
* property of the Azure ML batch execution request.
*/
- @JsonProperty(value = "globalParameters")
- @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map globalParameters;
/*
@@ -29,8 +31,6 @@ public final class AzureMLBatchExecutionActivityTypeProperties {
* specifying the output Blob locations. This information will be passed in the WebServiceOutputs property of the
* Azure ML batch execution request.
*/
- @JsonProperty(value = "webServiceOutputs")
- @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map webServiceOutputs;
/*
@@ -38,8 +38,6 @@ public final class AzureMLBatchExecutionActivityTypeProperties {
* specifying the input Blob locations.. This information will be passed in the WebServiceInputs property of the
* Azure ML batch execution request.
*/
- @JsonProperty(value = "webServiceInputs")
- @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map webServiceInputs;
/**
@@ -143,4 +141,55 @@ public void validate() {
});
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeMapField("globalParameters", this.globalParameters,
+ (writer, element) -> writer.writeUntyped(element));
+ jsonWriter.writeMapField("webServiceOutputs", this.webServiceOutputs,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeMapField("webServiceInputs", this.webServiceInputs,
+ (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureMLBatchExecutionActivityTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureMLBatchExecutionActivityTypeProperties 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 AzureMLBatchExecutionActivityTypeProperties.
+ */
+ public static AzureMLBatchExecutionActivityTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureMLBatchExecutionActivityTypeProperties deserializedAzureMLBatchExecutionActivityTypeProperties
+ = new AzureMLBatchExecutionActivityTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("globalParameters".equals(fieldName)) {
+ Map globalParameters = reader.readMap(reader1 -> reader1.readUntyped());
+ deserializedAzureMLBatchExecutionActivityTypeProperties.globalParameters = globalParameters;
+ } else if ("webServiceOutputs".equals(fieldName)) {
+ Map webServiceOutputs
+ = reader.readMap(reader1 -> AzureMLWebServiceFile.fromJson(reader1));
+ deserializedAzureMLBatchExecutionActivityTypeProperties.webServiceOutputs = webServiceOutputs;
+ } else if ("webServiceInputs".equals(fieldName)) {
+ Map webServiceInputs
+ = reader.readMap(reader1 -> AzureMLWebServiceFile.fromJson(reader1));
+ deserializedAzureMLBatchExecutionActivityTypeProperties.webServiceInputs = webServiceInputs;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureMLBatchExecutionActivityTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLExecutePipelineActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLExecutePipelineActivityTypeProperties.java
index 56645b11f502..3e21e559539a 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLExecutePipelineActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLExecutePipelineActivityTypeProperties.java
@@ -5,36 +5,37 @@
package com.azure.resourcemanager.datafactory.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Azure ML Execute Pipeline activity properties.
*/
@Fluent
-public final class AzureMLExecutePipelineActivityTypeProperties {
+public final class AzureMLExecutePipelineActivityTypeProperties
+ implements JsonSerializable {
/*
* ID of the published Azure ML pipeline. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "mlPipelineId")
private Object mlPipelineId;
/*
* ID of the published Azure ML pipeline endpoint. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "mlPipelineEndpointId")
private Object mlPipelineEndpointId;
/*
* Version of the published Azure ML pipeline endpoint. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "version")
private Object version;
/*
* Run history experiment name of the pipeline run. This information will be passed in the ExperimentName property
* of the published pipeline execution request. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "experimentName")
private Object experimentName;
/*
@@ -42,7 +43,6 @@ public final class AzureMLExecutePipelineActivityTypeProperties {
* parameters defined in the published pipeline. Values will be passed in the ParameterAssignments property of the
* published pipeline execution request. Type: object with key value pairs (or Expression with resultType object).
*/
- @JsonProperty(value = "mlPipelineParameters")
private Object mlPipelineParameters;
/*
@@ -50,14 +50,12 @@ public final class AzureMLExecutePipelineActivityTypeProperties {
* dataPathAssignments property of the published pipeline execution request. Type: object (or Expression with
* resultType object).
*/
- @JsonProperty(value = "dataPathAssignments")
private Object dataPathAssignments;
/*
* The parent Azure ML Service pipeline run id. This information will be passed in the ParentRunId property of the
* published pipeline execution request. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "mlParentRunId")
private Object mlParentRunId;
/*
@@ -65,7 +63,6 @@ public final class AzureMLExecutePipelineActivityTypeProperties {
* in the continueOnStepFailure property of the published pipeline execution request. Type: boolean (or Expression
* with resultType boolean).
*/
- @JsonProperty(value = "continueOnStepFailure")
private Object continueOnStepFailure;
/**
@@ -269,4 +266,65 @@ public AzureMLExecutePipelineActivityTypeProperties withContinueOnStepFailure(Ob
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("mlPipelineId", this.mlPipelineId);
+ jsonWriter.writeUntypedField("mlPipelineEndpointId", this.mlPipelineEndpointId);
+ jsonWriter.writeUntypedField("version", this.version);
+ jsonWriter.writeUntypedField("experimentName", this.experimentName);
+ jsonWriter.writeUntypedField("mlPipelineParameters", this.mlPipelineParameters);
+ jsonWriter.writeUntypedField("dataPathAssignments", this.dataPathAssignments);
+ jsonWriter.writeUntypedField("mlParentRunId", this.mlParentRunId);
+ jsonWriter.writeUntypedField("continueOnStepFailure", this.continueOnStepFailure);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureMLExecutePipelineActivityTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureMLExecutePipelineActivityTypeProperties 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 AzureMLExecutePipelineActivityTypeProperties.
+ */
+ public static AzureMLExecutePipelineActivityTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureMLExecutePipelineActivityTypeProperties deserializedAzureMLExecutePipelineActivityTypeProperties
+ = new AzureMLExecutePipelineActivityTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("mlPipelineId".equals(fieldName)) {
+ deserializedAzureMLExecutePipelineActivityTypeProperties.mlPipelineId = reader.readUntyped();
+ } else if ("mlPipelineEndpointId".equals(fieldName)) {
+ deserializedAzureMLExecutePipelineActivityTypeProperties.mlPipelineEndpointId
+ = reader.readUntyped();
+ } else if ("version".equals(fieldName)) {
+ deserializedAzureMLExecutePipelineActivityTypeProperties.version = reader.readUntyped();
+ } else if ("experimentName".equals(fieldName)) {
+ deserializedAzureMLExecutePipelineActivityTypeProperties.experimentName = reader.readUntyped();
+ } else if ("mlPipelineParameters".equals(fieldName)) {
+ deserializedAzureMLExecutePipelineActivityTypeProperties.mlPipelineParameters
+ = reader.readUntyped();
+ } else if ("dataPathAssignments".equals(fieldName)) {
+ deserializedAzureMLExecutePipelineActivityTypeProperties.dataPathAssignments = reader.readUntyped();
+ } else if ("mlParentRunId".equals(fieldName)) {
+ deserializedAzureMLExecutePipelineActivityTypeProperties.mlParentRunId = reader.readUntyped();
+ } else if ("continueOnStepFailure".equals(fieldName)) {
+ deserializedAzureMLExecutePipelineActivityTypeProperties.continueOnStepFailure
+ = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureMLExecutePipelineActivityTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLLinkedServiceTypeProperties.java
index 1acffb8830fe..9501cad27195 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLLinkedServiceTypeProperties.java
@@ -6,67 +6,63 @@
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.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Azure ML Studio Web Service linked service properties.
*/
@Fluent
-public final class AzureMLLinkedServiceTypeProperties {
+public final class AzureMLLinkedServiceTypeProperties implements JsonSerializable {
/*
* The Batch Execution REST URL for an Azure ML Studio Web Service endpoint. Type: string (or Expression with
* resultType string).
*/
- @JsonProperty(value = "mlEndpoint", required = true)
private Object mlEndpoint;
/*
* The API key for accessing the Azure ML model endpoint.
*/
- @JsonProperty(value = "apiKey", required = true)
private SecretBase apiKey;
/*
* The Update Resource REST URL for an Azure ML Studio Web Service endpoint. Type: string (or Expression with
* resultType string).
*/
- @JsonProperty(value = "updateResourceEndpoint")
private Object updateResourceEndpoint;
/*
* The ID of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML
* Studio web service. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "servicePrincipalId")
private Object servicePrincipalId;
/*
* The key of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML
* Studio web service.
*/
- @JsonProperty(value = "servicePrincipalKey")
private SecretBase servicePrincipalKey;
/*
* The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType
* string).
*/
- @JsonProperty(value = "tenant")
private Object tenant;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/*
* Type of authentication (Required to specify MSI) used to connect to AzureML. Type: string (or Expression with
* resultType string).
*/
- @JsonProperty(value = "authentication")
private Object authentication;
/**
@@ -273,4 +269,63 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AzureMLLinkedServiceTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("mlEndpoint", this.mlEndpoint);
+ jsonWriter.writeJsonField("apiKey", this.apiKey);
+ jsonWriter.writeUntypedField("updateResourceEndpoint", this.updateResourceEndpoint);
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ jsonWriter.writeUntypedField("authentication", this.authentication);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureMLLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureMLLinkedServiceTypeProperties 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 AzureMLLinkedServiceTypeProperties.
+ */
+ public static AzureMLLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureMLLinkedServiceTypeProperties deserializedAzureMLLinkedServiceTypeProperties
+ = new AzureMLLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("mlEndpoint".equals(fieldName)) {
+ deserializedAzureMLLinkedServiceTypeProperties.mlEndpoint = reader.readUntyped();
+ } else if ("apiKey".equals(fieldName)) {
+ deserializedAzureMLLinkedServiceTypeProperties.apiKey = SecretBase.fromJson(reader);
+ } else if ("updateResourceEndpoint".equals(fieldName)) {
+ deserializedAzureMLLinkedServiceTypeProperties.updateResourceEndpoint = reader.readUntyped();
+ } else if ("servicePrincipalId".equals(fieldName)) {
+ deserializedAzureMLLinkedServiceTypeProperties.servicePrincipalId = reader.readUntyped();
+ } else if ("servicePrincipalKey".equals(fieldName)) {
+ deserializedAzureMLLinkedServiceTypeProperties.servicePrincipalKey = SecretBase.fromJson(reader);
+ } else if ("tenant".equals(fieldName)) {
+ deserializedAzureMLLinkedServiceTypeProperties.tenant = reader.readUntyped();
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAzureMLLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else if ("authentication".equals(fieldName)) {
+ deserializedAzureMLLinkedServiceTypeProperties.authentication = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureMLLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLServiceLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLServiceLinkedServiceTypeProperties.java
index a093137783d3..9e976f710623 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLServiceLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLServiceLinkedServiceTypeProperties.java
@@ -6,65 +6,62 @@
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.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Azure ML Service linked service properties.
*/
@Fluent
-public final class AzureMLServiceLinkedServiceTypeProperties {
+public final class AzureMLServiceLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* Azure ML Service workspace subscription ID. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "subscriptionId", required = true)
private Object subscriptionId;
/*
* Azure ML Service workspace resource group name. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "resourceGroupName", required = true)
private Object resourceGroupName;
/*
* Azure ML Service workspace name. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "mlWorkspaceName", required = true)
private Object mlWorkspaceName;
/*
* Type of authentication (Required to specify MSI) used to connect to AzureML. Type: string (or Expression with
* resultType string).
*/
- @JsonProperty(value = "authentication")
private Object authentication;
/*
* The ID of the service principal used to authenticate against the endpoint of a published Azure ML Service
* pipeline. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "servicePrincipalId")
private Object servicePrincipalId;
/*
* The key of the service principal used to authenticate against the endpoint of a published Azure ML Service
* pipeline.
*/
- @JsonProperty(value = "servicePrincipalKey")
private SecretBase servicePrincipalKey;
/*
* The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType
* string).
*/
- @JsonProperty(value = "tenant")
private Object tenant;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/**
@@ -276,4 +273,64 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AzureMLServiceLinkedServiceTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("subscriptionId", this.subscriptionId);
+ jsonWriter.writeUntypedField("resourceGroupName", this.resourceGroupName);
+ jsonWriter.writeUntypedField("mlWorkspaceName", this.mlWorkspaceName);
+ jsonWriter.writeUntypedField("authentication", this.authentication);
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureMLServiceLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureMLServiceLinkedServiceTypeProperties 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 AzureMLServiceLinkedServiceTypeProperties.
+ */
+ public static AzureMLServiceLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureMLServiceLinkedServiceTypeProperties deserializedAzureMLServiceLinkedServiceTypeProperties
+ = new AzureMLServiceLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("subscriptionId".equals(fieldName)) {
+ deserializedAzureMLServiceLinkedServiceTypeProperties.subscriptionId = reader.readUntyped();
+ } else if ("resourceGroupName".equals(fieldName)) {
+ deserializedAzureMLServiceLinkedServiceTypeProperties.resourceGroupName = reader.readUntyped();
+ } else if ("mlWorkspaceName".equals(fieldName)) {
+ deserializedAzureMLServiceLinkedServiceTypeProperties.mlWorkspaceName = reader.readUntyped();
+ } else if ("authentication".equals(fieldName)) {
+ deserializedAzureMLServiceLinkedServiceTypeProperties.authentication = reader.readUntyped();
+ } else if ("servicePrincipalId".equals(fieldName)) {
+ deserializedAzureMLServiceLinkedServiceTypeProperties.servicePrincipalId = reader.readUntyped();
+ } else if ("servicePrincipalKey".equals(fieldName)) {
+ deserializedAzureMLServiceLinkedServiceTypeProperties.servicePrincipalKey
+ = SecretBase.fromJson(reader);
+ } else if ("tenant".equals(fieldName)) {
+ deserializedAzureMLServiceLinkedServiceTypeProperties.tenant = reader.readUntyped();
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAzureMLServiceLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureMLServiceLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLUpdateResourceActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLUpdateResourceActivityTypeProperties.java
index 2bca2dace3be..2a671f7c0ee7 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLUpdateResourceActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMLUpdateResourceActivityTypeProperties.java
@@ -6,32 +6,34 @@
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.datafactory.models.LinkedServiceReference;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Azure ML Update Resource activity properties.
*/
@Fluent
-public final class AzureMLUpdateResourceActivityTypeProperties {
+public final class AzureMLUpdateResourceActivityTypeProperties
+ implements JsonSerializable {
/*
* Name of the Trained Model module in the Web Service experiment to be updated. Type: string (or Expression with
* resultType string).
*/
- @JsonProperty(value = "trainedModelName", required = true)
private Object trainedModelName;
/*
* Name of Azure Storage linked service holding the .ilearner file that will be uploaded by the update operation.
*/
- @JsonProperty(value = "trainedModelLinkedServiceName", required = true)
private LinkedServiceReference trainedModelLinkedServiceName;
/*
* The relative file path in trainedModelLinkedService to represent the .ilearner file that will be uploaded by the
* update operation. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "trainedModelFilePath", required = true)
private Object trainedModelFilePath;
/**
@@ -135,4 +137,49 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AzureMLUpdateResourceActivityTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("trainedModelName", this.trainedModelName);
+ jsonWriter.writeJsonField("trainedModelLinkedServiceName", this.trainedModelLinkedServiceName);
+ jsonWriter.writeUntypedField("trainedModelFilePath", this.trainedModelFilePath);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureMLUpdateResourceActivityTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureMLUpdateResourceActivityTypeProperties 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 AzureMLUpdateResourceActivityTypeProperties.
+ */
+ public static AzureMLUpdateResourceActivityTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureMLUpdateResourceActivityTypeProperties deserializedAzureMLUpdateResourceActivityTypeProperties
+ = new AzureMLUpdateResourceActivityTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("trainedModelName".equals(fieldName)) {
+ deserializedAzureMLUpdateResourceActivityTypeProperties.trainedModelName = reader.readUntyped();
+ } else if ("trainedModelLinkedServiceName".equals(fieldName)) {
+ deserializedAzureMLUpdateResourceActivityTypeProperties.trainedModelLinkedServiceName
+ = LinkedServiceReference.fromJson(reader);
+ } else if ("trainedModelFilePath".equals(fieldName)) {
+ deserializedAzureMLUpdateResourceActivityTypeProperties.trainedModelFilePath = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureMLUpdateResourceActivityTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMariaDBLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMariaDBLinkedServiceTypeProperties.java
index 1d01839c7e17..6e5166930c70 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMariaDBLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMariaDBLinkedServiceTypeProperties.java
@@ -5,31 +5,33 @@
package com.azure.resourcemanager.datafactory.fluent.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 com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Azure Database for MariaDB linked service properties.
*/
@Fluent
-public final class AzureMariaDBLinkedServiceTypeProperties {
+public final class AzureMariaDBLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference.
*/
- @JsonProperty(value = "connectionString")
private Object connectionString;
/*
* The Azure key vault secret reference of password in connection string.
*/
- @JsonProperty(value = "pwd")
private AzureKeyVaultSecretReference pwd;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/**
@@ -112,4 +114,48 @@ public void validate() {
pwd().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ jsonWriter.writeJsonField("pwd", this.pwd);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureMariaDBLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureMariaDBLinkedServiceTypeProperties 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 AzureMariaDBLinkedServiceTypeProperties.
+ */
+ public static AzureMariaDBLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureMariaDBLinkedServiceTypeProperties deserializedAzureMariaDBLinkedServiceTypeProperties
+ = new AzureMariaDBLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("connectionString".equals(fieldName)) {
+ deserializedAzureMariaDBLinkedServiceTypeProperties.connectionString = reader.readUntyped();
+ } else if ("pwd".equals(fieldName)) {
+ deserializedAzureMariaDBLinkedServiceTypeProperties.pwd
+ = AzureKeyVaultSecretReference.fromJson(reader);
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAzureMariaDBLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureMariaDBLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlLinkedServiceTypeProperties.java
index b4799890fce3..ce03896bd73e 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlLinkedServiceTypeProperties.java
@@ -6,31 +6,33 @@
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.datafactory.models.AzureKeyVaultSecretReference;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Azure MySQL database linked service properties.
*/
@Fluent
-public final class AzureMySqlLinkedServiceTypeProperties {
+public final class AzureMySqlLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.
*/
- @JsonProperty(value = "connectionString", required = true)
private Object connectionString;
/*
* The Azure key vault secret reference of password in connection string.
*/
- @JsonProperty(value = "password")
private AzureKeyVaultSecretReference password;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/**
@@ -120,4 +122,49 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AzureMySqlLinkedServiceTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ jsonWriter.writeJsonField("password", this.password);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureMySqlLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureMySqlLinkedServiceTypeProperties 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 AzureMySqlLinkedServiceTypeProperties.
+ */
+ public static AzureMySqlLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureMySqlLinkedServiceTypeProperties deserializedAzureMySqlLinkedServiceTypeProperties
+ = new AzureMySqlLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("connectionString".equals(fieldName)) {
+ deserializedAzureMySqlLinkedServiceTypeProperties.connectionString = reader.readUntyped();
+ } else if ("password".equals(fieldName)) {
+ deserializedAzureMySqlLinkedServiceTypeProperties.password
+ = AzureKeyVaultSecretReference.fromJson(reader);
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAzureMySqlLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureMySqlLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlTableDatasetTypeProperties.java
index 8ca7de084b10..2c1bd57a2a15 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureMySqlTableDatasetTypeProperties.java
@@ -5,23 +5,26 @@
package com.azure.resourcemanager.datafactory.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Azure MySQL database dataset properties.
*/
@Fluent
-public final class AzureMySqlTableDatasetTypeProperties {
+public final class AzureMySqlTableDatasetTypeProperties
+ implements JsonSerializable {
/*
* The Azure MySQL database table name. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "tableName")
private Object tableName;
/*
* The name of Azure MySQL database table. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "table")
private Object table;
/**
@@ -81,4 +84,44 @@ public AzureMySqlTableDatasetTypeProperties withTable(Object table) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ jsonWriter.writeUntypedField("table", this.table);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureMySqlTableDatasetTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureMySqlTableDatasetTypeProperties 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 AzureMySqlTableDatasetTypeProperties.
+ */
+ public static AzureMySqlTableDatasetTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureMySqlTableDatasetTypeProperties deserializedAzureMySqlTableDatasetTypeProperties
+ = new AzureMySqlTableDatasetTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("tableName".equals(fieldName)) {
+ deserializedAzureMySqlTableDatasetTypeProperties.tableName = reader.readUntyped();
+ } else if ("table".equals(fieldName)) {
+ deserializedAzureMySqlTableDatasetTypeProperties.table = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureMySqlTableDatasetTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlLinkedServiceTypeProperties.java
index 9a19a3787ccc..fd1991ac18d9 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlLinkedServiceTypeProperties.java
@@ -5,31 +5,33 @@
package com.azure.resourcemanager.datafactory.fluent.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 com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Azure PostgreSQL linked service properties.
*/
@Fluent
-public final class AzurePostgreSqlLinkedServiceTypeProperties {
+public final class AzurePostgreSqlLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference.
*/
- @JsonProperty(value = "connectionString")
private Object connectionString;
/*
* The Azure key vault secret reference of password in connection string.
*/
- @JsonProperty(value = "password")
private AzureKeyVaultSecretReference password;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/**
@@ -112,4 +114,48 @@ public void validate() {
password().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ jsonWriter.writeJsonField("password", this.password);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzurePostgreSqlLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzurePostgreSqlLinkedServiceTypeProperties 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 AzurePostgreSqlLinkedServiceTypeProperties.
+ */
+ public static AzurePostgreSqlLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzurePostgreSqlLinkedServiceTypeProperties deserializedAzurePostgreSqlLinkedServiceTypeProperties
+ = new AzurePostgreSqlLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("connectionString".equals(fieldName)) {
+ deserializedAzurePostgreSqlLinkedServiceTypeProperties.connectionString = reader.readUntyped();
+ } else if ("password".equals(fieldName)) {
+ deserializedAzurePostgreSqlLinkedServiceTypeProperties.password
+ = AzureKeyVaultSecretReference.fromJson(reader);
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAzurePostgreSqlLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzurePostgreSqlLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlTableDatasetTypeProperties.java
index ecc6e1515639..ce491141f5f6 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzurePostgreSqlTableDatasetTypeProperties.java
@@ -5,30 +5,32 @@
package com.azure.resourcemanager.datafactory.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Azure PostgreSQL dataset properties.
*/
@Fluent
-public final class AzurePostgreSqlTableDatasetTypeProperties {
+public final class AzurePostgreSqlTableDatasetTypeProperties
+ implements JsonSerializable {
/*
* The table name of the Azure PostgreSQL database which includes both schema and table. Type: string (or Expression
* with resultType string).
*/
- @JsonProperty(value = "tableName")
private Object tableName;
/*
* The table name of the Azure PostgreSQL database. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "table")
private Object table;
/*
* The schema name of the Azure PostgreSQL database. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "schema")
private Object schema;
/**
@@ -110,4 +112,47 @@ public AzurePostgreSqlTableDatasetTypeProperties withSchema(Object schema) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ jsonWriter.writeUntypedField("table", this.table);
+ jsonWriter.writeUntypedField("schema", this.schema);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzurePostgreSqlTableDatasetTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzurePostgreSqlTableDatasetTypeProperties 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 AzurePostgreSqlTableDatasetTypeProperties.
+ */
+ public static AzurePostgreSqlTableDatasetTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzurePostgreSqlTableDatasetTypeProperties deserializedAzurePostgreSqlTableDatasetTypeProperties
+ = new AzurePostgreSqlTableDatasetTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("tableName".equals(fieldName)) {
+ deserializedAzurePostgreSqlTableDatasetTypeProperties.tableName = reader.readUntyped();
+ } else if ("table".equals(fieldName)) {
+ deserializedAzurePostgreSqlTableDatasetTypeProperties.table = reader.readUntyped();
+ } else if ("schema".equals(fieldName)) {
+ deserializedAzurePostgreSqlTableDatasetTypeProperties.schema = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzurePostgreSqlTableDatasetTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSearchIndexDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSearchIndexDatasetTypeProperties.java
index 68dd8c122ea0..a15006fbd5c3 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSearchIndexDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSearchIndexDatasetTypeProperties.java
@@ -6,17 +6,21 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Properties specific to this dataset type.
*/
@Fluent
-public final class AzureSearchIndexDatasetTypeProperties {
+public final class AzureSearchIndexDatasetTypeProperties
+ implements JsonSerializable {
/*
* The name of the Azure Search Index. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "indexName", required = true)
private Object indexName;
/**
@@ -61,4 +65,42 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AzureSearchIndexDatasetTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("indexName", this.indexName);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureSearchIndexDatasetTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureSearchIndexDatasetTypeProperties 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 AzureSearchIndexDatasetTypeProperties.
+ */
+ public static AzureSearchIndexDatasetTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureSearchIndexDatasetTypeProperties deserializedAzureSearchIndexDatasetTypeProperties
+ = new AzureSearchIndexDatasetTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("indexName".equals(fieldName)) {
+ deserializedAzureSearchIndexDatasetTypeProperties.indexName = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureSearchIndexDatasetTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSearchLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSearchLinkedServiceTypeProperties.java
index 06eeed82e520..707e8cf23b72 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSearchLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSearchLinkedServiceTypeProperties.java
@@ -6,31 +6,33 @@
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.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Windows Azure Search Service linked service properties.
*/
@Fluent
-public final class AzureSearchLinkedServiceTypeProperties {
+public final class AzureSearchLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* URL for Azure Search service. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "url", required = true)
private Object url;
/*
* Admin Key for Azure Search service
*/
- @JsonProperty(value = "key")
private SecretBase key;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/**
@@ -118,4 +120,48 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AzureSearchLinkedServiceTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("url", this.url);
+ jsonWriter.writeJsonField("key", this.key);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureSearchLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureSearchLinkedServiceTypeProperties 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 AzureSearchLinkedServiceTypeProperties.
+ */
+ public static AzureSearchLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureSearchLinkedServiceTypeProperties deserializedAzureSearchLinkedServiceTypeProperties
+ = new AzureSearchLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("url".equals(fieldName)) {
+ deserializedAzureSearchLinkedServiceTypeProperties.url = reader.readUntyped();
+ } else if ("key".equals(fieldName)) {
+ deserializedAzureSearchLinkedServiceTypeProperties.key = SecretBase.fromJson(reader);
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAzureSearchLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureSearchLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWLinkedServiceTypeProperties.java
index 02055ce0d942..433233dc0aad 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWLinkedServiceTypeProperties.java
@@ -5,12 +5,15 @@
package com.azure.resourcemanager.datafactory.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference;
import com.azure.resourcemanager.datafactory.models.AzureSqlDWAuthenticationType;
import com.azure.resourcemanager.datafactory.models.CredentialReference;
import com.azure.resourcemanager.datafactory.models.SecretBase;
import com.azure.resourcemanager.datafactory.models.SqlServerBaseLinkedServiceTypeProperties;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Azure SQL Data Warehouse linked service properties.
@@ -21,45 +24,38 @@ public final class AzureSqlDWLinkedServiceTypeProperties extends SqlServerBaseLi
* The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or
* AzureKeyVaultSecretReference.
*/
- @JsonProperty(value = "connectionString")
private Object connectionString;
/*
* The type used for authentication. Type: string.
*/
- @JsonProperty(value = "authenticationType")
private AzureSqlDWAuthenticationType authenticationType;
/*
* The user name to be used when connecting to server. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "userName")
private Object username;
/*
* The Azure key vault secret reference of password in connection string.
*/
- @JsonProperty(value = "password")
private AzureKeyVaultSecretReference password;
/*
* The ID of the service principal used to authenticate against Azure SQL Data Warehouse. Type: string (or
* Expression with resultType string).
*/
- @JsonProperty(value = "servicePrincipalId")
private Object servicePrincipalId;
/*
* The key of the service principal used to authenticate against Azure SQL Data Warehouse.
*/
- @JsonProperty(value = "servicePrincipalKey")
private SecretBase servicePrincipalKey;
/*
* The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for
* key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "servicePrincipalCredentialType")
private Object servicePrincipalCredentialType;
/*
@@ -68,14 +64,12 @@ public final class AzureSqlDWLinkedServiceTypeProperties extends SqlServerBaseLi
* servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be
* AzureKeyVaultSecretReference.
*/
- @JsonProperty(value = "servicePrincipalCredential")
private SecretBase servicePrincipalCredential;
/*
* The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType
* string).
*/
- @JsonProperty(value = "tenant")
private Object tenant;
/*
@@ -83,20 +77,17 @@ public final class AzureSqlDWLinkedServiceTypeProperties extends SqlServerBaseLi
* AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or
* Expression with resultType string).
*/
- @JsonProperty(value = "azureCloudType")
private Object azureCloudType;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/*
* The credential reference containing authentication information.
*/
- @JsonProperty(value = "credential")
private CredentialReference credential;
/**
@@ -565,4 +556,137 @@ public void validate() {
credential().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("server", server());
+ jsonWriter.writeUntypedField("database", database());
+ jsonWriter.writeUntypedField("encrypt", encrypt());
+ jsonWriter.writeUntypedField("trustServerCertificate", trustServerCertificate());
+ jsonWriter.writeUntypedField("hostNameInCertificate", hostnameInCertificate());
+ jsonWriter.writeUntypedField("applicationIntent", applicationIntent());
+ jsonWriter.writeUntypedField("connectTimeout", connectTimeout());
+ jsonWriter.writeUntypedField("connectRetryCount", connectRetryCount());
+ jsonWriter.writeUntypedField("connectRetryInterval", connectRetryInterval());
+ jsonWriter.writeUntypedField("loadBalanceTimeout", loadBalanceTimeout());
+ jsonWriter.writeUntypedField("commandTimeout", commandTimeout());
+ jsonWriter.writeUntypedField("integratedSecurity", integratedSecurity());
+ jsonWriter.writeUntypedField("failoverPartner", failoverPartner());
+ jsonWriter.writeUntypedField("maxPoolSize", maxPoolSize());
+ jsonWriter.writeUntypedField("minPoolSize", minPoolSize());
+ jsonWriter.writeUntypedField("multipleActiveResultSets", multipleActiveResultSets());
+ jsonWriter.writeUntypedField("multiSubnetFailover", multiSubnetFailover());
+ jsonWriter.writeUntypedField("packetSize", packetSize());
+ jsonWriter.writeUntypedField("pooling", pooling());
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ jsonWriter.writeStringField("authenticationType",
+ this.authenticationType == null ? null : this.authenticationType.toString());
+ jsonWriter.writeUntypedField("userName", this.username);
+ jsonWriter.writeJsonField("password", this.password);
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
+ jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ jsonWriter.writeJsonField("servicePrincipalCredential", this.servicePrincipalCredential);
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ jsonWriter.writeJsonField("credential", this.credential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureSqlDWLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureSqlDWLinkedServiceTypeProperties 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 AzureSqlDWLinkedServiceTypeProperties.
+ */
+ public static AzureSqlDWLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureSqlDWLinkedServiceTypeProperties deserializedAzureSqlDWLinkedServiceTypeProperties
+ = new AzureSqlDWLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("server".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.withServer(reader.readUntyped());
+ } else if ("database".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.withDatabase(reader.readUntyped());
+ } else if ("encrypt".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.withEncrypt(reader.readUntyped());
+ } else if ("trustServerCertificate".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.withTrustServerCertificate(reader.readUntyped());
+ } else if ("hostNameInCertificate".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.withHostnameInCertificate(reader.readUntyped());
+ } else if ("applicationIntent".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.withApplicationIntent(reader.readUntyped());
+ } else if ("connectTimeout".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.withConnectTimeout(reader.readUntyped());
+ } else if ("connectRetryCount".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.withConnectRetryCount(reader.readUntyped());
+ } else if ("connectRetryInterval".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.withConnectRetryInterval(reader.readUntyped());
+ } else if ("loadBalanceTimeout".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.withLoadBalanceTimeout(reader.readUntyped());
+ } else if ("commandTimeout".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.withCommandTimeout(reader.readUntyped());
+ } else if ("integratedSecurity".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.withIntegratedSecurity(reader.readUntyped());
+ } else if ("failoverPartner".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.withFailoverPartner(reader.readUntyped());
+ } else if ("maxPoolSize".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.withMaxPoolSize(reader.readUntyped());
+ } else if ("minPoolSize".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.withMinPoolSize(reader.readUntyped());
+ } else if ("multipleActiveResultSets".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties
+ .withMultipleActiveResultSets(reader.readUntyped());
+ } else if ("multiSubnetFailover".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.withMultiSubnetFailover(reader.readUntyped());
+ } else if ("packetSize".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.withPacketSize(reader.readUntyped());
+ } else if ("pooling".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.withPooling(reader.readUntyped());
+ } else if ("connectionString".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.connectionString = reader.readUntyped();
+ } else if ("authenticationType".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.authenticationType
+ = AzureSqlDWAuthenticationType.fromString(reader.getString());
+ } else if ("userName".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.username = reader.readUntyped();
+ } else if ("password".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.password
+ = AzureKeyVaultSecretReference.fromJson(reader);
+ } else if ("servicePrincipalId".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.servicePrincipalId = reader.readUntyped();
+ } else if ("servicePrincipalKey".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.servicePrincipalKey = SecretBase.fromJson(reader);
+ } else if ("servicePrincipalCredentialType".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.servicePrincipalCredentialType
+ = reader.readUntyped();
+ } else if ("servicePrincipalCredential".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.servicePrincipalCredential
+ = SecretBase.fromJson(reader);
+ } else if ("tenant".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.tenant = reader.readUntyped();
+ } else if ("azureCloudType".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.azureCloudType = reader.readUntyped();
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else if ("credential".equals(fieldName)) {
+ deserializedAzureSqlDWLinkedServiceTypeProperties.credential = CredentialReference.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureSqlDWLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWTableDatasetTypeProperties.java
index 6cca4582f167..dcc72f21acf5 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDWTableDatasetTypeProperties.java
@@ -5,29 +5,31 @@
package com.azure.resourcemanager.datafactory.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Azure SQL Data Warehouse dataset properties.
*/
@Fluent
-public final class AzureSqlDWTableDatasetTypeProperties {
+public final class AzureSqlDWTableDatasetTypeProperties
+ implements JsonSerializable {
/*
* This property will be retired. Please consider using schema + table properties instead.
*/
- @JsonProperty(value = "tableName")
private Object tableName;
/*
* The schema name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "schema")
private Object schema;
/*
* The table name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "table")
private Object table;
/**
@@ -109,4 +111,47 @@ public AzureSqlDWTableDatasetTypeProperties withTable(Object table) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ jsonWriter.writeUntypedField("schema", this.schema);
+ jsonWriter.writeUntypedField("table", this.table);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureSqlDWTableDatasetTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureSqlDWTableDatasetTypeProperties 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 AzureSqlDWTableDatasetTypeProperties.
+ */
+ public static AzureSqlDWTableDatasetTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureSqlDWTableDatasetTypeProperties deserializedAzureSqlDWTableDatasetTypeProperties
+ = new AzureSqlDWTableDatasetTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("tableName".equals(fieldName)) {
+ deserializedAzureSqlDWTableDatasetTypeProperties.tableName = reader.readUntyped();
+ } else if ("schema".equals(fieldName)) {
+ deserializedAzureSqlDWTableDatasetTypeProperties.schema = reader.readUntyped();
+ } else if ("table".equals(fieldName)) {
+ deserializedAzureSqlDWTableDatasetTypeProperties.table = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureSqlDWTableDatasetTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDatabaseLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDatabaseLinkedServiceTypeProperties.java
index ef03577d931a..72fc89b3a368 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDatabaseLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlDatabaseLinkedServiceTypeProperties.java
@@ -5,13 +5,16 @@
package com.azure.resourcemanager.datafactory.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference;
import com.azure.resourcemanager.datafactory.models.AzureSqlDatabaseAuthenticationType;
import com.azure.resourcemanager.datafactory.models.CredentialReference;
import com.azure.resourcemanager.datafactory.models.SecretBase;
import com.azure.resourcemanager.datafactory.models.SqlAlwaysEncryptedProperties;
import com.azure.resourcemanager.datafactory.models.SqlServerBaseLinkedServiceTypeProperties;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Azure SQL Database linked service properties.
@@ -21,45 +24,38 @@ public final class AzureSqlDatabaseLinkedServiceTypeProperties extends SqlServer
/*
* The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.
*/
- @JsonProperty(value = "connectionString")
private Object connectionString;
/*
* The type used for authentication. Type: string.
*/
- @JsonProperty(value = "authenticationType")
private AzureSqlDatabaseAuthenticationType authenticationType;
/*
* The user name to be used when connecting to server. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "userName")
private Object username;
/*
* The Azure key vault secret reference of password in connection string.
*/
- @JsonProperty(value = "password")
private AzureKeyVaultSecretReference password;
/*
* The ID of the service principal used to authenticate against Azure SQL Database. Type: string (or Expression with
* resultType string).
*/
- @JsonProperty(value = "servicePrincipalId")
private Object servicePrincipalId;
/*
* The key of the service principal used to authenticate against Azure SQL Database.
*/
- @JsonProperty(value = "servicePrincipalKey")
private SecretBase servicePrincipalKey;
/*
* The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for
* key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "servicePrincipalCredentialType")
private Object servicePrincipalCredentialType;
/*
@@ -68,14 +64,12 @@ public final class AzureSqlDatabaseLinkedServiceTypeProperties extends SqlServer
* servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be
* AzureKeyVaultSecretReference.
*/
- @JsonProperty(value = "servicePrincipalCredential")
private SecretBase servicePrincipalCredential;
/*
* The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType
* string).
*/
- @JsonProperty(value = "tenant")
private Object tenant;
/*
@@ -83,26 +77,22 @@ public final class AzureSqlDatabaseLinkedServiceTypeProperties extends SqlServer
* AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or
* Expression with resultType string).
*/
- @JsonProperty(value = "azureCloudType")
private Object azureCloudType;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/*
* Sql always encrypted properties.
*/
- @JsonProperty(value = "alwaysEncryptedSettings")
private SqlAlwaysEncryptedProperties alwaysEncryptedSettings;
/*
* The credential reference containing authentication information.
*/
- @JsonProperty(value = "credential")
private CredentialReference credential;
/**
@@ -596,4 +586,149 @@ public void validate() {
credential().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("server", server());
+ jsonWriter.writeUntypedField("database", database());
+ jsonWriter.writeUntypedField("encrypt", encrypt());
+ jsonWriter.writeUntypedField("trustServerCertificate", trustServerCertificate());
+ jsonWriter.writeUntypedField("hostNameInCertificate", hostnameInCertificate());
+ jsonWriter.writeUntypedField("applicationIntent", applicationIntent());
+ jsonWriter.writeUntypedField("connectTimeout", connectTimeout());
+ jsonWriter.writeUntypedField("connectRetryCount", connectRetryCount());
+ jsonWriter.writeUntypedField("connectRetryInterval", connectRetryInterval());
+ jsonWriter.writeUntypedField("loadBalanceTimeout", loadBalanceTimeout());
+ jsonWriter.writeUntypedField("commandTimeout", commandTimeout());
+ jsonWriter.writeUntypedField("integratedSecurity", integratedSecurity());
+ jsonWriter.writeUntypedField("failoverPartner", failoverPartner());
+ jsonWriter.writeUntypedField("maxPoolSize", maxPoolSize());
+ jsonWriter.writeUntypedField("minPoolSize", minPoolSize());
+ jsonWriter.writeUntypedField("multipleActiveResultSets", multipleActiveResultSets());
+ jsonWriter.writeUntypedField("multiSubnetFailover", multiSubnetFailover());
+ jsonWriter.writeUntypedField("packetSize", packetSize());
+ jsonWriter.writeUntypedField("pooling", pooling());
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ jsonWriter.writeStringField("authenticationType",
+ this.authenticationType == null ? null : this.authenticationType.toString());
+ jsonWriter.writeUntypedField("userName", this.username);
+ jsonWriter.writeJsonField("password", this.password);
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
+ jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ jsonWriter.writeJsonField("servicePrincipalCredential", this.servicePrincipalCredential);
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ jsonWriter.writeJsonField("alwaysEncryptedSettings", this.alwaysEncryptedSettings);
+ jsonWriter.writeJsonField("credential", this.credential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureSqlDatabaseLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureSqlDatabaseLinkedServiceTypeProperties 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 AzureSqlDatabaseLinkedServiceTypeProperties.
+ */
+ public static AzureSqlDatabaseLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureSqlDatabaseLinkedServiceTypeProperties deserializedAzureSqlDatabaseLinkedServiceTypeProperties
+ = new AzureSqlDatabaseLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("server".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.withServer(reader.readUntyped());
+ } else if ("database".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.withDatabase(reader.readUntyped());
+ } else if ("encrypt".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.withEncrypt(reader.readUntyped());
+ } else if ("trustServerCertificate".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties
+ .withTrustServerCertificate(reader.readUntyped());
+ } else if ("hostNameInCertificate".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties
+ .withHostnameInCertificate(reader.readUntyped());
+ } else if ("applicationIntent".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.withApplicationIntent(reader.readUntyped());
+ } else if ("connectTimeout".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.withConnectTimeout(reader.readUntyped());
+ } else if ("connectRetryCount".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.withConnectRetryCount(reader.readUntyped());
+ } else if ("connectRetryInterval".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties
+ .withConnectRetryInterval(reader.readUntyped());
+ } else if ("loadBalanceTimeout".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties
+ .withLoadBalanceTimeout(reader.readUntyped());
+ } else if ("commandTimeout".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.withCommandTimeout(reader.readUntyped());
+ } else if ("integratedSecurity".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties
+ .withIntegratedSecurity(reader.readUntyped());
+ } else if ("failoverPartner".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.withFailoverPartner(reader.readUntyped());
+ } else if ("maxPoolSize".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.withMaxPoolSize(reader.readUntyped());
+ } else if ("minPoolSize".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.withMinPoolSize(reader.readUntyped());
+ } else if ("multipleActiveResultSets".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties
+ .withMultipleActiveResultSets(reader.readUntyped());
+ } else if ("multiSubnetFailover".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties
+ .withMultiSubnetFailover(reader.readUntyped());
+ } else if ("packetSize".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.withPacketSize(reader.readUntyped());
+ } else if ("pooling".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.withPooling(reader.readUntyped());
+ } else if ("connectionString".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.connectionString = reader.readUntyped();
+ } else if ("authenticationType".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.authenticationType
+ = AzureSqlDatabaseAuthenticationType.fromString(reader.getString());
+ } else if ("userName".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.username = reader.readUntyped();
+ } else if ("password".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.password
+ = AzureKeyVaultSecretReference.fromJson(reader);
+ } else if ("servicePrincipalId".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.servicePrincipalId = reader.readUntyped();
+ } else if ("servicePrincipalKey".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.servicePrincipalKey
+ = SecretBase.fromJson(reader);
+ } else if ("servicePrincipalCredentialType".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.servicePrincipalCredentialType
+ = reader.readUntyped();
+ } else if ("servicePrincipalCredential".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.servicePrincipalCredential
+ = SecretBase.fromJson(reader);
+ } else if ("tenant".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.tenant = reader.readUntyped();
+ } else if ("azureCloudType".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.azureCloudType = reader.readUntyped();
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else if ("alwaysEncryptedSettings".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.alwaysEncryptedSettings
+ = SqlAlwaysEncryptedProperties.fromJson(reader);
+ } else if ("credential".equals(fieldName)) {
+ deserializedAzureSqlDatabaseLinkedServiceTypeProperties.credential
+ = CredentialReference.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureSqlDatabaseLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMILinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMILinkedServiceTypeProperties.java
index 16ee5b5edda5..6b4a1c2148ed 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMILinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMILinkedServiceTypeProperties.java
@@ -5,13 +5,16 @@
package com.azure.resourcemanager.datafactory.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference;
import com.azure.resourcemanager.datafactory.models.AzureSqlMIAuthenticationType;
import com.azure.resourcemanager.datafactory.models.CredentialReference;
import com.azure.resourcemanager.datafactory.models.SecretBase;
import com.azure.resourcemanager.datafactory.models.SqlAlwaysEncryptedProperties;
import com.azure.resourcemanager.datafactory.models.SqlServerBaseLinkedServiceTypeProperties;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Azure SQL Managed Instance linked service properties.
@@ -21,45 +24,38 @@ public final class AzureSqlMILinkedServiceTypeProperties extends SqlServerBaseLi
/*
* The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.
*/
- @JsonProperty(value = "connectionString")
private Object connectionString;
/*
* The type used for authentication. Type: string.
*/
- @JsonProperty(value = "authenticationType")
private AzureSqlMIAuthenticationType authenticationType;
/*
* The user name to be used when connecting to server. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "userName")
private Object username;
/*
* The Azure key vault secret reference of password in connection string.
*/
- @JsonProperty(value = "password")
private AzureKeyVaultSecretReference password;
/*
* The ID of the service principal used to authenticate against Azure SQL Managed Instance. Type: string (or
* Expression with resultType string).
*/
- @JsonProperty(value = "servicePrincipalId")
private Object servicePrincipalId;
/*
* The key of the service principal used to authenticate against Azure SQL Managed Instance.
*/
- @JsonProperty(value = "servicePrincipalKey")
private SecretBase servicePrincipalKey;
/*
* The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for
* key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "servicePrincipalCredentialType")
private Object servicePrincipalCredentialType;
/*
@@ -68,14 +64,12 @@ public final class AzureSqlMILinkedServiceTypeProperties extends SqlServerBaseLi
* servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be
* AzureKeyVaultSecretReference.
*/
- @JsonProperty(value = "servicePrincipalCredential")
private SecretBase servicePrincipalCredential;
/*
* The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType
* string).
*/
- @JsonProperty(value = "tenant")
private Object tenant;
/*
@@ -83,26 +77,22 @@ public final class AzureSqlMILinkedServiceTypeProperties extends SqlServerBaseLi
* AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or
* Expression with resultType string).
*/
- @JsonProperty(value = "azureCloudType")
private Object azureCloudType;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/*
* Sql always encrypted properties.
*/
- @JsonProperty(value = "alwaysEncryptedSettings")
private SqlAlwaysEncryptedProperties alwaysEncryptedSettings;
/*
* The credential reference containing authentication information.
*/
- @JsonProperty(value = "credential")
private CredentialReference credential;
/**
@@ -595,4 +585,141 @@ public void validate() {
credential().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("server", server());
+ jsonWriter.writeUntypedField("database", database());
+ jsonWriter.writeUntypedField("encrypt", encrypt());
+ jsonWriter.writeUntypedField("trustServerCertificate", trustServerCertificate());
+ jsonWriter.writeUntypedField("hostNameInCertificate", hostnameInCertificate());
+ jsonWriter.writeUntypedField("applicationIntent", applicationIntent());
+ jsonWriter.writeUntypedField("connectTimeout", connectTimeout());
+ jsonWriter.writeUntypedField("connectRetryCount", connectRetryCount());
+ jsonWriter.writeUntypedField("connectRetryInterval", connectRetryInterval());
+ jsonWriter.writeUntypedField("loadBalanceTimeout", loadBalanceTimeout());
+ jsonWriter.writeUntypedField("commandTimeout", commandTimeout());
+ jsonWriter.writeUntypedField("integratedSecurity", integratedSecurity());
+ jsonWriter.writeUntypedField("failoverPartner", failoverPartner());
+ jsonWriter.writeUntypedField("maxPoolSize", maxPoolSize());
+ jsonWriter.writeUntypedField("minPoolSize", minPoolSize());
+ jsonWriter.writeUntypedField("multipleActiveResultSets", multipleActiveResultSets());
+ jsonWriter.writeUntypedField("multiSubnetFailover", multiSubnetFailover());
+ jsonWriter.writeUntypedField("packetSize", packetSize());
+ jsonWriter.writeUntypedField("pooling", pooling());
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ jsonWriter.writeStringField("authenticationType",
+ this.authenticationType == null ? null : this.authenticationType.toString());
+ jsonWriter.writeUntypedField("userName", this.username);
+ jsonWriter.writeJsonField("password", this.password);
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ jsonWriter.writeJsonField("servicePrincipalKey", this.servicePrincipalKey);
+ jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ jsonWriter.writeJsonField("servicePrincipalCredential", this.servicePrincipalCredential);
+ jsonWriter.writeUntypedField("tenant", this.tenant);
+ jsonWriter.writeUntypedField("azureCloudType", this.azureCloudType);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ jsonWriter.writeJsonField("alwaysEncryptedSettings", this.alwaysEncryptedSettings);
+ jsonWriter.writeJsonField("credential", this.credential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureSqlMILinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureSqlMILinkedServiceTypeProperties 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 AzureSqlMILinkedServiceTypeProperties.
+ */
+ public static AzureSqlMILinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureSqlMILinkedServiceTypeProperties deserializedAzureSqlMILinkedServiceTypeProperties
+ = new AzureSqlMILinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("server".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.withServer(reader.readUntyped());
+ } else if ("database".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.withDatabase(reader.readUntyped());
+ } else if ("encrypt".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.withEncrypt(reader.readUntyped());
+ } else if ("trustServerCertificate".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.withTrustServerCertificate(reader.readUntyped());
+ } else if ("hostNameInCertificate".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.withHostnameInCertificate(reader.readUntyped());
+ } else if ("applicationIntent".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.withApplicationIntent(reader.readUntyped());
+ } else if ("connectTimeout".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.withConnectTimeout(reader.readUntyped());
+ } else if ("connectRetryCount".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.withConnectRetryCount(reader.readUntyped());
+ } else if ("connectRetryInterval".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.withConnectRetryInterval(reader.readUntyped());
+ } else if ("loadBalanceTimeout".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.withLoadBalanceTimeout(reader.readUntyped());
+ } else if ("commandTimeout".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.withCommandTimeout(reader.readUntyped());
+ } else if ("integratedSecurity".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.withIntegratedSecurity(reader.readUntyped());
+ } else if ("failoverPartner".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.withFailoverPartner(reader.readUntyped());
+ } else if ("maxPoolSize".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.withMaxPoolSize(reader.readUntyped());
+ } else if ("minPoolSize".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.withMinPoolSize(reader.readUntyped());
+ } else if ("multipleActiveResultSets".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties
+ .withMultipleActiveResultSets(reader.readUntyped());
+ } else if ("multiSubnetFailover".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.withMultiSubnetFailover(reader.readUntyped());
+ } else if ("packetSize".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.withPacketSize(reader.readUntyped());
+ } else if ("pooling".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.withPooling(reader.readUntyped());
+ } else if ("connectionString".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.connectionString = reader.readUntyped();
+ } else if ("authenticationType".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.authenticationType
+ = AzureSqlMIAuthenticationType.fromString(reader.getString());
+ } else if ("userName".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.username = reader.readUntyped();
+ } else if ("password".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.password
+ = AzureKeyVaultSecretReference.fromJson(reader);
+ } else if ("servicePrincipalId".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.servicePrincipalId = reader.readUntyped();
+ } else if ("servicePrincipalKey".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.servicePrincipalKey = SecretBase.fromJson(reader);
+ } else if ("servicePrincipalCredentialType".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.servicePrincipalCredentialType
+ = reader.readUntyped();
+ } else if ("servicePrincipalCredential".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.servicePrincipalCredential
+ = SecretBase.fromJson(reader);
+ } else if ("tenant".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.tenant = reader.readUntyped();
+ } else if ("azureCloudType".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.azureCloudType = reader.readUntyped();
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else if ("alwaysEncryptedSettings".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.alwaysEncryptedSettings
+ = SqlAlwaysEncryptedProperties.fromJson(reader);
+ } else if ("credential".equals(fieldName)) {
+ deserializedAzureSqlMILinkedServiceTypeProperties.credential = CredentialReference.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureSqlMILinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMITableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMITableDatasetTypeProperties.java
index 382d63ff265f..3eaf078245b8 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMITableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlMITableDatasetTypeProperties.java
@@ -5,29 +5,31 @@
package com.azure.resourcemanager.datafactory.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Azure SQL Managed Instance dataset properties.
*/
@Fluent
-public final class AzureSqlMITableDatasetTypeProperties {
+public final class AzureSqlMITableDatasetTypeProperties
+ implements JsonSerializable {
/*
* This property will be retired. Please consider using schema + table properties instead.
*/
- @JsonProperty(value = "tableName")
private Object tableName;
/*
* The schema name of the Azure SQL Managed Instance. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "schema")
private Object schema;
/*
* The table name of the Azure SQL Managed Instance dataset. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "table")
private Object table;
/**
@@ -109,4 +111,47 @@ public AzureSqlMITableDatasetTypeProperties withTable(Object table) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ jsonWriter.writeUntypedField("schema", this.schema);
+ jsonWriter.writeUntypedField("table", this.table);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureSqlMITableDatasetTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureSqlMITableDatasetTypeProperties 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 AzureSqlMITableDatasetTypeProperties.
+ */
+ public static AzureSqlMITableDatasetTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureSqlMITableDatasetTypeProperties deserializedAzureSqlMITableDatasetTypeProperties
+ = new AzureSqlMITableDatasetTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("tableName".equals(fieldName)) {
+ deserializedAzureSqlMITableDatasetTypeProperties.tableName = reader.readUntyped();
+ } else if ("schema".equals(fieldName)) {
+ deserializedAzureSqlMITableDatasetTypeProperties.schema = reader.readUntyped();
+ } else if ("table".equals(fieldName)) {
+ deserializedAzureSqlMITableDatasetTypeProperties.table = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureSqlMITableDatasetTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlTableDatasetTypeProperties.java
index 31c1bab15bed..1c76c5529e48 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSqlTableDatasetTypeProperties.java
@@ -5,29 +5,30 @@
package com.azure.resourcemanager.datafactory.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Azure SQL dataset properties.
*/
@Fluent
-public final class AzureSqlTableDatasetTypeProperties {
+public final class AzureSqlTableDatasetTypeProperties implements JsonSerializable {
/*
* This property will be retired. Please consider using schema + table properties instead.
*/
- @JsonProperty(value = "tableName")
private Object tableName;
/*
* The schema name of the Azure SQL database. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "schema")
private Object schema;
/*
* The table name of the Azure SQL database. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "table")
private Object table;
/**
@@ -109,4 +110,47 @@ public AzureSqlTableDatasetTypeProperties withTable(Object table) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ jsonWriter.writeUntypedField("schema", this.schema);
+ jsonWriter.writeUntypedField("table", this.table);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureSqlTableDatasetTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureSqlTableDatasetTypeProperties 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 AzureSqlTableDatasetTypeProperties.
+ */
+ public static AzureSqlTableDatasetTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureSqlTableDatasetTypeProperties deserializedAzureSqlTableDatasetTypeProperties
+ = new AzureSqlTableDatasetTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("tableName".equals(fieldName)) {
+ deserializedAzureSqlTableDatasetTypeProperties.tableName = reader.readUntyped();
+ } else if ("schema".equals(fieldName)) {
+ deserializedAzureSqlTableDatasetTypeProperties.schema = reader.readUntyped();
+ } else if ("table".equals(fieldName)) {
+ deserializedAzureSqlTableDatasetTypeProperties.table = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureSqlTableDatasetTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureStorageLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureStorageLinkedServiceTypeProperties.java
index 1265cf907238..8bcb76ab2f1d 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureStorageLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureStorageLinkedServiceTypeProperties.java
@@ -5,45 +5,45 @@
package com.azure.resourcemanager.datafactory.fluent.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 com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Azure Storage linked service properties.
*/
@Fluent
-public final class AzureStorageLinkedServiceTypeProperties {
+public class AzureStorageLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* The connection string. It is mutually exclusive with sasUri property. Type: string, SecureString or
* AzureKeyVaultSecretReference.
*/
- @JsonProperty(value = "connectionString")
private Object connectionString;
/*
* The Azure key vault secret reference of accountKey in connection string.
*/
- @JsonProperty(value = "accountKey")
private AzureKeyVaultSecretReference accountKey;
/*
* SAS URI of the Azure Storage resource. It is mutually exclusive with connectionString property. Type: string,
* SecureString or AzureKeyVaultSecretReference.
*/
- @JsonProperty(value = "sasUri")
private Object sasUri;
/*
* The Azure key vault secret reference of sasToken in sas uri.
*/
- @JsonProperty(value = "sasToken")
private AzureKeyVaultSecretReference sasToken;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/**
@@ -171,4 +171,55 @@ public void validate() {
sasToken().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("connectionString", this.connectionString);
+ jsonWriter.writeJsonField("accountKey", this.accountKey);
+ jsonWriter.writeUntypedField("sasUri", this.sasUri);
+ jsonWriter.writeJsonField("sasToken", this.sasToken);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureStorageLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureStorageLinkedServiceTypeProperties 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 AzureStorageLinkedServiceTypeProperties.
+ */
+ public static AzureStorageLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureStorageLinkedServiceTypeProperties deserializedAzureStorageLinkedServiceTypeProperties
+ = new AzureStorageLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("connectionString".equals(fieldName)) {
+ deserializedAzureStorageLinkedServiceTypeProperties.connectionString = reader.readUntyped();
+ } else if ("accountKey".equals(fieldName)) {
+ deserializedAzureStorageLinkedServiceTypeProperties.accountKey
+ = AzureKeyVaultSecretReference.fromJson(reader);
+ } else if ("sasUri".equals(fieldName)) {
+ deserializedAzureStorageLinkedServiceTypeProperties.sasUri = reader.readUntyped();
+ } else if ("sasToken".equals(fieldName)) {
+ deserializedAzureStorageLinkedServiceTypeProperties.sasToken
+ = AzureKeyVaultSecretReference.fromJson(reader);
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAzureStorageLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureStorageLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSynapseArtifactsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSynapseArtifactsLinkedServiceTypeProperties.java
index 340f5b58cbb5..990cee734206 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSynapseArtifactsLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureSynapseArtifactsLinkedServiceTypeProperties.java
@@ -6,25 +6,28 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Azure Synapse Analytics (Artifacts) linked service properties.
*/
@Fluent
-public final class AzureSynapseArtifactsLinkedServiceTypeProperties {
+public final class AzureSynapseArtifactsLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* https://.dev.azuresynapse.net, Azure Synapse Analytics workspace URL. Type: string (or Expression
* with resultType string).
*/
- @JsonProperty(value = "endpoint", required = true)
private Object endpoint;
/*
* Required to specify MSI, if using system assigned managed identity as authentication method. Type: string (or
* Expression with resultType string).
*/
- @JsonProperty(value = "authentication")
private Object authentication;
/*
@@ -32,7 +35,6 @@ public final class AzureSynapseArtifactsLinkedServiceTypeProperties {
* /subscriptions/{subscriptionID}/resourceGroups/{resourceGroup}/providers/Microsoft.Synapse/workspaces/{
* workspaceName}. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "workspaceResourceId")
private Object workspaceResourceId;
/**
@@ -123,4 +125,49 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AzureSynapseArtifactsLinkedServiceTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("endpoint", this.endpoint);
+ jsonWriter.writeUntypedField("authentication", this.authentication);
+ jsonWriter.writeUntypedField("workspaceResourceId", this.workspaceResourceId);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureSynapseArtifactsLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureSynapseArtifactsLinkedServiceTypeProperties 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 AzureSynapseArtifactsLinkedServiceTypeProperties.
+ */
+ public static AzureSynapseArtifactsLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureSynapseArtifactsLinkedServiceTypeProperties deserializedAzureSynapseArtifactsLinkedServiceTypeProperties
+ = new AzureSynapseArtifactsLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("endpoint".equals(fieldName)) {
+ deserializedAzureSynapseArtifactsLinkedServiceTypeProperties.endpoint = reader.readUntyped();
+ } else if ("authentication".equals(fieldName)) {
+ deserializedAzureSynapseArtifactsLinkedServiceTypeProperties.authentication = reader.readUntyped();
+ } else if ("workspaceResourceId".equals(fieldName)) {
+ deserializedAzureSynapseArtifactsLinkedServiceTypeProperties.workspaceResourceId
+ = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureSynapseArtifactsLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureTableDatasetTypeProperties.java
index 0a8c11f4be1a..c8376ad24546 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureTableDatasetTypeProperties.java
@@ -6,17 +6,20 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Azure Table dataset properties.
*/
@Fluent
-public final class AzureTableDatasetTypeProperties {
+public final class AzureTableDatasetTypeProperties implements JsonSerializable {
/*
* The table name of the Azure Table storage. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "tableName", required = true)
private Object tableName;
/**
@@ -61,4 +64,42 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(AzureTableDatasetTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureTableDatasetTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureTableDatasetTypeProperties 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 AzureTableDatasetTypeProperties.
+ */
+ public static AzureTableDatasetTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureTableDatasetTypeProperties deserializedAzureTableDatasetTypeProperties
+ = new AzureTableDatasetTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("tableName".equals(fieldName)) {
+ deserializedAzureTableDatasetTypeProperties.tableName = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureTableDatasetTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureTableStorageLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureTableStorageLinkedServiceTypeProperties.java
new file mode 100644
index 000000000000..78c8768b0aff
--- /dev/null
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AzureTableStorageLinkedServiceTypeProperties.java
@@ -0,0 +1,195 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.datafactory.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.datafactory.models.AzureKeyVaultSecretReference;
+import com.azure.resourcemanager.datafactory.models.CredentialReference;
+import java.io.IOException;
+
+/**
+ * Azure Table Storage linked service properties.
+ */
+@Fluent
+public final class AzureTableStorageLinkedServiceTypeProperties extends AzureStorageLinkedServiceTypeProperties {
+ /*
+ * Table service endpoint of the Azure Table Storage resource. It is mutually exclusive with connectionString,
+ * sasUri property.
+ */
+ private Object serviceEndpoint;
+
+ /*
+ * The credential reference containing authentication information.
+ */
+ private CredentialReference credential;
+
+ /**
+ * Creates an instance of AzureTableStorageLinkedServiceTypeProperties class.
+ */
+ public AzureTableStorageLinkedServiceTypeProperties() {
+ }
+
+ /**
+ * Get the serviceEndpoint property: Table service endpoint of the Azure Table Storage resource. It is mutually
+ * exclusive with connectionString, sasUri property.
+ *
+ * @return the serviceEndpoint value.
+ */
+ public Object serviceEndpoint() {
+ return this.serviceEndpoint;
+ }
+
+ /**
+ * Set the serviceEndpoint property: Table service endpoint of the Azure Table Storage resource. It is mutually
+ * exclusive with connectionString, sasUri property.
+ *
+ * @param serviceEndpoint the serviceEndpoint value to set.
+ * @return the AzureTableStorageLinkedServiceTypeProperties object itself.
+ */
+ public AzureTableStorageLinkedServiceTypeProperties withServiceEndpoint(Object serviceEndpoint) {
+ this.serviceEndpoint = serviceEndpoint;
+ return this;
+ }
+
+ /**
+ * Get the credential property: The credential reference containing authentication information.
+ *
+ * @return the credential value.
+ */
+ public CredentialReference credential() {
+ return this.credential;
+ }
+
+ /**
+ * Set the credential property: The credential reference containing authentication information.
+ *
+ * @param credential the credential value to set.
+ * @return the AzureTableStorageLinkedServiceTypeProperties object itself.
+ */
+ public AzureTableStorageLinkedServiceTypeProperties withCredential(CredentialReference credential) {
+ this.credential = credential;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public AzureTableStorageLinkedServiceTypeProperties withConnectionString(Object connectionString) {
+ super.withConnectionString(connectionString);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public AzureTableStorageLinkedServiceTypeProperties withAccountKey(AzureKeyVaultSecretReference accountKey) {
+ super.withAccountKey(accountKey);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public AzureTableStorageLinkedServiceTypeProperties withSasUri(Object sasUri) {
+ super.withSasUri(sasUri);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public AzureTableStorageLinkedServiceTypeProperties withSasToken(AzureKeyVaultSecretReference sasToken) {
+ super.withSasToken(sasToken);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public AzureTableStorageLinkedServiceTypeProperties withEncryptedCredential(String encryptedCredential) {
+ super.withEncryptedCredential(encryptedCredential);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (credential() != null) {
+ credential().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("connectionString", connectionString());
+ jsonWriter.writeJsonField("accountKey", accountKey());
+ jsonWriter.writeUntypedField("sasUri", sasUri());
+ jsonWriter.writeJsonField("sasToken", sasToken());
+ jsonWriter.writeStringField("encryptedCredential", encryptedCredential());
+ jsonWriter.writeUntypedField("serviceEndpoint", this.serviceEndpoint);
+ jsonWriter.writeJsonField("credential", this.credential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AzureTableStorageLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AzureTableStorageLinkedServiceTypeProperties 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 AzureTableStorageLinkedServiceTypeProperties.
+ */
+ public static AzureTableStorageLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AzureTableStorageLinkedServiceTypeProperties deserializedAzureTableStorageLinkedServiceTypeProperties
+ = new AzureTableStorageLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("connectionString".equals(fieldName)) {
+ deserializedAzureTableStorageLinkedServiceTypeProperties.withConnectionString(reader.readUntyped());
+ } else if ("accountKey".equals(fieldName)) {
+ deserializedAzureTableStorageLinkedServiceTypeProperties
+ .withAccountKey(AzureKeyVaultSecretReference.fromJson(reader));
+ } else if ("sasUri".equals(fieldName)) {
+ deserializedAzureTableStorageLinkedServiceTypeProperties.withSasUri(reader.readUntyped());
+ } else if ("sasToken".equals(fieldName)) {
+ deserializedAzureTableStorageLinkedServiceTypeProperties
+ .withSasToken(AzureKeyVaultSecretReference.fromJson(reader));
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedAzureTableStorageLinkedServiceTypeProperties
+ .withEncryptedCredential(reader.getString());
+ } else if ("serviceEndpoint".equals(fieldName)) {
+ deserializedAzureTableStorageLinkedServiceTypeProperties.serviceEndpoint = reader.readUntyped();
+ } else if ("credential".equals(fieldName)) {
+ deserializedAzureTableStorageLinkedServiceTypeProperties.credential
+ = CredentialReference.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAzureTableStorageLinkedServiceTypeProperties;
+ });
+ }
+}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BinaryDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BinaryDatasetTypeProperties.java
index 93216164bc52..87a2626742b9 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BinaryDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BinaryDatasetTypeProperties.java
@@ -6,25 +6,27 @@
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.datafactory.models.DatasetCompression;
import com.azure.resourcemanager.datafactory.models.DatasetLocation;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Binary dataset properties.
*/
@Fluent
-public final class BinaryDatasetTypeProperties {
+public final class BinaryDatasetTypeProperties implements JsonSerializable {
/*
* The location of the Binary storage.
*/
- @JsonProperty(value = "location", required = true)
private DatasetLocation location;
/*
* The data compression method used for the binary dataset.
*/
- @JsonProperty(value = "compression")
private DatasetCompression compression;
/**
@@ -92,4 +94,44 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(BinaryDatasetTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("location", this.location);
+ jsonWriter.writeJsonField("compression", this.compression);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of BinaryDatasetTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of BinaryDatasetTypeProperties 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 BinaryDatasetTypeProperties.
+ */
+ public static BinaryDatasetTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ BinaryDatasetTypeProperties deserializedBinaryDatasetTypeProperties = new BinaryDatasetTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("location".equals(fieldName)) {
+ deserializedBinaryDatasetTypeProperties.location = DatasetLocation.fromJson(reader);
+ } else if ("compression".equals(fieldName)) {
+ deserializedBinaryDatasetTypeProperties.compression = DatasetCompression.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedBinaryDatasetTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BlobEventsTriggerTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BlobEventsTriggerTypeProperties.java
index 71dc199d9d82..015f52e5a5f5 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BlobEventsTriggerTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BlobEventsTriggerTypeProperties.java
@@ -6,21 +6,24 @@
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.datafactory.models.BlobEventTypes;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* Blob Events Trigger properties.
*/
@Fluent
-public final class BlobEventsTriggerTypeProperties {
+public final class BlobEventsTriggerTypeProperties implements JsonSerializable {
/*
* The blob path must begin with the pattern provided for trigger to fire. For example, '/records/blobs/december/'
* will only fire the trigger for blobs in the december folder under the records container. At least one of these
* must be provided: blobPathBeginsWith, blobPathEndsWith.
*/
- @JsonProperty(value = "blobPathBeginsWith")
private String blobPathBeginsWith;
/*
@@ -28,25 +31,21 @@ public final class BlobEventsTriggerTypeProperties {
* fire the trigger for blobs named boxes in a december folder. At least one of these must be provided:
* blobPathBeginsWith, blobPathEndsWith.
*/
- @JsonProperty(value = "blobPathEndsWith")
private String blobPathEndsWith;
/*
* If set to true, blobs with zero bytes will be ignored.
*/
- @JsonProperty(value = "ignoreEmptyBlobs")
private Boolean ignoreEmptyBlobs;
/*
* The type of events that cause this trigger to fire.
*/
- @JsonProperty(value = "events", required = true)
private List events;
/*
* The ARM resource ID of the Storage Account.
*/
- @JsonProperty(value = "scope", required = true)
private String scope;
/**
@@ -182,4 +181,58 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(BlobEventsTriggerTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("events", this.events,
+ (writer, element) -> writer.writeString(element == null ? null : element.toString()));
+ jsonWriter.writeStringField("scope", this.scope);
+ jsonWriter.writeStringField("blobPathBeginsWith", this.blobPathBeginsWith);
+ jsonWriter.writeStringField("blobPathEndsWith", this.blobPathEndsWith);
+ jsonWriter.writeBooleanField("ignoreEmptyBlobs", this.ignoreEmptyBlobs);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of BlobEventsTriggerTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of BlobEventsTriggerTypeProperties 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 BlobEventsTriggerTypeProperties.
+ */
+ public static BlobEventsTriggerTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ BlobEventsTriggerTypeProperties deserializedBlobEventsTriggerTypeProperties
+ = new BlobEventsTriggerTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("events".equals(fieldName)) {
+ List events
+ = reader.readArray(reader1 -> BlobEventTypes.fromString(reader1.getString()));
+ deserializedBlobEventsTriggerTypeProperties.events = events;
+ } else if ("scope".equals(fieldName)) {
+ deserializedBlobEventsTriggerTypeProperties.scope = reader.getString();
+ } else if ("blobPathBeginsWith".equals(fieldName)) {
+ deserializedBlobEventsTriggerTypeProperties.blobPathBeginsWith = reader.getString();
+ } else if ("blobPathEndsWith".equals(fieldName)) {
+ deserializedBlobEventsTriggerTypeProperties.blobPathEndsWith = reader.getString();
+ } else if ("ignoreEmptyBlobs".equals(fieldName)) {
+ deserializedBlobEventsTriggerTypeProperties.ignoreEmptyBlobs
+ = reader.getNullable(JsonReader::getBoolean);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedBlobEventsTriggerTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BlobTriggerTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BlobTriggerTypeProperties.java
index 7d20ea0e4341..25c881463552 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BlobTriggerTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/BlobTriggerTypeProperties.java
@@ -6,30 +6,31 @@
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.datafactory.models.LinkedServiceReference;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Blob Trigger properties.
*/
@Fluent
-public final class BlobTriggerTypeProperties {
+public final class BlobTriggerTypeProperties implements JsonSerializable {
/*
* The path of the container/folder that will trigger the pipeline.
*/
- @JsonProperty(value = "folderPath", required = true)
private String folderPath;
/*
* The max number of parallel files to handle when it is triggered.
*/
- @JsonProperty(value = "maxConcurrency", required = true)
private int maxConcurrency;
/*
* The Azure Storage linked service reference.
*/
- @JsonProperty(value = "linkedService", required = true)
private LinkedServiceReference linkedService;
/**
@@ -119,4 +120,47 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(BlobTriggerTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("folderPath", this.folderPath);
+ jsonWriter.writeIntField("maxConcurrency", this.maxConcurrency);
+ jsonWriter.writeJsonField("linkedService", this.linkedService);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of BlobTriggerTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of BlobTriggerTypeProperties 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 BlobTriggerTypeProperties.
+ */
+ public static BlobTriggerTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ BlobTriggerTypeProperties deserializedBlobTriggerTypeProperties = new BlobTriggerTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("folderPath".equals(fieldName)) {
+ deserializedBlobTriggerTypeProperties.folderPath = reader.getString();
+ } else if ("maxConcurrency".equals(fieldName)) {
+ deserializedBlobTriggerTypeProperties.maxConcurrency = reader.getInt();
+ } else if ("linkedService".equals(fieldName)) {
+ deserializedBlobTriggerTypeProperties.linkedService = LinkedServiceReference.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedBlobTriggerTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraLinkedServiceTypeProperties.java
index 0415da90e4d3..cbaecaaf1196 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraLinkedServiceTypeProperties.java
@@ -6,49 +6,48 @@
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.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Cassandra linked service properties.
*/
@Fluent
-public final class CassandraLinkedServiceTypeProperties {
+public final class CassandraLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* Host name for connection. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "host", required = true)
private Object host;
/*
* AuthenticationType to be used for connection. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "authenticationType")
private Object authenticationType;
/*
* The port for the connection. Type: integer (or Expression with resultType integer).
*/
- @JsonProperty(value = "port")
private Object port;
/*
* Username for authentication. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "username")
private Object username;
/*
* Password for authentication.
*/
- @JsonProperty(value = "password")
private SecretBase password;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/**
@@ -198,4 +197,57 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(CassandraLinkedServiceTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("host", this.host);
+ jsonWriter.writeUntypedField("authenticationType", this.authenticationType);
+ jsonWriter.writeUntypedField("port", this.port);
+ jsonWriter.writeUntypedField("username", this.username);
+ jsonWriter.writeJsonField("password", this.password);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CassandraLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CassandraLinkedServiceTypeProperties 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 CassandraLinkedServiceTypeProperties.
+ */
+ public static CassandraLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CassandraLinkedServiceTypeProperties deserializedCassandraLinkedServiceTypeProperties
+ = new CassandraLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("host".equals(fieldName)) {
+ deserializedCassandraLinkedServiceTypeProperties.host = reader.readUntyped();
+ } else if ("authenticationType".equals(fieldName)) {
+ deserializedCassandraLinkedServiceTypeProperties.authenticationType = reader.readUntyped();
+ } else if ("port".equals(fieldName)) {
+ deserializedCassandraLinkedServiceTypeProperties.port = reader.readUntyped();
+ } else if ("username".equals(fieldName)) {
+ deserializedCassandraLinkedServiceTypeProperties.username = reader.readUntyped();
+ } else if ("password".equals(fieldName)) {
+ deserializedCassandraLinkedServiceTypeProperties.password = SecretBase.fromJson(reader);
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedCassandraLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCassandraLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraTableDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraTableDatasetTypeProperties.java
index 05b3de503311..3b20e32bc683 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraTableDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CassandraTableDatasetTypeProperties.java
@@ -5,23 +5,26 @@
package com.azure.resourcemanager.datafactory.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Cassandra dataset properties.
*/
@Fluent
-public final class CassandraTableDatasetTypeProperties {
+public final class CassandraTableDatasetTypeProperties
+ implements JsonSerializable {
/*
* The table name of the Cassandra database. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "tableName")
private Object tableName;
/*
* The keyspace of the Cassandra database. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "keyspace")
private Object keyspace;
/**
@@ -81,4 +84,44 @@ public CassandraTableDatasetTypeProperties withKeyspace(Object keyspace) {
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("tableName", this.tableName);
+ jsonWriter.writeUntypedField("keyspace", this.keyspace);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CassandraTableDatasetTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CassandraTableDatasetTypeProperties 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 CassandraTableDatasetTypeProperties.
+ */
+ public static CassandraTableDatasetTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CassandraTableDatasetTypeProperties deserializedCassandraTableDatasetTypeProperties
+ = new CassandraTableDatasetTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("tableName".equals(fieldName)) {
+ deserializedCassandraTableDatasetTypeProperties.tableName = reader.readUntyped();
+ } else if ("keyspace".equals(fieldName)) {
+ deserializedCassandraTableDatasetTypeProperties.keyspace = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCassandraTableDatasetTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ChainingTriggerTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ChainingTriggerTypeProperties.java
index 6d951463be73..2425cb3ed632 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ChainingTriggerTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ChainingTriggerTypeProperties.java
@@ -6,25 +6,27 @@
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.datafactory.models.PipelineReference;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* Chaining Trigger properties.
*/
@Fluent
-public final class ChainingTriggerTypeProperties {
+public final class ChainingTriggerTypeProperties implements JsonSerializable {
/*
* Upstream Pipelines.
*/
- @JsonProperty(value = "dependsOn", required = true)
private List dependsOn;
/*
* Run Dimension property that needs to be emitted by upstream pipelines.
*/
- @JsonProperty(value = "runDimension", required = true)
private String runDimension;
/**
@@ -94,4 +96,47 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(ChainingTriggerTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("dependsOn", this.dependsOn, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("runDimension", this.runDimension);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ChainingTriggerTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ChainingTriggerTypeProperties 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 ChainingTriggerTypeProperties.
+ */
+ public static ChainingTriggerTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ChainingTriggerTypeProperties deserializedChainingTriggerTypeProperties
+ = new ChainingTriggerTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("dependsOn".equals(fieldName)) {
+ List dependsOn
+ = reader.readArray(reader1 -> PipelineReference.fromJson(reader1));
+ deserializedChainingTriggerTypeProperties.dependsOn = dependsOn;
+ } else if ("runDimension".equals(fieldName)) {
+ deserializedChainingTriggerTypeProperties.runDimension = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedChainingTriggerTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ChangeDataCapture.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ChangeDataCapture.java
index edc86279eb79..00c2b32ba03d 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ChangeDataCapture.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ChangeDataCapture.java
@@ -6,11 +6,15 @@
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.datafactory.models.ChangeDataCaptureFolder;
import com.azure.resourcemanager.datafactory.models.MapperPolicy;
import com.azure.resourcemanager.datafactory.models.MapperSourceConnectionsInfo;
import com.azure.resourcemanager.datafactory.models.MapperTargetConnectionsInfo;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
@@ -18,47 +22,40 @@
* the destination.
*/
@Fluent
-public final class ChangeDataCapture {
+public final class ChangeDataCapture implements JsonSerializable {
/*
* The folder that this CDC is in. If not specified, CDC will appear at the root level.
*/
- @JsonProperty(value = "folder")
private ChangeDataCaptureFolder folder;
/*
* The description of the change data capture.
*/
- @JsonProperty(value = "description")
private String description;
/*
* List of sources connections that can be used as sources in the CDC.
*/
- @JsonProperty(value = "sourceConnectionsInfo", required = true)
private List sourceConnectionsInfo;
/*
* List of target connections that can be used as sources in the CDC.
*/
- @JsonProperty(value = "targetConnectionsInfo", required = true)
private List targetConnectionsInfo;
/*
* CDC policy
*/
- @JsonProperty(value = "policy", required = true)
private MapperPolicy policy;
/*
* A boolean to determine if the vnet configuration needs to be overwritten.
*/
- @JsonProperty(value = "allowVNetOverride")
private Boolean allowVNetOverride;
/*
* Status of the CDC as to if it is running or stopped.
*/
- @JsonProperty(value = "status")
private String status;
/**
@@ -239,4 +236,65 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(ChangeDataCapture.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("sourceConnectionsInfo", this.sourceConnectionsInfo,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeArrayField("targetConnectionsInfo", this.targetConnectionsInfo,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("policy", this.policy);
+ jsonWriter.writeJsonField("folder", this.folder);
+ jsonWriter.writeStringField("description", this.description);
+ jsonWriter.writeBooleanField("allowVNetOverride", this.allowVNetOverride);
+ jsonWriter.writeStringField("status", this.status);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ChangeDataCapture from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ChangeDataCapture 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 ChangeDataCapture.
+ */
+ public static ChangeDataCapture fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ChangeDataCapture deserializedChangeDataCapture = new ChangeDataCapture();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("sourceConnectionsInfo".equals(fieldName)) {
+ List sourceConnectionsInfo
+ = reader.readArray(reader1 -> MapperSourceConnectionsInfo.fromJson(reader1));
+ deserializedChangeDataCapture.sourceConnectionsInfo = sourceConnectionsInfo;
+ } else if ("targetConnectionsInfo".equals(fieldName)) {
+ List targetConnectionsInfo
+ = reader.readArray(reader1 -> MapperTargetConnectionsInfo.fromJson(reader1));
+ deserializedChangeDataCapture.targetConnectionsInfo = targetConnectionsInfo;
+ } else if ("policy".equals(fieldName)) {
+ deserializedChangeDataCapture.policy = MapperPolicy.fromJson(reader);
+ } else if ("folder".equals(fieldName)) {
+ deserializedChangeDataCapture.folder = ChangeDataCaptureFolder.fromJson(reader);
+ } else if ("description".equals(fieldName)) {
+ deserializedChangeDataCapture.description = reader.getString();
+ } else if ("allowVNetOverride".equals(fieldName)) {
+ deserializedChangeDataCapture.allowVNetOverride = reader.getNullable(JsonReader::getBoolean);
+ } else if ("status".equals(fieldName)) {
+ deserializedChangeDataCapture.status = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedChangeDataCapture;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ChangeDataCaptureResourceInner.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ChangeDataCaptureResourceInner.java
index c05fefc8974a..57b817d9e968 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ChangeDataCaptureResourceInner.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ChangeDataCaptureResourceInner.java
@@ -7,14 +7,14 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SubResource;
import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureFolder;
import com.azure.resourcemanager.datafactory.models.MapperPolicy;
import com.azure.resourcemanager.datafactory.models.MapperSourceConnectionsInfo;
import com.azure.resourcemanager.datafactory.models.MapperTargetConnectionsInfo;
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
@@ -27,31 +27,26 @@ public final class ChangeDataCaptureResourceInner extends SubResource {
/*
* Properties of the change data capture.
*/
- @JsonProperty(value = "properties", required = true)
private ChangeDataCapture innerProperties = new ChangeDataCapture();
/*
* The resource name.
*/
- @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
/*
* The resource type.
*/
- @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
/*
* Etag identifies change in the resource.
*/
- @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;
/*
* Change data capture resource type.
*/
- @JsonIgnore
private Map additionalProperties;
/**
@@ -101,7 +96,6 @@ public String etag() {
*
* @return the additionalProperties value.
*/
- @JsonAnyGetter
public Map additionalProperties() {
return this.additionalProperties;
}
@@ -117,14 +111,6 @@ public ChangeDataCaptureResourceInner withAdditionalProperties(Map();
- }
- additionalProperties.put(key, value);
- }
-
/**
* {@inheritDoc}
*/
@@ -313,4 +299,62 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(ChangeDataCaptureResourceInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("id", id());
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ if (additionalProperties != null) {
+ for (Map.Entry additionalProperty : additionalProperties.entrySet()) {
+ jsonWriter.writeUntypedField(additionalProperty.getKey(), additionalProperty.getValue());
+ }
+ }
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ChangeDataCaptureResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ChangeDataCaptureResourceInner 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 ChangeDataCaptureResourceInner.
+ */
+ public static ChangeDataCaptureResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ChangeDataCaptureResourceInner deserializedChangeDataCaptureResourceInner
+ = new ChangeDataCaptureResourceInner();
+ Map additionalProperties = null;
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedChangeDataCaptureResourceInner.withId(reader.getString());
+ } else if ("properties".equals(fieldName)) {
+ deserializedChangeDataCaptureResourceInner.innerProperties = ChangeDataCapture.fromJson(reader);
+ } else if ("name".equals(fieldName)) {
+ deserializedChangeDataCaptureResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedChangeDataCaptureResourceInner.type = reader.getString();
+ } else if ("etag".equals(fieldName)) {
+ deserializedChangeDataCaptureResourceInner.etag = reader.getString();
+ } else {
+ if (additionalProperties == null) {
+ additionalProperties = new LinkedHashMap<>();
+ }
+
+ additionalProperties.put(fieldName, reader.readUntyped());
+ }
+ }
+ deserializedChangeDataCaptureResourceInner.additionalProperties = additionalProperties;
+
+ return deserializedChangeDataCaptureResourceInner;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CmdkeySetupTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CmdkeySetupTypeProperties.java
index 9995266145c9..b0a895269c2c 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CmdkeySetupTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CmdkeySetupTypeProperties.java
@@ -6,30 +6,31 @@
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.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Cmdkey command custom setup type properties.
*/
@Fluent
-public final class CmdkeySetupTypeProperties {
+public final class CmdkeySetupTypeProperties implements JsonSerializable {
/*
* The server name of data source access. Type: string.
*/
- @JsonProperty(value = "targetName", required = true)
private Object targetName;
/*
* The user name of data source access. Type: string.
*/
- @JsonProperty(value = "userName", required = true)
private Object username;
/*
* The password of data source access.
*/
- @JsonProperty(value = "password", required = true)
private SecretBase password;
/**
@@ -124,4 +125,47 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(CmdkeySetupTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("targetName", this.targetName);
+ jsonWriter.writeUntypedField("userName", this.username);
+ jsonWriter.writeJsonField("password", this.password);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CmdkeySetupTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CmdkeySetupTypeProperties 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 CmdkeySetupTypeProperties.
+ */
+ public static CmdkeySetupTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CmdkeySetupTypeProperties deserializedCmdkeySetupTypeProperties = new CmdkeySetupTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("targetName".equals(fieldName)) {
+ deserializedCmdkeySetupTypeProperties.targetName = reader.readUntyped();
+ } else if ("userName".equals(fieldName)) {
+ deserializedCmdkeySetupTypeProperties.username = reader.readUntyped();
+ } else if ("password".equals(fieldName)) {
+ deserializedCmdkeySetupTypeProperties.password = SecretBase.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCmdkeySetupTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsEntityDatasetTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsEntityDatasetTypeProperties.java
index b03b39d08085..63aeb5158ff0 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsEntityDatasetTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsEntityDatasetTypeProperties.java
@@ -5,17 +5,21 @@
package com.azure.resourcemanager.datafactory.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
/**
* Common Data Service for Apps entity dataset properties.
*/
@Fluent
-public final class CommonDataServiceForAppsEntityDatasetTypeProperties {
+public final class CommonDataServiceForAppsEntityDatasetTypeProperties
+ implements JsonSerializable {
/*
* The logical name of the entity. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "entityName")
private Object entityName;
/**
@@ -51,4 +55,42 @@ public CommonDataServiceForAppsEntityDatasetTypeProperties withEntityName(Object
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("entityName", this.entityName);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CommonDataServiceForAppsEntityDatasetTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CommonDataServiceForAppsEntityDatasetTypeProperties 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 CommonDataServiceForAppsEntityDatasetTypeProperties.
+ */
+ public static CommonDataServiceForAppsEntityDatasetTypeProperties fromJson(JsonReader jsonReader)
+ throws IOException {
+ return jsonReader.readObject(reader -> {
+ CommonDataServiceForAppsEntityDatasetTypeProperties deserializedCommonDataServiceForAppsEntityDatasetTypeProperties
+ = new CommonDataServiceForAppsEntityDatasetTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("entityName".equals(fieldName)) {
+ deserializedCommonDataServiceForAppsEntityDatasetTypeProperties.entityName = reader.readUntyped();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCommonDataServiceForAppsEntityDatasetTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsLinkedServiceTypeProperties.java
index e7bb1f08ae1e..a233d3669dd1 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CommonDataServiceForAppsLinkedServiceTypeProperties.java
@@ -6,41 +6,42 @@
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.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Common Data Service for Apps linked service properties.
*/
@Fluent
-public final class CommonDataServiceForAppsLinkedServiceTypeProperties {
+public final class CommonDataServiceForAppsLinkedServiceTypeProperties
+ implements JsonSerializable {
/*
* The deployment type of the Common Data Service for Apps instance. 'Online' for Common Data Service for Apps
* Online and 'OnPremisesWithIfd' for Common Data Service for Apps on-premises with Ifd. Type: string (or Expression
* with resultType string).
*/
- @JsonProperty(value = "deploymentType", required = true)
private Object deploymentType;
/*
* The host name of the on-premises Common Data Service for Apps server. The property is required for on-prem and
* not allowed for online. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "hostName")
private Object hostname;
/*
* The port of on-premises Common Data Service for Apps server. The property is required for on-prem and not allowed
* for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0.
*/
- @JsonProperty(value = "port")
private Object port;
/*
* The URL to the Microsoft Common Data Service for Apps server. The property is required for on-line and not
* allowed for on-prem. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "serviceUri")
private Object serviceUri;
/*
@@ -48,42 +49,42 @@ public final class CommonDataServiceForAppsLinkedServiceTypeProperties {
* required for online when there are more than one Common Data Service for Apps instances associated with the user.
* Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "organizationName")
private Object organizationName;
/*
* The authentication type to connect to Common Data Service for Apps server. 'Office365' for online scenario, 'Ifd'
- * for on-premises with Ifd scenario. 'AADServicePrincipal' for Server-To-Server authentication in online scenario.
- * Type: string (or Expression with resultType string).
+ * for on-premises with Ifd scenario. 'AADServicePrincipal' for Server-To-Server authentication in online scenario,
+ * 'Active Directory' for Dynamics on-premises with IFD. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "authenticationType", required = true)
private Object authenticationType;
+ /*
+ * The Active Directory domain that will verify user credentials. Type: string (or Expression with resultType
+ * string).
+ */
+ private Object domain;
+
/*
* User name to access the Common Data Service for Apps instance. Type: string (or Expression with resultType
* string).
*/
- @JsonProperty(value = "username")
private Object username;
/*
* Password to access the Common Data Service for Apps instance.
*/
- @JsonProperty(value = "password")
private SecretBase password;
/*
* The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string
* (or Expression with resultType string).
*/
- @JsonProperty(value = "servicePrincipalId")
private Object servicePrincipalId;
/*
* The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for
* key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string).
*/
- @JsonProperty(value = "servicePrincipalCredentialType")
private Object servicePrincipalCredentialType;
/*
@@ -92,14 +93,12 @@ public final class CommonDataServiceForAppsLinkedServiceTypeProperties {
* servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be
* AzureKeyVaultSecretReference.
*/
- @JsonProperty(value = "servicePrincipalCredential")
private SecretBase servicePrincipalCredential;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/**
@@ -227,7 +226,8 @@ public CommonDataServiceForAppsLinkedServiceTypeProperties withOrganizationName(
/**
* Get the authenticationType property: The authentication type to connect to Common Data Service for Apps server.
* 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. 'AADServicePrincipal' for
- * Server-To-Server authentication in online scenario. Type: string (or Expression with resultType string).
+ * Server-To-Server authentication in online scenario, 'Active Directory' for Dynamics on-premises with IFD. Type:
+ * string (or Expression with resultType string).
*
* @return the authenticationType value.
*/
@@ -238,7 +238,8 @@ public Object authenticationType() {
/**
* Set the authenticationType property: The authentication type to connect to Common Data Service for Apps server.
* 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. 'AADServicePrincipal' for
- * Server-To-Server authentication in online scenario. Type: string (or Expression with resultType string).
+ * Server-To-Server authentication in online scenario, 'Active Directory' for Dynamics on-premises with IFD. Type:
+ * string (or Expression with resultType string).
*
* @param authenticationType the authenticationType value to set.
* @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself.
@@ -248,6 +249,28 @@ public CommonDataServiceForAppsLinkedServiceTypeProperties withAuthenticationTyp
return this;
}
+ /**
+ * Get the domain property: The Active Directory domain that will verify user credentials. Type: string (or
+ * Expression with resultType string).
+ *
+ * @return the domain value.
+ */
+ public Object domain() {
+ return this.domain;
+ }
+
+ /**
+ * Set the domain property: The Active Directory domain that will verify user credentials. Type: string (or
+ * Expression with resultType string).
+ *
+ * @param domain the domain value to set.
+ * @return the CommonDataServiceForAppsLinkedServiceTypeProperties object itself.
+ */
+ public CommonDataServiceForAppsLinkedServiceTypeProperties withDomain(Object domain) {
+ this.domain = domain;
+ return this;
+ }
+
/**
* Get the username property: User name to access the Common Data Service for Apps instance. Type: string (or
* Expression with resultType string).
@@ -412,4 +435,87 @@ public void validate() {
private static final ClientLogger LOGGER
= new ClientLogger(CommonDataServiceForAppsLinkedServiceTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("deploymentType", this.deploymentType);
+ jsonWriter.writeUntypedField("authenticationType", this.authenticationType);
+ jsonWriter.writeUntypedField("hostName", this.hostname);
+ jsonWriter.writeUntypedField("port", this.port);
+ jsonWriter.writeUntypedField("serviceUri", this.serviceUri);
+ jsonWriter.writeUntypedField("organizationName", this.organizationName);
+ jsonWriter.writeUntypedField("domain", this.domain);
+ jsonWriter.writeUntypedField("username", this.username);
+ jsonWriter.writeJsonField("password", this.password);
+ jsonWriter.writeUntypedField("servicePrincipalId", this.servicePrincipalId);
+ jsonWriter.writeUntypedField("servicePrincipalCredentialType", this.servicePrincipalCredentialType);
+ jsonWriter.writeJsonField("servicePrincipalCredential", this.servicePrincipalCredential);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CommonDataServiceForAppsLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CommonDataServiceForAppsLinkedServiceTypeProperties 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 CommonDataServiceForAppsLinkedServiceTypeProperties.
+ */
+ public static CommonDataServiceForAppsLinkedServiceTypeProperties fromJson(JsonReader jsonReader)
+ throws IOException {
+ return jsonReader.readObject(reader -> {
+ CommonDataServiceForAppsLinkedServiceTypeProperties deserializedCommonDataServiceForAppsLinkedServiceTypeProperties
+ = new CommonDataServiceForAppsLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("deploymentType".equals(fieldName)) {
+ deserializedCommonDataServiceForAppsLinkedServiceTypeProperties.deploymentType
+ = reader.readUntyped();
+ } else if ("authenticationType".equals(fieldName)) {
+ deserializedCommonDataServiceForAppsLinkedServiceTypeProperties.authenticationType
+ = reader.readUntyped();
+ } else if ("hostName".equals(fieldName)) {
+ deserializedCommonDataServiceForAppsLinkedServiceTypeProperties.hostname = reader.readUntyped();
+ } else if ("port".equals(fieldName)) {
+ deserializedCommonDataServiceForAppsLinkedServiceTypeProperties.port = reader.readUntyped();
+ } else if ("serviceUri".equals(fieldName)) {
+ deserializedCommonDataServiceForAppsLinkedServiceTypeProperties.serviceUri = reader.readUntyped();
+ } else if ("organizationName".equals(fieldName)) {
+ deserializedCommonDataServiceForAppsLinkedServiceTypeProperties.organizationName
+ = reader.readUntyped();
+ } else if ("domain".equals(fieldName)) {
+ deserializedCommonDataServiceForAppsLinkedServiceTypeProperties.domain = reader.readUntyped();
+ } else if ("username".equals(fieldName)) {
+ deserializedCommonDataServiceForAppsLinkedServiceTypeProperties.username = reader.readUntyped();
+ } else if ("password".equals(fieldName)) {
+ deserializedCommonDataServiceForAppsLinkedServiceTypeProperties.password
+ = SecretBase.fromJson(reader);
+ } else if ("servicePrincipalId".equals(fieldName)) {
+ deserializedCommonDataServiceForAppsLinkedServiceTypeProperties.servicePrincipalId
+ = reader.readUntyped();
+ } else if ("servicePrincipalCredentialType".equals(fieldName)) {
+ deserializedCommonDataServiceForAppsLinkedServiceTypeProperties.servicePrincipalCredentialType
+ = reader.readUntyped();
+ } else if ("servicePrincipalCredential".equals(fieldName)) {
+ deserializedCommonDataServiceForAppsLinkedServiceTypeProperties.servicePrincipalCredential
+ = SecretBase.fromJson(reader);
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedCommonDataServiceForAppsLinkedServiceTypeProperties.encryptedCredential
+ = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCommonDataServiceForAppsLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ConcurLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ConcurLinkedServiceTypeProperties.java
index 5b640d71f396..ee21c7336c2e 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ConcurLinkedServiceTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/ConcurLinkedServiceTypeProperties.java
@@ -6,63 +6,59 @@
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.datafactory.models.SecretBase;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* Concur Service linked service properties.
*/
@Fluent
-public final class ConcurLinkedServiceTypeProperties {
+public final class ConcurLinkedServiceTypeProperties implements JsonSerializable {
/*
* Properties used to connect to Concur. It is mutually exclusive with any other properties in the linked service.
* Type: object.
*/
- @JsonProperty(value = "connectionProperties")
private Object connectionProperties;
/*
* Application client_id supplied by Concur App Management.
*/
- @JsonProperty(value = "clientId", required = true)
private Object clientId;
/*
* The user name that you use to access Concur Service.
*/
- @JsonProperty(value = "username", required = true)
private Object username;
/*
* The password corresponding to the user name that you provided in the username field.
*/
- @JsonProperty(value = "password")
private SecretBase password;
/*
* Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true.
*/
- @JsonProperty(value = "useEncryptedEndpoints")
private Object useEncryptedEndpoints;
/*
* Specifies whether to require the host name in the server's certificate to match the host name of the server when
* connecting over SSL. The default value is true.
*/
- @JsonProperty(value = "useHostVerification")
private Object useHostVerification;
/*
* Specifies whether to verify the identity of the server when connecting over SSL. The default value is true.
*/
- @JsonProperty(value = "usePeerVerification")
private Object usePeerVerification;
/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string.
*/
- @JsonProperty(value = "encryptedCredential")
private String encryptedCredential;
/**
@@ -263,4 +259,63 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(ConcurLinkedServiceTypeProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeUntypedField("clientId", this.clientId);
+ jsonWriter.writeUntypedField("username", this.username);
+ jsonWriter.writeUntypedField("connectionProperties", this.connectionProperties);
+ jsonWriter.writeJsonField("password", this.password);
+ jsonWriter.writeUntypedField("useEncryptedEndpoints", this.useEncryptedEndpoints);
+ jsonWriter.writeUntypedField("useHostVerification", this.useHostVerification);
+ jsonWriter.writeUntypedField("usePeerVerification", this.usePeerVerification);
+ jsonWriter.writeStringField("encryptedCredential", this.encryptedCredential);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ConcurLinkedServiceTypeProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ConcurLinkedServiceTypeProperties 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 ConcurLinkedServiceTypeProperties.
+ */
+ public static ConcurLinkedServiceTypeProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ConcurLinkedServiceTypeProperties deserializedConcurLinkedServiceTypeProperties
+ = new ConcurLinkedServiceTypeProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("clientId".equals(fieldName)) {
+ deserializedConcurLinkedServiceTypeProperties.clientId = reader.readUntyped();
+ } else if ("username".equals(fieldName)) {
+ deserializedConcurLinkedServiceTypeProperties.username = reader.readUntyped();
+ } else if ("connectionProperties".equals(fieldName)) {
+ deserializedConcurLinkedServiceTypeProperties.connectionProperties = reader.readUntyped();
+ } else if ("password".equals(fieldName)) {
+ deserializedConcurLinkedServiceTypeProperties.password = SecretBase.fromJson(reader);
+ } else if ("useEncryptedEndpoints".equals(fieldName)) {
+ deserializedConcurLinkedServiceTypeProperties.useEncryptedEndpoints = reader.readUntyped();
+ } else if ("useHostVerification".equals(fieldName)) {
+ deserializedConcurLinkedServiceTypeProperties.useHostVerification = reader.readUntyped();
+ } else if ("usePeerVerification".equals(fieldName)) {
+ deserializedConcurLinkedServiceTypeProperties.usePeerVerification = reader.readUntyped();
+ } else if ("encryptedCredential".equals(fieldName)) {
+ deserializedConcurLinkedServiceTypeProperties.encryptedCredential = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedConcurLinkedServiceTypeProperties;
+ });
+ }
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CopyActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CopyActivityTypeProperties.java
index 6b49441185b7..5a3b9e64e3b7 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CopyActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/CopyActivityTypeProperties.java
@@ -6,6 +6,10 @@
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.datafactory.models.CopySink;
import com.azure.resourcemanager.datafactory.models.CopySource;
import com.azure.resourcemanager.datafactory.models.LogSettings;
@@ -13,105 +17,90 @@
import com.azure.resourcemanager.datafactory.models.RedirectIncompatibleRowSettings;
import com.azure.resourcemanager.datafactory.models.SkipErrorFile;
import com.azure.resourcemanager.datafactory.models.StagingSettings;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
/**
* Copy activity properties.
*/
@Fluent
-public final class CopyActivityTypeProperties {
+public final class CopyActivityTypeProperties implements JsonSerializable {
/*
* Copy activity source.
*/
- @JsonProperty(value = "source", required = true)
private CopySource source;
/*
* Copy activity sink.
*/
- @JsonProperty(value = "sink", required = true)
private CopySink sink;
/*
* Copy activity translator. If not specified, tabular translator is used.
*/
- @JsonProperty(value = "translator")
private Object translator;
/*
* Specifies whether to copy data via an interim staging. Default value is false. Type: boolean (or Expression with
* resultType boolean).
*/
- @JsonProperty(value = "enableStaging")
private Object enableStaging;
/*
* Specifies interim staging settings when EnableStaging is true.
*/
- @JsonProperty(value = "stagingSettings")
private StagingSettings stagingSettings;
/*
* Maximum number of concurrent sessions opened on the source or sink to avoid overloading the data store. Type:
* integer (or Expression with resultType integer), minimum: 0.
*/
- @JsonProperty(value = "parallelCopies")
private Object parallelCopies;
/*
* Maximum number of data integration units that can be used to perform this data movement. Type: integer (or
* Expression with resultType integer), minimum: 0.
*/
- @JsonProperty(value = "dataIntegrationUnits")
private Object dataIntegrationUnits;
/*
* Whether to skip incompatible row. Default value is false. Type: boolean (or Expression with resultType boolean).
*/
- @JsonProperty(value = "enableSkipIncompatibleRow")
private Object enableSkipIncompatibleRow;
/*
* Redirect incompatible row settings when EnableSkipIncompatibleRow is true.
*/
- @JsonProperty(value = "redirectIncompatibleRowSettings")
private RedirectIncompatibleRowSettings redirectIncompatibleRowSettings;
/*
* (Deprecated. Please use LogSettings) Log storage settings customer need to provide when enabling session log.
*/
- @JsonProperty(value = "logStorageSettings")
private LogStorageSettings logStorageSettings;
/*
* Log settings customer needs provide when enabling log.
*/
- @JsonProperty(value = "logSettings")
private LogSettings logSettings;
/*
* Preserve Rules.
*/
- @JsonProperty(value = "preserveRules")
private List