Skip to content

Commit

Permalink
Generated from 54258d520274f7bfa3de7b5afe96f5609f889191 (#256)
Browse files Browse the repository at this point in the history
Adding cluster sku property bag and moving capacity to sku. Also adding metricId property to the custom properties bag.
  • Loading branch information
AutorestCI authored Mar 15, 2018
1 parent 4a5f576 commit 423db4a
Show file tree
Hide file tree
Showing 11 changed files with 682 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/**
* 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.eventhub;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The MessagingRegionsProperties model.
*/
public class MessagingRegionsProperties {
/**
* Region code.
*/
@JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY)
private String code;

/**
* Full name of the region.
*/
@JsonProperty(value = "fullName", access = JsonProperty.Access.WRITE_ONLY)
private String fullName;

/**
* Get the code value.
*
* @return the code value
*/
public String code() {
return this.code;
}

/**
* Get the fullName value.
*
* @return the fullName value
*/
public String fullName() {
return this.fullName;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
import com.microsoft.azure.management.eventhub.RoleDisasterRecovery;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.Resource;

/**
* Single item in List or Get Alias(Disaster Recovery configuration) operation.
*/
@JsonFlatten
public class ArmDisasterRecoveryInner extends NestedResourceInner {
public class ArmDisasterRecoveryInner extends Resource {
/**
* Provisioning state of the Alias(Disaster Recovery configuration) -
* possible values 'Accepted' or 'Succeeded' or 'Failed'. Possible values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
import com.microsoft.azure.management.eventhub.AccessRights;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.Resource;

/**
* Single item in a List or Get AuthorizationRule operation.
*/
@JsonFlatten
public class AuthorizationRuleInner extends NestedResourceInner {
public class AuthorizationRuleInner extends Resource {
/**
* The rights associated with the rule.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
import org.joda.time.DateTime;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.Resource;

/**
* Single item in List or Get Consumer group operation.
*/
@JsonFlatten
public class ConsumerGroupInner extends NestedResourceInner {
public class ConsumerGroupInner extends Resource {
/**
* Exact time the message was created.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

package com.microsoft.azure.management.eventhub.implementation;

import com.microsoft.azure.Resource;
import com.microsoft.azure.management.eventhub.Sku;
import org.joda.time.DateTime;
import com.fasterxml.jackson.annotation.JsonProperty;
Expand All @@ -18,7 +17,7 @@
* Single Namespace item in List or Get Operation.
*/
@JsonFlatten
public class EHNamespaceInner extends Resource {
public class EHNamespaceInner extends TrackedResourceInner {
/**
* Properties of sku resource.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,19 @@ public NamespacesInner namespaces() {
return this.namespaces;
}

/**
* The MessagingPlansInner object to access its operations.
*/
private MessagingPlansInner messagingPlans;

/**
* Gets the MessagingPlansInner object to access its operations.
* @return the MessagingPlansInner object.
*/
public MessagingPlansInner messagingPlans() {
return this.messagingPlans;
}

/**
* The DisasterRecoveryConfigsInner object to access its operations.
*/
Expand Down Expand Up @@ -197,6 +210,19 @@ public ConsumerGroupsInner consumerGroups() {
return this.consumerGroups;
}

/**
* The RegionsInner object to access its operations.
*/
private RegionsInner regions;

/**
* Gets the RegionsInner object to access its operations.
* @return the RegionsInner object.
*/
public RegionsInner regions() {
return this.regions;
}

/**
* Initializes an instance of EventHubManagementClient client.
*
Expand Down Expand Up @@ -234,9 +260,11 @@ protected void initialize() {
this.generateClientRequestId = true;
this.operations = new OperationsInner(restClient().retrofit(), this);
this.namespaces = new NamespacesInner(restClient().retrofit(), this);
this.messagingPlans = new MessagingPlansInner(restClient().retrofit(), this);
this.disasterRecoveryConfigs = new DisasterRecoveryConfigsInner(restClient().retrofit(), this);
this.eventHubs = new EventHubsInner(restClient().retrofit(), this);
this.consumerGroups = new ConsumerGroupsInner(restClient().retrofit(), this);
this.regions = new RegionsInner(restClient().retrofit(), this);
this.azureClient = new AzureClient(this);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
import com.microsoft.azure.management.eventhub.CaptureDescription;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.Resource;

/**
* Single item in List or Get Event Hub operation.
*/
@JsonFlatten
public class EventhubInner extends NestedResourceInner {
public class EventhubInner extends Resource {
/**
* Current number of shards on the Event Hub.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
/**
* 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.eventhub.implementation;

import org.joda.time.DateTime;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;

/**
* Messaging.
*/
@JsonFlatten
public class MessagingPlanInner extends TrackedResourceInner {
/**
* Sku type.
*/
@JsonProperty(value = "properties.sku")
private Integer sku;

/**
* Selected event hub unit.
*/
@JsonProperty(value = "properties.selectedEventHubUnit")
private Integer selectedEventHubUnit;

/**
* The exact time the messaging plan was updated.
*/
@JsonProperty(value = "properties.updatedAt", access = JsonProperty.Access.WRITE_ONLY)
private DateTime updatedAt;

/**
* revision number.
*/
@JsonProperty(value = "properties.revision")
private Long revision;

/**
* Get the sku value.
*
* @return the sku value
*/
public Integer sku() {
return this.sku;
}

/**
* Set the sku value.
*
* @param sku the sku value to set
* @return the MessagingPlanInner object itself.
*/
public MessagingPlanInner withSku(Integer sku) {
this.sku = sku;
return this;
}

/**
* Get the selectedEventHubUnit value.
*
* @return the selectedEventHubUnit value
*/
public Integer selectedEventHubUnit() {
return this.selectedEventHubUnit;
}

/**
* Set the selectedEventHubUnit value.
*
* @param selectedEventHubUnit the selectedEventHubUnit value to set
* @return the MessagingPlanInner object itself.
*/
public MessagingPlanInner withSelectedEventHubUnit(Integer selectedEventHubUnit) {
this.selectedEventHubUnit = selectedEventHubUnit;
return this;
}

/**
* Get the updatedAt value.
*
* @return the updatedAt value
*/
public DateTime updatedAt() {
return this.updatedAt;
}

/**
* Get the revision value.
*
* @return the revision value
*/
public Long revision() {
return this.revision;
}

/**
* Set the revision value.
*
* @param revision the revision value to set
* @return the MessagingPlanInner object itself.
*/
public MessagingPlanInner withRevision(Long revision) {
this.revision = revision;
return this;
}

}
Loading

0 comments on commit 423db4a

Please sign in to comment.