Skip to content

Commit 0ee9bae

Browse files
author
SDKAuto
committed
CodeGen from PR 21408 in Azure/azure-rest-api-specs
Merge 23e2337a0979ad4dacc8e6ae5b8760d74e74fe48 into b32e1896f30e6ea155449cb49719a6286e32b961
1 parent 9ba1410 commit 0ee9bae

Some content is hidden

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

53 files changed

+274
-142
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.0.0-beta.3 (Unreleased)
3+
## 1.0.0-beta.1 (2022-11-17)
4+
5+
- Azure Resource Manager ServiceLinker client library for Java. This package contains Microsoft Azure SDK for ServiceLinker Management SDK. Microsoft.ServiceLinker provider. Package tag package-2022-05-01. 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

sdk/servicelinker/azure-resourcemanager-servicelinker/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-servicelinker</artifactId>
35-
<version>1.0.0-beta.2</version>
35+
<version>1.0.0-beta.3</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);
@@ -83,13 +83,13 @@ See [API design][design] for general introduction on design and key concepts on
8383

8484
## Contributing
8585

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

88-
1. Fork it
89-
1. Create your feature branch (`git checkout -b my-new-feature`)
90-
1. Commit your changes (`git commit -am 'Add some feature'`)
91-
1. Push to the branch (`git push origin my-new-feature`)
92-
1. Create new Pull Request
88+
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>.
89+
90+
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.
91+
92+
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 <[email protected]> with any additional questions or comments.
9393

