Skip to content

Commit bdc2fd7

Browse files
authored
[AutoPR billing/resource-manager] Corrected specs and examples for BillingRP (#3397)
* Generated from bbf0f75654a02f3b434dfde3e89733b8456e96e4 Fixed the errors Fixed the errors * Generated from 91060fe18f14b09cc2ef3b9b1563ef969acdc52d Fixing errors in spec Fixing errors in spec * Generated from a16aba34b67645c35d9ae5e7869d33ecfd275162 Updated examples Updated examples * Generated from bb7a4455944a72797de410f8405e10f6568e534d Incorporated review comments Incorporated review comments * Generated from 281784f0033ee8d853d17ce674e90278067a9812 Incorporated review comments
1 parent 71c3230 commit bdc2fd7

35 files changed

+421
-255
lines changed

billing/resource-manager/v2018_11_01_preview/src/main/java/com/microsoft/azure/management/billing/v2018_11_01_preview/BillingAccount.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ public interface BillingAccount extends HasInner<BillingAccountInner>, HasManage
6767
*/
6868
Enrollment enrollmentDetails();
6969

70+
/**
71+
* @return the hasReadAccess value.
72+
*/
73+
Boolean hasReadAccess();
74+
7075
/**
7176
* @return the id value.
7277
*/

billing/resource-manager/v2018_11_01_preview/src/main/java/com/microsoft/azure/management/billing/v2018_11_01_preview/BillingAccountBillingSubscriptionSummary.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,19 @@ public interface BillingAccountBillingSubscriptionSummary extends HasInner<Billi
3434
String displayName();
3535

3636
/**
37-
* @return the enrollmentAccountContext value.
37+
* @return the id value.
3838
*/
39-
EnrollmentAccountContext enrollmentAccountContext();
39+
String id();
4040

4141
/**
42-
* @return the id value.
42+
* @return the invoiceSectionId value.
4343
*/
44-
String id();
44+
String invoiceSectionId();
45+
46+
/**
47+
* @return the invoiceSectionName value.
48+
*/
49+
String invoiceSectionName();
4550

4651
/**
4752
* @return the lastMonthCharges value.

billing/resource-manager/v2018_11_01_preview/src/main/java/com/microsoft/azure/management/billing/v2018_11_01_preview/BillingProfile.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
*/
2525
public interface BillingProfile extends HasInner<BillingProfileInner>, Indexable, Refreshable<BillingProfile>, Updatable<BillingProfile.Update>, HasManager<BillingManager> {
2626
/**
27-
* @return the billingAddress value.
27+
* @return the address value.
2828
*/
29-
Address billingAddress();
29+
Address address();
3030

3131
/**
3232
* @return the currency value.
@@ -86,23 +86,23 @@ public interface BillingProfile extends HasInner<BillingProfileInner>, Indexable
8686
/**
8787
* The template for a BillingProfile update operation, containing all the settings that can be modified.
8888
*/
89-
interface Update extends Appliable<BillingProfile>, UpdateStages.WithBillingAddress, UpdateStages.WithDisplayName, UpdateStages.WithEnabledAzureSKUs, UpdateStages.WithInvoiceSections, UpdateStages.WithPoNumber {
89+
interface Update extends Appliable<BillingProfile>, UpdateStages.WithAddress, UpdateStages.WithDisplayName, UpdateStages.WithEnabledAzureSKUs, UpdateStages.WithInvoiceSections, UpdateStages.WithPoNumber {
9090
}
9191

9292
/**
9393
* Grouping of BillingProfile update stages.
9494
*/
9595
interface UpdateStages {
9696
/**
97-
* The stage of the billingprofile update allowing to specify BillingAddress.
97+
* The stage of the billingprofile update allowing to specify Address.
9898
*/
99-
interface WithBillingAddress {
99+
interface WithAddress {
100100
/**
101-
* Specifies billingAddress.
102-
* @param billingAddress Billing address
101+
* Specifies address.
102+
* @param address Billing address
103103
* @return the next update stage
104104
*/
105-
Update withBillingAddress(Address billingAddress);
105+
Update withAddress(Address address);
106106
}
107107

108108
/**

billing/resource-manager/v2018_11_01_preview/src/main/java/com/microsoft/azure/management/billing/v2018_11_01_preview/BillingProperty.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ public interface BillingProperty extends HasInner<BillingPropertyInner>, HasMana
4242
*/
4343
String billingTenantId();
4444

45+
/**
46+
* @return the costCenter value.
47+
*/
48+
String costCenter();
49+
50+
/**
51+
* @return the id value.
52+
*/
53+
String id();
54+
4555
/**
4656
* @return the invoiceSectionId value.
4757
*/
@@ -52,11 +62,21 @@ public interface BillingProperty extends HasInner<BillingPropertyInner>, HasMana
5262
*/
5363
String invoiceSectionName();
5464

65+
/**
66+
* @return the name value.
67+
*/
68+
String name();
69+
5570
/**
5671
* @return the productId value.
5772
*/
5873
String productId();
5974

75+
/**
76+
* @return the productName value.
77+
*/
78+
String productName();
79+
6080
/**
6181
* @return the skuDescription value.
6282
*/
@@ -67,4 +87,9 @@ public interface BillingProperty extends HasInner<BillingPropertyInner>, HasMana
6787
*/
6888
String skuId();
6989

90+
/**
91+
* @return the type value.
92+
*/
93+
String type();
94+
7095
}

billing/resource-manager/v2018_11_01_preview/src/main/java/com/microsoft/azure/management/billing/v2018_11_01_preview/EnabledAzureSKUs.java

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
import com.fasterxml.jackson.annotation.JsonProperty;
1212

1313
/**
14-
* Details about the product.
14+
* Details about the enabled azure sku.
1515
*/
1616
public class EnabledAzureSKUs {
1717
/**
1818
* The sku id.
1919
*/
20-
@JsonProperty(value = "skuId")
20+
@JsonProperty(value = "skuId", access = JsonProperty.Access.WRITE_ONLY)
2121
private String skuId;
2222

2323
/**
@@ -35,17 +35,6 @@ public String skuId() {
3535
return this.skuId;
3636
}
3737

38-
/**
39-
* Set the sku id.
40-
*
41-
* @param skuId the skuId value to set
42-
* @return the EnabledAzureSKUs object itself.
43-
*/
44-
public EnabledAzureSKUs withSkuId(String skuId) {
45-
this.skuId = skuId;
46-
return this;
47-
}
48-
4938
/**
5039
* Get the sku description.
5140
*

billing/resource-manager/v2018_11_01_preview/src/main/java/com/microsoft/azure/management/billing/v2018_11_01_preview/InvoiceSectionBillingAccountBillingSubscriptionSummary.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,19 @@ public interface InvoiceSectionBillingAccountBillingSubscriptionSummary extends
3636
String displayName();
3737

3838
/**
39-
* @return the enrollmentAccountContext value.
39+
* @return the id value.
4040
*/
41-
EnrollmentAccountContext enrollmentAccountContext();
41+
String id();
4242

4343
/**
44-
* @return the id value.
44+
* @return the invoiceSectionId value.
4545
*/
46-
String id();
46+
String invoiceSectionId();
47+
48+
/**
49+
* @return the invoiceSectionName value.
50+
*/
51+
String invoiceSectionName();
4752

4853
/**
4954
* @return the lastMonthCharges value.

billing/resource-manager/v2018_11_01_preview/src/main/java/com/microsoft/azure/management/billing/v2018_11_01_preview/InvoiceSummary.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ public interface InvoiceSummary extends HasInner<InvoiceSummaryInner>, Indexable
3232
Amount billedAmount();
3333

3434
/**
35-
* @return the billingProfile value.
35+
* @return the billingProfileId value.
3636
*/
37-
String billingProfile();
37+
String billingProfileId();
3838

3939
/**
4040
* @return the billingProfileName value.

billing/resource-manager/v2018_11_01_preview/src/main/java/com/microsoft/azure/management/billing/v2018_11_01_preview/PaymentMethod.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ public interface PaymentMethod extends HasInner<PaymentMethodInner>, HasManager<
3939
String id();
4040

4141
/**
42-
* @return the methodType value.
42+
* @return the name value.
4343
*/
44-
PaymentMethodType methodType();
44+
String name();
4545

4646
/**
47-
* @return the name value.
47+
* @return the paymentMethodType value.
4848
*/
49-
String name();
49+
PaymentMethodType paymentMethodType();
5050

5151
/**
5252
* @return the type value.

billing/resource-manager/v2018_11_01_preview/src/main/java/com/microsoft/azure/management/billing/v2018_11_01_preview/Policy.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ public interface Policy extends HasInner<PolicyInner>, HasManager<BillingManager
3737
*/
3838
Boolean reservationPurchasesAllowed();
3939

40+
/**
41+
* @return the subscriptionOwnerCanViewCharges value.
42+
*/
43+
Boolean subscriptionOwnerCanViewCharges();
44+
4045
/**
4146
* @return the type value.
4247
*/

billing/resource-manager/v2018_11_01_preview/src/main/java/com/microsoft/azure/management/billing/v2018_11_01_preview/TransactionsSummary.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ public interface TransactionsSummary extends HasInner<TransactionsSummaryInner>,
7878
*/
7979
String productDescription();
8080

81+
/**
82+
* @return the productFamily value.
83+
*/
84+
String productFamily();
85+
8186
/**
8287
* @return the productType value.
8388
*/

0 commit comments

Comments
 (0)