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

[AutoPR sdk/iothub/mgmt-v2018_04_01] Add some profile tag for go SDK to serve the new profile 2020-09-01 #4263

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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-v2018_04_01/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.v2018_04_01.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2018_04_01.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.v2018_04_01.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager;
import com.microsoft.azure.management.iothub.v2018_04_01.implementation.CertificateListDescriptionInner;
import com.microsoft.azure.management.iothub.v2018_04_01.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.v2018_04_01.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager;
import com.microsoft.azure.management.iothub.v2018_04_01.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.v2018_04_01.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager;
import com.microsoft.azure.management.iothub.v2018_04_01.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.v2018_04_01.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2018_04_01.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.v2018_04_01.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager;
import com.microsoft.azure.management.iothub.v2018_04_01.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
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.v2018_04_01.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager;
import com.microsoft.azure.management.iothub.v2018_04_01.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 @@ -11,12 +11,12 @@
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.iothub.v2018_04_01.implementation.IotHubQuotaMetricInfoInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.iothub.v2018_04_01.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2018_04_01.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
Expand Up @@ -11,12 +11,12 @@
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.iothub.v2018_04_01.implementation.IotHubSkuDescriptionInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.iothub.v2018_04_01.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2018_04_01.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.v2018_04_01.implementation.JobResponseInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.iothub.v2018_04_01.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2018_04_01.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.v2018_04_01.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager;
import com.microsoft.azure.management.iothub.v2018_04_01.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.v2018_04_01.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager;
import com.microsoft.azure.management.iothub.v2018_04_01.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.v2018_04_01.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager;
import com.microsoft.azure.management.iothub.v2018_04_01.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.v2018_04_01.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager;
import com.microsoft.azure.management.iothub.v2018_04_01.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
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.v2018_04_01.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager;
import com.microsoft.azure.management.iothub.v2018_04_01.implementation.TestRouteResultInner;

/**
* Type representing TestRouteResult.
*/
public interface TestRouteResult extends HasInner<TestRouteResultInner>, HasManager<IoTHubManager> {
public interface TestRouteResult extends HasInner<TestRouteResultInner>, HasManager<DevicesManager> {
/**
* @return the details 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.v2018_04_01.implementation.IoTHubManager;
import com.microsoft.azure.management.iothub.v2018_04_01.implementation.DevicesManager;
import com.microsoft.azure.management.iothub.v2018_04_01.implementation.UserSubscriptionQuotaInner;

/**
* Type representing UserSubscriptionQuota.
*/
public interface UserSubscriptionQuota extends HasInner<UserSubscriptionQuotaInner>, HasManager<IoTHubManager> {
public interface UserSubscriptionQuota extends HasInner<UserSubscriptionQuotaInner>, HasManager<DevicesManager> {
/**
* @return the currentValue value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import com.microsoft.azure.management.iothub.v2018_04_01.CertificateProperties;

class CertificateDescriptionImpl extends CreatableUpdatableImpl<CertificateDescription, CertificateDescriptionInner, CertificateDescriptionImpl> implements CertificateDescription, CertificateDescription.Definition, CertificateDescription.Update {
private final IoTHubManager manager;
private final DevicesManager manager;
private String resourceGroupName;
private String resourceName;
private String certificateName;
Expand All @@ -23,15 +23,15 @@ class CertificateDescriptionImpl extends CreatableUpdatableImpl<CertificateDescr
private String uifMatch;
private String ucertificate;

CertificateDescriptionImpl(String name, IoTHubManager manager) {
CertificateDescriptionImpl(String name, DevicesManager manager) {
super(name, new CertificateDescriptionInner());
this.manager = manager;
// Set resource name
this.certificateName = name;
//
}

CertificateDescriptionImpl(CertificateDescriptionInner inner, IoTHubManager manager) {
CertificateDescriptionImpl(CertificateDescriptionInner inner, DevicesManager manager) {
super(inner.name(), inner);
this.manager = manager;
// Set resource name
Expand All @@ -44,7 +44,7 @@ class CertificateDescriptionImpl extends CreatableUpdatableImpl<CertificateDescr
}

@Override
public IoTHubManager manager() {
public DevicesManager manager() {
return this.manager;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
import java.util.List;

class CertificateListDescriptionImpl extends WrapperImpl<CertificateListDescriptionInner> implements CertificateListDescription {
private final IoTHubManager manager;
CertificateListDescriptionImpl(CertificateListDescriptionInner inner, IoTHubManager manager) {
private final DevicesManager manager;
CertificateListDescriptionImpl(CertificateListDescriptionInner inner, DevicesManager manager) {
super(inner);
this.manager = manager;
}

@Override
public IoTHubManager manager() {
public DevicesManager manager() {
return this.manager;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
import com.microsoft.azure.management.iothub.v2018_04_01.CertificatePropertiesWithNonce;

class CertificateWithNonceDescriptionImpl extends WrapperImpl<CertificateWithNonceDescriptionInner> implements CertificateWithNonceDescription {
private final IoTHubManager manager;
CertificateWithNonceDescriptionImpl(CertificateWithNonceDescriptionInner inner, IoTHubManager manager) {
private final DevicesManager manager;
CertificateWithNonceDescriptionImpl(CertificateWithNonceDescriptionInner inner, DevicesManager manager) {
super(inner);
this.manager = manager;
}

@Override
public IoTHubManager manager() {
public DevicesManager manager() {
return this.manager;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
import com.microsoft.azure.management.iothub.v2018_04_01.CertificateDescription;

class CertificatesImpl extends WrapperImpl<CertificatesInner> implements Certificates {
private final IoTHubManager manager;
private final DevicesManager manager;

CertificatesImpl(IoTHubManager manager) {
CertificatesImpl(DevicesManager manager) {
super(manager.inner().certificates());
this.manager = manager;
}

public IoTHubManager manager() {
public DevicesManager manager() {
return this.manager;
}

Expand Down Expand Up @@ -83,10 +83,14 @@ public CertificateDescription call(CertificateDescriptionInner inner) {
public Observable<CertificateDescription> getAsync(String resourceGroupName, String resourceName, String certificateName) {
CertificatesInner client = this.inner();
return client.getAsync(resourceGroupName, resourceName, certificateName)
.map(new Func1<CertificateDescriptionInner, CertificateDescription>() {
.flatMap(new Func1<CertificateDescriptionInner, Observable<CertificateDescription>>() {
@Override
public CertificateDescription call(CertificateDescriptionInner inner) {
return wrapModel(inner);
public Observable<CertificateDescription> call(CertificateDescriptionInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((CertificateDescription)wrapModel(inner));
}
}
});
}
Expand Down
Loading