@@ -54,6 +54,23 @@ public void setApiClient(ApiClient apiClient) {
5454 this .apiClient = apiClient ;
5555 }
5656
57+ /** Manage optional parameters to getActiveBillingDimensions. */
58+ public static class GetActiveBillingDimensionsOptionalParameters {
59+ private OffsetDateTime month ;
60+
61+ /**
62+ * Set month.
63+ *
64+ * @param month Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM] for billing
65+ * dimensions active this month. Defaults to the current month. (optional)
66+ * @return GetActiveBillingDimensionsOptionalParameters
67+ */
68+ public GetActiveBillingDimensionsOptionalParameters month (OffsetDateTime month ) {
69+ this .month = month ;
70+ return this ;
71+ }
72+ }
73+
5774 /**
5875 * Get active billing dimensions for cost attribution.
5976 *
@@ -63,7 +80,9 @@ public void setApiClient(ApiClient apiClient) {
6380 * @throws ApiException if fails to make API call
6481 */
6582 public ActiveBillingDimensionsResponse getActiveBillingDimensions () throws ApiException {
66- return getActiveBillingDimensionsWithHttpInfo ().getData ();
83+ return getActiveBillingDimensionsWithHttpInfo (
84+ new GetActiveBillingDimensionsOptionalParameters ())
85+ .getData ();
6786 }
6887
6988 /**
@@ -74,17 +93,52 @@ public ActiveBillingDimensionsResponse getActiveBillingDimensions() throws ApiEx
7493 * @return CompletableFuture<ActiveBillingDimensionsResponse>
7594 */
7695 public CompletableFuture <ActiveBillingDimensionsResponse > getActiveBillingDimensionsAsync () {
77- return getActiveBillingDimensionsWithHttpInfoAsync ()
96+ return getActiveBillingDimensionsWithHttpInfoAsync (
97+ new GetActiveBillingDimensionsOptionalParameters ())
7898 .thenApply (
7999 response -> {
80100 return response .getData ();
81101 });
82102 }
83103
84104 /**
85- * Get active billing dimensions for cost attribution. Cost data for a given month becomes
86- * available no later than the 19th of the following month.
105+ * Get active billing dimensions for cost attribution.
106+ *
107+ * <p>See {@link #getActiveBillingDimensionsWithHttpInfo}.
108+ *
109+ * @param parameters Optional parameters for the request.
110+ * @return ActiveBillingDimensionsResponse
111+ * @throws ApiException if fails to make API call
112+ */
113+ public ActiveBillingDimensionsResponse getActiveBillingDimensions (
114+ GetActiveBillingDimensionsOptionalParameters parameters ) throws ApiException {
115+ return getActiveBillingDimensionsWithHttpInfo (parameters ).getData ();
116+ }
117+
118+ /**
119+ * Get active billing dimensions for cost attribution.
87120 *
121+ * <p>See {@link #getActiveBillingDimensionsWithHttpInfoAsync}.
122+ *
123+ * @param parameters Optional parameters for the request.
124+ * @return CompletableFuture<ActiveBillingDimensionsResponse>
125+ */
126+ public CompletableFuture <ActiveBillingDimensionsResponse > getActiveBillingDimensionsAsync (
127+ GetActiveBillingDimensionsOptionalParameters parameters ) {
128+ return getActiveBillingDimensionsWithHttpInfoAsync (parameters )
129+ .thenApply (
130+ response -> {
131+ return response .getData ();
132+ });
133+ }
134+
135+ /**
136+ * Get active billing dimensions for cost attribution in a given month. Note that billing
137+ * dimensions active in a given month may not appear in the Monthly Cost Attribution API response
138+ * until the 19th of the following month. For the most accurate results, request the same month
139+ * for both endpoints.
140+ *
141+ * @param parameters Optional parameters for the request.
88142 * @return ApiResponse<ActiveBillingDimensionsResponse>
89143 * @throws ApiException if fails to make API call
90144 * @http.response.details
@@ -97,19 +151,23 @@ public CompletableFuture<ActiveBillingDimensionsResponse> getActiveBillingDimens
97151 * <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
98152 * </table>
99153 */
100- public ApiResponse <ActiveBillingDimensionsResponse > getActiveBillingDimensionsWithHttpInfo ()
101- throws ApiException {
154+ public ApiResponse <ActiveBillingDimensionsResponse > getActiveBillingDimensionsWithHttpInfo (
155+ GetActiveBillingDimensionsOptionalParameters parameters ) throws ApiException {
102156 Object localVarPostBody = null ;
157+ OffsetDateTime month = parameters .month ;
103158 // create path and map variables
104159 String localVarPath = "/api/v2/cost_by_tag/active_billing_dimensions" ;
105160
161+ List <Pair > localVarQueryParams = new ArrayList <Pair >();
106162 Map <String , String > localVarHeaderParams = new HashMap <String , String >();
107163
164+ localVarQueryParams .addAll (apiClient .parameterToPairs ("" , "month" , month ));
165+
108166 Invocation .Builder builder =
109167 apiClient .createBuilder (
110168 "v2.UsageMeteringApi.getActiveBillingDimensions" ,
111169 localVarPath ,
112- new ArrayList < Pair >() ,
170+ localVarQueryParams ,
113171 localVarHeaderParams ,
114172 new HashMap <String , String >(),
115173 new String [] {"application/json;datetime-format=rfc3339" },
@@ -130,23 +188,29 @@ public ApiResponse<ActiveBillingDimensionsResponse> getActiveBillingDimensionsWi
130188 *
131189 * <p>See {@link #getActiveBillingDimensionsWithHttpInfo}.
132190 *
191+ * @param parameters Optional parameters for the request.
133192 * @return CompletableFuture<ApiResponse<ActiveBillingDimensionsResponse>>
134193 */
135194 public CompletableFuture <ApiResponse <ActiveBillingDimensionsResponse >>
136- getActiveBillingDimensionsWithHttpInfoAsync () {
195+ getActiveBillingDimensionsWithHttpInfoAsync (
196+ GetActiveBillingDimensionsOptionalParameters parameters ) {
137197 Object localVarPostBody = null ;
198+ OffsetDateTime month = parameters .month ;
138199 // create path and map variables
139200 String localVarPath = "/api/v2/cost_by_tag/active_billing_dimensions" ;
140201
202+ List <Pair > localVarQueryParams = new ArrayList <Pair >();
141203 Map <String , String > localVarHeaderParams = new HashMap <String , String >();
142204
205+ localVarQueryParams .addAll (apiClient .parameterToPairs ("" , "month" , month ));
206+
143207 Invocation .Builder builder ;
144208 try {
145209 builder =
146210 apiClient .createBuilder (
147211 "v2.UsageMeteringApi.getActiveBillingDimensions" ,
148212 localVarPath ,
149- new ArrayList < Pair >() ,
213+ localVarQueryParams ,
150214 localVarHeaderParams ,
151215 new HashMap <String , String >(),
152216 new String [] {"application/json;datetime-format=rfc3339" },
0 commit comments