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] [DataFactory]Added privateEndpoint property Into PrivateLinkConnectionApprovalRequest #188

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
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.15 (Unreleased)
## 1.0.0-beta.1 (2022-04-24)

- 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.14</version>
<version>1.0.0-beta.15</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
7 changes: 6 additions & 1 deletion sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2585,6 +2585,7 @@ public final class PrivateEndPointConnectionsListByFactorySamples {
### PrivateEndpointConnectionOperation_CreateOrUpdate

```java
import com.azure.resourcemanager.datafactory.models.PrivateEndpoint;
import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequest;
import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState;

Expand All @@ -2610,7 +2611,11 @@ public final class PrivateEndpointConnectionOperationCreateOrUpdateSamples {
new PrivateLinkConnectionState()
.withStatus("Approved")
.withDescription("Approved by admin.")
.withActionsRequired("")))
.withActionsRequired(""))
.withPrivateEndpoint(
new PrivateEndpoint()
.withId(
"/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint")))
.create();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.datafactory")
.append("/")
.append("1.0.0-beta.14");
.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
@@ -0,0 +1,46 @@
// 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.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Private endpoint which a connection belongs to. */
@Fluent
public final class PrivateEndpoint {
/*
* The resource Id for private endpoint
*/
@JsonProperty(value = "id")
private String id;

/**
* Get the id property: The resource Id for private endpoint.
*
* @return the id value.
*/
public String id() {
return this.id;
}

/**
* Set the id property: The resource Id for private endpoint.
*
* @param id the id value to set.
* @return the PrivateEndpoint object itself.
*/
public PrivateEndpoint withId(String id) {
this.id = id;
return this;
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ public final class PrivateLinkConnectionApprovalRequest {
@JsonProperty(value = "privateLinkServiceConnectionState")
private PrivateLinkConnectionState privateLinkServiceConnectionState;

/*
* The resource of private endpoint.
*/
@JsonProperty(value = "privateEndpoint")
private PrivateEndpoint privateEndpoint;

/**
* Get the privateLinkServiceConnectionState property: The state of a private link connection.
*
Expand All @@ -37,6 +43,26 @@ public PrivateLinkConnectionApprovalRequest withPrivateLinkServiceConnectionStat
return this;
}

/**
* Get the privateEndpoint property: The resource of private endpoint.
*
* @return the privateEndpoint value.
*/
public PrivateEndpoint privateEndpoint() {
return this.privateEndpoint;
}

/**
* Set the privateEndpoint property: The resource of private endpoint.
*
* @param privateEndpoint the privateEndpoint value to set.
* @return the PrivateLinkConnectionApprovalRequest object itself.
*/
public PrivateLinkConnectionApprovalRequest withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
this.privateEndpoint = privateEndpoint;
return this;
}

/**
* Validates the instance.
*
Expand All @@ -46,5 +72,8 @@ public void validate() {
if (privateLinkServiceConnectionState() != null) {
privateLinkServiceConnectionState().validate();
}
if (privateEndpoint() != null) {
privateEndpoint().validate();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

package com.azure.resourcemanager.datafactory.generated;

import com.azure.resourcemanager.datafactory.models.PrivateEndpoint;
import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionApprovalRequest;
import com.azure.resourcemanager.datafactory.models.PrivateLinkConnectionState;

Expand All @@ -29,7 +30,11 @@ public static void approvesOrRejectsAPrivateEndpointConnectionForAFactory(
new PrivateLinkConnectionState()
.withStatus("Approved")
.withDescription("Approved by admin.")
.withActionsRequired("")))
.withActionsRequired(""))
.withPrivateEndpoint(
new PrivateEndpoint()
.withId(
"/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint")))
.create();
}
}