Skip to content
Draft
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
4 changes: 4 additions & 0 deletions sdk/iotcentral/azure-resourcemanager-iotcentral/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History

## 1.0.0-beta.1 (2022-01-10)

- Azure Resource Manager IotCentral client library for Java. This package contains Microsoft Azure SDK for IotCentral Management SDK. Use this API to manage IoT Central Applications in your Azure subscription. Package tag package-2021-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## 1.0.0 (2021-11-15)

- Azure Resource Manager IotCentral client library for Java. This package contains Microsoft Azure SDK for IotCentral Management SDK. Use this API to manage IoT Central Applications in your Azure subscription. Package tag package-2021-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
Expand Down
13 changes: 1 addition & 12 deletions sdk/iotcentral/azure-resourcemanager-iotcentral/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ public final class AppsCheckSubdomainAvailabilitySamples {
```java
import com.azure.resourcemanager.iotcentral.models.AppSku;
import com.azure.resourcemanager.iotcentral.models.AppSkuInfo;
import com.azure.resourcemanager.iotcentral.models.SystemAssignedServiceIdentity;
import com.azure.resourcemanager.iotcentral.models.SystemAssignedServiceIdentityType;

/** Samples for Apps CreateOrUpdate. */
public final class AppsCreateOrUpdateSamples {
Expand All @@ -91,8 +89,6 @@ public final class AppsCreateOrUpdateSamples {
.withRegion("westus")
.withExistingResourceGroup("resRg")
.withSku(new AppSkuInfo().withName(AppSku.ST2))
.withIdentity(
new SystemAssignedServiceIdentity().withType(SystemAssignedServiceIdentityType.SYSTEM_ASSIGNED))
.withDisplayName("My IoT Central App")
.withSubdomain("my-iot-central-app")
.withTemplate("iotc-pnp-preview@1.0.0")
Expand Down Expand Up @@ -211,8 +207,6 @@ public final class AppsListTemplatesSamples {
```java
import com.azure.core.util.Context;
import com.azure.resourcemanager.iotcentral.models.App;
import com.azure.resourcemanager.iotcentral.models.SystemAssignedServiceIdentity;
import com.azure.resourcemanager.iotcentral.models.SystemAssignedServiceIdentityType;

/** Samples for Apps Update. */
public final class AppsUpdateSamples {
Expand All @@ -227,12 +221,7 @@ public final class AppsUpdateSamples {
public static void appsUpdate(com.azure.resourcemanager.iotcentral.IotCentralManager manager) {
App resource =
manager.apps().getByResourceGroupWithResponse("resRg", "myIoTCentralApp", Context.NONE).getValue();
resource
.update()
.withIdentity(
new SystemAssignedServiceIdentity().withType(SystemAssignedServiceIdentityType.SYSTEM_ASSIGNED))
.withDisplayName("My IoT Central App 2")
.apply();
resource.update().withDisplayName("My IoT Central App 2").apply();
}
}
```
Expand Down
23 changes: 23 additions & 0 deletions sdk/iotcentral/azure-resourcemanager-iotcentral/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,27 @@
<version>1.5.0</version> <!-- {x-version-update;com.azure:azure-core-management;dependency} -->
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.revapi</groupId>
<artifactId>revapi-maven-plugin</artifactId>
<version>0.14.6</version> <!-- {x-version-update;org.revapi:revapi-maven-plugin;external_dependency} -->
<configuration>
<analysisConfiguration>
<revapi.ignore>
<item>
<code>java.method.addedToInterface</code>
</item>
<item>
<regex>true</regex>
<code>.*</code>
<package>com\.azure\.resourcemanager(\.[^.]+)+\.fluent(\.[^.]+)*</package>
</item>
</revapi.ignore>
</analysisConfiguration>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public IotCentralManager authenticate(TokenCredential credential, AzureProfile p
.append("-")
.append("com.azure.resourcemanager.iotcentral")
.append("/")
.append("1.0.0");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.iotcentral.models.AppSkuInfo;
import com.azure.resourcemanager.iotcentral.models.AppState;
import com.azure.resourcemanager.iotcentral.models.SystemAssignedServiceIdentity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
Expand All @@ -31,12 +30,6 @@ public final class AppInner extends Resource {
@JsonProperty(value = "sku", required = true)
private AppSkuInfo sku;

/*
* The managed identities for the IoT Central application.
*/
@JsonProperty(value = "identity")
private SystemAssignedServiceIdentity identity;

/**
* Get the innerProperties property: The common properties of an IoT Central application.
*
Expand Down Expand Up @@ -66,26 +59,6 @@ public AppInner withSku(AppSkuInfo sku) {
return this;
}

/**
* Get the identity property: The managed identities for the IoT Central application.
*
* @return the identity value.
*/
public SystemAssignedServiceIdentity identity() {
return this.identity;
}

/**
* Set the identity property: The managed identities for the IoT Central application.
*
* @param identity the identity value to set.
* @return the AppInner object itself.
*/
public AppInner withIdentity(SystemAssignedServiceIdentity identity) {
this.identity = identity;
return this;
}

/** {@inheritDoc} */
@Override
public AppInner withLocation(String location) {
Expand Down Expand Up @@ -206,8 +179,5 @@ public void validate() {
} else {
sku().validate();
}
if (identity() != null) {
identity().validate();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import com.azure.resourcemanager.iotcentral.models.AppPatch;
import com.azure.resourcemanager.iotcentral.models.AppSkuInfo;
import com.azure.resourcemanager.iotcentral.models.AppState;
import com.azure.resourcemanager.iotcentral.models.SystemAssignedServiceIdentity;
import java.util.Collections;
import java.util.Map;

Expand Down Expand Up @@ -49,10 +48,6 @@ public AppSkuInfo sku() {
return this.innerModel().sku();
}

public SystemAssignedServiceIdentity identity() {
return this.innerModel().identity();
}

public String applicationId() {
return this.innerModel().applicationId();
}
Expand Down Expand Up @@ -201,16 +196,6 @@ public AppImpl withTags(Map<String, String> tags) {
}
}

public AppImpl withIdentity(SystemAssignedServiceIdentity identity) {
if (isInCreateMode()) {
this.innerModel().withIdentity(identity);
return this;
} else {
this.updateAppPatch.withIdentity(identity);
return this;
}
}

public AppImpl withDisplayName(String displayName) {
if (isInCreateMode()) {
this.innerModel().withDisplayName(displayName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ private PollerFlux<PollResult<AppInner>, AppInner> beginCreateOrUpdateAsync(
return this
.client
.<AppInner, AppInner>getLroResult(
mono, this.client.getHttpPipeline(), AppInner.class, AppInner.class, Context.NONE);
mono, this.client.getHttpPipeline(), AppInner.class, AppInner.class, this.client.getContext());
}

/**
Expand Down Expand Up @@ -779,7 +779,7 @@ private PollerFlux<PollResult<AppInner>, AppInner> beginUpdateAsync(
return this
.client
.<AppInner, AppInner>getLroResult(
mono, this.client.getHttpPipeline(), AppInner.class, AppInner.class, Context.NONE);
mono, this.client.getHttpPipeline(), AppInner.class, AppInner.class, this.client.getContext());
}

/**
Expand Down Expand Up @@ -1020,7 +1020,8 @@ private PollerFlux<PollResult<Void>, Void> beginDeleteAsync(String resourceGroup
Mono<Response<Flux<ByteBuffer>>> mono = deleteWithResponseAsync(resourceGroupName, resourceName);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(
mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,6 @@ public interface App {
*/
AppSkuInfo sku();

/**
* Gets the identity property: The managed identities for the IoT Central application.
*
* @return the identity value.
*/
SystemAssignedServiceIdentity identity();

/**
* Gets the applicationId property: The ID of the application.
*
Expand Down Expand Up @@ -175,7 +168,6 @@ interface WithSku {
*/
interface WithCreate
extends DefinitionStages.WithTags,
DefinitionStages.WithIdentity,
DefinitionStages.WithDisplayName,
DefinitionStages.WithSubdomain,
DefinitionStages.WithTemplate {
Expand Down Expand Up @@ -204,16 +196,6 @@ interface WithTags {
*/
WithCreate withTags(Map<String, String> tags);
}
/** The stage of the App definition allowing to specify identity. */
interface WithIdentity {
/**
* Specifies the identity property: The managed identities for the IoT Central application..
*
* @param identity The managed identities for the IoT Central application.
* @return the next definition stage.
*/
WithCreate withIdentity(SystemAssignedServiceIdentity identity);
}
/** The stage of the App definition allowing to specify displayName. */
interface WithDisplayName {
/**
Expand Down Expand Up @@ -258,11 +240,7 @@ interface WithTemplate {

/** The template for App update. */
interface Update
extends UpdateStages.WithTags,
UpdateStages.WithSku,
UpdateStages.WithIdentity,
UpdateStages.WithDisplayName,
UpdateStages.WithSubdomain {
extends UpdateStages.WithTags, UpdateStages.WithSku, UpdateStages.WithDisplayName, UpdateStages.WithSubdomain {
/**
* Executes the update request.
*
Expand Down Expand Up @@ -300,16 +278,6 @@ interface WithSku {
*/
Update withSku(AppSkuInfo sku);
}
/** The stage of the App update allowing to specify identity. */
interface WithIdentity {
/**
* Specifies the identity property: The managed identities for the IoT Central application..
*
* @param identity The managed identities for the IoT Central application.
* @return the next definition stage.
*/
Update withIdentity(SystemAssignedServiceIdentity identity);
}
/** The stage of the App update allowing to specify displayName. */
interface WithDisplayName {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ public final class AppPatch {
@JsonProperty(value = "properties")
private AppProperties innerProperties;

/*
* The managed identities for the IoT Central application.
*/
@JsonProperty(value = "identity")
private SystemAssignedServiceIdentity identity;

/**
* Get the tags property: Instance tags.
*
Expand Down Expand Up @@ -91,26 +85,6 @@ private AppProperties innerProperties() {
return this.innerProperties;
}

/**
* Get the identity property: The managed identities for the IoT Central application.
*
* @return the identity value.
*/
public SystemAssignedServiceIdentity identity() {
return this.identity;
}

/**
* Set the identity property: The managed identities for the IoT Central application.
*
* @param identity the identity value to set.
* @return the AppPatch object itself.
*/
public AppPatch withIdentity(SystemAssignedServiceIdentity identity) {
this.identity = identity;
return this;
}

/**
* Get the applicationId property: The ID of the application.
*
Expand Down Expand Up @@ -214,8 +188,5 @@ public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
}
if (identity() != null) {
identity().validate();
}
}
}
Loading