Skip to content

Commit 7471ce9

Browse files
authored
[Automation] Generate Fluent Lite from datafactory#package-2018-06 (Azure#32314)
1 parent 156e0a6 commit 7471ce9

File tree

866 files changed

+2357
-39194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

866 files changed

+2357
-39194
lines changed

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

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,33 @@
11
# Release History
22

3-
## 1.0.0-beta.19 (Unreleased)
3+
## 1.0.0-beta.19 (2022-11-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

7-
### Breaking Changes
9+
* `models.CredentialOperations` was added
10+
11+
* `models.ManagedIdentityCredentialResource$Update` was added
12+
13+
* `models.ManagedIdentityCredentialResource$DefinitionStages` was added
14+
15+
* `models.ManagedIdentityCredentialResource$Definition` was added
816

9-
### Bugs Fixed
17+
* `models.ManagedIdentityCredentialResource` was added
18+
19+
* `models.ManagedIdentityCredentialResource$UpdateStages` was added
20+
21+
* `models.CredentialListResponse` was added
22+
23+
#### `models.ScriptActivity` was modified
24+
25+
* `scriptBlockExecutionTimeout()` was added
26+
* `withScriptBlockExecutionTimeout(java.lang.Object)` was added
27+
28+
#### `DataFactoryManager` was modified
1029

11-
### Other Changes
30+
* `credentialOperations()` was added
1231

1332
## 1.0.0-beta.18 (2022-10-14)
1433

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

Lines changed: 14 additions & 11 deletions
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.18</version>
35+
<version>1.0.0-beta.19</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})
@@ -41,19 +41,19 @@ Various documentation is available to help you get started
4141

4242
Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
4343

