Skip to content

Commit 2f1aab9

Browse files
[Automation] Generate Fluent Lite from eventgrid# (Azure#19351)
* [Automation] Generate Fluent Lite from eventgrid# * Update CHANGELOG.md Co-authored-by: Weidong Xu <weidxu@microsoft.com>
1 parent 8b9b98e commit 2f1aab9

22 files changed

+111
-18
lines changed

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

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

3-
## 1.0.0-beta.2 (2021-02-18)
3+
## 1.0.0-beta.2 (2021-02-22)
44

55
- Azure Resource Manager EventGrid client library for Java. This package contains Microsoft Azure SDK for EventGrid Management SDK. Azure EventGrid Management Client. Package tag package-2020-10-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainInner.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import com.azure.resourcemanager.eventgrid.models.InputSchemaMapping;
1616
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
1717
import com.azure.resourcemanager.eventgrid.models.ResourceSku;
18+
import com.azure.resourcemanager.eventgrid.models.SystemData;
1819
import com.fasterxml.jackson.annotation.JsonIgnore;
1920
import com.fasterxml.jackson.annotation.JsonProperty;
2021
import java.util.List;
@@ -38,6 +39,12 @@ public class DomainInner extends Resource {
3839
@JsonProperty(value = "identity")
3940
private IdentityInfo identity;
4041

42+
/*
43+
* The system metadata relating to Domain resource.
44+
*/
45+
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
46+
private SystemData systemData;
47+
4148
/*
4249
* List of private endpoint connections.
4350
*/
@@ -133,6 +140,15 @@ public DomainInner withIdentity(IdentityInfo identity) {
133140
return this;
134141
}
135142

143+
/**
144+
* Get the systemData property: The system metadata relating to Domain resource.
145+
*
146+
* @return the systemData value.
147+
*/
148+
public SystemData systemData() {
149+
return this.systemData;
150+
}
151+
136152
/**
137153
* Get the privateEndpointConnections property: List of private endpoint connections.
138154
*
@@ -296,6 +312,9 @@ public void validate() {
296312
if (identity() != null) {
297313
identity().validate();
298314
}
315+
if (systemData() != null) {
316+
systemData().validate();
317+
}
299318
if (privateEndpointConnections() != null) {
300319
privateEndpointConnections().forEach(e -> e.validate());
301320
}

sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainTopicInner.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import com.azure.core.management.ProxyResource;
1010
import com.azure.core.util.logging.ClientLogger;
1111
import com.azure.resourcemanager.eventgrid.models.DomainTopicProvisioningState;
12+
import com.azure.resourcemanager.eventgrid.models.SystemData;
1213
import com.fasterxml.jackson.annotation.JsonIgnore;
1314
import com.fasterxml.jackson.annotation.JsonProperty;
1415

@@ -18,12 +19,27 @@
1819
public class DomainTopicInner extends ProxyResource {
1920
@JsonIgnore private final ClientLogger logger = new ClientLogger(DomainTopicInner.class);
2021

22+
/*
23+
* The system metadata relating to Domain Topic resource.
24+
*/
25+
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
26+
private SystemData systemData;
27+
2128
/*
2229
* Provisioning state of the domain topic.
2330
*/
2431
@JsonProperty(value = "properties.provisioningState")
2532
private DomainTopicProvisioningState provisioningState;
2633

34+
/**
35+
* Get the systemData property: The system metadata relating to Domain Topic resource.
36+
*
37+
* @return the systemData value.
38+
*/
39+
public SystemData systemData() {
40+
return this.systemData;
41+
}
42+
2743
/**
2844
* Get the provisioningState property: Provisioning state of the domain topic.
2945
*
@@ -50,5 +66,8 @@ public DomainTopicInner withProvisioningState(DomainTopicProvisioningState provi
5066
* @throws IllegalArgumentException thrown if the instance is not valid.
5167
*/
5268
public void validate() {
69+
if (systemData() != null) {
70+
systemData().validate();
71+
}
5372
}
5473
}

sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventChannelInner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class EventChannelInner extends ProxyResource {
2525
@JsonIgnore private final ClientLogger logger = new ClientLogger(EventChannelInner.class);
2626

2727
/*
28-
* The system metadata relating to this resource.
28+
* The system metadata relating to Event Channel resource.
2929
*/
3030
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
3131
private SystemData systemData;
@@ -80,7 +80,7 @@ public class EventChannelInner extends ProxyResource {
8080
private String partnerTopicFriendlyDescription;
8181

8282
/**
83-
* Get the systemData property: The system metadata relating to this resource.
83+
* Get the systemData property: The system metadata relating to Event Channel resource.
8484
*
8585
* @return the systemData value.
8686
*/

sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventSubscriptionInner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class EventSubscriptionInner extends ProxyResource {
2929
@JsonIgnore private final ClientLogger logger = new ClientLogger(EventSubscriptionInner.class);
3030

3131
/*
32-
* The system metadata relating to this resource.
32+
* The system metadata relating to Event Subscription resource.
3333
*/
3434
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
3535
private SystemData systemData;
@@ -118,7 +118,7 @@ public class EventSubscriptionInner extends ProxyResource {
118118
private DeadLetterWithResourceIdentity deadLetterWithResourceIdentity;
119119

120120
/**
121-
* Get the systemData property: The system metadata relating to this resource.
121+
* Get the systemData property: The system metadata relating to Event Subscription resource.
122122
*
123123
* @return the systemData value.
124124
*/

sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceInner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class PartnerNamespaceInner extends Resource {
2121
@JsonIgnore private final ClientLogger logger = new ClientLogger(PartnerNamespaceInner.class);
2222

2323
/*
24-
* The system metadata relating to this resource.
24+
* The system metadata relating to Partner Namespace resource.
2525
*/
2626
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
2727
private SystemData systemData;
@@ -47,7 +47,7 @@ public class PartnerNamespaceInner extends Resource {
4747
private String endpoint;
4848

4949
/**
50-
* Get the systemData property: The system metadata relating to this resource.
50+
* Get the systemData property: The system metadata relating to Partner Namespace resource.
5151
*
5252
* @return the systemData value.
5353
*/

sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerRegistrationInner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class PartnerRegistrationInner extends Resource {
2323
@JsonIgnore private final ClientLogger logger = new ClientLogger(PartnerRegistrationInner.class);
2424

2525
/*
26-
* The system metadata relating to this resource.
26+
* The system metadata relating to Partner Registration resource.
2727
*/
2828
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
2929
private SystemData systemData;
@@ -126,7 +126,7 @@ public class PartnerRegistrationInner extends Resource {
126126
private List<String> authorizedAzureSubscriptionIds;
127127

128128
/**
129-
* Get the systemData property: The system metadata relating to this resource.
129+
* Get the systemData property: The system metadata relating to Partner Registration resource.
130130
*
131131
* @return the systemData value.
132132
*/

sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerTopicInner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class PartnerTopicInner extends Resource {
3030
private IdentityInfo identity;
3131

3232
/*
33-
* The system metadata relating to this resource.
33+
* The system metadata relating to Partner Topic resource.
3434
*/
3535
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
3636
private SystemData systemData;
@@ -93,7 +93,7 @@ public PartnerTopicInner withIdentity(IdentityInfo identity) {
9393
}
9494

9595
/**
96-
* Get the systemData property: The system metadata relating to this resource.
96+
* Get the systemData property: The system metadata relating to Partner Topic resource.
9797
*
9898
* @return the systemData value.
9999
*/

sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicInner.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
1717
import com.azure.resourcemanager.eventgrid.models.ResourceKind;
1818
import com.azure.resourcemanager.eventgrid.models.ResourceSku;
19+
import com.azure.resourcemanager.eventgrid.models.SystemData;
1920
import com.azure.resourcemanager.eventgrid.models.TopicProvisioningState;
2021
import com.fasterxml.jackson.annotation.JsonIgnore;
2122
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -52,6 +53,12 @@ public class TopicInner extends Resource {
5253
@JsonProperty(value = "extendedLocation")
5354
private ExtendedLocation extendedLocation;
5455

56+
/*
57+
* The system metadata relating to Topic resource.
58+
*/
59+
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
60+
private SystemData systemData;
61+
5562
/*
5663
* The privateEndpointConnections property.
5764
*/
@@ -189,6 +196,15 @@ public TopicInner withExtendedLocation(ExtendedLocation extendedLocation) {
189196
return this;
190197
}
191198

199+
/**
200+
* Get the systemData property: The system metadata relating to Topic resource.
201+
*
202+
* @return the systemData value.
203+
*/
204+
public SystemData systemData() {
205+
return this.systemData;
206+
}
207+
192208
/**
193209
* Get the privateEndpointConnections property: The privateEndpointConnections property.
194210
*
@@ -357,6 +373,9 @@ public void validate() {
357373
if (extendedLocation() != null) {
358374
extendedLocation().validate();
359375
}
376+
if (systemData() != null) {
377+
systemData().validate();
378+
}
360379
if (privateEndpointConnections() != null) {
361380
privateEndpointConnections().forEach(e -> e.validate());
362381
}

sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainImpl.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import com.azure.resourcemanager.eventgrid.models.PrivateEndpointConnection;
2323
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
2424
import com.azure.resourcemanager.eventgrid.models.ResourceSku;
25+
import com.azure.resourcemanager.eventgrid.models.SystemData;
2526
import java.util.Collections;
2627
import java.util.List;
2728
import java.util.Map;
@@ -65,6 +66,10 @@ public IdentityInfo identity() {
6566
return this.innerModel().identity();
6667
}
6768

69+
public SystemData systemData() {
70+
return this.innerModel().systemData();
71+
}
72+
6873
public List<PrivateEndpointConnection> privateEndpointConnections() {
6974
List<PrivateEndpointConnectionInner> inner = this.innerModel().privateEndpointConnections();
7075
if (inner != null) {

0 commit comments

Comments
 (0)