Skip to content

Commit

Permalink
CodeGen from PR 29205 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 175135bc67169236bee2e6b8a7d39ecdf1c4ed5c into e9f47ec88eb06646c53f2a561f3b27434ac5ac57
  • Loading branch information
SDKAuto committed Jun 11, 2024
1 parent 1c30ebc commit b55aca5
Show file tree
Hide file tree
Showing 845 changed files with 5,993 additions and 40,274 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.29 (Unreleased)
## 1.0.0-beta.1 (2024-06-11)

- 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.28</version>
<version>1.0.0-beta.29</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
10 changes: 5 additions & 5 deletions sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,6 @@ public final class ChangeDataCaptureStopSamples {
### CredentialOperations_CreateOrUpdate

```java
import com.azure.resourcemanager.datafactory.fluent.models.CredentialResourceInner;
import com.azure.resourcemanager.datafactory.models.ManagedIdentityCredential;

/**
Expand All @@ -416,10 +415,11 @@ public final class CredentialOperationsCreateOrUpdateSamples {
*/
public static void credentialsCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
manager.credentialOperations()
.createOrUpdateWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleCredential",
new CredentialResourceInner().withProperties(new ManagedIdentityCredential().withResourceId(
"/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami")),
null, com.azure.core.util.Context.NONE);
.define("exampleCredential")
.withExistingFactory("exampleResourceGroup", "exampleFactoryName")
.withProperties(new ManagedIdentityCredential().withResourceId(
"/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami"))
.create();
}
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.datafactory")
.append("/")
.append("1.0.0-beta.28");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
Expand Down Expand Up @@ -549,7 +549,7 @@ public ManagedPrivateEndpoints managedPrivateEndpoints() {
}

/**
* Gets the resource collection API of CredentialOperations.
* Gets the resource collection API of CredentialOperations. It manages CredentialResource.
*
* @return Resource collection API of CredentialOperations.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,29 @@
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.AmazonRdsForSqlAuthenticationType;
import com.azure.resourcemanager.datafactory.models.SecretBase;
import com.azure.resourcemanager.datafactory.models.SqlAlwaysEncryptedProperties;
import com.azure.resourcemanager.datafactory.models.SqlServerBaseLinkedServiceTypeProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Amazon Rds for SQL Server linked service properties.
*/
@Fluent
public final class AmazonRdsForSqlServerLinkedServiceTypeProperties {
public final class AmazonRdsForSqlServerLinkedServiceTypeProperties extends SqlServerBaseLinkedServiceTypeProperties {
/*
* The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.
*/
@JsonProperty(value = "connectionString", required = true)
@JsonProperty(value = "connectionString")
private Object connectionString;

/*
* The type used for authentication. Type: string.
*/
@JsonProperty(value = "authenticationType")
private AmazonRdsForSqlAuthenticationType authenticationType;

/*
* The on-premises Windows authentication user name. Type: string (or Expression with resultType string).
*/
Expand Down Expand Up @@ -73,6 +80,27 @@ public AmazonRdsForSqlServerLinkedServiceTypeProperties withConnectionString(Obj
return this;
}

/**
* Get the authenticationType property: The type used for authentication. Type: string.
*
* @return the authenticationType value.
*/
public AmazonRdsForSqlAuthenticationType authenticationType() {
return this.authenticationType;
}

/**
* Set the authenticationType property: The type used for authentication. Type: string.
*
* @param authenticationType the authenticationType value to set.
* @return the AmazonRdsForSqlServerLinkedServiceTypeProperties object itself.
*/
public AmazonRdsForSqlServerLinkedServiceTypeProperties
withAuthenticationType(AmazonRdsForSqlAuthenticationType authenticationType) {
this.authenticationType = authenticationType;
return this;
}

/**
* Get the username property: The on-premises Windows authentication user name. Type: string (or Expression with
* resultType string).
Expand Down Expand Up @@ -158,24 +186,191 @@ public SqlAlwaysEncryptedProperties alwaysEncryptedSettings() {
return this;
}

/**
* {@inheritDoc}
*/
@Override
public AmazonRdsForSqlServerLinkedServiceTypeProperties withServer(Object server) {
super.withServer(server);
return this;
}

/**
* {@inheritDoc}
*/
@Override
public AmazonRdsForSqlServerLinkedServiceTypeProperties withDatabase(Object database) {
super.withDatabase(database);
return this;
}

/**
* {@inheritDoc}
*/
@Override
public AmazonRdsForSqlServerLinkedServiceTypeProperties withEncrypt(Object encrypt) {
super.withEncrypt(encrypt);
return this;
}

/**
* {@inheritDoc}
*/
@Override
public AmazonRdsForSqlServerLinkedServiceTypeProperties withTrustServerCertificate(Object trustServerCertificate) {
super.withTrustServerCertificate(trustServerCertificate);
return this;
}

/**
* {@inheritDoc}
*/
@Override
public AmazonRdsForSqlServerLinkedServiceTypeProperties withHostnameInCertificate(Object hostnameInCertificate) {
super.withHostnameInCertificate(hostnameInCertificate);
return this;
}

/**
* {@inheritDoc}
*/
@Override
public AmazonRdsForSqlServerLinkedServiceTypeProperties withApplicationIntent(Object applicationIntent) {
super.withApplicationIntent(applicationIntent);
return this;
}

/**
* {@inheritDoc}
*/
@Override
public AmazonRdsForSqlServerLinkedServiceTypeProperties withConnectTimeout(Object connectTimeout) {
super.withConnectTimeout(connectTimeout);
return this;
}

/**
* {@inheritDoc}
*/
@Override
public AmazonRdsForSqlServerLinkedServiceTypeProperties withConnectRetryCount(Object connectRetryCount) {
super.withConnectRetryCount(connectRetryCount);
return this;
}

/**
* {@inheritDoc}
*/
@Override
public AmazonRdsForSqlServerLinkedServiceTypeProperties withConnectRetryInterval(Object connectRetryInterval) {
super.withConnectRetryInterval(connectRetryInterval);
return this;
}

/**
* {@inheritDoc}
*/
@Override
public AmazonRdsForSqlServerLinkedServiceTypeProperties withLoadBalanceTimeout(Object loadBalanceTimeout) {
super.withLoadBalanceTimeout(loadBalanceTimeout);
return this;
}

/**
* {@inheritDoc}
*/
@Override
public AmazonRdsForSqlServerLinkedServiceTypeProperties withCommandTimeout(Object commandTimeout) {
super.withCommandTimeout(commandTimeout);
return this;
}

/**
* {@inheritDoc}
*/
@Override
public AmazonRdsForSqlServerLinkedServiceTypeProperties withIntegratedSecurity(Object integratedSecurity) {
super.withIntegratedSecurity(integratedSecurity);
return this;
}

/**
* {@inheritDoc}
*/
@Override
public AmazonRdsForSqlServerLinkedServiceTypeProperties withFailoverPartner(Object failoverPartner) {
super.withFailoverPartner(failoverPartner);
return this;
}

/**
* {@inheritDoc}
*/
@Override
public AmazonRdsForSqlServerLinkedServiceTypeProperties withMaxPoolSize(Object maxPoolSize) {
super.withMaxPoolSize(maxPoolSize);
return this;
}

/**
* {@inheritDoc}
*/
@Override
public AmazonRdsForSqlServerLinkedServiceTypeProperties withMinPoolSize(Object minPoolSize) {
super.withMinPoolSize(minPoolSize);
return this;
}

/**
* {@inheritDoc}
*/
@Override
public AmazonRdsForSqlServerLinkedServiceTypeProperties
withMultipleActiveResultSets(Object multipleActiveResultSets) {
super.withMultipleActiveResultSets(multipleActiveResultSets);
return this;
}

/**
* {@inheritDoc}
*/
@Override
public AmazonRdsForSqlServerLinkedServiceTypeProperties withMultiSubnetFailover(Object multiSubnetFailover) {
super.withMultiSubnetFailover(multiSubnetFailover);
return this;
}

/**
* {@inheritDoc}
*/
@Override
public AmazonRdsForSqlServerLinkedServiceTypeProperties withPacketSize(Object packetSize) {
super.withPacketSize(packetSize);
return this;
}

/**
* {@inheritDoc}
*/
@Override
public AmazonRdsForSqlServerLinkedServiceTypeProperties withPooling(Object pooling) {
super.withPooling(pooling);
return this;
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
@Override
public void validate() {
if (connectionString() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
"Missing required property connectionString in model AmazonRdsForSqlServerLinkedServiceTypeProperties"));
}
super.validate();
if (password() != null) {
password().validate();
}
if (alwaysEncryptedSettings() != null) {
alwaysEncryptedSettings().validate();
}
}

private static final ClientLogger LOGGER = new ClientLogger(AmazonRdsForSqlServerLinkedServiceTypeProperties.class);
}
Loading

0 comments on commit b55aca5

Please sign in to comment.