createOrUpdateWithResponse(
Context context);
/**
- * Deletes the specified certificate associated with the Provisioning Service.
+ * Upload the certificate to the provisioning service.
+ *
+ * Add new certificate or update an existing certificate.
*
* @param resourceGroupName Resource group identifier.
- * @param ifMatch ETag of the certificate.
* @param provisioningServiceName The name of the provisioning service.
- * @param certificateName This is a mandatory field, and is the logical name of the certificate that the
- * provisioning service will access by.
+ * @param certificateName The name of the certificate create or update.
+ * @param certificateDescription The certificate body.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 X509 Certificate.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String ifMatch, String provisioningServiceName, String certificateName);
+ CertificateResponseInner createOrUpdate(
+ String resourceGroupName,
+ String provisioningServiceName,
+ String certificateName,
+ CertificateResponseInner certificateDescription);
/**
- * Deletes the specified certificate associated with the Provisioning Service.
+ * Delete the Provisioning Service Certificate.
+ *
+ *
Deletes the specified certificate associated with the Provisioning Service.
*
* @param resourceGroupName Resource group identifier.
* @param ifMatch ETag of the certificate.
@@ -155,18 +145,22 @@ Response deleteWithResponse(
Context context);
/**
- * Get all the certificates tied to the provisioning service.
+ * Delete the Provisioning Service Certificate.
*
- * @param resourceGroupName Name of resource group.
- * @param provisioningServiceName Name of provisioning service to retrieve certificates for.
+ * Deletes the specified certificate associated with the Provisioning Service.
+ *
+ * @param resourceGroupName Resource group identifier.
+ * @param ifMatch ETag of the certificate.
+ * @param provisioningServiceName The name of the provisioning service.
+ * @param certificateName This is a mandatory field, and is the logical name of the certificate that the
+ * provisioning service will access by.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 all the certificates tied to the provisioning service.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CertificateListDescriptionInner list(String resourceGroupName, String provisioningServiceName);
+ void delete(String resourceGroupName, String ifMatch, String provisioningServiceName, String certificateName);
/**
* Get all the certificates tied to the provisioning service.
@@ -185,23 +179,18 @@ Response listWithResponse(
String resourceGroupName, String provisioningServiceName, Context context);
/**
- * Generate verification code for Proof of Possession.
+ * Get all the certificates tied to the provisioning service.
*
- * @param certificateName The mandatory logical name of the certificate, that the provisioning service uses to
- * access.
- * @param ifMatch ETag of the certificate. This is required to update an existing certificate, and ignored while
- * creating a brand new certificate.
- * @param resourceGroupName name of resource group.
- * @param provisioningServiceName Name of provisioning service.
+ * @param resourceGroupName Name of resource group.
+ * @param provisioningServiceName Name of provisioning service to retrieve certificates for.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 description of the response of the verification code.
+ * @return all the certificates tied to the provisioning service.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- VerificationCodeResponseInner generateVerificationCode(
- String certificateName, String ifMatch, String resourceGroupName, String provisioningServiceName);
+ CertificateListDescriptionInner list(String resourceGroupName, String provisioningServiceName);
/**
* Generate verification code for Proof of Possession.
@@ -244,32 +233,29 @@ Response generateVerificationCodeWithResponse(
Context context);
/**
- * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded
- * certificate.
+ * Generate verification code for Proof of Possession.
*
* @param certificateName The mandatory logical name of the certificate, that the provisioning service uses to
* access.
- * @param ifMatch ETag of the certificate.
- * @param resourceGroupName Resource group name.
- * @param provisioningServiceName Provisioning service name.
- * @param request The name of the certificate.
+ * @param ifMatch ETag of the certificate. This is required to update an existing certificate, and ignored while
+ * creating a brand new certificate.
+ * @param resourceGroupName name of resource group.
+ * @param provisioningServiceName Name of provisioning service.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 X509 Certificate.
+ * @return description of the response of the verification code.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CertificateResponseInner verifyCertificate(
- String certificateName,
- String ifMatch,
- String resourceGroupName,
- String provisioningServiceName,
- VerificationCodeRequest request);
+ VerificationCodeResponseInner generateVerificationCode(
+ String certificateName, String ifMatch, String resourceGroupName, String provisioningServiceName);
/**
- * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded
- * certificate.
+ * Verify certificate's private key possession.
+ *
+ * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre
+ * uploaded certificate.
*
* @param certificateName The mandatory logical name of the certificate, that the provisioning service uses to
* access.
@@ -308,4 +294,30 @@ Response verifyCertificateWithResponse(
Boolean certificateHasPrivateKey,
String certificateNonce,
Context context);
+
+ /**
+ * Verify certificate's private key possession.
+ *
+ * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre
+ * uploaded certificate.
+ *
+ * @param certificateName The mandatory logical name of the certificate, that the provisioning service uses to
+ * access.
+ * @param ifMatch ETag of the certificate.
+ * @param resourceGroupName Resource group name.
+ * @param provisioningServiceName Provisioning service name.
+ * @param request The name of the certificate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @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 X509 Certificate.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CertificateResponseInner verifyCertificate(
+ String certificateName,
+ String ifMatch,
+ String resourceGroupName,
+ String provisioningServiceName,
+ VerificationCodeRequest request);
}
diff --git a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/IotDpsResourcesClient.java b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/IotDpsResourcesClient.java
index 6a0df9175123..460452d4cd02 100644
--- a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/IotDpsResourcesClient.java
+++ b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/IotDpsResourcesClient.java
@@ -26,39 +26,45 @@
/** An instance of this class provides access to all the operations defined in IotDpsResourcesClient. */
public interface IotDpsResourcesClient {
/**
- * Get the metadata of the provisioning service without SAS keys.
+ * Get the non-security related metadata of the provisioning service.
+ *
+ *
Get the metadata of the provisioning service without SAS keys.
*
* @param resourceGroupName Resource group name.
* @param provisioningServiceName Name of the provisioning service to retrieve.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 metadata of the provisioning service without SAS keys.
+ * @return the metadata of the provisioning service without SAS keys along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ProvisioningServiceDescriptionInner getByResourceGroup(String resourceGroupName, String provisioningServiceName);
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String provisioningServiceName, Context context);
/**
- * Get the metadata of the provisioning service without SAS keys.
+ * Get the non-security related metadata of the provisioning service.
+ *
+ * Get the metadata of the provisioning service without SAS keys.
*
* @param resourceGroupName Resource group name.
* @param provisioningServiceName Name of the provisioning service to retrieve.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 metadata of the provisioning service without SAS keys along with {@link Response}.
+ * @return the metadata of the provisioning service without SAS keys.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String provisioningServiceName, Context context);
+ ProvisioningServiceDescriptionInner getByResourceGroup(String resourceGroupName, String provisioningServiceName);
/**
- * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to retrieve
- * the provisioning service metadata and security metadata, and then combine them with the modified values in a new
- * body to update the provisioning service.
+ * Create or update the metadata of the provisioning service.
+ *
+ * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to
+ * retrieve the provisioning service metadata and security metadata, and then combine them with the modified values
+ * in a new body to update the provisioning service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -77,9 +83,11 @@ Response getByResourceGroupWithResponse(
ProvisioningServiceDescriptionInner iotDpsDescription);
/**
- * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to retrieve
- * the provisioning service metadata and security metadata, and then combine them with the modified values in a new
- * body to update the provisioning service.
+ * Create or update the metadata of the provisioning service.
+ *
+ * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to
+ * retrieve the provisioning service metadata and security metadata, and then combine them with the modified values
+ * in a new body to update the provisioning service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -100,9 +108,11 @@ Response getByResourceGroupWithResponse(
Context context);
/**
- * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to retrieve
- * the provisioning service metadata and security metadata, and then combine them with the modified values in a new
- * body to update the provisioning service.
+ * Create or update the metadata of the provisioning service.
+ *
+ * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to
+ * retrieve the provisioning service metadata and security metadata, and then combine them with the modified values
+ * in a new body to update the provisioning service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -120,9 +130,11 @@ ProvisioningServiceDescriptionInner createOrUpdate(
ProvisioningServiceDescriptionInner iotDpsDescription);
/**
- * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to retrieve
- * the provisioning service metadata and security metadata, and then combine them with the modified values in a new
- * body to update the provisioning service.
+ * Create or update the metadata of the provisioning service.
+ *
+ *
Create or update the metadata of the provisioning service. The usual pattern to modify a property is to
+ * retrieve the provisioning service metadata and security metadata, and then combine them with the modified values
+ * in a new body to update the provisioning service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -142,7 +154,9 @@ ProvisioningServiceDescriptionInner createOrUpdate(
Context context);
/**
- * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
+ * Update an existing provisioning service's tags.
+ *
+ *
Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -157,7 +171,9 @@ SyncPoller, ProvisioningServiceD
String resourceGroupName, String provisioningServiceName, TagsResource provisioningServiceTags);
/**
- * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
+ * Update an existing provisioning service's tags.
+ *
+ * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -176,7 +192,9 @@ SyncPoller, ProvisioningServiceD
Context context);
/**
- * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
+ * Update an existing provisioning service's tags.
+ *
+ * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -191,7 +209,9 @@ ProvisioningServiceDescriptionInner update(
String resourceGroupName, String provisioningServiceName, TagsResource provisioningServiceTags);
/**
- * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
+ * Update an existing provisioning service's tags.
+ *
+ *
Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -210,7 +230,9 @@ ProvisioningServiceDescriptionInner update(
Context context);
/**
- * Deletes the Provisioning Service.
+ * Delete the Provisioning Service
+ *
+ *
Deletes the Provisioning Service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to delete.
@@ -224,7 +246,9 @@ ProvisioningServiceDescriptionInner update(
SyncPoller, Void> beginDelete(String resourceGroupName, String provisioningServiceName);
/**
- * Deletes the Provisioning Service.
+ * Delete the Provisioning Service
+ *
+ * Deletes the Provisioning Service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to delete.
@@ -240,7 +264,9 @@ SyncPoller, Void> beginDelete(
String resourceGroupName, String provisioningServiceName, Context context);
/**
- * Deletes the Provisioning Service.
+ * Delete the Provisioning Service
+ *
+ * Deletes the Provisioning Service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to delete.
@@ -253,7 +279,9 @@ SyncPoller, Void> beginDelete(
void delete(String resourceGroupName, String provisioningServiceName);
/**
- * Deletes the Provisioning Service.
+ * Delete the Provisioning Service
+ *
+ * Deletes the Provisioning Service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to delete.
@@ -267,7 +295,9 @@ SyncPoller, Void> beginDelete(
void delete(String resourceGroupName, String provisioningServiceName, Context context);
/**
- * List all the provisioning services for a given subscription id.
+ * Get all the provisioning services in a subscription.
+ *
+ * List all the provisioning services for a given subscription id.
*
* @throws com.azure.resourcemanager.deviceprovisioningservices.models.ErrorDetailsException thrown if the request
* is rejected by server.
@@ -278,7 +308,9 @@ SyncPoller, Void> beginDelete(
PagedIterable list();
/**
- * List all the provisioning services for a given subscription id.
+ * Get all the provisioning services in a subscription.
+ *
+ * List all the provisioning services for a given subscription id.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -327,15 +359,21 @@ SyncPoller, Void> beginDelete(
* @param provisioningServiceName Name of provisioning service that the operation is running on.
* @param asyncinfo Async header used to poll on the status of the operation, obtained while creating the long
* running operation.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 status of a long running operation, such as create, update or delete a provisioning service.
+ * @return the status of a long running operation, such as create, update or delete a provisioning service along
+ * with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AsyncOperationResultInner getOperationResult(
- String operationId, String resourceGroupName, String provisioningServiceName, String asyncinfo);
+ Response getOperationResultWithResponse(
+ String operationId,
+ String resourceGroupName,
+ String provisioningServiceName,
+ String asyncinfo,
+ Context context);
/**
* Gets the status of a long running operation, such as create, update or delete a provisioning service.
@@ -345,24 +383,20 @@ AsyncOperationResultInner getOperationResult(
* @param provisioningServiceName Name of provisioning service that the operation is running on.
* @param asyncinfo Async header used to poll on the status of the operation, obtained while creating the long
* running operation.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 status of a long running operation, such as create, update or delete a provisioning service along
- * with {@link Response}.
+ * @return the status of a long running operation, such as create, update or delete a provisioning service.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getOperationResultWithResponse(
- String operationId,
- String resourceGroupName,
- String provisioningServiceName,
- String asyncinfo,
- Context context);
+ AsyncOperationResultInner getOperationResult(
+ String operationId, String resourceGroupName, String provisioningServiceName, String asyncinfo);
/**
- * Gets the list of valid SKUs and tiers for a provisioning service.
+ * Get the list of valid SKUs for a provisioning service.
+ *
+ * Gets the list of valid SKUs and tiers for a provisioning service.
*
* @param provisioningServiceName Name of provisioning service.
* @param resourceGroupName Name of resource group.
@@ -377,7 +411,9 @@ Response getOperationResultWithResponse(
PagedIterable listValidSkus(String provisioningServiceName, String resourceGroupName);
/**
- * Gets the list of valid SKUs and tiers for a provisioning service.
+ * Get the list of valid SKUs for a provisioning service.
+ *
+ * Gets the list of valid SKUs and tiers for a provisioning service.
*
* @param provisioningServiceName Name of provisioning service.
* @param resourceGroupName Name of resource group.
@@ -394,39 +430,45 @@ PagedIterable listValidSkus(
String provisioningServiceName, String resourceGroupName, Context context);
/**
- * Check if a provisioning service name is available. This will validate if the name is syntactically valid and if
- * the name is usable.
+ * Check if a provisioning service name is available.
+ *
+ * Check if a provisioning service name is available. This will validate if the name is syntactically valid and
+ * if the name is usable.
*
* @param arguments Set the name parameter in the OperationInputs structure to the name of the provisioning service
* to check.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 description of name availability.
+ * @return description of name availability along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- NameAvailabilityInfoInner checkProvisioningServiceNameAvailability(OperationInputs arguments);
+ Response checkProvisioningServiceNameAvailabilityWithResponse(
+ OperationInputs arguments, Context context);
/**
- * Check if a provisioning service name is available. This will validate if the name is syntactically valid and if
- * the name is usable.
+ * Check if a provisioning service name is available.
+ *
+ * Check if a provisioning service name is available. This will validate if the name is syntactically valid and
+ * if the name is usable.
*
* @param arguments Set the name parameter in the OperationInputs structure to the name of the provisioning service
* to check.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 description of name availability along with {@link Response}.
+ * @return description of name availability.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response checkProvisioningServiceNameAvailabilityWithResponse(
- OperationInputs arguments, Context context);
+ NameAvailabilityInfoInner checkProvisioningServiceNameAvailability(OperationInputs arguments);
/**
- * List the primary and secondary keys for a provisioning service.
+ * Get the security metadata for a provisioning service.
+ *
+ * List the primary and secondary keys for a provisioning service.
*
* @param provisioningServiceName The provisioning service name to get the shared access keys for.
* @param resourceGroupName resource group name.
@@ -441,7 +483,9 @@ PagedIterable listKeys(
String provisioningServiceName, String resourceGroupName);
/**
- * List the primary and secondary keys for a provisioning service.
+ * Get the security metadata for a provisioning service.
+ *
+ * List the primary and secondary keys for a provisioning service.
*
* @param provisioningServiceName The provisioning service name to get the shared access keys for.
* @param resourceGroupName resource group name.
@@ -457,23 +501,9 @@ PagedIterable listKeys(
String provisioningServiceName, String resourceGroupName, Context context);
/**
- * List primary and secondary keys for a specific key name.
+ * Get a shared access policy by name from a provisioning service.
*
- * @param provisioningServiceName Name of the provisioning service.
- * @param keyName Logical key name to get key-values for.
- * @param resourceGroupName The name of the resource group that contains the provisioning service.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @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 description of the shared access key.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SharedAccessSignatureAuthorizationRuleInner listKeysForKeyName(
- String provisioningServiceName, String keyName, String resourceGroupName);
-
- /**
- * List primary and secondary keys for a specific key name.
+ * List primary and secondary keys for a specific key name.
*
* @param provisioningServiceName Name of the provisioning service.
* @param keyName Logical key name to get key-values for.
@@ -490,21 +520,27 @@ Response listKeysForKeyNameWithResp
String provisioningServiceName, String keyName, String resourceGroupName, Context context);
/**
- * List private link resources for the given provisioning service.
+ * Get a shared access policy by name from a provisioning service.
*
+ * List primary and secondary keys for a specific key name.
+ *
+ * @param provisioningServiceName Name of the provisioning service.
+ * @param keyName Logical key name to get key-values for.
* @param resourceGroupName The name of the resource group that contains the provisioning service.
- * @param resourceName The name of the provisioning service.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 available private link resources for a provisioning service.
+ * @return description of the shared access key.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateLinkResourcesInner listPrivateLinkResources(String resourceGroupName, String resourceName);
+ SharedAccessSignatureAuthorizationRuleInner listKeysForKeyName(
+ String provisioningServiceName, String keyName, String resourceGroupName);
/**
- * List private link resources for the given provisioning service.
+ * List private link resources
+ *
+ *
List private link resources for the given provisioning service.
*
* @param resourceGroupName The name of the resource group that contains the provisioning service.
* @param resourceName The name of the provisioning service.
@@ -520,22 +556,25 @@ Response listPrivateLinkResourcesWithResponse(
String resourceGroupName, String resourceName, Context context);
/**
- * Get the specified private link resource for the given provisioning service.
+ * List private link resources
+ *
+ * List private link resources for the given provisioning service.
*
* @param resourceGroupName The name of the resource group that contains the provisioning service.
* @param resourceName The name of the provisioning service.
- * @param groupId The name of the private link resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 specified private link resource for the given provisioning service.
+ * @return the available private link resources for a provisioning service.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- GroupIdInformationInner getPrivateLinkResources(String resourceGroupName, String resourceName, String groupId);
+ PrivateLinkResourcesInner listPrivateLinkResources(String resourceGroupName, String resourceName);
/**
- * Get the specified private link resource for the given provisioning service.
+ * Get the specified private link resource
+ *
+ *
Get the specified private link resource for the given provisioning service.
*
* @param resourceGroupName The name of the resource group that contains the provisioning service.
* @param resourceName The name of the provisioning service.
@@ -552,21 +591,26 @@ Response getPrivateLinkResourcesWithResponse(
String resourceGroupName, String resourceName, String groupId, Context context);
/**
- * List private endpoint connection properties.
+ * Get the specified private link resource
+ *
+ * Get the specified private link resource for the given provisioning service.
*
* @param resourceGroupName The name of the resource group that contains the provisioning service.
* @param resourceName The name of the provisioning service.
+ * @param groupId The name of the private link resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 private endpoint connections for a provisioning service.
+ * @return the specified private link resource for the given provisioning service.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- List listPrivateEndpointConnections(String resourceGroupName, String resourceName);
+ GroupIdInformationInner getPrivateLinkResources(String resourceGroupName, String resourceName, String groupId);
/**
- * List private endpoint connection properties.
+ * List private endpoint connections
+ *
+ * List private endpoint connection properties.
*
* @param resourceGroupName The name of the resource group that contains the provisioning service.
* @param resourceName The name of the provisioning service.
@@ -582,23 +626,25 @@ Response> listPrivateEndpointConnectionsWit
String resourceGroupName, String resourceName, Context context);
/**
- * Get private endpoint connection properties.
+ * List private endpoint connections
+ *
+ * List private endpoint connection properties.
*
* @param resourceGroupName The name of the resource group that contains the provisioning service.
* @param resourceName The name of the provisioning service.
- * @param privateEndpointConnectionName The name of the private endpoint connection.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 private endpoint connection properties.
+ * @return the list of private endpoint connections for a provisioning service.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner getPrivateEndpointConnection(
- String resourceGroupName, String resourceName, String privateEndpointConnectionName);
+ List listPrivateEndpointConnections(String resourceGroupName, String resourceName);
/**
- * Get private endpoint connection properties.
+ * Get private endpoint connection
+ *
+ * Get private endpoint connection properties.
*
* @param resourceGroupName The name of the resource group that contains the provisioning service.
* @param resourceName The name of the provisioning service.
@@ -615,7 +661,27 @@ Response getPrivateEndpointConnectionWithRespons
String resourceGroupName, String resourceName, String privateEndpointConnectionName, Context context);
/**
- * Create or update the status of a private endpoint connection with the specified name.
+ * Get private endpoint connection
+ *
+ * Get private endpoint connection properties.
+ *
+ * @param resourceGroupName The name of the resource group that contains the provisioning service.
+ * @param resourceName The name of the provisioning service.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @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 private endpoint connection properties.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner getPrivateEndpointConnection(
+ String resourceGroupName, String resourceName, String privateEndpointConnectionName);
+
+ /**
+ * Create or update private endpoint connection
+ *
+ *
Create or update the status of a private endpoint connection with the specified name.
*
* @param resourceGroupName The name of the resource group that contains the provisioning service.
* @param resourceName The name of the provisioning service.
@@ -636,7 +702,9 @@ Response getPrivateEndpointConnectionWithRespons
PrivateEndpointConnectionInner privateEndpointConnection);
/**
- * Create or update the status of a private endpoint connection with the specified name.
+ * Create or update private endpoint connection
+ *
+ * Create or update the status of a private endpoint connection with the specified name.
*
* @param resourceGroupName The name of the resource group that contains the provisioning service.
* @param resourceName The name of the provisioning service.
@@ -659,7 +727,9 @@ Response getPrivateEndpointConnectionWithRespons
Context context);
/**
- * Create or update the status of a private endpoint connection with the specified name.
+ * Create or update private endpoint connection
+ *
+ * Create or update the status of a private endpoint connection with the specified name.
*
* @param resourceGroupName The name of the resource group that contains the provisioning service.
* @param resourceName The name of the provisioning service.
@@ -679,7 +749,9 @@ PrivateEndpointConnectionInner createOrUpdatePrivateEndpointConnection(
PrivateEndpointConnectionInner privateEndpointConnection);
/**
- * Create or update the status of a private endpoint connection with the specified name.
+ * Create or update private endpoint connection
+ *
+ *
Create or update the status of a private endpoint connection with the specified name.
*
* @param resourceGroupName The name of the resource group that contains the provisioning service.
* @param resourceName The name of the provisioning service.
@@ -701,7 +773,9 @@ PrivateEndpointConnectionInner createOrUpdatePrivateEndpointConnection(
Context context);
/**
- * Delete private endpoint connection with the specified name.
+ * Delete private endpoint connection
+ *
+ *
Delete private endpoint connection with the specified name.
*
* @param resourceGroupName The name of the resource group that contains the provisioning service.
* @param resourceName The name of the provisioning service.
@@ -718,7 +792,9 @@ PrivateEndpointConnectionInner createOrUpdatePrivateEndpointConnection(
String resourceGroupName, String resourceName, String privateEndpointConnectionName);
/**
- * Delete private endpoint connection with the specified name.
+ * Delete private endpoint connection
+ *
+ *
Delete private endpoint connection with the specified name.
*
* @param resourceGroupName The name of the resource group that contains the provisioning service.
* @param resourceName The name of the provisioning service.
@@ -736,7 +812,9 @@ PrivateEndpointConnectionInner createOrUpdatePrivateEndpointConnection(
String resourceGroupName, String resourceName, String privateEndpointConnectionName, Context context);
/**
- * Delete private endpoint connection with the specified name.
+ * Delete private endpoint connection
+ *
+ *
Delete private endpoint connection with the specified name.
*
* @param resourceGroupName The name of the resource group that contains the provisioning service.
* @param resourceName The name of the provisioning service.
@@ -752,7 +830,9 @@ PrivateEndpointConnectionInner deletePrivateEndpointConnection(
String resourceGroupName, String resourceName, String privateEndpointConnectionName);
/**
- * Delete private endpoint connection with the specified name.
+ * Delete private endpoint connection
+ *
+ *
Delete private endpoint connection with the specified name.
*
* @param resourceGroupName The name of the resource group that contains the provisioning service.
* @param resourceName The name of the provisioning service.
diff --git a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/AsyncOperationResultInner.java b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/AsyncOperationResultInner.java
index c41818984212..7bbd79018b98 100644
--- a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/AsyncOperationResultInner.java
+++ b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/AsyncOperationResultInner.java
@@ -23,6 +23,10 @@ public final class AsyncOperationResultInner {
@JsonProperty(value = "error")
private ErrorMessage error;
+ /** Creates an instance of AsyncOperationResultInner class. */
+ public AsyncOperationResultInner() {
+ }
+
/**
* Get the status property: current status of a long running operation.
*
diff --git a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/CertificateListDescriptionInner.java b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/CertificateListDescriptionInner.java
index 29345932d7b8..e8691c7648b4 100644
--- a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/CertificateListDescriptionInner.java
+++ b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/CertificateListDescriptionInner.java
@@ -17,6 +17,10 @@ public final class CertificateListDescriptionInner {
@JsonProperty(value = "value")
private List value;
+ /** Creates an instance of CertificateListDescriptionInner class. */
+ public CertificateListDescriptionInner() {
+ }
+
/**
* Get the value property: The array of Certificate objects.
*
diff --git a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/CertificateResponseInner.java b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/CertificateResponseInner.java
index a1bf9c3900d4..7acae6df0c48 100644
--- a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/CertificateResponseInner.java
+++ b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/CertificateResponseInner.java
@@ -31,6 +31,10 @@ public final class CertificateResponseInner extends ProxyResource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
+ /** Creates an instance of CertificateResponseInner class. */
+ public CertificateResponseInner() {
+ }
+
/**
* Get the properties property: properties of a certificate.
*
diff --git a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/GroupIdInformationInner.java b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/GroupIdInformationInner.java
index 065cac030f0b..1cfb3092bf47 100644
--- a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/GroupIdInformationInner.java
+++ b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/GroupIdInformationInner.java
@@ -36,6 +36,10 @@ public final class GroupIdInformationInner {
@JsonProperty(value = "properties", required = true)
private GroupIdInformationProperties properties;
+ /** Creates an instance of GroupIdInformationInner class. */
+ public GroupIdInformationInner() {
+ }
+
/**
* Get the id property: The resource identifier.
*
diff --git a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/IotDpsSkuDefinitionInner.java b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/IotDpsSkuDefinitionInner.java
index 4ba84ebf1fba..3c96d5047a70 100644
--- a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/IotDpsSkuDefinitionInner.java
+++ b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/IotDpsSkuDefinitionInner.java
@@ -17,6 +17,10 @@ public final class IotDpsSkuDefinitionInner {
@JsonProperty(value = "name")
private IotDpsSku name;
+ /** Creates an instance of IotDpsSkuDefinitionInner class. */
+ public IotDpsSkuDefinitionInner() {
+ }
+
/**
* Get the name property: Sku name.
*
diff --git a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/NameAvailabilityInfoInner.java b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/NameAvailabilityInfoInner.java
index 14279aa9bdd2..eeb12fd7c0f8 100644
--- a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/NameAvailabilityInfoInner.java
+++ b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/NameAvailabilityInfoInner.java
@@ -29,6 +29,10 @@ public final class NameAvailabilityInfoInner {
@JsonProperty(value = "message")
private String message;
+ /** Creates an instance of NameAvailabilityInfoInner class. */
+ public NameAvailabilityInfoInner() {
+ }
+
/**
* Get the nameAvailable property: specifies if a name is available or not.
*
diff --git a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/OperationInner.java b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/OperationInner.java
index b2686b117fb0..adebd9a25e39 100644
--- a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/OperationInner.java
+++ b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/OperationInner.java
@@ -23,6 +23,10 @@ public final class OperationInner {
@JsonProperty(value = "display")
private OperationDisplay display;
+ /** Creates an instance of OperationInner class. */
+ public OperationInner() {
+ }
+
/**
* Get the name property: Operation name: {provider}/{resource}/{read | write | action | delete}.
*
diff --git a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/PrivateEndpointConnectionInner.java b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/PrivateEndpointConnectionInner.java
index a32616caeea4..8757cb7f9c32 100644
--- a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/PrivateEndpointConnectionInner.java
+++ b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/PrivateEndpointConnectionInner.java
@@ -26,6 +26,10 @@ public final class PrivateEndpointConnectionInner extends ProxyResource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
+ /** Creates an instance of PrivateEndpointConnectionInner class. */
+ public PrivateEndpointConnectionInner() {
+ }
+
/**
* Get the properties property: The properties of a private endpoint connection.
*
diff --git a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/PrivateLinkResourcesInner.java b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/PrivateLinkResourcesInner.java
index 576b664f280a..8b056e73a0ae 100644
--- a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/PrivateLinkResourcesInner.java
+++ b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/PrivateLinkResourcesInner.java
@@ -17,6 +17,10 @@ public final class PrivateLinkResourcesInner {
@JsonProperty(value = "value")
private List value;
+ /** Creates an instance of PrivateLinkResourcesInner class. */
+ public PrivateLinkResourcesInner() {
+ }
+
/**
* Get the value property: The list of available private link resources for a provisioning service.
*
diff --git a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/ProvisioningServiceDescriptionInner.java b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/ProvisioningServiceDescriptionInner.java
index ecbb41e97f90..1630663254d2 100644
--- a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/ProvisioningServiceDescriptionInner.java
+++ b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/ProvisioningServiceDescriptionInner.java
@@ -17,9 +17,8 @@
@Fluent
public final class ProvisioningServiceDescriptionInner extends Resource {
/*
- * The Etag field is *not* required. If it is provided in the response
- * body, it must also be provided as a header per the normal ETag
- * convention.
+ * The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header
+ * per the normal ETag convention.
*/
@JsonProperty(value = "etag")
private String etag;
@@ -42,6 +41,22 @@ public final class ProvisioningServiceDescriptionInner extends Resource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
+ /*
+ * The resource group of the resource.
+ */
+ @JsonProperty(value = "resourcegroup")
+ private String resourcegroup;
+
+ /*
+ * The subscription id of the resource.
+ */
+ @JsonProperty(value = "subscriptionid")
+ private String subscriptionid;
+
+ /** Creates an instance of ProvisioningServiceDescriptionInner class. */
+ public ProvisioningServiceDescriptionInner() {
+ }
+
/**
* Get the etag property: The Etag field is *not* required. If it is provided in the response body, it must also be
* provided as a header per the normal ETag convention.
@@ -113,6 +128,46 @@ public SystemData systemData() {
return this.systemData;
}
+ /**
+ * Get the resourcegroup property: The resource group of the resource.
+ *
+ * @return the resourcegroup value.
+ */
+ public String resourcegroup() {
+ return this.resourcegroup;
+ }
+
+ /**
+ * Set the resourcegroup property: The resource group of the resource.
+ *
+ * @param resourcegroup the resourcegroup value to set.
+ * @return the ProvisioningServiceDescriptionInner object itself.
+ */
+ public ProvisioningServiceDescriptionInner withResourcegroup(String resourcegroup) {
+ this.resourcegroup = resourcegroup;
+ return this;
+ }
+
+ /**
+ * Get the subscriptionid property: The subscription id of the resource.
+ *
+ * @return the subscriptionid value.
+ */
+ public String subscriptionid() {
+ return this.subscriptionid;
+ }
+
+ /**
+ * Set the subscriptionid property: The subscription id of the resource.
+ *
+ * @param subscriptionid the subscriptionid value to set.
+ * @return the ProvisioningServiceDescriptionInner object itself.
+ */
+ public ProvisioningServiceDescriptionInner withSubscriptionid(String subscriptionid) {
+ this.subscriptionid = subscriptionid;
+ return this;
+ }
+
/** {@inheritDoc} */
@Override
public ProvisioningServiceDescriptionInner withLocation(String location) {
diff --git a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/SharedAccessSignatureAuthorizationRuleInner.java b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/SharedAccessSignatureAuthorizationRuleInner.java
index e4a666a02818..84fff0a4b2c4 100644
--- a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/SharedAccessSignatureAuthorizationRuleInner.java
+++ b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/SharedAccessSignatureAuthorizationRuleInner.java
@@ -36,6 +36,10 @@ public final class SharedAccessSignatureAuthorizationRuleInner {
@JsonProperty(value = "rights", required = true)
private AccessRightsDescription rights;
+ /** Creates an instance of SharedAccessSignatureAuthorizationRuleInner class. */
+ public SharedAccessSignatureAuthorizationRuleInner() {
+ }
+
/**
* Get the keyName property: Name of the key.
*
diff --git a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/VerificationCodeResponseInner.java b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/VerificationCodeResponseInner.java
index 6450f3bf494a..8a4ebc644c9c 100644
--- a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/VerificationCodeResponseInner.java
+++ b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/fluent/models/VerificationCodeResponseInner.java
@@ -24,6 +24,10 @@ public final class VerificationCodeResponseInner extends ProxyResource {
@JsonProperty(value = "properties")
private VerificationCodeResponseProperties properties;
+ /** Creates an instance of VerificationCodeResponseInner class. */
+ public VerificationCodeResponseInner() {
+ }
+
/**
* Get the etag property: Request etag.
*
diff --git a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/implementation/DpsCertificatesClientImpl.java b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/implementation/DpsCertificatesClientImpl.java
index 08a69bb2550c..33353cb630ef 100644
--- a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/implementation/DpsCertificatesClientImpl.java
+++ b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/implementation/DpsCertificatesClientImpl.java
@@ -60,7 +60,7 @@ public final class DpsCertificatesClientImpl implements DpsCertificatesClient {
*/
@Host("{$host}")
@ServiceInterface(name = "IotDpsClientDpsCerti")
- private interface DpsCertificatesService {
+ public interface DpsCertificatesService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices"
@@ -315,7 +315,6 @@ private Mono> getWithResponseAsync(
* @param certificateName Name of the certificate to retrieve.
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of the provisioning service the certificate is associated with.
- * @param ifMatch ETag of the certificate.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ErrorDetailsException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -323,7 +322,8 @@ private Mono> getWithResponseAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(
- String certificateName, String resourceGroupName, String provisioningServiceName, String ifMatch) {
+ String certificateName, String resourceGroupName, String provisioningServiceName) {
+ final String ifMatch = null;
return getWithResponseAsync(certificateName, resourceGroupName, provisioningServiceName, ifMatch)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
@@ -334,17 +334,22 @@ private Mono getAsync(
* @param certificateName Name of the certificate to retrieve.
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of the provisioning service the certificate is associated with.
+ * @param ifMatch ETag of the certificate.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 certificate from the provisioning service on successful completion of {@link Mono}.
+ * @return the certificate from the provisioning service along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAsync(
- String certificateName, String resourceGroupName, String provisioningServiceName) {
- final String ifMatch = null;
- return getWithResponseAsync(certificateName, resourceGroupName, provisioningServiceName, ifMatch)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ public Response getWithResponse(
+ String certificateName,
+ String resourceGroupName,
+ String provisioningServiceName,
+ String ifMatch,
+ Context context) {
+ return getWithResponseAsync(certificateName, resourceGroupName, provisioningServiceName, ifMatch, context)
+ .block();
}
/**
@@ -362,35 +367,14 @@ private Mono getAsync(
public CertificateResponseInner get(
String certificateName, String resourceGroupName, String provisioningServiceName) {
final String ifMatch = null;
- return getAsync(certificateName, resourceGroupName, provisioningServiceName, ifMatch).block();
+ return getWithResponse(certificateName, resourceGroupName, provisioningServiceName, ifMatch, Context.NONE)
+ .getValue();
}
/**
- * Get the certificate from the provisioning service.
+ * Upload the certificate to the provisioning service.
*
- * @param certificateName Name of the certificate to retrieve.
- * @param resourceGroupName Resource group identifier.
- * @param provisioningServiceName Name of the provisioning service the certificate is associated with.
- * @param ifMatch ETag of the certificate.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 certificate from the provisioning service along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String certificateName,
- String resourceGroupName,
- String provisioningServiceName,
- String ifMatch,
- Context context) {
- return getWithResponseAsync(certificateName, resourceGroupName, provisioningServiceName, ifMatch, context)
- .block();
- }
-
- /**
- * Add new certificate or update an existing certificate.
+ * Add new certificate or update an existing certificate.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName The name of the provisioning service.
@@ -462,7 +446,9 @@ private Mono> createOrUpdateWithResponseAsync
}
/**
- * Add new certificate or update an existing certificate.
+ * Upload the certificate to the provisioning service.
+ *
+ * Add new certificate or update an existing certificate.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName The name of the provisioning service.
@@ -533,14 +519,14 @@ private Mono> createOrUpdateWithResponseAsync
}
/**
- * Add new certificate or update an existing certificate.
+ * Upload the certificate to the provisioning service.
+ *
+ * Add new certificate or update an existing certificate.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName The name of the provisioning service.
* @param certificateName The name of the certificate create or update.
* @param certificateDescription The certificate body.
- * @param ifMatch ETag of the certificate. This is required to update an existing certificate, and ignored while
- * creating a brand new certificate.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ErrorDetailsException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -551,39 +537,47 @@ private Mono createOrUpdateAsync(
String resourceGroupName,
String provisioningServiceName,
String certificateName,
- CertificateResponseInner certificateDescription,
- String ifMatch) {
+ CertificateResponseInner certificateDescription) {
+ final String ifMatch = null;
return createOrUpdateWithResponseAsync(
resourceGroupName, provisioningServiceName, certificateName, certificateDescription, ifMatch)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
- * Add new certificate or update an existing certificate.
+ * Upload the certificate to the provisioning service.
+ *
+ * Add new certificate or update an existing certificate.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName The name of the provisioning service.
* @param certificateName The name of the certificate create or update.
* @param certificateDescription The certificate body.
+ * @param ifMatch ETag of the certificate. This is required to update an existing certificate, and ignored while
+ * creating a brand new certificate.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 X509 Certificate on successful completion of {@link Mono}.
+ * @return the X509 Certificate along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(
+ public Response createOrUpdateWithResponse(
String resourceGroupName,
String provisioningServiceName,
String certificateName,
- CertificateResponseInner certificateDescription) {
- final String ifMatch = null;
+ CertificateResponseInner certificateDescription,
+ String ifMatch,
+ Context context) {
return createOrUpdateWithResponseAsync(
- resourceGroupName, provisioningServiceName, certificateName, certificateDescription, ifMatch)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ resourceGroupName, provisioningServiceName, certificateName, certificateDescription, ifMatch, context)
+ .block();
}
/**
- * Add new certificate or update an existing certificate.
+ * Upload the certificate to the provisioning service.
+ *
+ * Add new certificate or update an existing certificate.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName The name of the provisioning service.
@@ -601,41 +595,20 @@ public CertificateResponseInner createOrUpdate(
String certificateName,
CertificateResponseInner certificateDescription) {
final String ifMatch = null;
- return createOrUpdateAsync(
- resourceGroupName, provisioningServiceName, certificateName, certificateDescription, ifMatch)
- .block();
+ return createOrUpdateWithResponse(
+ resourceGroupName,
+ provisioningServiceName,
+ certificateName,
+ certificateDescription,
+ ifMatch,
+ Context.NONE)
+ .getValue();
}
/**
- * Add new certificate or update an existing certificate.
+ * Delete the Provisioning Service Certificate.
*
- * @param resourceGroupName Resource group identifier.
- * @param provisioningServiceName The name of the provisioning service.
- * @param certificateName The name of the certificate create or update.
- * @param certificateDescription The certificate body.
- * @param ifMatch ETag of the certificate. This is required to update an existing certificate, and ignored while
- * creating a brand new certificate.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 X509 Certificate along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response createOrUpdateWithResponse(
- String resourceGroupName,
- String provisioningServiceName,
- String certificateName,
- CertificateResponseInner certificateDescription,
- String ifMatch,
- Context context) {
- return createOrUpdateWithResponseAsync(
- resourceGroupName, provisioningServiceName, certificateName, certificateDescription, ifMatch, context)
- .block();
- }
-
- /**
- * Deletes the specified certificate associated with the Provisioning Service.
+ * Deletes the specified certificate associated with the Provisioning Service.
*
* @param resourceGroupName Resource group identifier.
* @param ifMatch ETag of the certificate.
@@ -725,7 +698,9 @@ private Mono> deleteWithResponseAsync(
}
/**
- * Deletes the specified certificate associated with the Provisioning Service.
+ * Delete the Provisioning Service Certificate.
+ *
+ * Deletes the specified certificate associated with the Provisioning Service.
*
* @param resourceGroupName Resource group identifier.
* @param ifMatch ETag of the certificate.
@@ -814,58 +789,9 @@ private Mono> deleteWithResponseAsync(
}
/**
- * Deletes the specified certificate associated with the Provisioning Service.
+ * Delete the Provisioning Service Certificate.
*
- * @param resourceGroupName Resource group identifier.
- * @param ifMatch ETag of the certificate.
- * @param provisioningServiceName The name of the provisioning service.
- * @param certificateName This is a mandatory field, and is the logical name of the certificate that the
- * provisioning service will access by.
- * @param certificateName1 This is optional, and it is the Common Name of the certificate.
- * @param certificateRawBytes Raw data within the certificate.
- * @param certificateIsVerified Indicates if certificate has been verified by owner of the private key.
- * @param certificatePurpose A description that mentions the purpose of the certificate.
- * @param certificateCreated Time the certificate is created.
- * @param certificateLastUpdated Time the certificate is last updated.
- * @param certificateHasPrivateKey Indicates if the certificate contains a private key.
- * @param certificateNonce Random number generated to indicate Proof of Possession.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(
- String resourceGroupName,
- String ifMatch,
- String provisioningServiceName,
- String certificateName,
- String certificateName1,
- byte[] certificateRawBytes,
- Boolean certificateIsVerified,
- CertificatePurpose certificatePurpose,
- OffsetDateTime certificateCreated,
- OffsetDateTime certificateLastUpdated,
- Boolean certificateHasPrivateKey,
- String certificateNonce) {
- return deleteWithResponseAsync(
- resourceGroupName,
- ifMatch,
- provisioningServiceName,
- certificateName,
- certificateName1,
- certificateRawBytes,
- certificateIsVerified,
- certificatePurpose,
- certificateCreated,
- certificateLastUpdated,
- certificateHasPrivateKey,
- certificateNonce)
- .flatMap(ignored -> Mono.empty());
- }
-
- /**
- * Deletes the specified certificate associated with the Provisioning Service.
+ * Deletes the specified certificate associated with the Provisioning Service.
*
* @param resourceGroupName Resource group identifier.
* @param ifMatch ETag of the certificate.
@@ -905,46 +831,9 @@ private Mono deleteAsync(
}
/**
- * Deletes the specified certificate associated with the Provisioning Service.
+ * Delete the Provisioning Service Certificate.
*
- * @param resourceGroupName Resource group identifier.
- * @param ifMatch ETag of the certificate.
- * @param provisioningServiceName The name of the provisioning service.
- * @param certificateName This is a mandatory field, and is the logical name of the certificate that the
- * provisioning service will access by.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ErrorDetailsException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(
- String resourceGroupName, String ifMatch, String provisioningServiceName, String certificateName) {
- final String certificateName1 = null;
- final byte[] certificateRawBytes = new byte[0];
- final Boolean certificateIsVerified = null;
- final CertificatePurpose certificatePurpose = null;
- final OffsetDateTime certificateCreated = null;
- final OffsetDateTime certificateLastUpdated = null;
- final Boolean certificateHasPrivateKey = null;
- final String certificateNonce = null;
- deleteAsync(
- resourceGroupName,
- ifMatch,
- provisioningServiceName,
- certificateName,
- certificateName1,
- certificateRawBytes,
- certificateIsVerified,
- certificatePurpose,
- certificateCreated,
- certificateLastUpdated,
- certificateHasPrivateKey,
- certificateNonce)
- .block();
- }
-
- /**
- * Deletes the specified certificate associated with the Provisioning Service.
+ * Deletes the specified certificate associated with the Provisioning Service.
*
* @param resourceGroupName Resource group identifier.
* @param ifMatch ETag of the certificate.
@@ -997,6 +886,47 @@ public Response deleteWithResponse(
.block();
}
+ /**
+ * Delete the Provisioning Service Certificate.
+ *
+ * Deletes the specified certificate associated with the Provisioning Service.
+ *
+ * @param resourceGroupName Resource group identifier.
+ * @param ifMatch ETag of the certificate.
+ * @param provisioningServiceName The name of the provisioning service.
+ * @param certificateName This is a mandatory field, and is the logical name of the certificate that the
+ * provisioning service will access by.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ErrorDetailsException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(
+ String resourceGroupName, String ifMatch, String provisioningServiceName, String certificateName) {
+ final String certificateName1 = null;
+ final byte[] certificateRawBytes = new byte[0];
+ final Boolean certificateIsVerified = null;
+ final CertificatePurpose certificatePurpose = null;
+ final OffsetDateTime certificateCreated = null;
+ final OffsetDateTime certificateLastUpdated = null;
+ final Boolean certificateHasPrivateKey = null;
+ final String certificateNonce = null;
+ deleteWithResponse(
+ resourceGroupName,
+ ifMatch,
+ provisioningServiceName,
+ certificateName,
+ certificateName1,
+ certificateRawBytes,
+ certificateIsVerified,
+ certificatePurpose,
+ certificateCreated,
+ certificateLastUpdated,
+ certificateHasPrivateKey,
+ certificateNonce,
+ Context.NONE);
+ }
+
/**
* Get all the certificates tied to the provisioning service.
*
@@ -1118,14 +1048,16 @@ private Mono listAsync(String resourceGroupName
*
* @param resourceGroupName Name of resource group.
* @param provisioningServiceName Name of provisioning service to retrieve certificates for.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ErrorDetailsException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the certificates tied to the provisioning service.
+ * @return all the certificates tied to the provisioning service along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public CertificateListDescriptionInner list(String resourceGroupName, String provisioningServiceName) {
- return listAsync(resourceGroupName, provisioningServiceName).block();
+ public Response listWithResponse(
+ String resourceGroupName, String provisioningServiceName, Context context) {
+ return listWithResponseAsync(resourceGroupName, provisioningServiceName, context).block();
}
/**
@@ -1133,16 +1065,14 @@ public CertificateListDescriptionInner list(String resourceGroupName, String pro
*
* @param resourceGroupName Name of resource group.
* @param provisioningServiceName Name of provisioning service to retrieve certificates for.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ErrorDetailsException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the certificates tied to the provisioning service along with {@link Response}.
+ * @return all the certificates tied to the provisioning service.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response listWithResponse(
- String resourceGroupName, String provisioningServiceName, Context context) {
- return listWithResponseAsync(resourceGroupName, provisioningServiceName, context).block();
+ public CertificateListDescriptionInner list(String resourceGroupName, String provisioningServiceName) {
+ return listWithResponse(resourceGroupName, provisioningServiceName, Context.NONE).getValue();
}
/**
@@ -1337,14 +1267,6 @@ private Mono> generateVerificationCodeWi
* creating a brand new certificate.
* @param resourceGroupName name of resource group.
* @param provisioningServiceName Name of provisioning service.
- * @param certificateName1 Common Name for the certificate.
- * @param certificateRawBytes Raw data of certificate.
- * @param certificateIsVerified Indicates if the certificate has been verified by owner of the private key.
- * @param certificatePurpose Description mentioning the purpose of the certificate.
- * @param certificateCreated Certificate creation time.
- * @param certificateLastUpdated Certificate last updated time.
- * @param certificateHasPrivateKey Indicates if the certificate contains private key.
- * @param certificateNonce Random number generated to indicate Proof of Possession.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ErrorDetailsException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -1352,18 +1274,15 @@ private Mono> generateVerificationCodeWi
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono generateVerificationCodeAsync(
- String certificateName,
- String ifMatch,
- String resourceGroupName,
- String provisioningServiceName,
- String certificateName1,
- byte[] certificateRawBytes,
- Boolean certificateIsVerified,
- CertificatePurpose certificatePurpose,
- OffsetDateTime certificateCreated,
- OffsetDateTime certificateLastUpdated,
- Boolean certificateHasPrivateKey,
- String certificateNonce) {
+ String certificateName, String ifMatch, String resourceGroupName, String provisioningServiceName) {
+ final String certificateName1 = null;
+ final byte[] certificateRawBytes = new byte[0];
+ final Boolean certificateIsVerified = null;
+ final CertificatePurpose certificatePurpose = null;
+ final OffsetDateTime certificateCreated = null;
+ final OffsetDateTime certificateLastUpdated = null;
+ final Boolean certificateHasPrivateKey = null;
+ final String certificateNonce = null;
return generateVerificationCodeWithResponseAsync(
certificateName,
ifMatch,
@@ -1389,22 +1308,35 @@ private Mono generateVerificationCodeAsync(
* creating a brand new certificate.
* @param resourceGroupName name of resource group.
* @param provisioningServiceName Name of provisioning service.
+ * @param certificateName1 Common Name for the certificate.
+ * @param certificateRawBytes Raw data of certificate.
+ * @param certificateIsVerified Indicates if the certificate has been verified by owner of the private key.
+ * @param certificatePurpose Description mentioning the purpose of the certificate.
+ * @param certificateCreated Certificate creation time.
+ * @param certificateLastUpdated Certificate last updated time.
+ * @param certificateHasPrivateKey Indicates if the certificate contains private key.
+ * @param certificateNonce Random number generated to indicate Proof of Possession.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ErrorDetailsException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of the response of the verification code on successful completion of {@link Mono}.
+ * @return description of the response of the verification code along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono generateVerificationCodeAsync(
- String certificateName, String ifMatch, String resourceGroupName, String provisioningServiceName) {
- final String certificateName1 = null;
- final byte[] certificateRawBytes = new byte[0];
- final Boolean certificateIsVerified = null;
- final CertificatePurpose certificatePurpose = null;
- final OffsetDateTime certificateCreated = null;
- final OffsetDateTime certificateLastUpdated = null;
- final Boolean certificateHasPrivateKey = null;
- final String certificateNonce = null;
+ public Response generateVerificationCodeWithResponse(
+ String certificateName,
+ String ifMatch,
+ String resourceGroupName,
+ String provisioningServiceName,
+ String certificateName1,
+ byte[] certificateRawBytes,
+ Boolean certificateIsVerified,
+ CertificatePurpose certificatePurpose,
+ OffsetDateTime certificateCreated,
+ OffsetDateTime certificateLastUpdated,
+ Boolean certificateHasPrivateKey,
+ String certificateNonce,
+ Context context) {
return generateVerificationCodeWithResponseAsync(
certificateName,
ifMatch,
@@ -1417,8 +1349,9 @@ private Mono generateVerificationCodeAsync(
certificateCreated,
certificateLastUpdated,
certificateHasPrivateKey,
- certificateNonce)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ certificateNonce,
+ context)
+ .block();
}
/**
@@ -1446,61 +1379,7 @@ public VerificationCodeResponseInner generateVerificationCode(
final OffsetDateTime certificateLastUpdated = null;
final Boolean certificateHasPrivateKey = null;
final String certificateNonce = null;
- return generateVerificationCodeAsync(
- certificateName,
- ifMatch,
- resourceGroupName,
- provisioningServiceName,
- certificateName1,
- certificateRawBytes,
- certificateIsVerified,
- certificatePurpose,
- certificateCreated,
- certificateLastUpdated,
- certificateHasPrivateKey,
- certificateNonce)
- .block();
- }
-
- /**
- * Generate verification code for Proof of Possession.
- *
- * @param certificateName The mandatory logical name of the certificate, that the provisioning service uses to
- * access.
- * @param ifMatch ETag of the certificate. This is required to update an existing certificate, and ignored while
- * creating a brand new certificate.
- * @param resourceGroupName name of resource group.
- * @param provisioningServiceName Name of provisioning service.
- * @param certificateName1 Common Name for the certificate.
- * @param certificateRawBytes Raw data of certificate.
- * @param certificateIsVerified Indicates if the certificate has been verified by owner of the private key.
- * @param certificatePurpose Description mentioning the purpose of the certificate.
- * @param certificateCreated Certificate creation time.
- * @param certificateLastUpdated Certificate last updated time.
- * @param certificateHasPrivateKey Indicates if the certificate contains private key.
- * @param certificateNonce Random number generated to indicate Proof of Possession.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ErrorDetailsException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of the response of the verification code along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response generateVerificationCodeWithResponse(
- String certificateName,
- String ifMatch,
- String resourceGroupName,
- String provisioningServiceName,
- String certificateName1,
- byte[] certificateRawBytes,
- Boolean certificateIsVerified,
- CertificatePurpose certificatePurpose,
- OffsetDateTime certificateCreated,
- OffsetDateTime certificateLastUpdated,
- Boolean certificateHasPrivateKey,
- String certificateNonce,
- Context context) {
- return generateVerificationCodeWithResponseAsync(
+ return generateVerificationCodeWithResponse(
certificateName,
ifMatch,
resourceGroupName,
@@ -1513,13 +1392,15 @@ public Response generateVerificationCodeWithRespo
certificateLastUpdated,
certificateHasPrivateKey,
certificateNonce,
- context)
- .block();
+ Context.NONE)
+ .getValue();
}
/**
- * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded
- * certificate.
+ * Verify certificate's private key possession.
+ *
+ * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre
+ * uploaded certificate.
*
* @param certificateName The mandatory logical name of the certificate, that the provisioning service uses to
* access.
@@ -1617,8 +1498,10 @@ private Mono> verifyCertificateWithResponseAs
}
/**
- * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded
- * certificate.
+ * Verify certificate's private key possession.
+ *
+ * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre
+ * uploaded certificate.
*
* @param certificateName The mandatory logical name of the certificate, that the provisioning service uses to
* access.
@@ -1715,8 +1598,10 @@ private Mono> verifyCertificateWithResponseAs
}
/**
- * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded
- * certificate.
+ * Verify certificate's private key possession.
+ *
+ * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre
+ * uploaded certificate.
*
* @param certificateName The mandatory logical name of the certificate, that the provisioning service uses to
* access.
@@ -1724,14 +1609,6 @@ private Mono> verifyCertificateWithResponseAs
* @param resourceGroupName Resource group name.
* @param provisioningServiceName Provisioning service name.
* @param request The name of the certificate.
- * @param certificateName1 Common Name for the certificate.
- * @param certificateRawBytes Raw data of certificate.
- * @param certificateIsVerified Indicates if the certificate has been verified by owner of the private key.
- * @param certificatePurpose Describe the purpose of the certificate.
- * @param certificateCreated Certificate creation time.
- * @param certificateLastUpdated Certificate last updated time.
- * @param certificateHasPrivateKey Indicates if the certificate contains private key.
- * @param certificateNonce Random number generated to indicate Proof of Possession.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ErrorDetailsException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -1743,15 +1620,15 @@ private Mono verifyCertificateAsync(
String ifMatch,
String resourceGroupName,
String provisioningServiceName,
- VerificationCodeRequest request,
- String certificateName1,
- byte[] certificateRawBytes,
- Boolean certificateIsVerified,
- CertificatePurpose certificatePurpose,
- OffsetDateTime certificateCreated,
- OffsetDateTime certificateLastUpdated,
- Boolean certificateHasPrivateKey,
- String certificateNonce) {
+ VerificationCodeRequest request) {
+ final String certificateName1 = null;
+ final byte[] certificateRawBytes = new byte[0];
+ final Boolean certificateIsVerified = null;
+ final CertificatePurpose certificatePurpose = null;
+ final OffsetDateTime certificateCreated = null;
+ final OffsetDateTime certificateLastUpdated = null;
+ final Boolean certificateHasPrivateKey = null;
+ final String certificateNonce = null;
return verifyCertificateWithResponseAsync(
certificateName,
ifMatch,
@@ -1770,8 +1647,10 @@ private Mono verifyCertificateAsync(
}
/**
- * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded
- * certificate.
+ * Verify certificate's private key possession.
+ *
+ * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre
+ * uploaded certificate.
*
* @param certificateName The mandatory logical name of the certificate, that the provisioning service uses to
* access.
@@ -1779,26 +1658,36 @@ private Mono verifyCertificateAsync(
* @param resourceGroupName Resource group name.
* @param provisioningServiceName Provisioning service name.
* @param request The name of the certificate.
+ * @param certificateName1 Common Name for the certificate.
+ * @param certificateRawBytes Raw data of certificate.
+ * @param certificateIsVerified Indicates if the certificate has been verified by owner of the private key.
+ * @param certificatePurpose Describe the purpose of the certificate.
+ * @param certificateCreated Certificate creation time.
+ * @param certificateLastUpdated Certificate last updated time.
+ * @param certificateHasPrivateKey Indicates if the certificate contains private key.
+ * @param certificateNonce Random number generated to indicate Proof of Possession.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 X509 Certificate on successful completion of {@link Mono}.
+ * @return the X509 Certificate along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono verifyCertificateAsync(
+ public Response verifyCertificateWithResponse(
String certificateName,
String ifMatch,
String resourceGroupName,
String provisioningServiceName,
- VerificationCodeRequest request) {
- final String certificateName1 = null;
- final byte[] certificateRawBytes = new byte[0];
- final Boolean certificateIsVerified = null;
- final CertificatePurpose certificatePurpose = null;
- final OffsetDateTime certificateCreated = null;
- final OffsetDateTime certificateLastUpdated = null;
- final Boolean certificateHasPrivateKey = null;
- final String certificateNonce = null;
+ VerificationCodeRequest request,
+ String certificateName1,
+ byte[] certificateRawBytes,
+ Boolean certificateIsVerified,
+ CertificatePurpose certificatePurpose,
+ OffsetDateTime certificateCreated,
+ OffsetDateTime certificateLastUpdated,
+ Boolean certificateHasPrivateKey,
+ String certificateNonce,
+ Context context) {
return verifyCertificateWithResponseAsync(
certificateName,
ifMatch,
@@ -1812,13 +1701,16 @@ private Mono verifyCertificateAsync(
certificateCreated,
certificateLastUpdated,
certificateHasPrivateKey,
- certificateNonce)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ certificateNonce,
+ context)
+ .block();
}
/**
- * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded
- * certificate.
+ * Verify certificate's private key possession.
+ *
+ * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre
+ * uploaded certificate.
*
* @param certificateName The mandatory logical name of the certificate, that the provisioning service uses to
* access.
@@ -1846,64 +1738,7 @@ public CertificateResponseInner verifyCertificate(
final OffsetDateTime certificateLastUpdated = null;
final Boolean certificateHasPrivateKey = null;
final String certificateNonce = null;
- return verifyCertificateAsync(
- certificateName,
- ifMatch,
- resourceGroupName,
- provisioningServiceName,
- request,
- certificateName1,
- certificateRawBytes,
- certificateIsVerified,
- certificatePurpose,
- certificateCreated,
- certificateLastUpdated,
- certificateHasPrivateKey,
- certificateNonce)
- .block();
- }
-
- /**
- * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded
- * certificate.
- *
- * @param certificateName The mandatory logical name of the certificate, that the provisioning service uses to
- * access.
- * @param ifMatch ETag of the certificate.
- * @param resourceGroupName Resource group name.
- * @param provisioningServiceName Provisioning service name.
- * @param request The name of the certificate.
- * @param certificateName1 Common Name for the certificate.
- * @param certificateRawBytes Raw data of certificate.
- * @param certificateIsVerified Indicates if the certificate has been verified by owner of the private key.
- * @param certificatePurpose Describe the purpose of the certificate.
- * @param certificateCreated Certificate creation time.
- * @param certificateLastUpdated Certificate last updated time.
- * @param certificateHasPrivateKey Indicates if the certificate contains private key.
- * @param certificateNonce Random number generated to indicate Proof of Possession.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws 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 X509 Certificate along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response verifyCertificateWithResponse(
- String certificateName,
- String ifMatch,
- String resourceGroupName,
- String provisioningServiceName,
- VerificationCodeRequest request,
- String certificateName1,
- byte[] certificateRawBytes,
- Boolean certificateIsVerified,
- CertificatePurpose certificatePurpose,
- OffsetDateTime certificateCreated,
- OffsetDateTime certificateLastUpdated,
- Boolean certificateHasPrivateKey,
- String certificateNonce,
- Context context) {
- return verifyCertificateWithResponseAsync(
+ return verifyCertificateWithResponse(
certificateName,
ifMatch,
resourceGroupName,
@@ -1917,7 +1752,7 @@ public Response verifyCertificateWithResponse(
certificateLastUpdated,
certificateHasPrivateKey,
certificateNonce,
- context)
- .block();
+ Context.NONE)
+ .getValue();
}
}
diff --git a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/implementation/DpsCertificatesImpl.java b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/implementation/DpsCertificatesImpl.java
index 939aa410ebbb..5cec4ef2294a 100644
--- a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/implementation/DpsCertificatesImpl.java
+++ b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/implementation/DpsCertificatesImpl.java
@@ -34,16 +34,6 @@ public DpsCertificatesImpl(
this.serviceManager = serviceManager;
}
- public CertificateResponse get(String certificateName, String resourceGroupName, String provisioningServiceName) {
- CertificateResponseInner inner =
- this.serviceClient().get(certificateName, resourceGroupName, provisioningServiceName);
- if (inner != null) {
- return new CertificateResponseImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response getWithResponse(
String certificateName,
String resourceGroupName,
@@ -65,9 +55,14 @@ public Response getWithResponse(
}
}
- public void delete(
- String resourceGroupName, String ifMatch, String provisioningServiceName, String certificateName) {
- this.serviceClient().delete(resourceGroupName, ifMatch, provisioningServiceName, certificateName);
+ public CertificateResponse get(String certificateName, String resourceGroupName, String provisioningServiceName) {
+ CertificateResponseInner inner =
+ this.serviceClient().get(certificateName, resourceGroupName, provisioningServiceName);
+ if (inner != null) {
+ return new CertificateResponseImpl(inner, this.manager());
+ } else {
+ return null;
+ }
}
public Response deleteWithResponse(
@@ -102,13 +97,9 @@ public Response deleteWithResponse(
context);
}
- public CertificateListDescription list(String resourceGroupName, String provisioningServiceName) {
- CertificateListDescriptionInner inner = this.serviceClient().list(resourceGroupName, provisioningServiceName);
- if (inner != null) {
- return new CertificateListDescriptionImpl(inner, this.manager());
- } else {
- return null;
- }
+ public void delete(
+ String resourceGroupName, String ifMatch, String provisioningServiceName, String certificateName) {
+ this.serviceClient().delete(resourceGroupName, ifMatch, provisioningServiceName, certificateName);
}
public Response listWithResponse(
@@ -126,14 +117,10 @@ public Response listWithResponse(
}
}
- public VerificationCodeResponse generateVerificationCode(
- String certificateName, String ifMatch, String resourceGroupName, String provisioningServiceName) {
- VerificationCodeResponseInner inner =
- this
- .serviceClient()
- .generateVerificationCode(certificateName, ifMatch, resourceGroupName, provisioningServiceName);
+ public CertificateListDescription list(String resourceGroupName, String provisioningServiceName) {
+ CertificateListDescriptionInner inner = this.serviceClient().list(resourceGroupName, provisioningServiceName);
if (inner != null) {
- return new VerificationCodeResponseImpl(inner, this.manager());
+ return new CertificateListDescriptionImpl(inner, this.manager());
} else {
return null;
}
@@ -181,18 +168,14 @@ public Response generateVerificationCodeWithResponse(
}
}
- public CertificateResponse verifyCertificate(
- String certificateName,
- String ifMatch,
- String resourceGroupName,
- String provisioningServiceName,
- VerificationCodeRequest request) {
- CertificateResponseInner inner =
+ public VerificationCodeResponse generateVerificationCode(
+ String certificateName, String ifMatch, String resourceGroupName, String provisioningServiceName) {
+ VerificationCodeResponseInner inner =
this
.serviceClient()
- .verifyCertificate(certificateName, ifMatch, resourceGroupName, provisioningServiceName, request);
+ .generateVerificationCode(certificateName, ifMatch, resourceGroupName, provisioningServiceName);
if (inner != null) {
- return new CertificateResponseImpl(inner, this.manager());
+ return new VerificationCodeResponseImpl(inner, this.manager());
} else {
return null;
}
@@ -242,6 +225,23 @@ public Response verifyCertificateWithResponse(
}
}
+ public CertificateResponse verifyCertificate(
+ String certificateName,
+ String ifMatch,
+ String resourceGroupName,
+ String provisioningServiceName,
+ VerificationCodeRequest request) {
+ CertificateResponseInner inner =
+ this
+ .serviceClient()
+ .verifyCertificate(certificateName, ifMatch, resourceGroupName, provisioningServiceName, request);
+ if (inner != null) {
+ return new CertificateResponseImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public CertificateResponse getById(String id) {
String certificateName = Utils.getValueFromIdByName(id, "certificates");
if (certificateName == null) {
diff --git a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/implementation/IotDpsClientBuilder.java b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/implementation/IotDpsClientBuilder.java
index a2cebb7e2bd5..3d7b97483de5 100644
--- a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/implementation/IotDpsClientBuilder.java
+++ b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/implementation/IotDpsClientBuilder.java
@@ -119,24 +119,26 @@ public IotDpsClientBuilder serializerAdapter(SerializerAdapter serializerAdapter
* @return an instance of IotDpsClientImpl.
*/
public IotDpsClientImpl buildClient() {
- if (endpoint == null) {
- this.endpoint = "https://management.azure.com";
- }
- if (environment == null) {
- this.environment = AzureEnvironment.AZURE;
- }
- if (pipeline == null) {
- this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
- }
- if (defaultPollInterval == null) {
- this.defaultPollInterval = Duration.ofSeconds(30);
- }
- if (serializerAdapter == null) {
- this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
- }
+ String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
+ AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
+ HttpPipeline localPipeline =
+ (pipeline != null)
+ ? pipeline
+ : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ Duration localDefaultPollInterval =
+ (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
+ SerializerAdapter localSerializerAdapter =
+ (serializerAdapter != null)
+ ? serializerAdapter
+ : SerializerFactory.createDefaultManagementSerializerAdapter();
IotDpsClientImpl client =
new IotDpsClientImpl(
- pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ localPipeline,
+ localSerializerAdapter,
+ localDefaultPollInterval,
+ localEnvironment,
+ subscriptionId,
+ localEndpoint);
return client;
}
}
diff --git a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/implementation/IotDpsClientImpl.java b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/implementation/IotDpsClientImpl.java
index eb8498c84755..f291a3fe3425 100644
--- a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/implementation/IotDpsClientImpl.java
+++ b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/implementation/IotDpsClientImpl.java
@@ -168,7 +168,7 @@ public IotDpsResourcesClient getIotDpsResources() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2022-02-05";
+ this.apiVersion = "2022-12-12";
this.operations = new OperationsClientImpl(this);
this.dpsCertificates = new DpsCertificatesClientImpl(this);
this.iotDpsResources = new IotDpsResourcesClientImpl(this);
diff --git a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/implementation/IotDpsResourcesClientImpl.java b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/implementation/IotDpsResourcesClientImpl.java
index fbb9bb4d1ec6..84c6db620a69 100644
--- a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/implementation/IotDpsResourcesClientImpl.java
+++ b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/main/java/com/azure/resourcemanager/deviceprovisioningservices/implementation/IotDpsResourcesClientImpl.java
@@ -78,7 +78,7 @@ public final class IotDpsResourcesClientImpl implements IotDpsResourcesClient {
*/
@Host("{$host}")
@ServiceInterface(name = "IotDpsClientIotDpsRe")
- private interface IotDpsResourcesService {
+ public interface IotDpsResourcesService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices"
@@ -378,7 +378,9 @@ Mono> listKeysNext(
}
/**
- * Get the metadata of the provisioning service without SAS keys.
+ * Get the non-security related metadata of the provisioning service.
+ *
+ * Get the metadata of the provisioning service without SAS keys.
*
* @param resourceGroupName Resource group name.
* @param provisioningServiceName Name of the provisioning service to retrieve.
@@ -429,7 +431,9 @@ private Mono> getByResourceGroupWi
}
/**
- * Get the metadata of the provisioning service without SAS keys.
+ * Get the non-security related metadata of the provisioning service.
+ *
+ * Get the metadata of the provisioning service without SAS keys.
*
* @param resourceGroupName Resource group name.
* @param provisioningServiceName Name of the provisioning service to retrieve.
@@ -478,7 +482,9 @@ private Mono> getByResourceGroupWi
}
/**
- * Get the metadata of the provisioning service without SAS keys.
+ * Get the non-security related metadata of the provisioning service.
+ *
+ * Get the metadata of the provisioning service without SAS keys.
*
* @param resourceGroupName Resource group name.
* @param provisioningServiceName Name of the provisioning service to retrieve.
@@ -495,42 +501,48 @@ private Mono getByResourceGroupAsync(
}
/**
- * Get the metadata of the provisioning service without SAS keys.
+ * Get the non-security related metadata of the provisioning service.
+ *
+ * Get the metadata of the provisioning service without SAS keys.
*
* @param resourceGroupName Resource group name.
* @param provisioningServiceName Name of the provisioning service to retrieve.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 metadata of the provisioning service without SAS keys.
+ * @return the metadata of the provisioning service without SAS keys along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ProvisioningServiceDescriptionInner getByResourceGroup(
- String resourceGroupName, String provisioningServiceName) {
- return getByResourceGroupAsync(resourceGroupName, provisioningServiceName).block();
+ public Response getByResourceGroupWithResponse(
+ String resourceGroupName, String provisioningServiceName, Context context) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, provisioningServiceName, context).block();
}
/**
- * Get the metadata of the provisioning service without SAS keys.
+ * Get the non-security related metadata of the provisioning service.
+ *
+ * Get the metadata of the provisioning service without SAS keys.
*
* @param resourceGroupName Resource group name.
* @param provisioningServiceName Name of the provisioning service to retrieve.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 metadata of the provisioning service without SAS keys along with {@link Response}.
+ * @return the metadata of the provisioning service without SAS keys.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getByResourceGroupWithResponse(
- String resourceGroupName, String provisioningServiceName, Context context) {
- return getByResourceGroupWithResponseAsync(resourceGroupName, provisioningServiceName, context).block();
+ public ProvisioningServiceDescriptionInner getByResourceGroup(
+ String resourceGroupName, String provisioningServiceName) {
+ return getByResourceGroupWithResponse(resourceGroupName, provisioningServiceName, Context.NONE).getValue();
}
/**
- * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to retrieve
- * the provisioning service metadata and security metadata, and then combine them with the modified values in a new
- * body to update the provisioning service.
+ * Create or update the metadata of the provisioning service.
+ *
+ * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to
+ * retrieve the provisioning service metadata and security metadata, and then combine them with the modified values
+ * in a new body to update the provisioning service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -591,9 +603,11 @@ private Mono>> createOrUpdateWithResponseAsync(
}
/**
- * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to retrieve
- * the provisioning service metadata and security metadata, and then combine them with the modified values in a new
- * body to update the provisioning service.
+ * Create or update the metadata of the provisioning service.
+ *
+ * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to
+ * retrieve the provisioning service metadata and security metadata, and then combine them with the modified values
+ * in a new body to update the provisioning service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -653,9 +667,11 @@ private Mono>> createOrUpdateWithResponseAsync(
}
/**
- * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to retrieve
- * the provisioning service metadata and security metadata, and then combine them with the modified values in a new
- * body to update the provisioning service.
+ * Create or update the metadata of the provisioning service.
+ *
+ * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to
+ * retrieve the provisioning service metadata and security metadata, and then combine them with the modified values
+ * in a new body to update the provisioning service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -684,9 +700,11 @@ private Mono>> createOrUpdateWithResponseAsync(
}
/**
- * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to retrieve
- * the provisioning service metadata and security metadata, and then combine them with the modified values in a new
- * body to update the provisioning service.
+ * Create or update the metadata of the provisioning service.
+ *
+ * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to
+ * retrieve the provisioning service metadata and security metadata, and then combine them with the modified values
+ * in a new body to update the provisioning service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -718,9 +736,11 @@ private Mono>> createOrUpdateWithResponseAsync(
}
/**
- * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to retrieve
- * the provisioning service metadata and security metadata, and then combine them with the modified values in a new
- * body to update the provisioning service.
+ * Create or update the metadata of the provisioning service.
+ *
+ * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to
+ * retrieve the provisioning service metadata and security metadata, and then combine them with the modified values
+ * in a new body to update the provisioning service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -736,13 +756,17 @@ private Mono>> createOrUpdateWithResponseAsync(
String resourceGroupName,
String provisioningServiceName,
ProvisioningServiceDescriptionInner iotDpsDescription) {
- return beginCreateOrUpdateAsync(resourceGroupName, provisioningServiceName, iotDpsDescription).getSyncPoller();
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, provisioningServiceName, iotDpsDescription)
+ .getSyncPoller();
}
/**
- * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to retrieve
- * the provisioning service metadata and security metadata, and then combine them with the modified values in a new
- * body to update the provisioning service.
+ * Create or update the metadata of the provisioning service.
+ *
+ * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to
+ * retrieve the provisioning service metadata and security metadata, and then combine them with the modified values
+ * in a new body to update the provisioning service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -760,14 +784,17 @@ private Mono>> createOrUpdateWithResponseAsync(
String provisioningServiceName,
ProvisioningServiceDescriptionInner iotDpsDescription,
Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, provisioningServiceName, iotDpsDescription, context)
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, provisioningServiceName, iotDpsDescription, context)
.getSyncPoller();
}
/**
- * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to retrieve
- * the provisioning service metadata and security metadata, and then combine them with the modified values in a new
- * body to update the provisioning service.
+ * Create or update the metadata of the provisioning service.
+ *
+ * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to
+ * retrieve the provisioning service metadata and security metadata, and then combine them with the modified values
+ * in a new body to update the provisioning service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -788,9 +815,11 @@ private Mono createOrUpdateAsync(
}
/**
- * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to retrieve
- * the provisioning service metadata and security metadata, and then combine them with the modified values in a new
- * body to update the provisioning service.
+ * Create or update the metadata of the provisioning service.
+ *
+ * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to
+ * retrieve the provisioning service metadata and security metadata, and then combine them with the modified values
+ * in a new body to update the provisioning service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -813,9 +842,11 @@ private Mono createOrUpdateAsync(
}
/**
- * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to retrieve
- * the provisioning service metadata and security metadata, and then combine them with the modified values in a new
- * body to update the provisioning service.
+ * Create or update the metadata of the provisioning service.
+ *
+ * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to
+ * retrieve the provisioning service metadata and security metadata, and then combine them with the modified values
+ * in a new body to update the provisioning service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -834,9 +865,11 @@ public ProvisioningServiceDescriptionInner createOrUpdate(
}
/**
- * Create or update the metadata of the provisioning service. The usual pattern to modify a property is to retrieve
- * the provisioning service metadata and security metadata, and then combine them with the modified values in a new
- * body to update the provisioning service.
+ * Create or update the metadata of the provisioning service.
+ *
+ *
Create or update the metadata of the provisioning service. The usual pattern to modify a property is to
+ * retrieve the provisioning service metadata and security metadata, and then combine them with the modified values
+ * in a new body to update the provisioning service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -857,7 +890,9 @@ public ProvisioningServiceDescriptionInner createOrUpdate(
}
/**
- * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
+ * Update an existing provisioning service's tags.
+ *
+ *
Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -917,7 +952,9 @@ private Mono>> updateWithResponseAsync(
}
/**
- * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
+ * Update an existing provisioning service's tags.
+ *
+ * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -978,7 +1015,9 @@ private Mono>> updateWithResponseAsync(
}
/**
- * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
+ * Update an existing provisioning service's tags.
+ *
+ * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -1005,7 +1044,9 @@ private Mono>> updateWithResponseAsync(
}
/**
- * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
+ * Update an existing provisioning service's tags.
+ *
+ * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -1037,7 +1078,9 @@ private Mono>> updateWithResponseAsync(
}
/**
- * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
+ * Update an existing provisioning service's tags.
+ *
+ * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -1050,11 +1093,15 @@ private Mono>> updateWithResponseAsync(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ProvisioningServiceDescriptionInner> beginUpdate(
String resourceGroupName, String provisioningServiceName, TagsResource provisioningServiceTags) {
- return beginUpdateAsync(resourceGroupName, provisioningServiceName, provisioningServiceTags).getSyncPoller();
+ return this
+ .beginUpdateAsync(resourceGroupName, provisioningServiceName, provisioningServiceTags)
+ .getSyncPoller();
}
/**
- * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
+ * Update an existing provisioning service's tags.
+ *
+ * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -1071,12 +1118,15 @@ public SyncPoller, ProvisioningS
String provisioningServiceName,
TagsResource provisioningServiceTags,
Context context) {
- return beginUpdateAsync(resourceGroupName, provisioningServiceName, provisioningServiceTags, context)
+ return this
+ .beginUpdateAsync(resourceGroupName, provisioningServiceName, provisioningServiceTags, context)
.getSyncPoller();
}
/**
- * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
+ * Update an existing provisioning service's tags.
+ *
+ * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -1095,7 +1145,9 @@ private Mono updateAsync(
}
/**
- * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
+ * Update an existing provisioning service's tags.
+ *
+ * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -1118,7 +1170,9 @@ private Mono updateAsync(
}
/**
- * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
+ * Update an existing provisioning service's tags.
+ *
+ * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -1135,7 +1189,9 @@ public ProvisioningServiceDescriptionInner update(
}
/**
- * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
+ * Update an existing provisioning service's tags.
+ *
+ *
Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to create or update.
@@ -1156,7 +1212,9 @@ public ProvisioningServiceDescriptionInner update(
}
/**
- * Deletes the Provisioning Service.
+ * Delete the Provisioning Service
+ *
+ *
Deletes the Provisioning Service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to delete.
@@ -1206,7 +1264,9 @@ private Mono>> deleteWithResponseAsync(
}
/**
- * Deletes the Provisioning Service.
+ * Delete the Provisioning Service
+ *
+ * Deletes the Provisioning Service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to delete.
@@ -1254,7 +1314,9 @@ private Mono>> deleteWithResponseAsync(
}
/**
- * Deletes the Provisioning Service.
+ * Delete the Provisioning Service
+ *
+ * Deletes the Provisioning Service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to delete.
@@ -1274,7 +1336,9 @@ private PollerFlux, Void> beginDeleteAsync(
}
/**
- * Deletes the Provisioning Service.
+ * Delete the Provisioning Service
+ *
+ * Deletes the Provisioning Service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to delete.
@@ -1296,7 +1360,9 @@ private PollerFlux, Void> beginDeleteAsync(
}
/**
- * Deletes the Provisioning Service.
+ * Delete the Provisioning Service
+ *
+ * Deletes the Provisioning Service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to delete.
@@ -1307,11 +1373,13 @@ private PollerFlux, Void> beginDeleteAsync(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(String resourceGroupName, String provisioningServiceName) {
- return beginDeleteAsync(resourceGroupName, provisioningServiceName).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, provisioningServiceName).getSyncPoller();
}
/**
- * Deletes the Provisioning Service.
+ * Delete the Provisioning Service
+ *
+ * Deletes the Provisioning Service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to delete.
@@ -1324,11 +1392,13 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String provisioningServiceName, Context context) {
- return beginDeleteAsync(resourceGroupName, provisioningServiceName, context).getSyncPoller();
+ return this.beginDeleteAsync(resourceGroupName, provisioningServiceName, context).getSyncPoller();
}
/**
- * Deletes the Provisioning Service.
+ * Delete the Provisioning Service
+ *
+ * Deletes the Provisioning Service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to delete.
@@ -1345,7 +1415,9 @@ private Mono deleteAsync(String resourceGroupName, String provisioningServ
}
/**
- * Deletes the Provisioning Service.
+ * Delete the Provisioning Service
+ *
+ * Deletes the Provisioning Service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to delete.
@@ -1363,7 +1435,9 @@ private Mono deleteAsync(String resourceGroupName, String provisioningServ
}
/**
- * Deletes the Provisioning Service.
+ * Delete the Provisioning Service
+ *
+ * Deletes the Provisioning Service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to delete.
@@ -1377,7 +1451,9 @@ public void delete(String resourceGroupName, String provisioningServiceName) {
}
/**
- * Deletes the Provisioning Service.
+ * Delete the Provisioning Service
+ *
+ *
Deletes the Provisioning Service.
*
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to delete.
@@ -1392,7 +1468,9 @@ public void delete(String resourceGroupName, String provisioningServiceName, Con
}
/**
- * List all the provisioning services for a given subscription id.
+ * Get all the provisioning services in a subscription.
+ *
+ *
List all the provisioning services for a given subscription id.
*
* @throws ErrorDetailsException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -1437,7 +1515,9 @@ private Mono> listSinglePageA
}
/**
- * List all the provisioning services for a given subscription id.
+ * Get all the provisioning services in a subscription.
+ *
+ * List all the provisioning services for a given subscription id.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1481,7 +1561,9 @@ private Mono> listSinglePageA
}
/**
- * List all the provisioning services for a given subscription id.
+ * Get all the provisioning services in a subscription.
+ *
+ * List all the provisioning services for a given subscription id.
*
* @throws ErrorDetailsException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -1494,7 +1576,9 @@ private PagedFlux listAsync() {
}
/**
- * List all the provisioning services for a given subscription id.
+ * Get all the provisioning services in a subscription.
+ *
+ * List all the provisioning services for a given subscription id.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1509,7 +1593,9 @@ private PagedFlux listAsync(Context context
}
/**
- * List all the provisioning services for a given subscription id.
+ * Get all the provisioning services in a subscription.
+ *
+ * List all the provisioning services for a given subscription id.
*
* @throws ErrorDetailsException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -1521,7 +1607,9 @@ public PagedIterable list() {
}
/**
- * List all the provisioning services for a given subscription id.
+ * Get all the provisioning services in a subscription.
+ *
+ * List all the provisioning services for a given subscription id.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1861,15 +1949,23 @@ private Mono getOperationResultAsync(
* @param provisioningServiceName Name of provisioning service that the operation is running on.
* @param asyncinfo Async header used to poll on the status of the operation, obtained while creating the long
* running operation.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 status of a long running operation, such as create, update or delete a provisioning service.
+ * @return the status of a long running operation, such as create, update or delete a provisioning service along
+ * with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public AsyncOperationResultInner getOperationResult(
- String operationId, String resourceGroupName, String provisioningServiceName, String asyncinfo) {
- return getOperationResultAsync(operationId, resourceGroupName, provisioningServiceName, asyncinfo).block();
+ public Response getOperationResultWithResponse(
+ String operationId,
+ String resourceGroupName,
+ String provisioningServiceName,
+ String asyncinfo,
+ Context context) {
+ return getOperationResultWithResponseAsync(
+ operationId, resourceGroupName, provisioningServiceName, asyncinfo, context)
+ .block();
}
/**
@@ -1880,27 +1976,23 @@ public AsyncOperationResultInner getOperationResult(
* @param provisioningServiceName Name of provisioning service that the operation is running on.
* @param asyncinfo Async header used to poll on the status of the operation, obtained while creating the long
* running operation.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 status of a long running operation, such as create, update or delete a provisioning service along
- * with {@link Response}.
+ * @return the status of a long running operation, such as create, update or delete a provisioning service.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getOperationResultWithResponse(
- String operationId,
- String resourceGroupName,
- String provisioningServiceName,
- String asyncinfo,
- Context context) {
- return getOperationResultWithResponseAsync(
- operationId, resourceGroupName, provisioningServiceName, asyncinfo, context)
- .block();
+ public AsyncOperationResultInner getOperationResult(
+ String operationId, String resourceGroupName, String provisioningServiceName, String asyncinfo) {
+ return getOperationResultWithResponse(
+ operationId, resourceGroupName, provisioningServiceName, asyncinfo, Context.NONE)
+ .getValue();
}
/**
- * Gets the list of valid SKUs and tiers for a provisioning service.
+ * Get the list of valid SKUs for a provisioning service.
+ *
+ * Gets the list of valid SKUs and tiers for a provisioning service.
*
* @param provisioningServiceName Name of provisioning service.
* @param resourceGroupName Name of resource group.
@@ -1960,7 +2052,9 @@ private Mono> listValidSkusSinglePageAsy
}
/**
- * Gets the list of valid SKUs and tiers for a provisioning service.
+ * Get the list of valid SKUs for a provisioning service.
+ *
+ * Gets the list of valid SKUs and tiers for a provisioning service.
*
* @param provisioningServiceName Name of provisioning service.
* @param resourceGroupName Name of resource group.
@@ -2018,7 +2112,9 @@ private Mono> listValidSkusSinglePageAsy
}
/**
- * Gets the list of valid SKUs and tiers for a provisioning service.
+ * Get the list of valid SKUs for a provisioning service.
+ *
+ * Gets the list of valid SKUs and tiers for a provisioning service.
*
* @param provisioningServiceName Name of provisioning service.
* @param resourceGroupName Name of resource group.
@@ -2036,7 +2132,9 @@ private PagedFlux listValidSkusAsync(
}
/**
- * Gets the list of valid SKUs and tiers for a provisioning service.
+ * Get the list of valid SKUs for a provisioning service.
+ *
+ * Gets the list of valid SKUs and tiers for a provisioning service.
*
* @param provisioningServiceName Name of provisioning service.
* @param resourceGroupName Name of resource group.
@@ -2055,7 +2153,9 @@ private PagedFlux listValidSkusAsync(
}
/**
- * Gets the list of valid SKUs and tiers for a provisioning service.
+ * Get the list of valid SKUs for a provisioning service.
+ *
+ * Gets the list of valid SKUs and tiers for a provisioning service.
*
* @param provisioningServiceName Name of provisioning service.
* @param resourceGroupName Name of resource group.
@@ -2072,7 +2172,9 @@ public PagedIterable listValidSkus(
}
/**
- * Gets the list of valid SKUs and tiers for a provisioning service.
+ * Get the list of valid SKUs for a provisioning service.
+ *
+ * Gets the list of valid SKUs and tiers for a provisioning service.
*
* @param provisioningServiceName Name of provisioning service.
* @param resourceGroupName Name of resource group.
@@ -2090,8 +2192,10 @@ public PagedIterable listValidSkus(
}
/**
- * Check if a provisioning service name is available. This will validate if the name is syntactically valid and if
- * the name is usable.
+ * Check if a provisioning service name is available.
+ *
+ * Check if a provisioning service name is available. This will validate if the name is syntactically valid and
+ * if the name is usable.
*
* @param arguments Set the name parameter in the OperationInputs structure to the name of the provisioning service
* to check.
@@ -2136,8 +2240,10 @@ private Mono> checkProvisioningServiceNameAv
}
/**
- * Check if a provisioning service name is available. This will validate if the name is syntactically valid and if
- * the name is usable.
+ * Check if a provisioning service name is available.
+ *
+ * Check if a provisioning service name is available. This will validate if the name is syntactically valid and
+ * if the name is usable.
*
* @param arguments Set the name parameter in the OperationInputs structure to the name of the provisioning service
* to check.
@@ -2180,8 +2286,10 @@ private Mono> checkProvisioningServiceNameAv
}
/**
- * Check if a provisioning service name is available. This will validate if the name is syntactically valid and if
- * the name is usable.
+ * Check if a provisioning service name is available.
+ *
+ * Check if a provisioning service name is available. This will validate if the name is syntactically valid and
+ * if the name is usable.
*
* @param arguments Set the name parameter in the OperationInputs structure to the name of the provisioning service
* to check.
@@ -2197,41 +2305,47 @@ private Mono checkProvisioningServiceNameAvailability
}
/**
- * Check if a provisioning service name is available. This will validate if the name is syntactically valid and if
- * the name is usable.
+ * Check if a provisioning service name is available.
+ *
+ * Check if a provisioning service name is available. This will validate if the name is syntactically valid and
+ * if the name is usable.
*
* @param arguments Set the name parameter in the OperationInputs structure to the name of the provisioning service
* to check.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ErrorDetailsException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of name availability.
+ * @return description of name availability along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public NameAvailabilityInfoInner checkProvisioningServiceNameAvailability(OperationInputs arguments) {
- return checkProvisioningServiceNameAvailabilityAsync(arguments).block();
+ public Response checkProvisioningServiceNameAvailabilityWithResponse(
+ OperationInputs arguments, Context context) {
+ return checkProvisioningServiceNameAvailabilityWithResponseAsync(arguments, context).block();
}
/**
- * Check if a provisioning service name is available. This will validate if the name is syntactically valid and if
- * the name is usable.
+ * Check if a provisioning service name is available.
+ *
+ * Check if a provisioning service name is available. This will validate if the name is syntactically valid and
+ * if the name is usable.
*
* @param arguments Set the name parameter in the OperationInputs structure to the name of the provisioning service
* to check.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ErrorDetailsException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return description of name availability along with {@link Response}.
+ * @return description of name availability.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response checkProvisioningServiceNameAvailabilityWithResponse(
- OperationInputs arguments, Context context) {
- return checkProvisioningServiceNameAvailabilityWithResponseAsync(arguments, context).block();
+ public NameAvailabilityInfoInner checkProvisioningServiceNameAvailability(OperationInputs arguments) {
+ return checkProvisioningServiceNameAvailabilityWithResponse(arguments, Context.NONE).getValue();
}
/**
- * List the primary and secondary keys for a provisioning service.
+ * Get the security metadata for a provisioning service.
+ *
+ * List the primary and secondary keys for a provisioning service.
*
* @param provisioningServiceName The provisioning service name to get the shared access keys for.
* @param resourceGroupName resource group name.
@@ -2290,7 +2404,9 @@ private Mono> listKey
}
/**
- * List the primary and secondary keys for a provisioning service.
+ * Get the security metadata for a provisioning service.
+ *
+ * List the primary and secondary keys for a provisioning service.
*
* @param provisioningServiceName The provisioning service name to get the shared access keys for.
* @param resourceGroupName resource group name.
@@ -2347,7 +2463,9 @@ private Mono> listKey
}
/**
- * List the primary and secondary keys for a provisioning service.
+ * Get the security metadata for a provisioning service.
+ *
+ * List the primary and secondary keys for a provisioning service.
*
* @param provisioningServiceName The provisioning service name to get the shared access keys for.
* @param resourceGroupName resource group name.
@@ -2365,7 +2483,9 @@ private PagedFlux listKeysAsync(
}
/**
- * List the primary and secondary keys for a provisioning service.
+ * Get the security metadata for a provisioning service.
+ *
+ * List the primary and secondary keys for a provisioning service.
*
* @param provisioningServiceName The provisioning service name to get the shared access keys for.
* @param resourceGroupName resource group name.
@@ -2384,7 +2504,9 @@ private PagedFlux listKeysAsync(
}
/**
- * List the primary and secondary keys for a provisioning service.
+ * Get the security metadata for a provisioning service.
+ *
+ * List the primary and secondary keys for a provisioning service.
*
* @param provisioningServiceName The provisioning service name to get the shared access keys for.
* @param resourceGroupName resource group name.
@@ -2400,7 +2522,9 @@ public PagedIterable listKeys(
}
/**
- * List the primary and secondary keys for a provisioning service.
+ * Get the security metadata for a provisioning service.
+ *
+ * List the primary and secondary keys for a provisioning service.
*
* @param provisioningServiceName The provisioning service name to get the shared access keys for.
* @param resourceGroupName resource group name.
@@ -2417,7 +2541,9 @@ public PagedIterable listKeys(
}
/**
- * List primary and secondary keys for a specific key name.
+ * Get a shared access policy by name from a provisioning service.
+ *
+ * List primary and secondary keys for a specific key name.
*
* @param provisioningServiceName Name of the provisioning service.
* @param keyName Logical key name to get key-values for.
@@ -2473,7 +2599,9 @@ private Mono> listKeysForK
}
/**
- * List primary and secondary keys for a specific key name.
+ * Get a shared access policy by name from a provisioning service.
+ *
+ * List primary and secondary keys for a specific key name.
*
* @param provisioningServiceName Name of the provisioning service.
* @param keyName Logical key name to get key-values for.
@@ -2527,7 +2655,9 @@ private Mono