Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.14 (Unreleased)
## 1.0.0-beta.1 (2022-03-28)

- 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.13</version>
<version>1.0.0-beta.14</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,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(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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<String, StoredProcedureParameter> storedProcedureParameters;
private Object storedProcedureParameters;

/**
* Get the storedProcedureName property: Stored procedure name. Type: string (or Expression with resultType string).
Expand Down Expand Up @@ -55,7 +51,7 @@ public SqlServerStoredProcedureActivityTypeProperties withStoredProcedureName(Ob
*
* @return the storedProcedureParameters value.
*/
public Map<String, StoredProcedureParameter> storedProcedureParameters() {
public Object storedProcedureParameters() {
return this.storedProcedureParameters;
}

Expand All @@ -67,7 +63,7 @@ public Map<String, StoredProcedureParameter> storedProcedureParameters() {
* @return the SqlServerStoredProcedureActivityTypeProperties object itself.
*/
public SqlServerStoredProcedureActivityTypeProperties withStoredProcedureParameters(
Map<String, StoredProcedureParameter> storedProcedureParameters) {
Object storedProcedureParameters) {
this.storedProcedureParameters = storedProcedureParameters;
return this;
}
Expand All @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public final class CredentialReference {
* Credential reference type.
*/
@JsonProperty(value = "type", required = true)
private String type = "CredentialReference";
private CredentialReferenceType type;

/*
* Reference credential name.
Expand All @@ -33,17 +33,12 @@ public final class CredentialReference {
*/
@JsonIgnore private Map<String, Object> additionalProperties;

/** Creates an instance of CredentialReference class. */
public CredentialReference() {
type = "CredentialReference";
}

/**
* Get the type property: Credential reference type.
*
* @return the type value.
*/
public String type() {
public CredentialReferenceType type() {
return this.type;
}

Expand All @@ -53,7 +48,7 @@ public String type() {
* @param type the type value to set.
* @return the CredentialReference object itself.
*/
public CredentialReference withType(String type) {
public CredentialReference withType(CredentialReferenceType type) {
this.type = type;
return this;
}
Expand Down Expand Up @@ -113,6 +108,11 @@ void withAdditionalProperties(String key, Object value) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (type() == null) {
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property type in model CredentialReference"));
}
if (referenceName() == null) {
throw LOGGER
.logExceptionAsError(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// 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.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Defines values for CredentialReferenceType. */
public final class CredentialReferenceType extends ExpandableStringEnum<CredentialReferenceType> {
/** Static value CredentialReference for CredentialReferenceType. */
public static final CredentialReferenceType CREDENTIAL_REFERENCE = fromString("CredentialReference");

/**
* Creates or finds a CredentialReferenceType from its string representation.
*
* @param name a name to look for.
* @return the corresponding CredentialReferenceType.
*/
@JsonCreator
public static CredentialReferenceType fromString(String name) {
return fromString(name, CredentialReferenceType.class);
}

/** @return known CredentialReferenceType values. */
public static Collection<CredentialReferenceType> values() {
return values(CredentialReferenceType.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public final class DataFlowReference {
* Data flow reference type.
*/
@JsonProperty(value = "type", required = true)
private String type = "DataFlowReference";
private DataFlowReferenceType type;

/*
* Reference data flow name.
Expand All @@ -47,17 +47,12 @@ public final class DataFlowReference {
*/
@JsonIgnore private Map<String, Object> additionalProperties;

/** Creates an instance of DataFlowReference class. */
public DataFlowReference() {
type = "DataFlowReference";
}

/**
* Get the type property: Data flow reference type.
*
* @return the type value.
*/
public String type() {
public DataFlowReferenceType type() {
return this.type;
}

Expand All @@ -67,7 +62,7 @@ public String type() {
* @param type the type value to set.
* @return the DataFlowReference object itself.
*/
public DataFlowReference withType(String type) {
public DataFlowReference withType(DataFlowReferenceType type) {
this.type = type;
return this;
}
Expand Down Expand Up @@ -167,6 +162,11 @@ void withAdditionalProperties(String key, Object value) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (type() == null) {
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property type in model DataFlowReference"));
}
if (referenceName() == null) {
throw LOGGER
.logExceptionAsError(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// 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.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Defines values for DataFlowReferenceType. */
public final class DataFlowReferenceType extends ExpandableStringEnum<DataFlowReferenceType> {
/** Static value DataFlowReference for DataFlowReferenceType. */
public static final DataFlowReferenceType DATA_FLOW_REFERENCE = fromString("DataFlowReference");

/**
* Creates or finds a DataFlowReferenceType from its string representation.
*
* @param name a name to look for.
* @return the corresponding DataFlowReferenceType.
*/
@JsonCreator
public static DataFlowReferenceType fromString(String name) {
return fromString(name, DataFlowReferenceType.class);
}

/** @return known DataFlowReferenceType values. */
public static Collection<DataFlowReferenceType> values() {
return values(DataFlowReferenceType.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,20 @@ public final class ManagedVirtualNetworkReference {
* Managed Virtual Network reference type.
*/
@JsonProperty(value = "type", required = true)
private String type = "ManagedVirtualNetworkReference";
private ManagedVirtualNetworkReferenceType type;

/*
* Reference ManagedVirtualNetwork name.
*/
@JsonProperty(value = "referenceName", required = true)
private String referenceName;

/** Creates an instance of ManagedVirtualNetworkReference class. */
public ManagedVirtualNetworkReference() {
type = "ManagedVirtualNetworkReference";
}

/**
* Get the type property: Managed Virtual Network reference type.
*
* @return the type value.
*/
public String type() {
public ManagedVirtualNetworkReferenceType type() {
return this.type;
}

Expand All @@ -43,7 +38,7 @@ public String type() {
* @param type the type value to set.
* @return the ManagedVirtualNetworkReference object itself.
*/
public ManagedVirtualNetworkReference withType(String type) {
public ManagedVirtualNetworkReference withType(ManagedVirtualNetworkReferenceType type) {
this.type = type;
return this;
}
Expand Down Expand Up @@ -74,6 +69,12 @@ public ManagedVirtualNetworkReference withReferenceName(String referenceName) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (type() == null) {
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property type in model ManagedVirtualNetworkReference"));
}
if (referenceName() == null) {
throw LOGGER
.logExceptionAsError(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// 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.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Defines values for ManagedVirtualNetworkReferenceType. */
public final class ManagedVirtualNetworkReferenceType extends ExpandableStringEnum<ManagedVirtualNetworkReferenceType> {
/** Static value ManagedVirtualNetworkReference for ManagedVirtualNetworkReferenceType. */
public static final ManagedVirtualNetworkReferenceType MANAGED_VIRTUAL_NETWORK_REFERENCE =
fromString("ManagedVirtualNetworkReference");

/**
* Creates or finds a ManagedVirtualNetworkReferenceType from its string representation.
*
* @param name a name to look for.
* @return the corresponding ManagedVirtualNetworkReferenceType.
*/
@JsonCreator
public static ManagedVirtualNetworkReferenceType fromString(String name) {
return fromString(name, ManagedVirtualNetworkReferenceType.class);
}

/** @return known ManagedVirtualNetworkReferenceType values. */
public static Collection<ManagedVirtualNetworkReferenceType> values() {
return values(ManagedVirtualNetworkReferenceType.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.util.List;
import java.util.Map;

/** SQL stored procedure activity type. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
Expand Down Expand Up @@ -105,7 +104,7 @@ public SqlServerStoredProcedureActivity withStoredProcedureName(Object storedPro
*
* @return the storedProcedureParameters value.
*/
public Map<String, StoredProcedureParameter> storedProcedureParameters() {
public Object storedProcedureParameters() {
return this.innerTypeProperties() == null ? null : this.innerTypeProperties().storedProcedureParameters();
}

Expand All @@ -116,8 +115,7 @@ public Map<String, StoredProcedureParameter> storedProcedureParameters() {
* @param storedProcedureParameters the storedProcedureParameters value to set.
* @return the SqlServerStoredProcedureActivity object itself.
*/
public SqlServerStoredProcedureActivity withStoredProcedureParameters(
Map<String, StoredProcedureParameter> storedProcedureParameters) {
public SqlServerStoredProcedureActivity withStoredProcedureParameters(Object storedProcedureParameters) {
if (this.innerTypeProperties() == null) {
this.innerTypeProperties = new SqlServerStoredProcedureActivityTypeProperties();
}
Expand Down
Loading