Skip to content

Commit

Permalink
CodeGen from PR 24857 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge d35aea7e68de3665dce3dd4d10238a66d875e425 into 1af2861030243b06ee35172c95899f4809eedfc7
  • Loading branch information
SDKAuto committed Jul 18, 2023
1 parent 97a1769 commit a7f857f
Show file tree
Hide file tree
Showing 171 changed files with 14,014 additions and 3,639 deletions.
4 changes: 3 additions & 1 deletion sdk/databox/azure-resourcemanager-databox/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.4 (Unreleased)
## 1.0.0-beta.1 (2023-07-18)

- Azure Resource Manager DataBox client library for Java. This package contains Microsoft Azure SDK for DataBox Management SDK. Package tag package-2022-12. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
4 changes: 3 additions & 1 deletion sdk/databox/azure-resourcemanager-databox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-databox</artifactId>
<version>1.0.0-beta.3</version>
<version>1.0.0-beta.4</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down Expand Up @@ -103,3 +103,5 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Fdatabox%2Fazure-resourcemanager-databox%2FREADME.png)
1,773 changes: 1,619 additions & 154 deletions sdk/databox/azure-resourcemanager-databox/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public DataBoxManager authenticate(TokenCredential credential, AzureProfile prof
.append("-")
.append("com.azure.resourcemanager.databox")
.append("/")
.append("1.0.0-beta.3");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -285,7 +285,7 @@ public Operations operations() {
}

/**
* Gets the resource collection API of Jobs. It manages JobResource.
* Gets the resource collection API of Jobs. It manages JobResource, JobResourceAutoGenerated.
*
* @return Resource collection API of Jobs.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ public interface DataBoxManagementClient {
*/
String getEndpoint();

/**
* Gets Api Version.
*
* @return the apiVersion value.
*/
String getApiVersion();

/**
* Gets The HTTP pipeline to send requests through.
*
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,35 @@ Response<Void> mitigateWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void mitigate(String jobName, String resourceGroupName, MitigateJobRequest mitigateJobRequest);

/**
* Request to mitigate for a given job.
*
* @param jobName The name of the job Resource within the specified resource group. job names must be between 3 and
* 24 characters in length and use any alphanumeric and underscore only.
* @param resourceGroupName The Resource Group Name.
* @param mitigateJobRequest Mitigation Request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> mitigateWithResponse(
String jobName, String resourceGroupName, MitigateJobRequest mitigateJobRequest, Context context);

/**
* Request to mitigate for a given job.
*
* @param jobName The name of the job Resource within the specified resource group. job names must be between 3 and
* 24 characters in length and use any alphanumeric and underscore only.
* @param resourceGroupName The Resource Group Name.
* @param mitigateJobRequest Mitigation Request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void mitigate(String jobName, String resourceGroupName, MitigateJobRequest mitigateJobRequest);
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.databox.fluent.models.AddressValidationOutputAutoGeneratedInner;
import com.azure.resourcemanager.databox.fluent.models.AddressValidationOutputInner;
import com.azure.resourcemanager.databox.fluent.models.RegionConfigurationResponseInner;
import com.azure.resourcemanager.databox.fluent.models.SkuInformationInner;
import com.azure.resourcemanager.databox.fluent.models.ValidationResponseAutoGeneratedInner;
import com.azure.resourcemanager.databox.fluent.models.ValidationResponseInner;
import com.azure.resourcemanager.databox.models.AvailableSkuRequest;
import com.azure.resourcemanager.databox.models.RegionConfigurationRequest;
Expand Down Expand Up @@ -140,6 +142,189 @@ Response<ValidationResponseInner> validateInputsWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
ValidationResponseInner validateInputs(String location, ValidationRequest validationRequest);

/**
* This API provides configuration details specific to given region/location at Subscription level.
*
* @param location The location of the resource.
* @param regionConfigurationRequest Request body to get the configuration for the region.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return configuration response specific to a region along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<RegionConfigurationResponseInner> regionConfigurationWithResponse(
String location, RegionConfigurationRequest regionConfigurationRequest, Context context);

/**
* This API provides configuration details specific to given region/location at Subscription level.
*
* @param location The location of the resource.
* @param regionConfigurationRequest Request body to get the configuration for the region.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return configuration response specific to a region.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
RegionConfigurationResponseInner regionConfiguration(
String location, RegionConfigurationRequest regionConfigurationRequest);

/**
* This API provides configuration details specific to given region/location at Resource group level.
*
* @param resourceGroupName The Resource Group Name.
* @param location The location of the resource.
* @param regionConfigurationRequest Request body to get the configuration for the region at resource group level.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return configuration response specific to a region along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<RegionConfigurationResponseInner> regionConfigurationByResourceGroupWithResponse(
String resourceGroupName,
String location,
RegionConfigurationRequest regionConfigurationRequest,
Context context);

/**
* This API provides configuration details specific to given region/location at Resource group level.
*
* @param resourceGroupName The Resource Group Name.
* @param location The location of the resource.
* @param regionConfigurationRequest Request body to get the configuration for the region at resource group level.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return configuration response specific to a region.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
RegionConfigurationResponseInner regionConfigurationByResourceGroup(
String resourceGroupName, String location, RegionConfigurationRequest regionConfigurationRequest);

/**
* This method provides the list of available skus for the given subscription, resource group and location.
*
* @param resourceGroupName The Resource Group Name.
* @param location The location of the resource.
* @param availableSkuRequest Filters for showing the available skus.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the available skus operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<SkuInformationInner> listAvailableSkusByResourceGroup(
String resourceGroupName, String location, AvailableSkuRequest availableSkuRequest);

/**
* This method provides the list of available skus for the given subscription, resource group and location.
*
* @param resourceGroupName The Resource Group Name.
* @param location The location of the resource.
* @param availableSkuRequest Filters for showing the available skus.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the available skus operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<SkuInformationInner> listAvailableSkusByResourceGroup(
String resourceGroupName, String location, AvailableSkuRequest availableSkuRequest, Context context);

/**
* [DEPRECATED NOTICE: This operation will soon be removed]. This method validates the customer shipping address and
* provide alternate addresses if any.
*
* @param location The location of the resource.
* @param validateAddress Shipping address of the customer.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return output of the address validation api along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<AddressValidationOutputAutoGeneratedInner> validateAddressWithResponse(
String location, ValidateAddress validateAddress, Context context);

/**
* [DEPRECATED NOTICE: This operation will soon be removed]. This method validates the customer shipping address and
* provide alternate addresses if any.
*
* @param location The location of the resource.
* @param validateAddress Shipping address of the customer.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return output of the address validation api.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AddressValidationOutputAutoGeneratedInner validateAddress(String location, ValidateAddress validateAddress);

/**
* This method does all necessary pre-job creation validation under resource group.
*
* @param resourceGroupName The Resource Group Name.
* @param location The location of the resource.
* @param validationRequest Inputs of the customer.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response of pre job creation validations along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ValidationResponseAutoGeneratedInner> validateInputsByResourceGroupWithResponse(
String resourceGroupName, String location, ValidationRequest validationRequest, Context context);

/**
* This method does all necessary pre-job creation validation under resource group.
*
* @param resourceGroupName The Resource Group Name.
* @param location The location of the resource.
* @param validationRequest Inputs of the customer.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response of pre job creation validations.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ValidationResponseAutoGeneratedInner validateInputsByResourceGroup(
String resourceGroupName, String location, ValidationRequest validationRequest);

/**
* This method does all necessary pre-job creation validation under subscription.
*
* @param location The location of the resource.
* @param validationRequest Inputs of the customer.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response of pre job creation validations along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ValidationResponseAutoGeneratedInner> validateInputsWithResponse(
String location, ValidationRequest validationRequest, Context context);

/**
* This method does all necessary pre-job creation validation under subscription.
*
* @param location The location of the resource.
* @param validationRequest Inputs of the customer.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response of pre job creation validations.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ValidationResponseAutoGeneratedInner validateInputs(String location, ValidationRequest validationRequest);

/**
* This API provides configuration details specific to given region/location at Subscription level.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.databox.fluent.models;

import com.azure.core.annotation.Immutable;
import com.azure.resourcemanager.databox.models.AddressValidationPropertiesAutoGenerated;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Output of the address validation api. */
@Immutable
public final class AddressValidationOutputAutoGeneratedInner {
/*
* The address validation properties.
*/
@JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
private AddressValidationPropertiesAutoGenerated properties;

/** Creates an instance of AddressValidationOutputAutoGeneratedInner class. */
public AddressValidationOutputAutoGeneratedInner() {
}

/**
* Get the properties property: The address validation properties.
*
* @return the properties value.
*/
public AddressValidationPropertiesAutoGenerated properties() {
return this.properties;
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (properties() != null) {
properties().validate();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ public final class JobProperties {
@JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
private StageName status;

/*
* Name of the stage where delay might be present.
*/
@JsonProperty(value = "delayedStage", access = JsonProperty.Access.WRITE_ONLY)
private StageName delayedStage;

/*
* Time at which the job was started in UTC ISO 8601 format.
*/
Expand Down Expand Up @@ -197,6 +203,15 @@ public StageName status() {
return this.status;
}

/**
* Get the delayedStage property: Name of the stage where delay might be present.
*
* @return the delayedStage value.
*/
public StageName delayedStage() {
return this.delayedStage;
}

/**
* Get the startTime property: Time at which the job was started in UTC ISO 8601 format.
*
Expand Down
Loading

0 comments on commit a7f857f

Please sign in to comment.