Skip to content

Commit 0f16bd3

Browse files
author
SDKAuto
committed
CodeGen from PR 17553 in Azure/azure-rest-api-specs
Merge 54697fa19d729a4fd6b9def590332cd4d7023cd0 into 932e261a870475e1a29115f62def7bb84e4d7b38
1 parent 71b7c83 commit 0f16bd3

File tree

5 files changed

+77
-8
lines changed

5 files changed

+77
-8
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.11 (Unreleased)
3+
## 1.0.0-beta.1 (2022-01-29)
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.10</version>
35+
<version>1.0.0-beta.11</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
@@ -251,7 +251,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
251251
.append("-")
252252
.append("com.azure.resourcemanager.datafactory")
253253
.append("/")
254-
.append("1.0.0-beta.10");
254+
.append("1.0.0-beta.1");
255255
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
256256
userAgentBuilder
257257
.append(" (")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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.fluent.models;
6+
7+
import com.azure.core.annotation.Fluent;
8+
import com.azure.core.util.logging.ClientLogger;
9+
import com.azure.resourcemanager.datafactory.models.PublicNetworkAccess;
10+
import com.fasterxml.jackson.annotation.JsonIgnore;
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
13+
/** Factory update resource properties. */
14+
@Fluent
15+
public final class FactoryUpdateProperties {
16+
@JsonIgnore private final ClientLogger logger = new ClientLogger(FactoryUpdateProperties.class);
17+
18+
/*
19+
* Whether or not public network access is allowed for the data factory.
20+
*/
21+
@JsonProperty(value = "publicNetworkAccess")
22+
private PublicNetworkAccess publicNetworkAccess;
23+
24+
/**
25+
* Get the publicNetworkAccess property: Whether or not public network access is allowed for the data factory.
26+
*
27+
* @return the publicNetworkAccess value.
28+
*/
29+
public PublicNetworkAccess publicNetworkAccess() {
30+
return this.publicNetworkAccess;
31+
}
32+
33+
/**
34+
* Set the publicNetworkAccess property: Whether or not public network access is allowed for the data factory.
35+
*
36+
* @param publicNetworkAccess the publicNetworkAccess value to set.
37+
* @return the FactoryUpdateProperties object itself.
38+
*/
39+
public FactoryUpdateProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
40+
this.publicNetworkAccess = publicNetworkAccess;
41+
return this;
42+
}
43+
44+
/**
45+
* Validates the instance.
46+
*
47+
* @throws IllegalArgumentException thrown if the instance is not valid.
48+
*/
49+
public void validate() {
50+
}
51+
}

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

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import com.azure.core.annotation.Fluent;
88
import com.azure.core.util.logging.ClientLogger;
9+
import com.azure.resourcemanager.datafactory.fluent.models.FactoryUpdateProperties;
910
import com.fasterxml.jackson.annotation.JsonIgnore;
1011
import com.fasterxml.jackson.annotation.JsonInclude;
1112
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -30,10 +31,10 @@ public final class FactoryUpdateParameters {
3031
private FactoryIdentity identity;
3132

3233
/*
33-
* Whether or not public network access is allowed for the data factory.
34+
* Properties of update the factory.
3435
*/
35-
@JsonProperty(value = "publicNetworkAccess")
36-
private PublicNetworkAccess publicNetworkAccess;
36+
@JsonProperty(value = "properties")
37+
private FactoryUpdateProperties innerProperties;
3738

3839
/**
3940
* Get the tags property: The resource tags.
@@ -75,13 +76,22 @@ public FactoryUpdateParameters withIdentity(FactoryIdentity identity) {
7576
return this;
7677
}
7778

79+
/**
80+
* Get the innerProperties property: Properties of update the factory.
81+
*
82+
* @return the innerProperties value.
83+
*/
84+
private FactoryUpdateProperties innerProperties() {
85+
return this.innerProperties;
86+
}
87+
7888
/**
7989
* Get the publicNetworkAccess property: Whether or not public network access is allowed for the data factory.
8090
*
8191
* @return the publicNetworkAccess value.
8292
*/
8393
public PublicNetworkAccess publicNetworkAccess() {
84-
return this.publicNetworkAccess;
94+
return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess();
8595
}
8696

8797
/**
@@ -91,7 +101,10 @@ public PublicNetworkAccess publicNetworkAccess() {
91101
* @return the FactoryUpdateParameters object itself.
92102
*/
93103
public FactoryUpdateParameters withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
94-
this.publicNetworkAccess = publicNetworkAccess;
104+
if (this.innerProperties() == null) {
105+
this.innerProperties = new FactoryUpdateProperties();
106+
}
107+
this.innerProperties().withPublicNetworkAccess(publicNetworkAccess);
95108
return this;
96109
}
97110

@@ -104,5 +117,8 @@ public void validate() {
104117
if (identity() != null) {
105118
identity().validate();
106119
}
120+
if (innerProperties() != null) {
121+
innerProperties().validate();
122+
}
107123
}
108124
}

0 commit comments

Comments
 (0)