Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sdk/eventgrid/mgmt-v2020_04_01_preview/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.3.0</version>
<relativePath>../../parents/azure-arm-parent</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-eventgrid</artifactId>
<version>1.0.0-beta-4</version>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for EventGrid Management</name>
<description>This package contains Microsoft EventGrid Management SDK.</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public interface PrivateEndpointConnections extends HasInner<PrivateEndpointConn
* Get a specific private endpoint connection under a topic or domain.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'.
* @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'. Possible values include: 'topics', 'domains'
* @param parentName The name of the parent resource (namely, either, the topic name or domain name).
* @param privateEndpointConnectionName The name of the private endpoint connection connection.
* @throws IllegalArgumentException thrown if parameters fail the validation
Expand All @@ -35,7 +35,7 @@ public interface PrivateEndpointConnections extends HasInner<PrivateEndpointConn
* Delete a specific private endpoint connection under a topic or domain.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'.
* @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'. Possible values include: 'topics', 'domains'
* @param parentName The name of the parent resource (namely, either, the topic name or domain name).
* @param privateEndpointConnectionName The name of the private endpoint connection connection.
* @throws IllegalArgumentException thrown if parameters fail the validation
Expand All @@ -48,7 +48,7 @@ public interface PrivateEndpointConnections extends HasInner<PrivateEndpointConn
* Get all private endpoint connections under a topic or domain.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'.
* @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'. Possible values include: 'topics', 'domains'
* @param parentName The name of the parent resource (namely, either, the topic name or domain name).
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import com.microsoft.azure.management.eventgrid.v2020_04_01_preview.PartnerTopicProvisioningState;

class PartnerTopicImpl extends GroupableResourceCoreImpl<PartnerTopic, PartnerTopicInner, PartnerTopicImpl, EventGridManager> implements PartnerTopic, PartnerTopic.Update {
private Map<String, String> utags;
PartnerTopicImpl(String name, PartnerTopicInner inner, EventGridManager manager) {
super(name, inner, manager);
}
Expand All @@ -30,7 +31,7 @@ public Observable<PartnerTopic> createResourceAsync() {
@Override
public Observable<PartnerTopic> updateResourceAsync() {
PartnerTopicsInner client = this.manager().inner().partnerTopics();
return client.updateAsync(this.resourceGroupName(), this.name(), this.tags())
return client.updateAsync(this.resourceGroupName(), this.name(), this.utags)
.map(innerToFluentMap(this));
}

Expand Down Expand Up @@ -70,4 +71,11 @@ public PartnerTopicProvisioningState provisioningState() {
public String source() {
return this.inner().source();
}

@Override
public PartnerTopicImpl withTags(Map<String, String> tags) {
this.utags = tags;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class PrivateEndpointConnectionImpl extends CreatableUpdatableImpl<PrivateEndpoi
this.privateEndpointConnectionName = inner.name();
// set resource ancestor and positional variables
this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups");
this.parentType = IdParsingUtils.getValueFromIdByName(inner.id(), "Microsoft.EventGrid");
this.parentType = String.fromString(IdParsingUtils.getValueFromIdByName(inner.id(), "Microsoft.EventGrid"));
this.privateEndpointConnectionName = IdParsingUtils.getValueFromIdByName(inner.id(), "privateEndpointConnections");
this.parentName = IdParsingUtils.getValueFromIdByPosition(inner.id(), 7);
//
Expand Down
Loading