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
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.1.0-beta.2 (Unreleased)
## 1.0.0-beta.1 (2022-04-04)

- Azure Resource Manager IotDps client library for Java. This package contains Microsoft Azure SDK for IotDps Management SDK. API for using the Azure IoT Hub Device Provisioning Service features. Package tag package-2021-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-deviceprovisioningservices</artifactId>
<version>1.1.0-beta.1</version>
<version>1.1.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ import com.azure.core.util.Context;
import com.azure.resourcemanager.deviceprovisioningservices.models.OperationInputs;

/** Samples for IotDpsResource CheckProvisioningServiceNameAvailability. */
public final class IotDpsResourceCheckProvisioningServiceNameAvailabilitySamples {
public final class IotDpsResourceCheckProvisioningServiceNameAvailabilit {
/*
* x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2021-10-15/examples/DPSCheckNameAvailability.json
*/
Expand Down Expand Up @@ -292,7 +292,7 @@ import com.azure.resourcemanager.deviceprovisioningservices.models.PrivateLinkSe
import com.azure.resourcemanager.deviceprovisioningservices.models.PrivateLinkServiceConnectionStatus;

/** Samples for IotDpsResource CreateOrUpdatePrivateEndpointConnection. */
public final class IotDpsResourceCreateOrUpdatePrivateEndpointConnectionSamples {
public final class IotDpsResourceCreateOrUpdatePrivateEndpointConnection {
/*
* x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2021-10-15/examples/DPSCreateOrUpdatePrivateEndpointConnection.json
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public static Configurable configure() {

/** The Configurable allowing configurations to be set. */
public static final class Configurable {
private final ClientLogger logger = new ClientLogger(Configurable.class);
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);

private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
Expand Down Expand Up @@ -156,9 +156,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
this.defaultPollInterval =
Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
throw LOGGER
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
Expand All @@ -180,7 +182,7 @@ public IotDpsManager authenticate(TokenCredential credential, AzureProfile profi
.append("-")
.append("com.azure.resourcemanager.deviceprovisioningservices")
.append("/")
.append("1.1.0-beta.1");
.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 @@ -22,7 +22,6 @@
import com.azure.resourcemanager.deviceprovisioningservices.models.OperationInputs;
import com.azure.resourcemanager.deviceprovisioningservices.models.TagsResource;
import java.util.List;
import reactor.core.publisher.Mono;

/** An instance of this class provides access to all the operations defined in IotDpsResourcesClient. */
public interface IotDpsResourcesClient {
Expand Down Expand Up @@ -68,8 +67,7 @@ Response<ProvisioningServiceDescriptionInner> getByResourceGroupWithResponse(
* @throws com.azure.resourcemanager.deviceprovisioningservices.models.ErrorDetailsException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the description of the provisioning service along with {@link Response} on successful completion of
* {@link Mono}.
* @return the {@link SyncPoller} for polling of the description of the provisioning service.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<ProvisioningServiceDescriptionInner>, ProvisioningServiceDescriptionInner>
Expand All @@ -91,8 +89,7 @@ Response<ProvisioningServiceDescriptionInner> getByResourceGroupWithResponse(
* @throws com.azure.resourcemanager.deviceprovisioningservices.models.ErrorDetailsException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the description of the provisioning service along with {@link Response} on successful completion of
* {@link Mono}.
* @return the {@link SyncPoller} for polling of the description of the provisioning service.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<ProvisioningServiceDescriptionInner>, ProvisioningServiceDescriptionInner>
Expand Down Expand Up @@ -153,8 +150,7 @@ ProvisioningServiceDescriptionInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the description of the provisioning service along with {@link Response} on successful completion of
* {@link Mono}.
* @return the {@link SyncPoller} for polling of the description of the provisioning service.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<ProvisioningServiceDescriptionInner>, ProvisioningServiceDescriptionInner> beginUpdate(
Expand All @@ -170,8 +166,7 @@ SyncPoller<PollResult<ProvisioningServiceDescriptionInner>, ProvisioningServiceD
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the description of the provisioning service along with {@link Response} on successful completion of
* {@link Mono}.
* @return the {@link SyncPoller} for polling of the description of the provisioning service.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<ProvisioningServiceDescriptionInner>, ProvisioningServiceDescriptionInner> beginUpdate(
Expand Down Expand Up @@ -223,7 +218,7 @@ ProvisioningServiceDescriptionInner update(
* @throws com.azure.resourcemanager.deviceprovisioningservices.models.ErrorDetailsException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response} on successful completion of {@link Mono}.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(String resourceGroupName, String provisioningServiceName);
Expand All @@ -238,7 +233,7 @@ ProvisioningServiceDescriptionInner update(
* @throws com.azure.resourcemanager.deviceprovisioningservices.models.ErrorDetailsException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response} on successful completion of {@link Mono}.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
Expand Down Expand Up @@ -277,7 +272,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
* @throws com.azure.resourcemanager.deviceprovisioningservices.models.ErrorDetailsException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of provisioning service descriptions.
* @return list of provisioning service descriptions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ProvisioningServiceDescriptionInner> list();
Expand All @@ -290,7 +285,7 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
* @throws com.azure.resourcemanager.deviceprovisioningservices.models.ErrorDetailsException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of provisioning service descriptions.
* @return list of provisioning service descriptions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ProvisioningServiceDescriptionInner> list(Context context);
Expand All @@ -303,7 +298,8 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
* @throws com.azure.resourcemanager.deviceprovisioningservices.models.ErrorDetailsException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of all provisioning services in the given resource group.
* @return a list of all provisioning services in the given resource group as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ProvisioningServiceDescriptionInner> listByResourceGroup(String resourceGroupName);
Expand All @@ -317,7 +313,8 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
* @throws com.azure.resourcemanager.deviceprovisioningservices.models.ErrorDetailsException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of all provisioning services in the given resource group.
* @return a list of all provisioning services in the given resource group as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ProvisioningServiceDescriptionInner> listByResourceGroup(String resourceGroupName, Context context);
Expand Down Expand Up @@ -373,7 +370,8 @@ Response<AsyncOperationResultInner> getOperationResultWithResponse(
* @throws com.azure.resourcemanager.deviceprovisioningservices.models.ErrorDetailsException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list of valid SKUs and tiers for a provisioning service.
* @return the list of valid SKUs and tiers for a provisioning service as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<IotDpsSkuDefinitionInner> listValidSkus(String provisioningServiceName, String resourceGroupName);
Expand All @@ -388,7 +386,8 @@ Response<AsyncOperationResultInner> getOperationResultWithResponse(
* @throws com.azure.resourcemanager.deviceprovisioningservices.models.ErrorDetailsException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list of valid SKUs and tiers for a provisioning service.
* @return the list of valid SKUs and tiers for a provisioning service as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<IotDpsSkuDefinitionInner> listValidSkus(
Expand Down Expand Up @@ -435,7 +434,7 @@ Response<NameAvailabilityInfoInner> checkProvisioningServiceNameAvailabilityWith
* @throws com.azure.resourcemanager.deviceprovisioningservices.models.ErrorDetailsException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of shared access keys.
* @return list of shared access keys as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<SharedAccessSignatureAuthorizationRuleInner> listKeys(
Expand All @@ -451,7 +450,7 @@ PagedIterable<SharedAccessSignatureAuthorizationRuleInner> listKeys(
* @throws com.azure.resourcemanager.deviceprovisioningservices.models.ErrorDetailsException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of shared access keys.
* @return list of shared access keys as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<SharedAccessSignatureAuthorizationRuleInner> listKeys(
Expand Down Expand Up @@ -626,8 +625,7 @@ Response<PrivateEndpointConnectionInner> getPrivateEndpointConnectionWithRespons
* @throws com.azure.resourcemanager.deviceprovisioningservices.models.ErrorDetailsException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the private endpoint connection of a provisioning service along with {@link Response} on successful
* completion of {@link Mono}.
* @return the {@link SyncPoller} for polling of the private endpoint connection of a provisioning service.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<PrivateEndpointConnectionInner>, PrivateEndpointConnectionInner>
Expand All @@ -649,8 +647,7 @@ Response<PrivateEndpointConnectionInner> getPrivateEndpointConnectionWithRespons
* @throws com.azure.resourcemanager.deviceprovisioningservices.models.ErrorDetailsException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the private endpoint connection of a provisioning service along with {@link Response} on successful
* completion of {@link Mono}.
* @return the {@link SyncPoller} for polling of the private endpoint connection of a provisioning service.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<PrivateEndpointConnectionInner>, PrivateEndpointConnectionInner>
Expand Down Expand Up @@ -713,8 +710,7 @@ PrivateEndpointConnectionInner createOrUpdatePrivateEndpointConnection(
* @throws com.azure.resourcemanager.deviceprovisioningservices.models.ErrorDetailsException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the private endpoint connection of a provisioning service along with {@link Response} on successful
* completion of {@link Mono}.
* @return the {@link SyncPoller} for polling of the private endpoint connection of a provisioning service.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<PrivateEndpointConnectionInner>, PrivateEndpointConnectionInner>
Expand All @@ -732,8 +728,7 @@ PrivateEndpointConnectionInner createOrUpdatePrivateEndpointConnection(
* @throws com.azure.resourcemanager.deviceprovisioningservices.models.ErrorDetailsException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the private endpoint connection of a provisioning service along with {@link Response} on successful
* completion of {@link Mono}.
* @return the {@link SyncPoller} for polling of the private endpoint connection of a provisioning service.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<PrivateEndpointConnectionInner>, PrivateEndpointConnectionInner>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public interface OperationsClient {
* @throws com.azure.resourcemanager.deviceprovisioningservices.models.ErrorDetailsException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the request to list provisioning service operations.
* @return result of the request to list provisioning service operations as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<OperationInner> list();
Expand All @@ -31,7 +32,8 @@ public interface OperationsClient {
* @throws com.azure.resourcemanager.deviceprovisioningservices.models.ErrorDetailsException thrown if the request
* is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the request to list provisioning service operations.
* @return result of the request to list provisioning service operations as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<OperationInner> list(Context context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
package com.azure.resourcemanager.deviceprovisioningservices.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.deviceprovisioningservices.models.ErrorMesssage;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Result of a long running operation. */
@Fluent
public final class AsyncOperationResultInner {
@JsonIgnore private final ClientLogger logger = new ClientLogger(AsyncOperationResultInner.class);

/*
* current status of a long running operation.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
package com.azure.resourcemanager.deviceprovisioningservices.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** The JSON-serialized array of Certificate objects. */
@Fluent
public final class CertificateListDescriptionInner {
@JsonIgnore private final ClientLogger logger = new ClientLogger(CertificateListDescriptionInner.class);

/*
* The array of Certificate objects.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,12 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.deviceprovisioningservices.models.CertificateProperties;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The X509 Certificate. */
@Fluent
public final class CertificateResponseInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(CertificateResponseInner.class);

/*
* properties of a certificate
*/
Expand Down
Loading