Skip to content

Commit ed5be78

Browse files
authored
[Automation] Generate Fluent Lite from communication# (Azure#36807)
1 parent a83166e commit ed5be78

File tree

90 files changed

+1142
-676
lines changed

Some content is hidden

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

90 files changed

+1142
-676
lines changed

sdk/communication/azure-resourcemanager-communication/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-
## 2.1.0-beta.1 (Unreleased)
3+
## 2.1.0-beta.1 (2023-09-18)
4+
5+
- Azure Resource Manager Communication client library for Java. This package contains Microsoft Azure SDK for Communication Management SDK. REST API for Azure Communication Services. Package tag package-preview-2023-04. 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.ManagedServiceIdentityType` was added
10+
11+
* `models.ManagedServiceIdentity` was added
12+
13+
* `models.UserAssignedIdentity` was added
14+
15+
#### `models.CommunicationServiceResource$Update` was modified
16+
17+
* `withIdentity(models.ManagedServiceIdentity)` was added
818

9-
### Bugs Fixed
19+
#### `models.CommunicationServiceResource$Definition` was modified
20+
21+
* `withIdentity(models.ManagedServiceIdentity)` was added
22+
23+
#### `models.CommunicationServiceResourceUpdate` was modified
24+
25+
* `identity()` was added
26+
* `withIdentity(models.ManagedServiceIdentity)` was added
27+
28+
#### `models.CommunicationServiceResource` was modified
1029

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

1332
## 2.0.0 (2023-04-03)
1433

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager Communication client library for Java.
44

5-
This package contains Microsoft Azure SDK for Communication Management SDK. REST API for Azure Communication Services. Package tag package-2023-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
5+
This package contains Microsoft Azure SDK for Communication Management SDK. REST API for Azure Communication Services. Package tag package-preview-2023-04. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
## We'd love to hear your feedback
88

@@ -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-communication</artifactId>
35-
<version>2.0.0</version>
35+
<version>2.1.0-beta.1</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})
@@ -103,3 +103,5 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
103103
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
104104
[coc]: https://opensource.microsoft.com/codeofconduct/
105105
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
106+
107+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Fcommunication%2Fazure-resourcemanager-communication%2FREADME.png)

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

Lines changed: 156 additions & 30 deletions
Large diffs are not rendered by default.

sdk/communication/azure-resourcemanager-communication/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<packaging>jar</packaging>
1919

2020
<name>Microsoft Azure SDK for Communication Management</name>
21-
<description>This package contains Microsoft Azure SDK for Communication Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. REST API for Azure Communication Services. Package tag package-2023-03.</description>
21+
<description>This package contains Microsoft Azure SDK for Communication Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. REST API for Azure Communication Services. Package tag package-preview-2023-04.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>
@@ -45,6 +45,7 @@
4545
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4646
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
4747
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
48+
<revapi.skip>true</revapi.skip>
4849
</properties>
4950
<dependencies>
5051
<dependency>

sdk/communication/azure-resourcemanager-communication/src/main/java/com/azure/resourcemanager/communication/CommunicationManager.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public CommunicationManager authenticate(TokenCredential credential, AzureProfil
219219
.append("-")
220220
.append("com.azure.resourcemanager.communication")
221221
.append("/")
222-
.append("2.0.0");
222+
.append("2.1.0-beta.1");
223223
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
224224
userAgentBuilder
225225
.append(" (")
@@ -337,8 +337,10 @@ public SenderUsernames senderUsernames() {
337337
}
338338

339339
/**
340-
* @return Wrapped service client CommunicationServiceManagementClient providing direct access to the underlying
341-
* auto-generated API implementation, based on Azure REST API.
340+
* Gets wrapped service client CommunicationServiceManagementClient providing direct access to the underlying
341+
* auto-generated API implementation, based on Azure REST API.
342+
*
343+
* @return Wrapped service client CommunicationServiceManagementClient.
342344
*/
343345
public CommunicationServiceManagementClient serviceClient() {
344346
return this.clientObject;

sdk/communication/azure-resourcemanager-communication/src/main/java/com/azure/resourcemanager/communication/fluent/models/CommunicationServiceResourceInner.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import com.azure.core.management.Resource;
99
import com.azure.core.management.SystemData;
1010
import com.azure.resourcemanager.communication.models.CommunicationServicesProvisioningState;
11+
import com.azure.resourcemanager.communication.models.ManagedServiceIdentity;
1112
import com.fasterxml.jackson.annotation.JsonProperty;
1213
import java.util.List;
1314
import java.util.Map;
@@ -21,6 +22,12 @@ public final class CommunicationServiceResourceInner extends Resource {
2122
@JsonProperty(value = "properties")
2223
private CommunicationServiceProperties innerProperties;
2324

25+
/*
26+
* Managed service identity (system assigned and/or user assigned identities)
27+
*/
28+
@JsonProperty(value = "identity")
29+
private ManagedServiceIdentity identity;
30+
2431
/*
2532
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
2633
*/
@@ -40,6 +47,26 @@ private CommunicationServiceProperties innerProperties() {
4047
return this.innerProperties;
4148
}
4249

50+
/**
51+
* Get the identity property: Managed service identity (system assigned and/or user assigned identities).
52+
*
53+
* @return the identity value.
54+
*/
55+
public ManagedServiceIdentity identity() {
56+
return this.identity;
57+
}
58+
59+
/**
60+
* Set the identity property: Managed service identity (system assigned and/or user assigned identities).
61+
*
62+
* @param identity the identity value to set.
63+
* @return the CommunicationServiceResourceInner object itself.
64+
*/
65+
public CommunicationServiceResourceInner withIdentity(ManagedServiceIdentity identity) {
66+
this.identity = identity;
67+
return this;
68+
}
69+
4370
/**
4471
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
4572
*
@@ -164,5 +191,8 @@ public void validate() {
164191
if (innerProperties() != null) {
165192
innerProperties().validate();
166193
}
194+
if (identity() != null) {
195+
identity().validate();
196+
}
167197
}
168198
}

sdk/communication/azure-resourcemanager-communication/src/main/java/com/azure/resourcemanager/communication/implementation/CommunicationServiceManagementClientBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public CommunicationServiceManagementClientImpl buildClient() {
137137
localSerializerAdapter,
138138
localDefaultPollInterval,
139139
localEnvironment,
140-
subscriptionId,
140+
this.subscriptionId,
141141
localEndpoint);
142142
return client;
143143
}

sdk/communication/azure-resourcemanager-communication/src/main/java/com/azure/resourcemanager/communication/implementation/CommunicationServiceManagementClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public SenderUsernamesClient getSenderUsernames() {
194194
this.defaultPollInterval = defaultPollInterval;
195195
this.subscriptionId = subscriptionId;
196196
this.endpoint = endpoint;
197-
this.apiVersion = "2023-03-31";
197+
this.apiVersion = "2023-04-01-preview";
198198
this.operations = new OperationsClientImpl(this);
199199
this.communicationServices = new CommunicationServicesClientImpl(this);
200200
this.domains = new DomainsClientImpl(this);

sdk/communication/azure-resourcemanager-communication/src/main/java/com/azure/resourcemanager/communication/implementation/CommunicationServiceResourceImpl.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import com.azure.resourcemanager.communication.models.CommunicationServicesProvisioningState;
1616
import com.azure.resourcemanager.communication.models.LinkNotificationHubParameters;
1717
import com.azure.resourcemanager.communication.models.LinkedNotificationHub;
18+
import com.azure.resourcemanager.communication.models.ManagedServiceIdentity;
1819
import com.azure.resourcemanager.communication.models.RegenerateKeyParameters;
1920
import java.util.Collections;
2021
import java.util.List;
@@ -53,6 +54,10 @@ public Map<String, String> tags() {
5354
}
5455
}
5556

57+
public ManagedServiceIdentity identity() {
58+
return this.innerModel().identity();
59+
}
60+
5661
public SystemData systemData() {
5762
return this.innerModel().systemData();
5863
}
@@ -255,6 +260,16 @@ public CommunicationServiceResourceImpl withTags(Map<String, String> tags) {
255260
}
256261
}
257262

263+
public CommunicationServiceResourceImpl withIdentity(ManagedServiceIdentity identity) {
264+
if (isInCreateMode()) {
265+
this.innerModel().withIdentity(identity);
266+
return this;
267+
} else {
268+
this.updateParameters.withIdentity(identity);
269+
return this;
270+
}
271+
}
272+
258273
public CommunicationServiceResourceImpl withDataLocation(String dataLocation) {
259274
this.innerModel().withDataLocation(dataLocation);
260275
return this;

sdk/communication/azure-resourcemanager-communication/src/main/java/com/azure/resourcemanager/communication/models/CommunicationServiceResource.java

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ public interface CommunicationServiceResource {
4949
*/
5050
Map<String, String> tags();
5151

52+
/**
53+
* Gets the identity property: Managed service identity (system assigned and/or user assigned identities).
54+
*
55+
* @return the identity value.
56+
*/
57+
ManagedServiceIdentity identity();
58+
5259
/**
5360
* Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
5461
*
@@ -141,11 +148,13 @@ interface Definition
141148
DefinitionStages.WithResourceGroup,
142149
DefinitionStages.WithCreate {
143150
}
151+
144152
/** The CommunicationServiceResource definition stages. */
145153
interface DefinitionStages {
146154
/** The first stage of the CommunicationServiceResource definition. */
147155
interface Blank extends WithLocation {
148156
}
157+
149158
/** The stage of the CommunicationServiceResource definition allowing to specify location. */
150159
interface WithLocation {
151160
/**
@@ -164,6 +173,7 @@ interface WithLocation {
164173
*/
165174
WithResourceGroup withRegion(String location);
166175
}
176+
167177
/** The stage of the CommunicationServiceResource definition allowing to specify parent resource. */
168178
interface WithResourceGroup {
169179
/**
@@ -174,12 +184,16 @@ interface WithResourceGroup {
174184
*/
175185
WithCreate withExistingResourceGroup(String resourceGroupName);
176186
}
187+
177188
/**
178189
* The stage of the CommunicationServiceResource definition which contains all the minimum required properties
179190
* for the resource to be created, but also allows for any other optional properties to be specified.
180191
*/
181192
interface WithCreate
182-
extends DefinitionStages.WithTags, DefinitionStages.WithDataLocation, DefinitionStages.WithLinkedDomains {
193+
extends DefinitionStages.WithTags,
194+
DefinitionStages.WithIdentity,
195+
DefinitionStages.WithDataLocation,
196+
DefinitionStages.WithLinkedDomains {
183197
/**
184198
* Executes the create request.
185199
*
@@ -195,6 +209,7 @@ interface WithCreate
195209
*/
196210
CommunicationServiceResource create(Context context);
197211
}
212+
198213
/** The stage of the CommunicationServiceResource definition allowing to specify tags. */
199214
interface WithTags {
200215
/**
@@ -205,6 +220,19 @@ interface WithTags {
205220
*/
206221
WithCreate withTags(Map<String, String> tags);
207222
}
223+
224+
/** The stage of the CommunicationServiceResource definition allowing to specify identity. */
225+
interface WithIdentity {
226+
/**
227+
* Specifies the identity property: Managed service identity (system assigned and/or user assigned
228+
* identities).
229+
*
230+
* @param identity Managed service identity (system assigned and/or user assigned identities).
231+
* @return the next definition stage.
232+
*/
233+
WithCreate withIdentity(ManagedServiceIdentity identity);
234+
}
235+
208236
/** The stage of the CommunicationServiceResource definition allowing to specify dataLocation. */
209237
interface WithDataLocation {
210238
/**
@@ -216,6 +244,7 @@ interface WithDataLocation {
216244
*/
217245
WithCreate withDataLocation(String dataLocation);
218246
}
247+
219248
/** The stage of the CommunicationServiceResource definition allowing to specify linkedDomains. */
220249
interface WithLinkedDomains {
221250
/**
@@ -227,6 +256,7 @@ interface WithLinkedDomains {
227256
WithCreate withLinkedDomains(List<String> linkedDomains);
228257
}
229258
}
259+
230260
/**
231261
* Begins update for the CommunicationServiceResource resource.
232262
*
@@ -235,7 +265,7 @@ interface WithLinkedDomains {
235265
CommunicationServiceResource.Update update();
236266

237267
/** The template for CommunicationServiceResource update. */
238-
interface Update extends UpdateStages.WithTags, UpdateStages.WithLinkedDomains {
268+
interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, UpdateStages.WithLinkedDomains {
239269
/**
240270
* Executes the update request.
241271
*
@@ -251,6 +281,7 @@ interface Update extends UpdateStages.WithTags, UpdateStages.WithLinkedDomains {
251281
*/
252282
CommunicationServiceResource apply(Context context);
253283
}
284+
254285
/** The CommunicationServiceResource update stages. */
255286
interface UpdateStages {
256287
/** The stage of the CommunicationServiceResource update allowing to specify tags. */
@@ -264,6 +295,19 @@ interface WithTags {
264295
*/
265296
Update withTags(Map<String, String> tags);
266297
}
298+
299+
/** The stage of the CommunicationServiceResource update allowing to specify identity. */
300+
interface WithIdentity {
301+
/**
302+
* Specifies the identity property: Managed service identity (system assigned and/or user assigned
303+
* identities).
304+
*
305+
* @param identity Managed service identity (system assigned and/or user assigned identities).
306+
* @return the next definition stage.
307+
*/
308+
Update withIdentity(ManagedServiceIdentity identity);
309+
}
310+
267311
/** The stage of the CommunicationServiceResource update allowing to specify linkedDomains. */
268312
interface WithLinkedDomains {
269313
/**
@@ -275,6 +319,7 @@ interface WithLinkedDomains {
275319
Update withLinkedDomains(List<String> linkedDomains);
276320
}
277321
}
322+
278323
/**
279324
* Refreshes the resource to sync with Azure.
280325
*

0 commit comments

Comments
 (0)