diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md b/sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md
index bfbffeab3545..6ab783d61530 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.14 (Unreleased)
+## 1.0.0-beta.1 (2022-04-12)
+
+- 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 69baac9f46f1..eb89c0700dcb 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.resourcemanagerazure-resourcemanager-datafactory
- 1.0.0-beta.13
+ 1.0.0-beta.14
```
[//]: # ({x-version-update-end})
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 4c27c599b25f..8289aab4b991 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
@@ -10,11 +10,13 @@
import com.azure.core.http.HttpPipelineBuilder;
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
+import com.azure.core.http.policy.AddHeadersFromContextPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
+import com.azure.core.http.policy.RetryOptions;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
@@ -142,6 +144,19 @@ public static DataFactoryManager authenticate(TokenCredential credential, AzureP
return configure().authenticate(credential, profile);
}
+ /**
+ * Creates an instance of DataFactory service API entry point.
+ *
+ * @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
+ * @param profile the Azure profile for client.
+ * @return the DataFactory service API instance.
+ */
+ public static DataFactoryManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ return new DataFactoryManager(httpPipeline, profile, null);
+ }
+
/**
* Gets a Configurable instance that can be used to create DataFactoryManager with optional configuration.
*
@@ -160,6 +175,7 @@ public static final class Configurable {
private final List policies = new ArrayList<>();
private final List scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
private Duration defaultPollInterval;
private Configurable() {
@@ -220,6 +236,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
return this;
}
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ *
This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
/**
* Sets the default poll interval, used when service does not provide "Retry-After" header.
*
@@ -253,7 +282,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.datafactory")
.append("/")
- .append("1.0.0-beta.13");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -271,10 +300,15 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
}
if (retryPolicy == null) {
- retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
}
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
policies
.addAll(
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
new file mode 100644
index 000000000000..e5dce5296876
--- /dev/null
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AppFiguresLinkedServiceTypeProperties.java
@@ -0,0 +1,124 @@
+// 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.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datafactory.models.SecretBase;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** AppFigures linked service type properties. */
+@Fluent
+public final class AppFiguresLinkedServiceTypeProperties {
+ /*
+ * The username of the Appfigures source.
+ */
+ @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;
+
+ /**
+ * Get the username property: The username of the Appfigures source.
+ *
+ * @return the username value.
+ */
+ public Object username() {
+ return this.username;
+ }
+
+ /**
+ * Set the username property: The username of the Appfigures source.
+ *
+ * @param username the username value to set.
+ * @return the AppFiguresLinkedServiceTypeProperties object itself.
+ */
+ public AppFiguresLinkedServiceTypeProperties withUsername(Object username) {
+ this.username = username;
+ return this;
+ }
+
+ /**
+ * Get the password property: The password of the AppFigures source.
+ *
+ * @return the password value.
+ */
+ public SecretBase password() {
+ return this.password;
+ }
+
+ /**
+ * Set the password property: The password of the AppFigures source.
+ *
+ * @param password the password value to set.
+ * @return the AppFiguresLinkedServiceTypeProperties object itself.
+ */
+ public AppFiguresLinkedServiceTypeProperties withPassword(SecretBase password) {
+ this.password = password;
+ return this;
+ }
+
+ /**
+ * Get the clientKey property: The client key for the AppFigures source.
+ *
+ * @return the clientKey value.
+ */
+ public SecretBase clientKey() {
+ return this.clientKey;
+ }
+
+ /**
+ * Set the clientKey property: The client key for the AppFigures source.
+ *
+ * @param clientKey the clientKey value to set.
+ * @return the AppFiguresLinkedServiceTypeProperties object itself.
+ */
+ public AppFiguresLinkedServiceTypeProperties withClientKey(SecretBase clientKey) {
+ this.clientKey = clientKey;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (username() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property username in model AppFiguresLinkedServiceTypeProperties"));
+ }
+ if (password() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property password in model AppFiguresLinkedServiceTypeProperties"));
+ } else {
+ password().validate();
+ }
+ if (clientKey() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property clientKey in model AppFiguresLinkedServiceTypeProperties"));
+ } else {
+ clientKey().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(AppFiguresLinkedServiceTypeProperties.class);
+}
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
new file mode 100644
index 000000000000..b3d725c0a80f
--- /dev/null
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/AsanaLinkedServiceTypeProperties.java
@@ -0,0 +1,88 @@
+// 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.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datafactory.models.SecretBase;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Asana linked service type properties. */
+@Fluent
+public final class AsanaLinkedServiceTypeProperties {
+ /*
+ * 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
+ * (or Expression with resultType string).
+ */
+ @JsonProperty(value = "encryptedCredential")
+ private Object encryptedCredential;
+
+ /**
+ * Get the apiToken property: The api token for the Asana source.
+ *
+ * @return the apiToken value.
+ */
+ public SecretBase apiToken() {
+ return this.apiToken;
+ }
+
+ /**
+ * Set the apiToken property: The api token for the Asana source.
+ *
+ * @param apiToken the apiToken value to set.
+ * @return the AsanaLinkedServiceTypeProperties object itself.
+ */
+ public AsanaLinkedServiceTypeProperties withApiToken(SecretBase apiToken) {
+ this.apiToken = apiToken;
+ return this;
+ }
+
+ /**
+ * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted
+ * using the integration runtime credential manager. Type: string (or Expression with resultType string).
+ *
+ * @return the encryptedCredential value.
+ */
+ public Object encryptedCredential() {
+ return this.encryptedCredential;
+ }
+
+ /**
+ * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted
+ * using the integration runtime credential manager. Type: string (or Expression with resultType string).
+ *
+ * @param encryptedCredential the encryptedCredential value to set.
+ * @return the AsanaLinkedServiceTypeProperties object itself.
+ */
+ public AsanaLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) {
+ this.encryptedCredential = encryptedCredential;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (apiToken() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property apiToken in model AsanaLinkedServiceTypeProperties"));
+ } else {
+ apiToken().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(AsanaLinkedServiceTypeProperties.class);
+}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DataworldLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DataworldLinkedServiceTypeProperties.java
new file mode 100644
index 000000000000..1757a2b81f1c
--- /dev/null
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/DataworldLinkedServiceTypeProperties.java
@@ -0,0 +1,88 @@
+// 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.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datafactory.models.SecretBase;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Dataworld linked service type properties. */
+@Fluent
+public final class DataworldLinkedServiceTypeProperties {
+ /*
+ * The api token for the Dataworld 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
+ * (or Expression with resultType string).
+ */
+ @JsonProperty(value = "encryptedCredential")
+ private Object encryptedCredential;
+
+ /**
+ * Get the apiToken property: The api token for the Dataworld source.
+ *
+ * @return the apiToken value.
+ */
+ public SecretBase apiToken() {
+ return this.apiToken;
+ }
+
+ /**
+ * Set the apiToken property: The api token for the Dataworld source.
+ *
+ * @param apiToken the apiToken value to set.
+ * @return the DataworldLinkedServiceTypeProperties object itself.
+ */
+ public DataworldLinkedServiceTypeProperties withApiToken(SecretBase apiToken) {
+ this.apiToken = apiToken;
+ return this;
+ }
+
+ /**
+ * Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted
+ * using the integration runtime credential manager. Type: string (or Expression with resultType string).
+ *
+ * @return the encryptedCredential value.
+ */
+ public Object encryptedCredential() {
+ return this.encryptedCredential;
+ }
+
+ /**
+ * Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted
+ * using the integration runtime credential manager. Type: string (or Expression with resultType string).
+ *
+ * @param encryptedCredential the encryptedCredential value to set.
+ * @return the DataworldLinkedServiceTypeProperties object itself.
+ */
+ public DataworldLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) {
+ this.encryptedCredential = encryptedCredential;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (apiToken() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property apiToken in model DataworldLinkedServiceTypeProperties"));
+ } else {
+ apiToken().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(DataworldLinkedServiceTypeProperties.class);
+}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerStoredProcedureActivityTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerStoredProcedureActivityTypeProperties.java
index 0cd0411a7bb0..6ed00df99fcd 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerStoredProcedureActivityTypeProperties.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SqlServerStoredProcedureActivityTypeProperties.java
@@ -6,10 +6,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.datafactory.models.StoredProcedureParameter;
-import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.Map;
/** SQL stored procedure activity properties. */
@Fluent
@@ -26,8 +23,7 @@ public final class SqlServerStoredProcedureActivityTypeProperties {
* "{Parameter1: {value: "1", type: "int"}}".
*/
@JsonProperty(value = "storedProcedureParameters")
- @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
- private Map storedProcedureParameters;
+ private Object storedProcedureParameters;
/**
* Get the storedProcedureName property: Stored procedure name. Type: string (or Expression with resultType string).
@@ -55,7 +51,7 @@ public SqlServerStoredProcedureActivityTypeProperties withStoredProcedureName(Ob
*
* @return the storedProcedureParameters value.
*/
- public Map storedProcedureParameters() {
+ public Object storedProcedureParameters() {
return this.storedProcedureParameters;
}
@@ -67,7 +63,7 @@ public Map storedProcedureParameters() {
* @return the SqlServerStoredProcedureActivityTypeProperties object itself.
*/
public SqlServerStoredProcedureActivityTypeProperties withStoredProcedureParameters(
- Map storedProcedureParameters) {
+ Object storedProcedureParameters) {
this.storedProcedureParameters = storedProcedureParameters;
return this;
}
@@ -85,16 +81,6 @@ public void validate() {
"Missing required property storedProcedureName in model"
+ " SqlServerStoredProcedureActivityTypeProperties"));
}
- if (storedProcedureParameters() != null) {
- storedProcedureParameters()
- .values()
- .forEach(
- e -> {
- if (e != null) {
- e.validate();
- }
- });
- }
}
private static final ClientLogger LOGGER = new ClientLogger(SqlServerStoredProcedureActivityTypeProperties.class);
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TwilioLinkedServiceTypeProperties.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TwilioLinkedServiceTypeProperties.java
new file mode 100644
index 000000000000..f63756e6e1f5
--- /dev/null
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/TwilioLinkedServiceTypeProperties.java
@@ -0,0 +1,90 @@
+// 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.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datafactory.models.SecretBase;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Twilio linked service type properties. */
+@Fluent
+public final class TwilioLinkedServiceTypeProperties {
+ /*
+ * The Account SID of Twilio service.
+ */
+ @JsonProperty(value = "userName", required = true)
+ private Object username;
+
+ /*
+ * The auth token of Twilio service.
+ */
+ @JsonProperty(value = "password", required = true)
+ private SecretBase password;
+
+ /**
+ * Get the username property: The Account SID of Twilio service.
+ *
+ * @return the username value.
+ */
+ public Object username() {
+ return this.username;
+ }
+
+ /**
+ * Set the username property: The Account SID of Twilio service.
+ *
+ * @param username the username value to set.
+ * @return the TwilioLinkedServiceTypeProperties object itself.
+ */
+ public TwilioLinkedServiceTypeProperties withUsername(Object username) {
+ this.username = username;
+ return this;
+ }
+
+ /**
+ * Get the password property: The auth token of Twilio service.
+ *
+ * @return the password value.
+ */
+ public SecretBase password() {
+ return this.password;
+ }
+
+ /**
+ * Set the password property: The auth token of Twilio service.
+ *
+ * @param password the password value to set.
+ * @return the TwilioLinkedServiceTypeProperties object itself.
+ */
+ public TwilioLinkedServiceTypeProperties withPassword(SecretBase password) {
+ this.password = password;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (username() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property username in model TwilioLinkedServiceTypeProperties"));
+ }
+ if (password() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property password in model TwilioLinkedServiceTypeProperties"));
+ } else {
+ password().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(TwilioLinkedServiceTypeProperties.class);
+}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFactoryManagementClientBuilder.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFactoryManagementClientBuilder.java
index 0415073729e8..fd2e7dbf0b38 100644
--- a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFactoryManagementClientBuilder.java
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/DataFactoryManagementClientBuilder.java
@@ -7,7 +7,6 @@
import com.azure.core.annotation.ServiceClientBuilder;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
-import com.azure.core.http.policy.CookiePolicy;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
import com.azure.core.management.AzureEnvironment;
@@ -67,34 +66,34 @@ public DataFactoryManagementClientBuilder environment(AzureEnvironment environme
}
/*
- * The default poll interval for long-running operation
+ * The HTTP pipeline to send requests through
*/
- private Duration defaultPollInterval;
+ private HttpPipeline pipeline;
/**
- * Sets The default poll interval for long-running operation.
+ * Sets The HTTP pipeline to send requests through.
*
- * @param defaultPollInterval the defaultPollInterval value.
+ * @param pipeline the pipeline value.
* @return the DataFactoryManagementClientBuilder.
*/
- public DataFactoryManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = defaultPollInterval;
+ public DataFactoryManagementClientBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
return this;
}
/*
- * The HTTP pipeline to send requests through
+ * The default poll interval for long-running operation
*/
- private HttpPipeline pipeline;
+ private Duration defaultPollInterval;
/**
- * Sets The HTTP pipeline to send requests through.
+ * Sets The default poll interval for long-running operation.
*
- * @param pipeline the pipeline value.
+ * @param defaultPollInterval the defaultPollInterval value.
* @return the DataFactoryManagementClientBuilder.
*/
- public DataFactoryManagementClientBuilder pipeline(HttpPipeline pipeline) {
- this.pipeline = pipeline;
+ public DataFactoryManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
return this;
}
@@ -120,21 +119,21 @@ public DataFactoryManagementClientBuilder serializerAdapter(SerializerAdapter se
* @return an instance of DataFactoryManagementClientImpl.
*/
public DataFactoryManagementClientImpl buildClient() {
+ if (pipeline == null) {
+ this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ }
if (endpoint == null) {
this.endpoint = "https://management.azure.com";
}
if (environment == null) {
this.environment = AzureEnvironment.AZURE;
}
+ if (pipeline == null) {
+ this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ }
if (defaultPollInterval == null) {
this.defaultPollInterval = Duration.ofSeconds(30);
}
- if (pipeline == null) {
- this.pipeline =
- new HttpPipelineBuilder()
- .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy())
- .build();
- }
if (serializerAdapter == null) {
this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
}
diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AppFiguresLinkedService.java b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AppFiguresLinkedService.java
new file mode 100644
index 000000000000..54ef8b848608
--- /dev/null
+++ b/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/AppFiguresLinkedService.java
@@ -0,0 +1,152 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.datafactory.fluent.models.AppFiguresLinkedServiceTypeProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import java.util.List;
+import java.util.Map;
+
+/** Linked service for AppFigures. */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
+@JsonTypeName("AppFigures")
+@Fluent
+public final class AppFiguresLinkedService extends LinkedService {
+ /*
+ * AppFigures linked service properties.
+ */
+ @JsonProperty(value = "typeProperties", required = true)
+ private AppFiguresLinkedServiceTypeProperties innerTypeProperties = new AppFiguresLinkedServiceTypeProperties();
+
+ /**
+ * Get the innerTypeProperties property: AppFigures linked service properties.
+ *
+ * @return the innerTypeProperties value.
+ */
+ private AppFiguresLinkedServiceTypeProperties innerTypeProperties() {
+ return this.innerTypeProperties;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public AppFiguresLinkedService withConnectVia(IntegrationRuntimeReference connectVia) {
+ super.withConnectVia(connectVia);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public AppFiguresLinkedService withDescription(String description) {
+ super.withDescription(description);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public AppFiguresLinkedService withParameters(Map parameters) {
+ super.withParameters(parameters);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public AppFiguresLinkedService withAnnotations(List