9494
<!-- LINKS -->
9595
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
@@ -100,3 +100,6 @@ For details on contributing to this repository, see the [contributing guide](htt
100100
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
101101
[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
102102
[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
103+
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
104+
[coc]: https://opensource.microsoft.com/codeofconduct/
105+
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@ public final class LinkerCreateOrUpdateSamples {
4646
.withId(
4747
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"))
4848
.withAuthInfo(new SecretAuthInfo())
49-
.withSecretStore(
50-
new SecretStore()
51-
.withKeyVaultId(
52-
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/test-kv"))
49+
.withSecretStore(new SecretStore().withKeyVaultId("fakeTokenPlaceholder"))
5350
.create();
5451
}
5552

@@ -245,7 +242,10 @@ public final class LinkerUpdateSamples {
245242
.withId(
246243
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"))
247244
.withAuthInfo(
248-
new ServicePrincipalSecretAuthInfo().withClientId("name").withPrincipalId("id").withSecret("secret"))
245+
new ServicePrincipalSecretAuthInfo()
246+
.withClientId("name")
247+
.withPrincipalId("id")
248+
.withSecret("fakeTokenPlaceholder"))
249249
.apply();
250250
}
251251
}

sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/ServiceLinkerManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public ServiceLinkerManager authenticate(TokenCredential credential, AzureProfil
206206
.append("-")
207207
.append("com.azure.resourcemanager.servicelinker")
208208
.append("/")
209-
.append("1.0.0-beta.2");
209+
.append("1.0.0-beta.1");
210210
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
211211
userAgentBuilder
212212
.append(" (")

sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/LinkersClient.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,27 +48,27 @@ public interface LinkersClient {
4848
*
4949
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
5050
* @param linkerName The name Linker resource.
51+
* @param context The context to associate with this operation.
5152
* @throws IllegalArgumentException thrown if parameters fail the validation.
5253
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
5354
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
54-
* @return linker of source and target resource.
55+
* @return linker of source and target resource along with {@link Response}.
5556
*/
5657
@ServiceMethod(returns = ReturnType.SINGLE)
57-
LinkerResourceInner get(String resourceUri, String linkerName);
58+
Response<LinkerResourceInner> getWithResponse(String resourceUri, String linkerName, Context context);
5859

5960
/**
6061
* Returns Linker resource for a given name.
6162
*
6263
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
6364
* @param linkerName The name Linker resource.
64-
* @param context The context to associate with this operation.
6565
* @throws IllegalArgumentException thrown if parameters fail the validation.
6666
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
6767
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
68-
* @return linker of source and target resource along with {@link Response}.
68+
* @return linker of source and target resource.
6969
*/
7070
@ServiceMethod(returns = ReturnType.SINGLE)
71-
Response<LinkerResourceInner> getWithResponse(String resourceUri, String linkerName, Context context);
71+
LinkerResourceInner get(String resourceUri, String linkerName);
7272

7373
/**
7474
* Create or update linker resource.
@@ -304,27 +304,27 @@ SyncPoller<PollResult<ValidateOperationResultInner>, ValidateOperationResultInne
304304
*
305305
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
306306
* @param linkerName The name Linker resource.
307+
* @param context The context to associate with this operation.
307308
* @throws IllegalArgumentException thrown if parameters fail the validation.
308309
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
309310
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
310-
* @return configurations for source resource, include appSettings, connectionString and serviceBindings.
311+
* @return configurations for source resource, include appSettings, connectionString and serviceBindings along with
312+
* {@link Response}.
311313
*/
312314
@ServiceMethod(returns = ReturnType.SINGLE)
313-
SourceConfigurationResultInner listConfigurations(String resourceUri, String linkerName);
315+
Response<SourceConfigurationResultInner> listConfigurationsWithResponse(
316+
String resourceUri, String linkerName, Context context);
314317

315318
/**
316319
* list source configurations for a linker.
317320
*
318321
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
319322
* @param linkerName The name Linker resource.
320-
* @param context The context to associate with this operation.
321323
* @throws IllegalArgumentException thrown if parameters fail the validation.
322324
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
323325
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
324-
* @return configurations for source resource, include appSettings, connectionString and serviceBindings along with
325-
* {@link Response}.
326+
* @return configurations for source resource, include appSettings, connectionString and serviceBindings.
326327
*/
327328
@ServiceMethod(returns = ReturnType.SINGLE)
328-
Response<SourceConfigurationResultInner> listConfigurationsWithResponse(
329-
String resourceUri, String linkerName, Context context);
329+
SourceConfigurationResultInner listConfigurations(String resourceUri, String linkerName);
330330
}

sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerProperties.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ public final class LinkerProperties {
5757
@JsonProperty(value = "scope")
5858
private String scope;
5959

60+
/** Creates an instance of LinkerProperties class. */
61+
public LinkerProperties() {
62+
}
63+
6064
/**
6165
* Get the targetService property: The target service properties.
6266
*

sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/LinkerResourceInner.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ public final class LinkerResourceInner extends ProxyResource {
3030
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
3131
private SystemData systemData;
3232

33+
/** Creates an instance of LinkerResourceInner class. */
34+
public LinkerResourceInner() {
35+
}
36+
3337
/**
3438
* Get the innerProperties property: The properties of the linker.
3539
*

sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/OperationInner.java

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,23 @@
1010
import com.azure.resourcemanager.servicelinker.models.Origin;
1111
import com.fasterxml.jackson.annotation.JsonProperty;
1212

13-
/** REST API Operation Details of a REST API operation, returned from the Resource Provider Operations API. */
13+
/**
14+
* REST API Operation
15+
*
16+
* <p>Details of a REST API operation, returned from the Resource Provider Operations API.
17+
*/
1418
@Fluent
1519
public final class OperationInner {
1620
/*
17-
* The name of the operation, as per Resource-Based Access Control (RBAC).
18-
* Examples: "Microsoft.Compute/virtualMachines/write",
19-
* "Microsoft.Compute/virtualMachines/capture/action"
21+
* The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
22+
* "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
2023
*/
2124
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
2225
private String name;
2326

2427
/*
25-
* Whether the operation applies to data-plane. This is "true" for
26-
* data-plane operations and "false" for ARM/control-plane operations.
28+
* Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for
29+
* ARM/control-plane operations.
2730
*/
2831
@JsonProperty(value = "isDataAction", access = JsonProperty.Access.WRITE_ONLY)
2932
private Boolean isDataAction;
@@ -35,19 +38,22 @@ public final class OperationInner {
3538
private OperationDisplay display;
3639

3740
/*
38-
* The intended executor of the operation; as in Resource Based Access
39-
* Control (RBAC) and audit logs UX. Default value is "user,system"
41+
* The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
42+
* value is "user,system"
4043
*/
4144
@JsonProperty(value = "origin", access = JsonProperty.Access.WRITE_ONLY)
4245
private Origin origin;
4346

4447
/*
45-
* Enum. Indicates the action type. "Internal" refers to actions that are
46-
* for internal only APIs.
48+
* Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
4749
*/
4850
@JsonProperty(value = "actionType", access = JsonProperty.Access.WRITE_ONLY)
4951
private ActionType actionType;
5052

53+
/** Creates an instance of OperationInner class. */
54+
public OperationInner() {
55+
}
56+
5157
/**
5258
* Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
5359
* "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".

sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/SourceConfigurationResultInner.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ public final class SourceConfigurationResultInner {
1818
@JsonProperty(value = "configurations")
1919
private List<SourceConfiguration> configurations;
2020

21+
/** Creates an instance of SourceConfigurationResultInner class. */
22+
public SourceConfigurationResultInner() {
23+
}
24+
2125
/**
2226
* Get the configurations property: The configuration properties for source resource.
2327
*

sdk/servicelinker/azure-resourcemanager-servicelinker/src/main/java/com/azure/resourcemanager/servicelinker/fluent/models/ValidateOperationResultInner.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ public final class ValidateOperationResultInner {
3232
@JsonProperty(value = "status")
3333
private String status;
3434

35+
/** Creates an instance of ValidateOperationResultInner class. */
36+
public ValidateOperationResultInner() {
37+
}
38+
3539
/**
3640
* Get the innerProperties property: The validation result detail.
3741
*

0 commit comments

Comments
 (0)