diff --git a/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/BillingManagementClientImpl.java b/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/BillingManagementClientImpl.java index 9e8c1e69dc0..3fe0c7f49b2 100644 --- a/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/BillingManagementClientImpl.java +++ b/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/BillingManagementClientImpl.java @@ -28,11 +28,11 @@ public AzureClient getAzureClient() { return this.azureClient; } - /** Version of the API to be used with the client request. The current version is 2017-04-24-preview. */ + /** Version of the API to be used with the client request. The current version is 2018-03-01-preview. */ private String apiVersion; /** - * Gets Version of the API to be used with the client request. The current version is 2017-04-24-preview. + * Gets Version of the API to be used with the client request. The current version is 2018-03-01-preview. * * @return the apiVersion value. */ @@ -132,6 +132,19 @@ public BillingManagementClientImpl withGenerateClientRequestId(boolean generateC return this; } + /** + * The EnrollmentAccountsInner object to access its operations. + */ + private EnrollmentAccountsInner enrollmentAccounts; + + /** + * Gets the EnrollmentAccountsInner object to access its operations. + * @return the EnrollmentAccountsInner object. + */ + public EnrollmentAccountsInner enrollmentAccounts() { + return this.enrollmentAccounts; + } + /** * The BillingPeriodsInner object to access its operations. */ @@ -202,10 +215,11 @@ public BillingManagementClientImpl(RestClient restClient) { } protected void initialize() { - this.apiVersion = "2017-04-24-preview"; + this.apiVersion = "2018-03-01-preview"; this.acceptLanguage = "en-US"; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; + this.enrollmentAccounts = new EnrollmentAccountsInner(restClient().retrofit(), this); this.billingPeriods = new BillingPeriodsInner(restClient().retrofit(), this); this.invoices = new InvoicesInner(restClient().retrofit(), this); this.operations = new OperationsInner(restClient().retrofit(), this); @@ -219,6 +233,6 @@ protected void initialize() { */ @Override public String userAgent() { - return String.format("%s (%s, %s)", super.userAgent(), "BillingManagementClient", "2017-04-24-preview"); + return String.format("%s (%s, %s)", super.userAgent(), "BillingManagementClient", "2018-03-01-preview"); } } diff --git a/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/BillingPeriodsInner.java b/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/BillingPeriodsInner.java index 47287a99ea0..0f085f42aff 100644 --- a/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/BillingPeriodsInner.java +++ b/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/BillingPeriodsInner.java @@ -72,7 +72,7 @@ interface BillingPeriodsService { } /** - * Lists the available billing periods for a subscription in reverse chronological order. + * Lists the available billing periods for a subscription in reverse chronological order. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server @@ -90,7 +90,7 @@ public Page nextPage(String nextPageLink) { } /** - * Lists the available billing periods for a subscription in reverse chronological order. + * Lists the available billing periods for a subscription in reverse chronological order. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -109,7 +109,7 @@ public Observable>> call(String nextPag } /** - * Lists the available billing periods for a subscription in reverse chronological order. + * Lists the available billing periods for a subscription in reverse chronological order. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<BillingPeriodInner> object @@ -125,7 +125,7 @@ public Page call(ServiceResponse> r } /** - * Lists the available billing periods for a subscription in reverse chronological order. + * Lists the available billing periods for a subscription in reverse chronological order. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<BillingPeriodInner> object @@ -145,7 +145,7 @@ public Observable>> call(ServiceRespons } /** - * Lists the available billing periods for a subscription in reverse chronological order. + * Lists the available billing periods for a subscription in reverse chronological order. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<BillingPeriodInner> object wrapped in {@link ServiceResponse} if successful. @@ -175,7 +175,7 @@ public Observable>> call(Response nextPage(String nextPageLink) { } /** - * Lists the available billing periods for a subscription in reverse chronological order. + * Lists the available billing periods for a subscription in reverse chronological order. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @param filter May be used to filter billing periods by billingPeriodEndDate. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. * @param skiptoken Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. @@ -218,7 +218,7 @@ public Observable>> call(String nextPag } /** - * Lists the available billing periods for a subscription in reverse chronological order. + * Lists the available billing periods for a subscription in reverse chronological order. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @param filter May be used to filter billing periods by billingPeriodEndDate. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. * @param skiptoken Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. @@ -237,7 +237,7 @@ public Page call(ServiceResponse> r } /** - * Lists the available billing periods for a subscription in reverse chronological order. + * Lists the available billing periods for a subscription in reverse chronological order. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @param filter May be used to filter billing periods by billingPeriodEndDate. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. * @param skiptoken Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. @@ -260,7 +260,7 @@ public Observable>> call(ServiceRespons } /** - * Lists the available billing periods for a subscription in reverse chronological order. + * Lists the available billing periods for a subscription in reverse chronological order. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * ServiceResponse> * @param filter May be used to filter billing periods by billingPeriodEndDate. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. ServiceResponse> * @param skiptoken Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. @@ -297,7 +297,7 @@ private ServiceResponse> listDelegate(Response getAsync(String billingPeriodName, fina } /** - * Gets a named billing period. + * Gets a named billing period. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @param billingPeriodName The name of a BillingPeriod resource. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -338,7 +338,7 @@ public BillingPeriodInner call(ServiceResponse response) { } /** - * Gets a named billing period. + * Gets a named billing period. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @param billingPeriodName The name of a BillingPeriod resource. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -376,7 +376,7 @@ private ServiceResponse getDelegate(Response r } /** - * Lists the available billing periods for a subscription in reverse chronological order. + * Lists the available billing periods for a subscription in reverse chronological order. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -395,7 +395,7 @@ public Page nextPage(String nextPageLink) { } /** - * Lists the available billing periods for a subscription in reverse chronological order. + * Lists the available billing periods for a subscription in reverse chronological order. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @param serviceFuture the ServiceFuture object tracking the Retrofit calls @@ -416,7 +416,7 @@ public Observable>> call(String nextPag } /** - * Lists the available billing periods for a subscription in reverse chronological order. + * Lists the available billing periods for a subscription in reverse chronological order. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -433,7 +433,7 @@ public Page call(ServiceResponse> r } /** - * Lists the available billing periods for a subscription in reverse chronological order. + * Lists the available billing periods for a subscription in reverse chronological order. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -454,7 +454,7 @@ public Observable>> call(ServiceRespons } /** - * Lists the available billing periods for a subscription in reverse chronological order. + * Lists the available billing periods for a subscription in reverse chronological order. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation diff --git a/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/EnrollmentAccountInner.java b/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/EnrollmentAccountInner.java new file mode 100644 index 00000000000..a2b2f60a1d0 --- /dev/null +++ b/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/EnrollmentAccountInner.java @@ -0,0 +1,35 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.billing.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.Resource; + +/** + * An enrollment account resource. + */ +@JsonFlatten +public class EnrollmentAccountInner extends Resource { + /** + * The account owner's principal name. + */ + @JsonProperty(value = "properties.principalName", access = JsonProperty.Access.WRITE_ONLY) + private String principalName; + + /** + * Get the principalName value. + * + * @return the principalName value + */ + public String principalName() { + return this.principalName; + } + +} diff --git a/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/EnrollmentAccountListResultInner.java b/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/EnrollmentAccountListResultInner.java new file mode 100644 index 00000000000..0e71137590e --- /dev/null +++ b/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/EnrollmentAccountListResultInner.java @@ -0,0 +1,48 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.billing.implementation; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Result of listing enrollment accounts. + */ +public class EnrollmentAccountListResultInner { + /** + * The list of enrollment accounts. + */ + @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY) + private List value; + + /** + * The link (url) to the next page of results. + */ + @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) + private String nextLink; + + /** + * Get the value value. + * + * @return the value value + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink value. + * + * @return the nextLink value + */ + public String nextLink() { + return this.nextLink; + } + +} diff --git a/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/EnrollmentAccountResultInner.java b/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/EnrollmentAccountResultInner.java new file mode 100644 index 00000000000..31af290ca9c --- /dev/null +++ b/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/EnrollmentAccountResultInner.java @@ -0,0 +1,35 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.billing.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.Resource; + +/** + * An enrollment account resource. + */ +@JsonFlatten +public class EnrollmentAccountResultInner extends Resource { + /** + * The account owner's principal name. + */ + @JsonProperty(value = "properties.principalName", access = JsonProperty.Access.WRITE_ONLY) + private String principalName; + + /** + * Get the principalName value. + * + * @return the principalName value + */ + public String principalName() { + return this.principalName; + } + +} diff --git a/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/EnrollmentAccountsInner.java b/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/EnrollmentAccountsInner.java new file mode 100644 index 00000000000..d6c4a7ea93b --- /dev/null +++ b/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/EnrollmentAccountsInner.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.billing.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.management.billing.ErrorResponseException; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.Query; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in EnrollmentAccounts. + */ +public class EnrollmentAccountsInner { + /** The Retrofit service to perform REST calls. */ + private EnrollmentAccountsService service; + /** The service client containing this operation class. */ + private BillingManagementClientImpl client; + + /** + * Initializes an instance of EnrollmentAccountsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public EnrollmentAccountsInner(Retrofit retrofit, BillingManagementClientImpl client) { + this.service = retrofit.create(EnrollmentAccountsService.class); + this.client = client; + } + + /** + * The interface defining all the services for EnrollmentAccounts to be + * used by Retrofit to perform actually REST calls. + */ + interface EnrollmentAccountsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.billing.EnrollmentAccounts list" }) + @GET("providers/Microsoft.Billing/enrollmentAccounts") + Observable> list(@Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.billing.EnrollmentAccounts get" }) + @GET("providers/Microsoft.Billing/enrollmentAccounts/{name}") + Observable> get(@Path("name") String name, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Lists the enrollment accounts the caller has access to. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the EnrollmentAccountListResultInner object if successful. + */ + public EnrollmentAccountListResultInner list() { + return listWithServiceResponseAsync().toBlocking().single().body(); + } + + /** + * Lists the enrollment accounts the caller has access to. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture listAsync(final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listWithServiceResponseAsync(), serviceCallback); + } + + /** + * Lists the enrollment accounts the caller has access to. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the EnrollmentAccountListResultInner object + */ + public Observable listAsync() { + return listWithServiceResponseAsync().map(new Func1, EnrollmentAccountListResultInner>() { + @Override + public EnrollmentAccountListResultInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Lists the enrollment accounts the caller has access to. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the EnrollmentAccountListResultInner object + */ + public Observable> listWithServiceResponseAsync() { + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = listDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse listDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Gets a enrollment account by name. + * + * @param name Enrollment Account name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the EnrollmentAccountInner object if successful. + */ + public EnrollmentAccountInner get(String name) { + return getWithServiceResponseAsync(name).toBlocking().single().body(); + } + + /** + * Gets a enrollment account by name. + * + * @param name Enrollment Account name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAsync(String name, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(name), serviceCallback); + } + + /** + * Gets a enrollment account by name. + * + * @param name Enrollment Account name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the EnrollmentAccountInner object + */ + public Observable getAsync(String name) { + return getWithServiceResponseAsync(name).map(new Func1, EnrollmentAccountInner>() { + @Override + public EnrollmentAccountInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets a enrollment account by name. + * + * @param name Enrollment Account name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the EnrollmentAccountInner object + */ + public Observable> getWithServiceResponseAsync(String name) { + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.get(name, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/InvoicesInner.java b/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/InvoicesInner.java index 74da92518de..2aa8fcd1c64 100644 --- a/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/InvoicesInner.java +++ b/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/InvoicesInner.java @@ -76,7 +76,7 @@ interface InvoicesService { } /** - * Lists the available invoices for a subscription in reverse chronological order beginning with the most recent invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or later. + * Lists the available invoices for a subscription in reverse chronological order beginning with the most recent invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or later. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server @@ -94,7 +94,7 @@ public Page nextPage(String nextPageLink) { } /** - * Lists the available invoices for a subscription in reverse chronological order beginning with the most recent invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or later. + * Lists the available invoices for a subscription in reverse chronological order beginning with the most recent invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or later. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -113,7 +113,7 @@ public Observable>> call(String nextPageLink) } /** - * Lists the available invoices for a subscription in reverse chronological order beginning with the most recent invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or later. + * Lists the available invoices for a subscription in reverse chronological order beginning with the most recent invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or later. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<InvoiceInner> object @@ -129,7 +129,7 @@ public Page call(ServiceResponse> response) { } /** - * Lists the available invoices for a subscription in reverse chronological order beginning with the most recent invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or later. + * Lists the available invoices for a subscription in reverse chronological order beginning with the most recent invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or later. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<InvoiceInner> object @@ -149,7 +149,7 @@ public Observable>> call(ServiceResponse>> call(Response nextPage(String nextPageLink) { } /** - * Lists the available invoices for a subscription in reverse chronological order beginning with the most recent invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or later. + * Lists the available invoices for a subscription in reverse chronological order beginning with the most recent invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or later. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @param expand May be used to expand the downloadUrl property within a list of invoices. This enables download links to be generated for multiple invoices at once. By default, downloadURLs are not included when listing invoices. * @param filter May be used to filter invoices by invoicePeriodEndDate. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. @@ -225,7 +225,7 @@ public Observable>> call(String nextPageLink) } /** - * Lists the available invoices for a subscription in reverse chronological order beginning with the most recent invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or later. + * Lists the available invoices for a subscription in reverse chronological order beginning with the most recent invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or later. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @param expand May be used to expand the downloadUrl property within a list of invoices. This enables download links to be generated for multiple invoices at once. By default, downloadURLs are not included when listing invoices. * @param filter May be used to filter invoices by invoicePeriodEndDate. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. @@ -245,7 +245,7 @@ public Page call(ServiceResponse> response) { } /** - * Lists the available invoices for a subscription in reverse chronological order beginning with the most recent invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or later. + * Lists the available invoices for a subscription in reverse chronological order beginning with the most recent invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or later. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @param expand May be used to expand the downloadUrl property within a list of invoices. This enables download links to be generated for multiple invoices at once. By default, downloadURLs are not included when listing invoices. * @param filter May be used to filter invoices by invoicePeriodEndDate. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. @@ -269,7 +269,7 @@ public Observable>> call(ServiceResponse> * @param expand May be used to expand the downloadUrl property within a list of invoices. This enables download links to be generated for multiple invoices at once. By default, downloadURLs are not included when listing invoices. ServiceResponse> * @param filter May be used to filter invoices by invoicePeriodEndDate. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. @@ -307,7 +307,7 @@ private ServiceResponse> listDelegate(Response getAsync(String invoiceName, final ServiceCal } /** - * Gets a named invoice resource. When getting a single invoice, the downloadUrl property is expanded automatically. + * Gets a named invoice resource. When getting a single invoice, the downloadUrl property is expanded automatically. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @param invoiceName The name of an invoice resource. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -348,7 +348,7 @@ public InvoiceInner call(ServiceResponse response) { } /** - * Gets a named invoice resource. When getting a single invoice, the downloadUrl property is expanded automatically. + * Gets a named invoice resource. When getting a single invoice, the downloadUrl property is expanded automatically. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @param invoiceName The name of an invoice resource. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -386,7 +386,7 @@ private ServiceResponse getDelegate(Response respons } /** - * Gets the most recent invoice. When getting a single invoice, the downloadUrl property is expanded automatically. + * Gets the most recent invoice. When getting a single invoice, the downloadUrl property is expanded automatically. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server @@ -398,7 +398,7 @@ public InvoiceInner getLatest() { } /** - * Gets the most recent invoice. When getting a single invoice, the downloadUrl property is expanded automatically. + * Gets the most recent invoice. When getting a single invoice, the downloadUrl property is expanded automatically. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -409,7 +409,7 @@ public ServiceFuture getLatestAsync(final ServiceCallback response) { } /** - * Gets the most recent invoice. When getting a single invoice, the downloadUrl property is expanded automatically. + * Gets the most recent invoice. When getting a single invoice, the downloadUrl property is expanded automatically. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the InvoiceInner object @@ -458,7 +458,7 @@ private ServiceResponse getLatestDelegate(Response r } /** - * Lists the available invoices for a subscription in reverse chronological order beginning with the most recent invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or later. + * Lists the available invoices for a subscription in reverse chronological order beginning with the most recent invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or later. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -477,7 +477,7 @@ public Page nextPage(String nextPageLink) { } /** - * Lists the available invoices for a subscription in reverse chronological order beginning with the most recent invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or later. + * Lists the available invoices for a subscription in reverse chronological order beginning with the most recent invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or later. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @param serviceFuture the ServiceFuture object tracking the Retrofit calls @@ -498,7 +498,7 @@ public Observable>> call(String nextPageLink) } /** - * Lists the available invoices for a subscription in reverse chronological order beginning with the most recent invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or later. + * Lists the available invoices for a subscription in reverse chronological order beginning with the most recent invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or later. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -515,7 +515,7 @@ public Page call(ServiceResponse> response) { } /** - * Lists the available invoices for a subscription in reverse chronological order beginning with the most recent invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or later. + * Lists the available invoices for a subscription in reverse chronological order beginning with the most recent invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or later. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -536,7 +536,7 @@ public Observable>> call(ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation diff --git a/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/package-info.java b/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/package-info.java index 6a04e335ab9..1cbc74013c4 100644 --- a/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/package-info.java +++ b/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/implementation/package-info.java @@ -6,6 +6,6 @@ /** * This package contains the implementation classes for BillingManagementClient. - * Billing client provides access to billing resources for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. + * Billing client provides access to billing resources for Azure subscriptions. */ package com.microsoft.azure.management.billing.implementation; diff --git a/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/package-info.java b/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/package-info.java index 59e504f78a6..ef736eb79b8 100644 --- a/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/package-info.java +++ b/azure-mgmt-billing/src/main/java/com/microsoft/azure/management/billing/package-info.java @@ -6,6 +6,6 @@ /** * This package contains the classes for BillingManagementClient. - * Billing client provides access to billing resources for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. + * Billing client provides access to billing resources for Azure subscriptions. */ package com.microsoft.azure.management.billing;