Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReleasePR sdk/iothub/mgmt-v2019_03_22_preview] [Hub Generated] Review request for Microsoft.Devices to add version preview/2020-07-10-preview #17204

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
8 changes: 5 additions & 3 deletions sdk/iothub/mgmt-v2019_03_22_preview/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<relativePath>../../parents/azure-arm-parent</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-iothub</artifactId>
<artifactId>azure-mgmt-devices</artifactId>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for Devices Management</name>
Expand Down Expand Up @@ -71,6 +71,8 @@
<artifactId>azure-arm-client-runtime</artifactId>
<type>test-jar</type>
<scope>test</scope>
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
<version>1.6.5</version>
</dependency>
</dependencies>
<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.DevicesManager;

/**
* Type representing CertificateDescription.
*/
public interface CertificateDescription extends HasInner<CertificateDescriptionInner>, Indexable, Refreshable<CertificateDescription>, Updatable<CertificateDescription.Update>, HasManager<IoTHubManager> {
public interface CertificateDescription extends HasInner<CertificateDescriptionInner>, Indexable, Refreshable<CertificateDescription>, Updatable<CertificateDescription.Update>, HasManager<DevicesManager> {
/**
* @return the etag value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.DevicesManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.CertificateListDescriptionInner;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.CertificateDescriptionInner;
import java.util.List;

/**
* Type representing CertificateListDescription.
*/
public interface CertificateListDescription extends HasInner<CertificateListDescriptionInner>, HasManager<IoTHubManager> {
public interface CertificateListDescription extends HasInner<CertificateListDescriptionInner>, HasManager<DevicesManager> {
/**
* @return the value value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.DevicesManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.CertificateWithNonceDescriptionInner;

/**
* Type representing CertificateWithNonceDescription.
*/
public interface CertificateWithNonceDescription extends HasInner<CertificateWithNonceDescriptionInner>, HasManager<IoTHubManager> {
public interface CertificateWithNonceDescription extends HasInner<CertificateWithNonceDescriptionInner>, HasManager<DevicesManager> {
/**
* @return the etag value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.DevicesManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.EndpointHealthDataInner;

/**
* Type representing EndpointHealthData.
*/
public interface EndpointHealthData extends HasInner<EndpointHealthDataInner>, HasManager<IoTHubManager> {
public interface EndpointHealthData extends HasInner<EndpointHealthDataInner>, HasManager<DevicesManager> {
/**
* @return the endpointId value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.DevicesManager;
import java.util.Map;

/**
* Type representing EventHubConsumerGroupInfo.
*/
public interface EventHubConsumerGroupInfo extends HasInner<EventHubConsumerGroupInfoInner>, Indexable, Refreshable<EventHubConsumerGroupInfo>, Updatable<EventHubConsumerGroupInfo.Update>, HasManager<IoTHubManager> {
public interface EventHubConsumerGroupInfo extends HasInner<EventHubConsumerGroupInfoInner>, Indexable, Refreshable<EventHubConsumerGroupInfo>, Updatable<EventHubConsumerGroupInfo.Update>, HasManager<DevicesManager> {
/**
* @return the etag value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.DevicesManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.IotHubDescriptionInner;

/**
* Type representing IotHubDescription.
*/
public interface IotHubDescription extends HasInner<IotHubDescriptionInner>, Resource, GroupableResourceCore<IoTHubManager, IotHubDescriptionInner>, HasResourceGroup, Refreshable<IotHubDescription>, Updatable<IotHubDescription.Update>, HasManager<IoTHubManager> {
public interface IotHubDescription extends HasInner<IotHubDescriptionInner>, Resource, GroupableResourceCore<DevicesManager, IotHubDescriptionInner>, HasResourceGroup, Refreshable<IotHubDescription>, Updatable<IotHubDescription.Update>, HasManager<DevicesManager> {
/**
* @return the etag value.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/**
* 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.iothub.v2019_03_22_preview;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Public representation of one of the locations where a resource is
* provisioned.
*/
public class IotHubLocationDescription {
/**
* Azure Geo Regions.
*/
@JsonProperty(value = "location")
private String location;

/**
* Specific Role assigned to this location. Possible values include:
* 'primary', 'secondary'.
*/
@JsonProperty(value = "role")
private IotHubReplicaRoleType role;

/**
* Get azure Geo Regions.
*
* @return the location value
*/
public String location() {
return this.location;
}

/**
* Set azure Geo Regions.
*
* @param location the location value to set
* @return the IotHubLocationDescription object itself.
*/
public IotHubLocationDescription withLocation(String location) {
this.location = location;
return this;
}

/**
* Get specific Role assigned to this location. Possible values include: 'primary', 'secondary'.
*
* @return the role value
*/
public IotHubReplicaRoleType role() {
return this.role;
}

/**
* Set specific Role assigned to this location. Possible values include: 'primary', 'secondary'.
*
* @param role the role value to set
* @return the IotHubLocationDescription object itself.
*/
public IotHubLocationDescription withRole(IotHubReplicaRoleType role) {
this.role = role;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.DevicesManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.IotHubNameAvailabilityInfoInner;

/**
* Type representing IotHubNameAvailabilityInfo.
*/
public interface IotHubNameAvailabilityInfo extends HasInner<IotHubNameAvailabilityInfoInner>, HasManager<IoTHubManager> {
public interface IotHubNameAvailabilityInfo extends HasInner<IotHubNameAvailabilityInfoInner>, HasManager<DevicesManager> {
/**
* @return the message value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ public class IotHubProperties {
@JsonProperty(value = "features")
private Capabilities features;

/**
* Primary and secondary location for iot hub.
*/
@JsonProperty(value = "locations", access = JsonProperty.Access.WRITE_ONLY)
private List<IotHubLocationDescription> locations;

/**
* Get the shared access policies you can use to secure a connection to the IoT hub.
*
Expand Down Expand Up @@ -358,4 +364,13 @@ public IotHubProperties withFeatures(Capabilities features) {
return this;
}

/**
* Get primary and secondary location for iot hub.
*
* @return the locations value
*/
public List<IotHubLocationDescription> locations() {
return this.locations;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.IotHubQuotaMetricInfoInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.DevicesManager;

/**
* Type representing IotHubQuotaMetricInfo.
*/
public interface IotHubQuotaMetricInfo extends HasInner<IotHubQuotaMetricInfoInner>, HasManager<IoTHubManager> {
public interface IotHubQuotaMetricInfo extends HasInner<IotHubQuotaMetricInfoInner>, HasManager<DevicesManager> {
/**
* @return the currentValue value.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/**
* 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.iothub.v2019_03_22_preview;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for IotHubReplicaRoleType.
*/
public final class IotHubReplicaRoleType extends ExpandableStringEnum<IotHubReplicaRoleType> {
/** Static value primary for IotHubReplicaRoleType. */
public static final IotHubReplicaRoleType PRIMARY = fromString("primary");

/** Static value secondary for IotHubReplicaRoleType. */
public static final IotHubReplicaRoleType SECONDARY = fromString("secondary");

/**
* Creates or finds a IotHubReplicaRoleType from its string representation.
* @param name a name to look for
* @return the corresponding IotHubReplicaRoleType
*/
@JsonCreator
public static IotHubReplicaRoleType fromString(String name) {
return fromString(name, IotHubReplicaRoleType.class);
}

/**
* @return known IotHubReplicaRoleType values
*/
public static Collection<IotHubReplicaRoleType> values() {
return values(IotHubReplicaRoleType.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.IotHubSkuDescriptionInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.DevicesManager;

/**
* Type representing IotHubSkuDescription.
*/
public interface IotHubSkuDescription extends HasInner<IotHubSkuDescriptionInner>, HasManager<IoTHubManager> {
public interface IotHubSkuDescription extends HasInner<IotHubSkuDescriptionInner>, HasManager<DevicesManager> {
/**
* @return the capacity value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.JobResponseInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.DevicesManager;
import com.microsoft.rest.DateTimeRfc1123;
import org.joda.time.DateTime;

/**
* Type representing JobResponse.
*/
public interface JobResponse extends HasInner<JobResponseInner>, HasManager<IoTHubManager> {
public interface JobResponse extends HasInner<JobResponseInner>, HasManager<DevicesManager> {
/**
* @return the endTimeUtc value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.DevicesManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.OperationInner;

/**
* Type representing Operation.
*/
public interface Operation extends HasInner<OperationInner>, HasManager<IoTHubManager> {
public interface Operation extends HasInner<OperationInner>, HasManager<DevicesManager> {
/**
* @return the display value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.DevicesManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.RegistryStatisticsInner;

/**
* Type representing RegistryStatistics.
*/
public interface RegistryStatistics extends HasInner<RegistryStatisticsInner>, HasManager<IoTHubManager> {
public interface RegistryStatistics extends HasInner<RegistryStatisticsInner>, HasManager<DevicesManager> {
/**
* @return the disabledDeviceCount value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.DevicesManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.SharedAccessSignatureAuthorizationRuleInner;

/**
* Type representing SharedAccessSignatureAuthorizationRule.
*/
public interface SharedAccessSignatureAuthorizationRule extends HasInner<SharedAccessSignatureAuthorizationRuleInner>, HasManager<IoTHubManager> {
public interface SharedAccessSignatureAuthorizationRule extends HasInner<SharedAccessSignatureAuthorizationRuleInner>, HasManager<DevicesManager> {
/**
* @return the keyName value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.DevicesManager;
import com.microsoft.azure.management.iothub.v2019_03_22_preview.implementation.TestAllRoutesResultInner;
import java.util.List;

/**
* Type representing TestAllRoutesResult.
*/
public interface TestAllRoutesResult extends HasInner<TestAllRoutesResultInner>, HasManager<IoTHubManager> {
public interface TestAllRoutesResult extends HasInner<TestAllRoutesResultInner>, HasManager<DevicesManager> {
/**
* @return the routes value.
*/
Expand Down
Loading