35
35
36
36
- [ ListByBillingAccount] ( #lotsoperation_listbybillingaccount )
37
37
- [ ListByBillingProfile] ( #lotsoperation_listbybillingprofile )
38
+ - [ ListByCustomer] ( #lotsoperation_listbycustomer )
38
39
39
40
## Marketplaces
40
41
41
42
- [ List] ( #marketplaces_list )
42
43
44
+ ## Operations
45
+
46
+ - [ List] ( #operations_list )
47
+
43
48
## PriceSheet
44
49
45
50
- [ Get] ( #pricesheet_get )
@@ -302,7 +307,8 @@ public final class BudgetsDeleteSamples {
302
307
public static void deleteBudget (com.azure.resourcemanager.consumption. ConsumptionManager manager ) {
303
308
manager
304
309
.budgets()
305
- .deleteWithResponse(" subscriptions/00000000-0000-0000-0000-000000000000" , " TestBudget" , Context . NONE );
310
+ .deleteByResourceGroupWithResponse(
311
+ " subscriptions/00000000-0000-0000-0000-000000000000" , " TestBudget" , Context . NONE );
306
312
}
307
313
}
308
314
```
@@ -768,6 +774,42 @@ public final class LotsOperationListByBillingProfileSamples {
768
774
}
769
775
```
770
776
777
+ ### LotsOperation_ListByCustomer
778
+
779
+ ``` java
780
+ import com.azure.core.util.Context ;
781
+
782
+ /* * Samples for LotsOperation ListByCustomer. */
783
+ public final class LotsOperationListByCustomerSamples {
784
+ /*
785
+ * x-ms-original-file: specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/LotsListByCustomer.json
786
+ */
787
+ /**
788
+ * Sample code: LotsListByCustomer.
789
+ *
790
+ * @param manager Entry point to ConsumptionManager.
791
+ */
792
+ public static void lotsListByCustomer (com.azure.resourcemanager.consumption. ConsumptionManager manager ) {
793
+ manager. lotsOperations(). listByCustomer(" 1234:5678" , " 1234:5678" , null , Context . NONE );
794
+ }
795
+
796
+ /*
797
+ * x-ms-original-file: specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/LotsListByCustomerWithFilters.json
798
+ */
799
+ /**
800
+ * Sample code: LotsListByCustomerWithFilter.
801
+ *
802
+ * @param manager Entry point to ConsumptionManager.
803
+ */
804
+ public static void lotsListByCustomerWithFilter (com.azure.resourcemanager.consumption. ConsumptionManager manager ) {
805
+ manager
806
+ .lotsOperations()
807
+ .listByCustomer(
808
+ " 1234:5678" , " 1234:5678" , " status eq 'active' AND source eq 'consumptioncommitment'" , Context . NONE );
809
+ }
810
+ }
811
+ ```
812
+
771
813
### Marketplaces_List
772
814
773
815
``` java
@@ -921,6 +963,27 @@ public final class MarketplacesListSamples {
921
963
}
922
964
```
923
965
966
+ ### Operations_List
967
+
968
+ ``` java
969
+ import com.azure.core.util.Context ;
970
+
971
+ /* * Samples for Operations List. */
972
+ public final class OperationsListSamples {
973
+ /*
974
+ * x-ms-original-file: specification/consumption/resource-manager/Microsoft.Consumption/stable/2021-10-01/examples/OperationList.json
975
+ */
976
+ /**
977
+ * Sample code: PriceSheetForBillingPeriod.
978
+ *
979
+ * @param manager Entry point to ConsumptionManager.
980
+ */
981
+ public static void priceSheetForBillingPeriod (com.azure.resourcemanager.consumption. ConsumptionManager manager ) {
982
+ manager. operations(). list(Context . NONE );
983
+ }
984
+ }
985
+ ```
986
+
924
987
### PriceSheet_Get
925
988
926
989
``` java
@@ -980,6 +1043,7 @@ public final class PriceSheetGetByBillingPeriodSamples {
980
1043
``` java
981
1044
import com.azure.core.util.Context ;
982
1045
import com.azure.resourcemanager.consumption.models.LookBackPeriod ;
1046
+ import com.azure.resourcemanager.consumption.models.Scope ;
983
1047
import com.azure.resourcemanager.consumption.models.Term ;
984
1048
985
1049
/* * Samples for ReservationRecommendationDetails Get. */
@@ -996,7 +1060,14 @@ public final class ReservationRecommendationDetailsGetSamples {
996
1060
com.azure.resourcemanager.consumption. ConsumptionManager manager ) {
997
1061
manager
998
1062
.reservationRecommendationDetails()
999
- .getWithResponse(" Single" , " westus" , Term . P3Y , LookBackPeriod . LAST30DAYS , " Standard_DS13_v2" , Context . NONE );
1063
+ .getWithResponse(
1064
+ " subscriptions/00000000-0000-0000-0000-00000000" ,
1065
+ Scope . SINGLE ,
1066
+ " westus" ,
1067
+ Term . P3Y ,
1068
+ LookBackPeriod . LAST30DAYS ,
1069
+ " Standard_DS13_v2" ,
1070
+ Context . NONE );
1000
1071
}
1001
1072
1002
1073
/*
@@ -1012,7 +1083,13 @@ public final class ReservationRecommendationDetailsGetSamples {
1012
1083
manager
1013
1084
.reservationRecommendationDetails()
1014
1085
.getWithResponse(
1015
- " Shared" , " australiaeast" , Term . P1Y , LookBackPeriod . LAST7DAYS , " Standard_B2s" , Context . NONE );
1086
+ " providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-00000000:00000000-0000-0000-0000-00000000/billingProfiles/00000000-0000-0000-0000-00000000" ,
1087
+ Scope . SHARED ,
1088
+ " australiaeast" ,
1089
+ Term . P1Y ,
1090
+ LookBackPeriod . LAST7DAYS ,
1091
+ " Standard_B2s" ,
1092
+ Context . NONE );
1016
1093
}
1017
1094
1018
1095
/*
@@ -1027,7 +1104,14 @@ public final class ReservationRecommendationDetailsGetSamples {
1027
1104
com.azure.resourcemanager.consumption. ConsumptionManager manager ) {
1028
1105
manager
1029
1106
.reservationRecommendationDetails()
1030
- .getWithResponse(" Single" , " westus" , Term . P3Y , LookBackPeriod . LAST30DAYS , " Standard_DS13_v2" , Context . NONE );
1107
+ .getWithResponse(
1108
+ " subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/testGroup" ,
1109
+ Scope . SINGLE ,
1110
+ " westus" ,
1111
+ Term . P3Y ,
1112
+ LookBackPeriod . LAST30DAYS ,
1113
+ " Standard_DS13_v2" ,
1114
+ Context . NONE );
1031
1115
}
1032
1116
1033
1117
/*
@@ -1042,7 +1126,14 @@ public final class ReservationRecommendationDetailsGetSamples {
1042
1126
com.azure.resourcemanager.consumption. ConsumptionManager manager ) {
1043
1127
manager
1044
1128
.reservationRecommendationDetails()
1045
- .getWithResponse(" Shared" , " eastus" , Term . P1Y , LookBackPeriod . LAST60DAYS , " Standard_DS14_v2" , Context . NONE );
1129
+ .getWithResponse(
1130
+ " providers/Microsoft.Billing/billingAccounts/000000" ,
1131
+ Scope . SHARED ,
1132
+ " eastus" ,
1133
+ Term . P1Y ,
1134
+ LookBackPeriod . LAST60DAYS ,
1135
+ " Standard_DS14_v2" ,
1136
+ Context . NONE );
1046
1137
}
1047
1138
}
1048
1139
```
0 commit comments