Skip to content

Commit

Permalink
Update from master
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK Automation committed May 9, 2020
1 parent 62005e7 commit 42fa0b0
Show file tree
Hide file tree
Showing 4 changed files with 151 additions and 3 deletions.
4 changes: 2 additions & 2 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>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-eventgrid</artifactId>
<version>1.0.0-beta-3</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
@@ -0,0 +1,70 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.eventgrid.v2020_04_01_preview;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Describes an EventGrid Resource Sku Definition.
*/
public class SkuDefinitionsForResourceType {
/**
* The Resource Type applicable for the Sku.
*/
@JsonProperty(value = "resourceType")
private String resourceType;

/**
* The Sku pricing tiers for the resource type.
*/
@JsonProperty(value = "skus")
private List<ResourceSku> skus;

/**
* Get the Resource Type applicable for the Sku.
*
* @return the resourceType value
*/
public String resourceType() {
return this.resourceType;
}

/**
* Set the Resource Type applicable for the Sku.
*
* @param resourceType the resourceType value to set
* @return the SkuDefinitionsForResourceType object itself.
*/
public SkuDefinitionsForResourceType withResourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}

/**
* Get the Sku pricing tiers for the resource type.
*
* @return the skus value
*/
public List<ResourceSku> skus() {
return this.skus;
}

/**
* Set the Sku pricing tiers for the resource type.
*
* @param skus the skus value to set
* @return the SkuDefinitionsForResourceType object itself.
*/
public SkuDefinitionsForResourceType withSkus(List<ResourceSku> skus) {
this.skus = skus;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.eventgrid.v2020_04_01_preview;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* List collection of Sku Definitions for each Resource Type.
*/
public class SkuDefinitionsForResourceTypeListResult {
/**
* A collection of Sku Definitions for each Resource Type.
*/
@JsonProperty(value = "value")
private List<SkuDefinitionsForResourceType> value;

/**
* A link for the next page of Sku Definitions.
*/
@JsonProperty(value = "nextLink")
private String nextLink;

/**
* Get a collection of Sku Definitions for each Resource Type.
*
* @return the value value
*/
public List<SkuDefinitionsForResourceType> value() {
return this.value;
}

/**
* Set a collection of Sku Definitions for each Resource Type.
*
* @param value the value value to set
* @return the SkuDefinitionsForResourceTypeListResult object itself.
*/
public SkuDefinitionsForResourceTypeListResult withValue(List<SkuDefinitionsForResourceType> value) {
this.value = value;
return this;
}

/**
* Get a link for the next page of Sku Definitions.
*
* @return the nextLink value
*/
public String nextLink() {
return this.nextLink;
}

/**
* Set a link for the next page of Sku Definitions.
*
* @param nextLink the nextLink value to set
* @return the SkuDefinitionsForResourceTypeListResult object itself.
*/
public SkuDefinitionsForResourceTypeListResult withNextLink(String nextLink) {
this.nextLink = nextLink;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,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 @@ -29,7 +30,7 @@ public Observable<PartnerTopic> createResourceAsync() {
@Override
public Observable<PartnerTopic> updateResourceAsync() {
PartnerTopicsInner client = this.manager().inner().partnerTopics();
return client.updateAsync(this.resourceGroupName(), this.name(), this.inner().getTags())
return client.updateAsync(this.resourceGroupName(), this.name(), this.utags)
.map(innerToFluentMap(this));
}

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

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

}

0 comments on commit 42fa0b0

Please sign in to comment.