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