Skip to content

Commit 87f7ccc

Browse files
author
SDKAuto
committed
CodeGen from PR 18413 in Azure/azure-rest-api-specs
Merge 0a6cc0b2ede73746c2726a9752535328429a42d0 into 3034ada77d465b317cda51250a92454824cca06b
1 parent c330f6c commit 87f7ccc

File tree

13 files changed

+280
-35
lines changed

13 files changed

+280
-35
lines changed

sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.0.0-beta.14 (Unreleased)
3+
## 1.0.0-beta.1 (2022-03-25)
4+
5+
- 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).
46

57
### Features Added
68

sdk/datafactory/azure-resourcemanager-datafactory/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-datafactory</artifactId>
35-
<version>1.0.0-beta.13</version>
35+
<version>1.0.0-beta.14</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
253253
.append("-")
254254
.append("com.azure.resourcemanager.datafactory")
255255
.append("/")
256-
.append("1.0.0-beta.13");
256+
.append("1.0.0-beta.1");
257257
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
258258
userAgentBuilder
259259
.append(" (")

sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/CredentialReference.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public final class CredentialReference {
2020
* Credential reference type.
2121
*/
2222
@JsonProperty(value = "type", required = true)
23-
private String type = "CredentialReference";
23+
private CredentialReferenceType type;
2424

2525
/*
2626
* Reference credential name.
@@ -33,17 +33,12 @@ public final class CredentialReference {
3333
*/
3434
@JsonIgnore private Map<String, Object> additionalProperties;
3535

36-
/** Creates an instance of CredentialReference class. */
37-
public CredentialReference() {
38-
type = "CredentialReference";
39-
}
40-
4136
/**
4237
* Get the type property: Credential reference type.
4338
*
4439
* @return the type value.
4540
*/
46-
public String type() {
41+
public CredentialReferenceType type() {
4742
return this.type;
4843
}
4944

@@ -53,7 +48,7 @@ public String type() {
5348
* @param type the type value to set.
5449
* @return the CredentialReference object itself.
5550
*/
56-
public CredentialReference withType(String type) {
51+
public CredentialReference withType(CredentialReferenceType type) {
5752
this.type = type;
5853
return this;
5954
}
@@ -113,6 +108,11 @@ void withAdditionalProperties(String key, Object value) {
113108
* @throws IllegalArgumentException thrown if the instance is not valid.
114109
*/
115110
public void validate() {
111+
if (type() == null) {
112+
throw LOGGER
113+
.logExceptionAsError(
114+
new IllegalArgumentException("Missing required property type in model CredentialReference"));
115+
}
116116
if (referenceName() == null) {
117117
throw LOGGER
118118
.logExceptionAsError(
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.datafactory.models;
6+
7+
import com.azure.core.util.ExpandableStringEnum;
8+
import com.fasterxml.jackson.annotation.JsonCreator;
9+
import java.util.Collection;
10+
11+
/** Defines values for CredentialReferenceType. */
12+
public final class CredentialReferenceType extends ExpandableStringEnum<CredentialReferenceType> {
13+
/** Static value CredentialReference for CredentialReferenceType. */
14+
public static final CredentialReferenceType CREDENTIAL_REFERENCE = fromString("CredentialReference");
15+
16+
/**
17+
* Creates or finds a CredentialReferenceType from its string representation.
18+
*
19+
* @param name a name to look for.
20+
* @return the corresponding CredentialReferenceType.
21+
*/
22+
@JsonCreator
23+
public static CredentialReferenceType fromString(String name) {
24+
return fromString(name, CredentialReferenceType.class);
25+
}
26+
27+
/** @return known CredentialReferenceType values. */
28+
public static Collection<CredentialReferenceType> values() {
29+
return values(CredentialReferenceType.class);
30+
}
31+
}

sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/DataFlowReference.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public final class DataFlowReference {
2121
* Data flow reference type.
2222
*/
2323
@JsonProperty(value = "type", required = true)
24-
private String type = "DataFlowReference";
24+
private DataFlowReferenceType type;
2525

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

50-
/** Creates an instance of DataFlowReference class. */
51-
public DataFlowReference() {
52-
type = "DataFlowReference";
53-
}
54-
5550
/**
5651
* Get the type property: Data flow reference type.
5752
*
5853
* @return the type value.
5954
*/
60-
public String type() {
55+
public DataFlowReferenceType type() {
6156
return this.type;
6257
}
6358

@@ -67,7 +62,7 @@ public String type() {
6762
* @param type the type value to set.
6863
* @return the DataFlowReference object itself.
6964
*/
70-
public DataFlowReference withType(String type) {
65+
public DataFlowReference withType(DataFlowReferenceType type) {
7166
this.type = type;
7267
return this;
7368
}
@@ -167,6 +162,11 @@ void withAdditionalProperties(String key, Object value) {
167162
* @throws IllegalArgumentException thrown if the instance is not valid.
168163
*/
169164
public void validate() {
165+
if (type() == null) {
166+
throw LOGGER
167+
.logExceptionAsError(
168+
new IllegalArgumentException("Missing required property type in model DataFlowReference"));
169+
}
170170
if (referenceName() == null) {
171171
throw LOGGER
172172
.logExceptionAsError(
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.datafactory.models;
6+
7+
import com.azure.core.util.ExpandableStringEnum;
8+
import com.fasterxml.jackson.annotation.JsonCreator;
9+
import java.util.Collection;
10+
11+
/** Defines values for DataFlowReferenceType. */
12+
public final class DataFlowReferenceType extends ExpandableStringEnum<DataFlowReferenceType> {
13+
/** Static value DataFlowReference for DataFlowReferenceType. */
14+
public static final DataFlowReferenceType DATA_FLOW_REFERENCE = fromString("DataFlowReference");
15+
16+
/**
17+
* Creates or finds a DataFlowReferenceType from its string representation.
18+
*
19+
* @param name a name to look for.
20+
* @return the corresponding DataFlowReferenceType.
21+
*/
22+
@JsonCreator
23+
public static DataFlowReferenceType fromString(String name) {
24+
return fromString(name, DataFlowReferenceType.class);
25+
}
26+
27+
/** @return known DataFlowReferenceType values. */
28+
public static Collection<DataFlowReferenceType> values() {
29+
return values(DataFlowReferenceType.class);
30+
}
31+
}

sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ExecutePipelineActivity.java

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,38 @@
1818
@JsonTypeName("ExecutePipeline")
1919
@Fluent
2020
public final class ExecutePipelineActivity extends ControlActivity {
21+
/*
22+
* Execute pipeline activity policy.
23+
*/
24+
@JsonProperty(value = "policy")
25+
private ExecutePipelineActivityPolicy policy;
26+
2127
/*
2228
* Execute pipeline activity properties.
2329
*/
2430
@JsonProperty(value = "typeProperties", required = true)
2531
private ExecutePipelineActivityTypeProperties innerTypeProperties = new ExecutePipelineActivityTypeProperties();
2632

33+
/**
34+
* Get the policy property: Execute pipeline activity policy.
35+
*
36+
* @return the policy value.
37+
*/
38+
public ExecutePipelineActivityPolicy policy() {
39+
return this.policy;
40+
}
41+
42+
/**
43+
* Set the policy property: Execute pipeline activity policy.
44+
*
45+
* @param policy the policy value to set.
46+
* @return the ExecutePipelineActivity object itself.
47+
*/
48+
public ExecutePipelineActivity withPolicy(ExecutePipelineActivityPolicy policy) {
49+
this.policy = policy;
50+
return this;
51+
}
52+
2753
/**
2854
* Get the innerTypeProperties property: Execute pipeline activity properties.
2955
*
@@ -140,6 +166,9 @@ public ExecutePipelineActivity withWaitOnCompletion(Boolean waitOnCompletion) {
140166
@Override
141167
public void validate() {
142168
super.validate();
169+
if (policy() != null) {
170+
policy().validate();
171+
}
143172
if (innerTypeProperties() == null) {
144173
throw LOGGER
145174
.logExceptionAsError(
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.datafactory.models;
6+
7+
import com.azure.core.annotation.Fluent;
8+
import com.fasterxml.jackson.annotation.JsonAnyGetter;
9+
import com.fasterxml.jackson.annotation.JsonAnySetter;
10+
import com.fasterxml.jackson.annotation.JsonIgnore;
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
import java.util.HashMap;
13+
import java.util.Map;
14+
15+
/** Execution policy for an execute pipeline activity. */
16+
@Fluent
17+
public final class ExecutePipelineActivityPolicy {
18+
/*
19+
* When set to true, Input from activity is considered as secure and will
20+
* not be logged to monitoring.
21+
*/
22+
@JsonProperty(value = "secureInput")
23+
private Boolean secureInput;
24+
25+
/*
26+
* Execution policy for an execute pipeline activity.
27+
*/
28+
@JsonIgnore private Map<String, Object> additionalProperties;
29+
30+
/**
31+
* Get the secureInput property: When set to true, Input from activity is considered as secure and will not be
32+
* logged to monitoring.
33+
*
34+
* @return the secureInput value.
35+
*/
36+
public Boolean secureInput() {
37+
return this.secureInput;
38+
}
39+
40+
/**
41+
* Set the secureInput property: When set to true, Input from activity is considered as secure and will not be
42+
* logged to monitoring.
43+
*
44+
* @param secureInput the secureInput value to set.
45+
* @return the ExecutePipelineActivityPolicy object itself.
46+
*/
47+
public ExecutePipelineActivityPolicy withSecureInput(Boolean secureInput) {
48+
this.secureInput = secureInput;
49+
return this;
50+
}
51+
52+
/**
53+
* Get the additionalProperties property: Execution policy for an execute pipeline activity.
54+
*
55+
* @return the additionalProperties value.
56+
*/
57+
@JsonAnyGetter
58+
public Map<String, Object> additionalProperties() {
59+
return this.additionalProperties;
60+
}
61+
62+
/**
63+
* Set the additionalProperties property: Execution policy for an execute pipeline activity.
64+
*
65+
* @param additionalProperties the additionalProperties value to set.
66+
* @return the ExecutePipelineActivityPolicy object itself.
67+
*/
68+
public ExecutePipelineActivityPolicy withAdditionalProperties(Map<String, Object> additionalProperties) {
69+
this.additionalProperties = additionalProperties;
70+
return this;
71+
}
72+
73+
@JsonAnySetter
74+
void withAdditionalProperties(String key, Object value) {
75+
if (additionalProperties == null) {
76+
additionalProperties = new HashMap<>();
77+
}
78+
additionalProperties.put(key, value);
79+
}
80+
81+
/**
82+
* Validates the instance.
83+
*
84+
* @throws IllegalArgumentException thrown if the instance is not valid.
85+
*/
86+
public void validate() {
87+
}
88+
}

sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ManagedVirtualNetworkReference.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,20 @@ public final class ManagedVirtualNetworkReference {
1515
* Managed Virtual Network reference type.
1616
*/
1717
@JsonProperty(value = "type", required = true)
18-
private String type = "ManagedVirtualNetworkReference";
18+
private ManagedVirtualNetworkReferenceType type;
1919

2020
/*
2121
* Reference ManagedVirtualNetwork name.
2222
*/
2323
@JsonProperty(value = "referenceName", required = true)
2424
private String referenceName;
2525

26-
/** Creates an instance of ManagedVirtualNetworkReference class. */
27-
public ManagedVirtualNetworkReference() {
28-
type = "ManagedVirtualNetworkReference";
29-
}
30-
3126
/**
3227
* Get the type property: Managed Virtual Network reference type.
3328
*
3429
* @return the type value.
3530
*/
36-
public String type() {
31+
public ManagedVirtualNetworkReferenceType type() {
3732
return this.type;
3833
}
3934

@@ -43,7 +38,7 @@ public String type() {
4338
* @param type the type value to set.
4439
* @return the ManagedVirtualNetworkReference object itself.
4540
*/
46-
public ManagedVirtualNetworkReference withType(String type) {
41+
public ManagedVirtualNetworkReference withType(ManagedVirtualNetworkReferenceType type) {
4742
this.type = type;
4843
return this;
4944
}
@@ -74,6 +69,12 @@ public ManagedVirtualNetworkReference withReferenceName(String referenceName) {
7469
* @throws IllegalArgumentException thrown if the instance is not valid.
7570
*/
7671
public void validate() {
72+
if (type() == null) {
73+
throw LOGGER
74+
.logExceptionAsError(
75+
new IllegalArgumentException(
76+
"Missing required property type in model ManagedVirtualNetworkReference"));
77+
}
7778
if (referenceName() == null) {
7879
throw LOGGER
7980
.logExceptionAsError(

0 commit comments

Comments
 (0)