44-
[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.
44+
[Azure Identity][azure_identity] and [Azure Core Netty HTTP][azure_core_http_netty] packages provide the default implementation.
4545

4646
### Authentication
4747

48-
By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
48+
By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables.
4949

5050
- `AZURE_CLIENT_ID` for Azure client ID.
5151
- `AZURE_TENANT_ID` for Azure tenant ID.
5252
- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
5353

54-
In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
54+
In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
5555

56-
With above configuration, `azure` client can be authenticated by following code:
56+
With above configuration, `azure` client can be authenticated using the following code:
5757

5858
```java
5959
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
@@ -170,13 +170,13 @@ while ("InProgress".equals(runStatus)) {
170170

171171
## Contributing
172172

173-
For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md).
173+
For details on contributing to this repository, see the [contributing guide][cg].
174174

175-
1. Fork it
176-
1. Create your feature branch (`git checkout -b my-new-feature`)
177-
1. Commit your changes (`git commit -am 'Add some feature'`)
178-
1. Push to the branch (`git push origin my-new-feature`)
179-
1. Create new Pull Request
175+
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit <https://cla.microsoft.com>.
176+
177+
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
178+
179+
This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact <opencode@microsoft.com> with any additional questions or comments.
180180

181181
<!-- LINKS -->
182182
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
@@ -187,3 +187,6 @@ For details on contributing to this repository, see the [contributing guide](htt
187187
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
188188
[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
189189
[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
190+
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
191+
[coc]: https://opensource.microsoft.com/codeofconduct/
192+
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/

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

Lines changed: 106 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55

66
- [QueryByPipelineRun](#activityruns_querybypipelinerun)
77

8+
## CredentialOperations
9+
10+
- [CreateOrUpdate](#credentialoperations_createorupdate)
11+
- [Delete](#credentialoperations_delete)
12+
- [Get](#credentialoperations_get)
13+
- [ListByFactory](#credentialoperations_listbyfactory)
14+
815
## DataFlowDebugSession
916

1017
- [AddDataFlow](#dataflowdebugsession_adddataflow)
@@ -187,6 +194,102 @@ public final class ActivityRunsQueryByPipelineRunSamples {
187194
}
188195
```
189196

197+
### CredentialOperations_CreateOrUpdate
198+
199+
```java
200+
import com.azure.resourcemanager.datafactory.models.ManagedIdentityCredential;
201+
202+
/** Samples for CredentialOperations CreateOrUpdate. */
203+
public final class CredentialOperationsCreateOrUpdateSamples {
204+
/*
205+
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Create.json
206+
*/
207+
/**
208+
* Sample code: Credentials_Create.
209+
*
210+
* @param manager Entry point to DataFactoryManager.
211+
*/
212+
public static void credentialsCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
213+
manager
214+
.credentialOperations()
215+
.define("exampleCredential")
216+
.withExistingFactory("exampleResourceGroup", "exampleFactoryName")
217+
.withProperties(
218+
new ManagedIdentityCredential()
219+
.withResourceId(
220+
"/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami"))
221+
.create();
222+
}
223+
}
224+
```
225+
226+
### CredentialOperations_Delete
227+
228+
```java
229+
import com.azure.core.util.Context;
230+
231+
/** Samples for CredentialOperations Delete. */
232+
public final class CredentialOperationsDeleteSamples {
233+
/*
234+
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Delete.json
235+
*/
236+
/**
237+
* Sample code: Credentials_Delete.
238+
*
239+
* @param manager Entry point to DataFactoryManager.
240+
*/
241+
public static void credentialsDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
242+
manager
243+
.credentialOperations()
244+
.deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleCredential", Context.NONE);
245+
}
246+
}
247+
```
248+
249+
### CredentialOperations_Get
250+
251+
```java
252+
import com.azure.core.util.Context;
253+
254+
/** Samples for CredentialOperations Get. */
255+
public final class CredentialOperationsGetSamples {
256+
/*
257+
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Get.json
258+
*/
259+
/**
260+
* Sample code: Credentials_Get.
261+
*
262+
* @param manager Entry point to DataFactoryManager.
263+
*/
264+
public static void credentialsGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
265+
manager
266+
.credentialOperations()
267+
.getWithResponse("exampleResourceGroup", "exampleFactoryName", "exampleCredential", null, Context.NONE);
268+
}
269+
}
270+
```
271+
272+
### CredentialOperations_ListByFactory
273+
274+
```java
275+
import com.azure.core.util.Context;
276+
277+
/** Samples for CredentialOperations ListByFactory. */
278+
public final class CredentialOperationsListByFactorySamples {
279+
/*
280+
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_ListByFactory.json
281+
*/
282+
/**
283+
* Sample code: Credentials_ListByFactory.
284+
*
285+
* @param manager Entry point to DataFactoryManager.
286+
*/
287+
public static void credentialsListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
288+
manager.credentialOperations().listByFactory("exampleResourceGroup", "exampleFactoryName", Context.NONE);
289+
}
290+
}
291+
```
292+
190293
### DataFlowDebugSession_AddDataFlow
191294

192295
```java
@@ -286,7 +389,7 @@ public final class DataFlowDebugSessionAddDataFlowSamples {
286389
.withAnnotations(Arrays.asList())
287390
.withConnectionString(
288391
"DefaultEndpointsProtocol=https;AccountName=<storageName>;EndpointSuffix=core.windows.net;")
289-
.withEncryptedCredential("<credential>"))))
392+
.withEncryptedCredential("fakeTokenPlaceholder"))))
290393
.withDebugSettings(
291394
new DataFlowDebugPackageDebugSettings()
292395
.withSourceSettings(
@@ -1136,9 +1239,9 @@ public final class FactoriesGetGitHubAccessTokenSamples {
11361239
"exampleResourceGroup",
11371240
"exampleFactoryName",
11381241
new GitHubAccessTokenRequest()
1139-
.withGitHubAccessCode("some")
1242+
.withGitHubAccessCode("fakeTokenPlaceholder")
11401243
.withGitHubClientId("some")
1141-
.withGitHubAccessTokenBaseUrl("some"),
1244+
.withGitHubAccessTokenBaseUrl("fakeTokenPlaceholder"),
11421245
Context.NONE);
11431246
}
11441247
}

sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import com.azure.core.util.logging.ClientLogger;
2626
import com.azure.resourcemanager.datafactory.fluent.DataFactoryManagementClient;
2727
import com.azure.resourcemanager.datafactory.implementation.ActivityRunsImpl;
28+
import com.azure.resourcemanager.datafactory.implementation.CredentialOperationsImpl;
2829
import com.azure.resourcemanager.datafactory.implementation.DataFactoryManagementClientBuilder;
2930
import com.azure.resourcemanager.datafactory.implementation.DataFlowDebugSessionsImpl;
3031
import com.azure.resourcemanager.datafactory.implementation.DataFlowsImpl;
@@ -47,6 +48,7 @@
4748
import com.azure.resourcemanager.datafactory.implementation.TriggerRunsImpl;
4849
import com.azure.resourcemanager.datafactory.implementation.TriggersImpl;
4950
import com.azure.resourcemanager.datafactory.models.ActivityRuns;
51+
import com.azure.resourcemanager.datafactory.models.CredentialOperations;
5052
import com.azure.resourcemanager.datafactory.models.DataFlowDebugSessions;
5153
import com.azure.resourcemanager.datafactory.models.DataFlows;
5254
import com.azure.resourcemanager.datafactory.models.Datasets;
@@ -113,6 +115,8 @@ public final class DataFactoryManager {
113115

114116
private ManagedPrivateEndpoints managedPrivateEndpoints;
115117

118+
private CredentialOperations credentialOperations;
119+
116120
private PrivateEndPointConnections privateEndPointConnections;
117121

118122
private PrivateEndpointConnectionOperations privateEndpointConnectionOperations;
@@ -286,7 +290,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
286290
.append("-")
287291
.append("com.azure.resourcemanager.datafactory")
288292
.append("/")
289-
.append("1.0.0-beta.18");
293+
.append("1.0.0-beta.19");
290294
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
291295
userAgentBuilder
292296
.append(" (")
@@ -551,6 +555,18 @@ public ManagedPrivateEndpoints managedPrivateEndpoints() {
551555
return managedPrivateEndpoints;
552556
}
553557

558+
/**
559+
* Gets the resource collection API of CredentialOperations. It manages ManagedIdentityCredentialResource.
560+
*
561+
* @return Resource collection API of CredentialOperations.
562+
*/
563+
public CredentialOperations credentialOperations() {
564+
if (this.credentialOperations == null) {
565+
this.credentialOperations = new CredentialOperationsImpl(clientObject.getCredentialOperations(), this);
566+
}
567+
return credentialOperations;
568+
}
569+
554570
/**
555571
* Gets the resource collection API of PrivateEndPointConnections.
556572
*

0 commit comments

Comments
 (0)