Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR] billing/resource-manager #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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);
Expand All @@ -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");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -90,7 +90,7 @@ public Page<BillingPeriodInner> 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
Expand All @@ -109,7 +109,7 @@ public Observable<ServiceResponse<Page<BillingPeriodInner>>> 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&lt;BillingPeriodInner&gt; object
Expand All @@ -125,7 +125,7 @@ public Page<BillingPeriodInner> call(ServiceResponse<Page<BillingPeriodInner>> 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&lt;BillingPeriodInner&gt; object
Expand All @@ -145,7 +145,7 @@ public Observable<ServiceResponse<Page<BillingPeriodInner>>> 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&lt;BillingPeriodInner&gt; object wrapped in {@link ServiceResponse} if successful.
Expand Down Expand Up @@ -175,7 +175,7 @@ public Observable<ServiceResponse<Page<BillingPeriodInner>>> call(Response<Respo
}

/**
* 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.
Expand All @@ -196,7 +196,7 @@ public Page<BillingPeriodInner> 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.
Expand All @@ -218,7 +218,7 @@ public Observable<ServiceResponse<Page<BillingPeriodInner>>> 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.
Expand All @@ -237,7 +237,7 @@ public Page<BillingPeriodInner> call(ServiceResponse<Page<BillingPeriodInner>> 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.
Expand All @@ -260,7 +260,7 @@ public Observable<ServiceResponse<Page<BillingPeriodInner>>> 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<PageImpl<BillingPeriodInner>> * @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<PageImpl<BillingPeriodInner>> * @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.
Expand Down Expand Up @@ -297,7 +297,7 @@ private ServiceResponse<PageImpl<BillingPeriodInner>> listDelegate(Response<Resp
}

/**
* 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
Expand All @@ -310,7 +310,7 @@ public BillingPeriodInner get(String billingPeriodName) {
}

/**
* 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.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
Expand All @@ -322,7 +322,7 @@ public ServiceFuture<BillingPeriodInner> 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
Expand All @@ -338,7 +338,7 @@ public BillingPeriodInner call(ServiceResponse<BillingPeriodInner> 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
Expand Down Expand Up @@ -376,7 +376,7 @@ private ServiceResponse<BillingPeriodInner> getDelegate(Response<ResponseBody> 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
Expand All @@ -395,7 +395,7 @@ public Page<BillingPeriodInner> 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
Expand All @@ -416,7 +416,7 @@ public Observable<ServiceResponse<Page<BillingPeriodInner>>> 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
Expand All @@ -433,7 +433,7 @@ public Page<BillingPeriodInner> call(ServiceResponse<Page<BillingPeriodInner>> 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
Expand All @@ -454,7 +454,7 @@ public Observable<ServiceResponse<Page<BillingPeriodInner>>> 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<PageImpl<BillingPeriodInner>> * @param nextPageLink The NextLink from the previous successful call to List operation.
* @throws IllegalArgumentException thrown if parameters fail the validation
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
}

}
Original file line number Diff line number Diff line change
@@ -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<EnrollmentAccountInner> 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<EnrollmentAccountInner> value() {
return this.value;
}

/**
* Get the nextLink value.
*
* @return the nextLink value
*/
public String nextLink() {
return this.nextLink;
}

}
Original file line number Diff line number Diff line change
@@ -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;
}

}
Loading