Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-resourcemanager-datafactory] Fix headers and schema definition #8908

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.25 (Unreleased)
## 1.0.0-beta.1 (2023-12-25)

- 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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-datafactory</artifactId>
<version>1.0.0-beta.24</version>
<version>1.0.0-beta.25</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile

StringBuilder userAgentBuilder = new StringBuilder();
userAgentBuilder.append("azsdk-java").append("-").append("com.azure.resourcemanager.datafactory")
.append("/").append("1.0.0-beta.24");
.append("/").append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (").append(Configuration.getGlobalConfiguration().get("java.version"))
.append("; ").append(Configuration.getGlobalConfiguration().get("os.name")).append("; ")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.datafactory.models.AzureFunctionActivityMethod;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;

/**
* Azure Function activity type properties.
Expand All @@ -33,7 +35,8 @@ public final class AzureFunctionActivityTypeProperties {
* resultType string).
*/
@JsonProperty(value = "headers")
private Object headers;
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map<String, String> headers;

/*
* Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET
Expand Down Expand Up @@ -97,7 +100,7 @@ public AzureFunctionActivityTypeProperties withFunctionName(Object functionName)
*
* @return the headers value.
*/
public Object headers() {
public Map<String, String> headers() {
return this.headers;
}

Expand All @@ -109,7 +112,7 @@ public Object headers() {
* @param headers the headers value to set.
* @return the AzureFunctionActivityTypeProperties object itself.
*/
public AzureFunctionActivityTypeProperties withHeaders(Object headers) {
public AzureFunctionActivityTypeProperties withHeaders(Map<String, String> headers) {
this.headers = headers;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
@Fluent
public final class AzureFunctionLinkedServiceTypeProperties {
/*
* The endpoint of the Azure Function App. URL will be in the format https://<accountName>.azurewebsites.net.
* The endpoint of the Azure Function App. URL will be in the format https://<accountName>.azurewebsites.net. Type:
* string (or Expression with resultType string).
*/
@JsonProperty(value = "functionAppUrl", required = true)
private Object functionAppUrl;
Expand All @@ -41,7 +42,7 @@ public final class AzureFunctionLinkedServiceTypeProperties {
private CredentialReference credential;

/*
* Allowed token audiences for azure function.
* Allowed token audiences for azure function. Type: string (or Expression with resultType string).
*/
@JsonProperty(value = "resourceId")
private Object resourceId;
Expand All @@ -61,7 +62,7 @@ public AzureFunctionLinkedServiceTypeProperties() {

/**
* Get the functionAppUrl property: The endpoint of the Azure Function App. URL will be in the format
* https://&lt;accountName&gt;.azurewebsites.net.
* https://&lt;accountName&gt;.azurewebsites.net. Type: string (or Expression with resultType string).
*
* @return the functionAppUrl value.
*/
Expand All @@ -71,7 +72,7 @@ public Object functionAppUrl() {

/**
* Set the functionAppUrl property: The endpoint of the Azure Function App. URL will be in the format
* https://&lt;accountName&gt;.azurewebsites.net.
* https://&lt;accountName&gt;.azurewebsites.net. Type: string (or Expression with resultType string).
*
* @param functionAppUrl the functionAppUrl value to set.
* @return the AzureFunctionLinkedServiceTypeProperties object itself.
Expand Down Expand Up @@ -144,7 +145,8 @@ public AzureFunctionLinkedServiceTypeProperties withCredential(CredentialReferen
}

/**
* Get the resourceId property: Allowed token audiences for azure function.
* Get the resourceId property: Allowed token audiences for azure function. Type: string (or Expression with
* resultType string).
*
* @return the resourceId value.
*/
Expand All @@ -153,7 +155,8 @@ public Object resourceId() {
}

/**
* Set the resourceId property: Allowed token audiences for azure function.
* Set the resourceId property: Allowed token audiences for azure function. Type: string (or Expression with
* resultType string).
*
* @param resourceId the resourceId value to set.
* @return the AzureFunctionLinkedServiceTypeProperties object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public final class AzureMLExecutePipelineActivityTypeProperties {

/*
* Dictionary used for changing data path assignments without retraining. Values will be passed in the
* dataPathAssignments property of the published pipeline execution request. Type: object with key value pairs (or
* Expression with resultType object).
* dataPathAssignments property of the published pipeline execution request. Type: object (or Expression with
* resultType object).
*/
@JsonProperty(value = "dataPathAssignments")
private Object dataPathAssignments;
Expand Down Expand Up @@ -193,7 +193,7 @@ public AzureMLExecutePipelineActivityTypeProperties withMlPipelineParameters(Obj
/**
* Get the dataPathAssignments property: Dictionary used for changing data path assignments without retraining.
* Values will be passed in the dataPathAssignments property of the published pipeline execution request. Type:
* object with key value pairs (or Expression with resultType object).
* object (or Expression with resultType object).
*
* @return the dataPathAssignments value.
*/
Expand All @@ -204,7 +204,7 @@ public Object dataPathAssignments() {
/**
* Set the dataPathAssignments property: Dictionary used for changing data path assignments without retraining.
* Values will be passed in the dataPathAssignments property of the published pipeline execution request. Type:
* object with key value pairs (or Expression with resultType object).
* object (or Expression with resultType object).
*
* @param dataPathAssignments the dataPathAssignments value to set.
* @return the AzureMLExecutePipelineActivityTypeProperties object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
@Fluent
public final class CmdkeySetupTypeProperties {
/*
* The server name of data source access.
* The server name of data source access. Type: string.
*/
@JsonProperty(value = "targetName", required = true)
private Object targetName;

/*
* The user name of data source access.
* The user name of data source access. Type: string.
*/
@JsonProperty(value = "userName", required = true)
private Object username;
Expand All @@ -39,7 +39,7 @@ public CmdkeySetupTypeProperties() {
}

/**
* Get the targetName property: The server name of data source access.
* Get the targetName property: The server name of data source access. Type: string.
*
* @return the targetName value.
*/
Expand All @@ -48,7 +48,7 @@ public Object targetName() {
}

/**
* Set the targetName property: The server name of data source access.
* Set the targetName property: The server name of data source access. Type: string.
*
* @param targetName the targetName value to set.
* @return the CmdkeySetupTypeProperties object itself.
Expand All @@ -59,7 +59,7 @@ public CmdkeySetupTypeProperties withTargetName(Object targetName) {
}

/**
* Get the username property: The user name of data source access.
* Get the username property: The user name of data source access. Type: string.
*
* @return the username value.
*/
Expand All @@ -68,7 +68,7 @@ public Object username() {
}

/**
* Set the username property: The user name of data source access.
* Set the username property: The user name of data source access. Type: string.
*
* @param username the username value to set.
* @return the CmdkeySetupTypeProperties object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
@Fluent
public final class HDInsightOnDemandLinkedServiceTypeProperties {
/*
* Number of worker/data nodes in the cluster. Suggestion value: 4. Type: string (or Expression with resultType
* string).
* Number of worker/data nodes in the cluster. Suggestion value: 4. Type: int (or Expression with resultType int).
*/
@JsonProperty(value = "clusterSize", required = true)
private Object clusterSize;
Expand Down Expand Up @@ -241,8 +240,8 @@ public HDInsightOnDemandLinkedServiceTypeProperties() {
}

/**
* Get the clusterSize property: Number of worker/data nodes in the cluster. Suggestion value: 4. Type: string (or
* Expression with resultType string).
* Get the clusterSize property: Number of worker/data nodes in the cluster. Suggestion value: 4. Type: int (or
* Expression with resultType int).
*
* @return the clusterSize value.
*/
Expand All @@ -251,8 +250,8 @@ public Object clusterSize() {
}

/**
* Set the clusterSize property: Number of worker/data nodes in the cluster. Suggestion value: 4. Type: string (or
* Expression with resultType string).
* Set the clusterSize property: Number of worker/data nodes in the cluster. Suggestion value: 4. Type: int (or
* Expression with resultType int).
*
* @param clusterSize the clusterSize value to set.
* @return the HDInsightOnDemandLinkedServiceTypeProperties object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public final class HttpLinkedServiceTypeProperties {
private SecretBase password;

/*
* The additional HTTP headers in the request to RESTful API used for authorization. Type: object (or Expression
* with resultType object).
* The additional HTTP headers in the request to RESTful API used for authorization. Type: key value pairs (value
* should be string type).
*/
@JsonProperty(value = "authHeaders")
private Object authHeaders;
Expand Down Expand Up @@ -171,7 +171,7 @@ public HttpLinkedServiceTypeProperties withPassword(SecretBase password) {

/**
* Get the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization.
* Type: object (or Expression with resultType object).
* Type: key value pairs (value should be string type).
*
* @return the authHeaders value.
*/
Expand All @@ -181,7 +181,7 @@ public Object authHeaders() {

/**
* Set the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization.
* Type: object (or Expression with resultType object).
* Type: key value pairs (value should be string type).
*
* @param authHeaders the authHeaders value to set.
* @return the HttpLinkedServiceTypeProperties object itself.
Expand Down
Loading