Skip to content

Commit

Permalink
CodeGen from PR 14925 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 550824666f8611250ce5240085d5ef293da294fa into c234651f2885c07ff4a77e50c883145949fda5fa
  • Loading branch information
SDKAuto committed Jul 8, 2021
1 parent b483fac commit 32c1a01
Show file tree
Hide file tree
Showing 35 changed files with 748 additions and 130 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Release History

## 1.0.0-beta.3 (Unreleased)
## 1.0.0-beta.1 (2021-07-08)

- 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).

## 1.0.0-beta.2 (2021-06-16)

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.2</version>
<version>1.0.0-beta.3</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.datafactory")
.append("/")
.append("1.0.0-beta.2");
.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 @@ -14,6 +14,7 @@
import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeAuthKeysInner;
import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeConnectionInfoInner;
import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeMonitoringDataInner;
import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner;
import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeResourceInner;
import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeStatusResponseInner;
import com.azure.resourcemanager.datafactory.models.CreateLinkedIntegrationRuntimeRequest;
Expand Down Expand Up @@ -230,6 +231,38 @@ IntegrationRuntimeStatusResponseInner getStatus(
Response<IntegrationRuntimeStatusResponseInner> getStatusWithResponse(
String resourceGroupName, String factoryName, String integrationRuntimeName, Context context);

/**
* Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param integrationRuntimeName The integration runtime name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list of outbound network dependencies for a given Azure-SSIS integration runtime.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner outboundNetworkDependenciesEndpoints(
String resourceGroupName, String factoryName, String integrationRuntimeName);

/**
* Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param integrationRuntimeName The integration runtime name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list of outbound network dependencies for a given Azure-SSIS integration runtime.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner>
outboundNetworkDependenciesEndpointsWithResponse(
String resourceGroupName, String factoryName, String integrationRuntimeName, Context context);

/**
* Gets the on-premises integration runtime connection information for encrypting the on-premises data source
* credentials.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
// 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.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Azure-SSIS integration runtime outbound network dependency endpoints. */
@Fluent
public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner {
@JsonIgnore
private final ClientLogger logger =
new ClientLogger(IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.class);

/*
* The list of outbound network dependency endpoints.
*/
@JsonProperty(value = "value")
private List<IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint> value;

/**
* Get the value property: The list of outbound network dependency endpoints.
*
* @return the value value.
*/
public List<IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint> value() {
return this.value;
}

/**
* Set the value property: The list of outbound network dependency endpoints.
*
* @param value the value value to set.
* @return the IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner object itself.
*/
public IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner withValue(
List<IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint> value) {
this.value = value;
return this;
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (value() != null) {
value().forEach(e -> e.validate());
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// 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.implementation;

import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner;
import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint;
import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse;
import java.util.Collections;
import java.util.List;

public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseImpl
implements IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse {
private IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner innerObject;

private final com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager;

IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseImpl(
IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner innerObject,
com.azure.resourcemanager.datafactory.DataFactoryManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}

public List<IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint> value() {
List<IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint> inner = this.innerModel().value();
if (inner != null) {
return Collections.unmodifiableList(inner);
} else {
return Collections.emptyList();
}
}

public IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner innerModel() {
return this.innerObject;
}

private com.azure.resourcemanager.datafactory.DataFactoryManager manager() {
return this.serviceManager;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeAuthKeysInner;
import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeConnectionInfoInner;
import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeMonitoringDataInner;
import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner;
import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeResourceInner;
import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeStatusResponseInner;
import com.azure.resourcemanager.datafactory.models.CreateLinkedIntegrationRuntimeRequest;
Expand Down Expand Up @@ -176,6 +177,24 @@ Mono<Response<IntegrationRuntimeStatusResponseInner>> getStatus(
@HeaderParam("Accept") String accept,
Context context);

@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory"
+ "/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}"
+ "/outboundNetworkDependenciesEndpoints")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono<Response<IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner>>
outboundNetworkDependenciesEndpoints(
@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("factoryName") String factoryName,
@PathParam("integrationRuntimeName") String integrationRuntimeName,
@QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept,
Context context);

@Headers({"Content-Type: application/json"})
@Post(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory"
Expand Down Expand Up @@ -1537,6 +1556,182 @@ public Response<IntegrationRuntimeStatusResponseInner> getStatusWithResponse(
return getStatusWithResponseAsync(resourceGroupName, factoryName, integrationRuntimeName, context).block();
}

/**
* Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param integrationRuntimeName The integration runtime name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list of outbound network dependencies for a given Azure-SSIS integration runtime.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<Response<IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner>>
outboundNetworkDependenciesEndpointsWithResponseAsync(
String resourceGroupName, String factoryName, String integrationRuntimeName) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
if (factoryName == null) {
return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null."));
}
if (integrationRuntimeName == null) {
return Mono
.error(
new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."));
}
final String accept = "application/json";
return FluxUtil
.withContext(
context ->
service
.outboundNetworkDependenciesEndpoints(
this.client.getEndpoint(),
this.client.getSubscriptionId(),
resourceGroupName,
factoryName,
integrationRuntimeName,
this.client.getApiVersion(),
accept,
context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}

/**
* Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param integrationRuntimeName The integration runtime name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list of outbound network dependencies for a given Azure-SSIS integration runtime.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<Response<IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner>>
outboundNetworkDependenciesEndpointsWithResponseAsync(
String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
if (factoryName == null) {
return Mono.error(new IllegalArgumentException("Parameter factoryName is required and cannot be null."));
}
if (integrationRuntimeName == null) {
return Mono
.error(
new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null."));
}
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
.outboundNetworkDependenciesEndpoints(
this.client.getEndpoint(),
this.client.getSubscriptionId(),
resourceGroupName,
factoryName,
integrationRuntimeName,
this.client.getApiVersion(),
accept,
context);
}

/**
* Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param integrationRuntimeName The integration runtime name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list of outbound network dependencies for a given Azure-SSIS integration runtime.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner>
outboundNetworkDependenciesEndpointsAsync(
String resourceGroupName, String factoryName, String integrationRuntimeName) {
return outboundNetworkDependenciesEndpointsWithResponseAsync(
resourceGroupName, factoryName, integrationRuntimeName)
.flatMap(
(Response<IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner> res) -> {
if (res.getValue() != null) {
return Mono.just(res.getValue());
} else {
return Mono.empty();
}
});
}

/**
* Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param integrationRuntimeName The integration runtime name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list of outbound network dependencies for a given Azure-SSIS integration runtime.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner outboundNetworkDependenciesEndpoints(
String resourceGroupName, String factoryName, String integrationRuntimeName) {
return outboundNetworkDependenciesEndpointsAsync(resourceGroupName, factoryName, integrationRuntimeName)
.block();
}

/**
* Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param integrationRuntimeName The integration runtime name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list of outbound network dependencies for a given Azure-SSIS integration runtime.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response<IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner>
outboundNetworkDependenciesEndpointsWithResponse(
String resourceGroupName, String factoryName, String integrationRuntimeName, Context context) {
return outboundNetworkDependenciesEndpointsWithResponseAsync(
resourceGroupName, factoryName, integrationRuntimeName, context)
.block();
}

/**
* Gets the on-premises integration runtime connection information for encrypting the on-premises data source
* credentials.
Expand Down
Loading

0 comments on commit 32c1a01

Please sign in to comment.