Skip to content

Commit 20ad152

Browse files
SDKAutoAshraf Hamad
andcommitted
CodeGen from PR 11631 in Azure/azure-rest-api-specs
fix example (#11631) Co-authored-by: Ashraf Hamad <[email protected]>
1 parent a097f96 commit 20ad152

File tree

5 files changed

+46
-38
lines changed

5 files changed

+46
-38
lines changed

sdk/eventgrid/mgmt-v2020_04_01_preview/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
<parent>
1212
<groupId>com.microsoft.azure</groupId>
1313
<artifactId>azure-arm-parent</artifactId>
14-
<version>1.3.0</version>
15-
<relativePath>../../parents/azure-arm-parent</relativePath>
14+
<version>1.1.0</version>
15+
<relativePath>../../../pom.management.xml</relativePath>
1616
</parent>
1717
<artifactId>azure-mgmt-eventgrid</artifactId>
18-
<version>1.0.0-beta-4</version>
18+
<version>1.0.0-beta</version>
1919
<packaging>jar</packaging>
2020
<name>Microsoft Azure SDK for EventGrid Management</name>
2121
<description>This package contains Microsoft EventGrid Management SDK.</description>

sdk/eventgrid/mgmt-v2020_04_01_preview/src/main/java/com/microsoft/azure/management/eventgrid/v2020_04_01_preview/PrivateEndpointConnections.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public interface PrivateEndpointConnections extends HasInner<PrivateEndpointConn
2222
* Get a specific private endpoint connection under a topic or domain.
2323
*
2424
* @param resourceGroupName The name of the resource group within the user's subscription.
25-
* @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'.
25+
* @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'. Possible values include: 'topics', 'domains'
2626
* @param parentName The name of the parent resource (namely, either, the topic name or domain name).
2727
* @param privateEndpointConnectionName The name of the private endpoint connection connection.
2828
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -35,7 +35,7 @@ public interface PrivateEndpointConnections extends HasInner<PrivateEndpointConn
3535
* Delete a specific private endpoint connection under a topic or domain.
3636
*
3737
* @param resourceGroupName The name of the resource group within the user's subscription.
38-
* @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'.
38+
* @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'. Possible values include: 'topics', 'domains'
3939
* @param parentName The name of the parent resource (namely, either, the topic name or domain name).
4040
* @param privateEndpointConnectionName The name of the private endpoint connection connection.
4141
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -48,7 +48,7 @@ public interface PrivateEndpointConnections extends HasInner<PrivateEndpointConn
4848
* Get all private endpoint connections under a topic or domain.
4949
*
5050
* @param resourceGroupName The name of the resource group within the user's subscription.
51-
* @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'.
51+
* @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'. Possible values include: 'topics', 'domains'
5252
* @param parentName The name of the parent resource (namely, either, the topic name or domain name).
5353
* @throws IllegalArgumentException thrown if parameters fail the validation
5454
* @return the observable for the request

sdk/eventgrid/mgmt-v2020_04_01_preview/src/main/java/com/microsoft/azure/management/eventgrid/v2020_04_01_preview/implementation/PartnerTopicImpl.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import com.microsoft.azure.management.eventgrid.v2020_04_01_preview.PartnerTopicProvisioningState;
1818

1919
class PartnerTopicImpl extends GroupableResourceCoreImpl<PartnerTopic, PartnerTopicInner, PartnerTopicImpl, EventGridManager> implements PartnerTopic, PartnerTopic.Update {
20+
private Map<String, String> utags;
2021
PartnerTopicImpl(String name, PartnerTopicInner inner, EventGridManager manager) {
2122
super(name, inner, manager);
2223
}
@@ -30,7 +31,7 @@ public Observable<PartnerTopic> createResourceAsync() {
3031
@Override
3132
public Observable<PartnerTopic> updateResourceAsync() {
3233
PartnerTopicsInner client = this.manager().inner().partnerTopics();
33-
return client.updateAsync(this.resourceGroupName(), this.name(), this.tags())
34+
return client.updateAsync(this.resourceGroupName(), this.name(), this.utags)
3435
.map(innerToFluentMap(this));
3536
}
3637

@@ -70,4 +71,11 @@ public PartnerTopicProvisioningState provisioningState() {
7071
public String source() {
7172
return this.inner().source();
7273
}
74+
75+
@Override
76+
public PartnerTopicImpl withTags(Map<String, String> tags) {
77+
this.utags = tags;
78+
return this;
79+
}
80+
7381
}

sdk/eventgrid/mgmt-v2020_04_01_preview/src/main/java/com/microsoft/azure/management/eventgrid/v2020_04_01_preview/implementation/PrivateEndpointConnectionImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class PrivateEndpointConnectionImpl extends CreatableUpdatableImpl<PrivateEndpoi
3838
this.privateEndpointConnectionName = inner.name();
3939
// set resource ancestor and positional variables
4040
this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups");
41-
this.parentType = IdParsingUtils.getValueFromIdByName(inner.id(), "Microsoft.EventGrid");
41+
this.parentType = String.fromString(IdParsingUtils.getValueFromIdByName(inner.id(), "Microsoft.EventGrid"));
4242
this.privateEndpointConnectionName = IdParsingUtils.getValueFromIdByName(inner.id(), "privateEndpointConnections");
4343
this.parentName = IdParsingUtils.getValueFromIdByPosition(inner.id(), 7);
4444
//

0 commit comments

Comments
 (0)