Skip to content

Commit a7120df

Browse files
author
SDKAuto
committed
CodeGen from PR 18793 in Azure/azure-rest-api-specs
Merge e9036c56841b6a3f8342e8ba98a7dcf30fc3e9c3 into 680efa4deb7068eeea0c8e3247f424af7c93caff
1 parent 8cdd533 commit a7120df

File tree

7 files changed

+92
-5
lines changed

7 files changed

+92
-5
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.15 (Unreleased)
3+
## 1.0.0-beta.1 (2022-04-24)
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.14</version>
35+
<version>1.0.0-beta.15</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2585,6 +2585,7 @@ public final class PrivateEndPointConnectionsListByFactorySamples {
25852585
### PrivateEndpointConnectionOperation_CreateOrUpdate
25862586

25872587
```java
2588+
import com.azure.resourcemanager.datafactory.models.PrivateEndpoint;
25882589
import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequest;
25892590
import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState;
25902591

@@ -2610,7 +2611,11 @@ public final class PrivateEndpointConnectionOperationCreateOrUpdateSamples {
26102611
new PrivateLinkConnectionState()
26112612
.withStatus("Approved")
26122613
.withDescription("Approved by admin.")
2613-
.withActionsRequired("")))
2614+
.withActionsRequired(""))
2615+
.withPrivateEndpoint(
2616+
new PrivateEndpoint()
2617+
.withId(
2618+
"/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint")))
26142619
.create();
26152620
}
26162621
}

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
@@ -282,7 +282,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
282282
.append("-")
283283
.append("com.azure.resourcemanager.datafactory")
284284
.append("/")
285-
.append("1.0.0-beta.14");
285+
.append("1.0.0-beta.1");
286286
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
287287
userAgentBuilder
288288
.append(" (")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.JsonProperty;
9+
10+
/** Private endpoint which a connection belongs to. */
11+
@Fluent
12+
public final class PrivateEndpoint {
13+
/*
14+
* The resource Id for private endpoint
15+
*/
16+
@JsonProperty(value = "id")
17+
private String id;
18+
19+
/**
20+
* Get the id property: The resource Id for private endpoint.
21+
*
22+
* @return the id value.
23+
*/
24+
public String id() {
25+
return this.id;
26+
}
27+
28+
/**
29+
* Set the id property: The resource Id for private endpoint.
30+
*
31+
* @param id the id value to set.
32+
* @return the PrivateEndpoint object itself.
33+
*/
34+
public PrivateEndpoint withId(String id) {
35+
this.id = id;
36+
return this;
37+
}
38+
39+
/**
40+
* Validates the instance.
41+
*
42+
* @throws IllegalArgumentException thrown if the instance is not valid.
43+
*/
44+
public void validate() {
45+
}
46+
}

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ public final class PrivateLinkConnectionApprovalRequest {
1616
@JsonProperty(value = "privateLinkServiceConnectionState")
1717
private PrivateLinkConnectionState privateLinkServiceConnectionState;
1818

19+
/*
20+
* The resource of private endpoint.
21+
*/
22+
@JsonProperty(value = "privateEndpoint")
23+
private PrivateEndpoint privateEndpoint;
24+
1925
/**
2026
* Get the privateLinkServiceConnectionState property: The state of a private link connection.
2127
*
@@ -37,6 +43,26 @@ public PrivateLinkConnectionApprovalRequest withPrivateLinkServiceConnectionStat
3743
return this;
3844
}
3945

46+
/**
47+
* Get the privateEndpoint property: The resource of private endpoint.
48+
*
49+
* @return the privateEndpoint value.
50+
*/
51+
public PrivateEndpoint privateEndpoint() {
52+
return this.privateEndpoint;
53+
}
54+
55+
/**
56+
* Set the privateEndpoint property: The resource of private endpoint.
57+
*
58+
* @param privateEndpoint the privateEndpoint value to set.
59+
* @return the PrivateLinkConnectionApprovalRequest object itself.
60+
*/
61+
public PrivateLinkConnectionApprovalRequest withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
62+
this.privateEndpoint = privateEndpoint;
63+
return this;
64+
}
65+
4066
/**
4167
* Validates the instance.
4268
*
@@ -46,5 +72,8 @@ public void validate() {
4672
if (privateLinkServiceConnectionState() != null) {
4773
privateLinkServiceConnectionState().validate();
4874
}
75+
if (privateEndpoint() != null) {
76+
privateEndpoint().validate();
77+
}
4978
}
5079
}

sdk/datafactory/azure-resourcemanager-datafactory/src/samples/java/com/azure/resourcemanager/datafactory/generated/PrivateEndpointConnectionOperationCreateOrUpdateSamples.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
package com.azure.resourcemanager.datafactory.generated;
66

7+
import com.azure.resourcemanager.datafactory.models.PrivateEndpoint;
78
import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequest;
89
import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState;
910

@@ -29,7 +30,11 @@ public static void approvesOrRejectsAPrivateEndpointConnectionForAFactory(
2930
new PrivateLinkConnectionState()
3031
.withStatus("Approved")
3132
.withDescription("Approved by admin.")
32-
.withActionsRequired("")))
33+
.withActionsRequired(""))
34+
.withPrivateEndpoint(
35+
new PrivateEndpoint()
36+
.withId(
37+
"/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint")))
3338
.create();
3439
}
3540
}

0 commit comments

Comments
 (0)