Skip to content

Commit

Permalink
CodeGen from PR 28122 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge de2ee48f39960a7789c0adfce31cb4d56d938232 into dd742c61a64c3ed57a0f868fc99d7f8c6c1ec8cc
  • Loading branch information
SDKAuto committed Mar 19, 2024
1 parent 71e7a8f commit 3db0dc8
Show file tree
Hide file tree
Showing 822 changed files with 398 additions and 40,364 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.28 (Unreleased)
## 1.0.0-beta.1 (2024-03-19)

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

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

/**
Expand All @@ -412,11 +413,9 @@ public final class CredentialOperationsCreateOrUpdateSamples {
* @param manager Entry point to DataFactoryManager.
*/
public static void credentialsCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
manager.credentialOperations().define("exampleCredential")
.withExistingFactory("exampleResourceGroup", "exampleFactoryName")
.withProperties(new ManagedIdentityCredential().withResourceId(
"/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami"))
.create();
manager.credentialOperations().createOrUpdateWithResponse("exampleResourceGroup", "exampleFactoryName",
"exampleCredential", new CredentialResourceInner().withProperties(new ManagedIdentityCredential()), null,
com.azure.core.util.Context.NONE);
}
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile

StringBuilder userAgentBuilder = new StringBuilder();
userAgentBuilder.append("azsdk-java").append("-").append("com.azure.resourcemanager.datafactory")
.append("/").append("1.0.0-beta.27");
.append("/").append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (").append(Configuration.getGlobalConfiguration().get("java.version"))
.append("; ").append(Configuration.getGlobalConfiguration().get("os.name")).append("; ")
Expand Down Expand Up @@ -537,7 +537,7 @@ public ManagedPrivateEndpoints managedPrivateEndpoints() {
}

/**
* Gets the resource collection API of CredentialOperations. It manages ManagedIdentityCredentialResource.
* Gets the resource collection API of CredentialOperations.
*
* @return Resource collection API of CredentialOperations.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.datafactory.fluent.models.ManagedIdentityCredentialResourceInner;
import com.azure.resourcemanager.datafactory.fluent.models.CredentialResourceInner;

/**
* An instance of this class provides access to all the operations defined in CredentialOperationsClient.
Expand All @@ -26,7 +26,7 @@ public interface CredentialOperationsClient {
* @return a list of credential resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ManagedIdentityCredentialResourceInner> listByFactory(String resourceGroupName, String factoryName);
PagedIterable<CredentialResourceInner> listByFactory(String resourceGroupName, String factoryName);

/**
* List credentials.
Expand All @@ -40,8 +40,7 @@ public interface CredentialOperationsClient {
* @return a list of credential resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ManagedIdentityCredentialResourceInner> listByFactory(String resourceGroupName, String factoryName,
Context context);
PagedIterable<CredentialResourceInner> listByFactory(String resourceGroupName, String factoryName, Context context);

/**
* Creates or updates a credential.
Expand All @@ -59,9 +58,8 @@ PagedIterable<ManagedIdentityCredentialResourceInner> listByFactory(String resou
* @return credential resource type along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ManagedIdentityCredentialResourceInner> createOrUpdateWithResponse(String resourceGroupName,
String factoryName, String credentialName, ManagedIdentityCredentialResourceInner credential, String ifMatch,
Context context);
Response<CredentialResourceInner> createOrUpdateWithResponse(String resourceGroupName, String factoryName,
String credentialName, CredentialResourceInner credential, String ifMatch, Context context);

/**
* Creates or updates a credential.
Expand All @@ -76,8 +74,8 @@ Response<ManagedIdentityCredentialResourceInner> createOrUpdateWithResponse(Stri
* @return credential resource type.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ManagedIdentityCredentialResourceInner createOrUpdate(String resourceGroupName, String factoryName,
String credentialName, ManagedIdentityCredentialResourceInner credential);
CredentialResourceInner createOrUpdate(String resourceGroupName, String factoryName, String credentialName,
CredentialResourceInner credential);

/**
* Gets a credential.
Expand All @@ -94,7 +92,7 @@ ManagedIdentityCredentialResourceInner createOrUpdate(String resourceGroupName,
* @return a credential along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ManagedIdentityCredentialResourceInner> getWithResponse(String resourceGroupName, String factoryName,
Response<CredentialResourceInner> getWithResponse(String resourceGroupName, String factoryName,
String credentialName, String ifNoneMatch, Context context);

/**
Expand All @@ -109,7 +107,7 @@ Response<ManagedIdentityCredentialResourceInner> getWithResponse(String resource
* @return a credential.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ManagedIdentityCredentialResourceInner get(String resourceGroupName, String factoryName, String credentialName);
CredentialResourceInner get(String resourceGroupName, String factoryName, String credentialName);

/**
* Deletes a credential.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SubResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.datafactory.models.ManagedIdentityCredential;
import com.azure.resourcemanager.datafactory.models.Credential;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Credential resource type.
*/
@Fluent
public final class ManagedIdentityCredentialResourceInner extends SubResource {
public class CredentialResourceInner extends SubResource {
/*
* Managed Identity Credential properties.
* Properties of credentials.
*/
@JsonProperty(value = "properties", required = true)
private ManagedIdentityCredential properties;
private Credential properties;

/*
* The resource name.
Expand All @@ -40,27 +40,27 @@ public final class ManagedIdentityCredentialResourceInner extends SubResource {
private String etag;

/**
* Creates an instance of ManagedIdentityCredentialResourceInner class.
* Creates an instance of CredentialResourceInner class.
*/
public ManagedIdentityCredentialResourceInner() {
public CredentialResourceInner() {
}

/**
* Get the properties property: Managed Identity Credential properties.
* Get the properties property: Properties of credentials.
*
* @return the properties value.
*/
public ManagedIdentityCredential properties() {
public Credential properties() {
return this.properties;
}

/**
* Set the properties property: Managed Identity Credential properties.
* Set the properties property: Properties of credentials.
*
* @param properties the properties value to set.
* @return the ManagedIdentityCredentialResourceInner object itself.
* @return the CredentialResourceInner object itself.
*/
public ManagedIdentityCredentialResourceInner withProperties(ManagedIdentityCredential properties) {
public CredentialResourceInner withProperties(Credential properties) {
this.properties = properties;
return this;
}
Expand Down Expand Up @@ -96,7 +96,7 @@ public String etag() {
* {@inheritDoc}
*/
@Override
public ManagedIdentityCredentialResourceInner withId(String id) {
public CredentialResourceInner withId(String id) {
super.withId(id);
return this;
}
Expand All @@ -108,12 +108,12 @@ public ManagedIdentityCredentialResourceInner withId(String id) {
*/
public void validate() {
if (properties() == null) {
throw LOGGER.logExceptionAsError(new IllegalArgumentException(
"Missing required property properties in model ManagedIdentityCredentialResourceInner"));
throw LOGGER.logExceptionAsError(
new IllegalArgumentException("Missing required property properties in model CredentialResourceInner"));
} else {
properties().validate();
}
}

private static final ClientLogger LOGGER = new ClientLogger(ManagedIdentityCredentialResourceInner.class);
private static final ClientLogger LOGGER = new ClientLogger(CredentialResourceInner.class);
}

This file was deleted.

Loading

0 comments on commit 3db0dc8

Please sign in to comment.