Skip to content

Commit 5dbe3b6

Browse files
feat(servicemanagement): update the api
#### servicemanagement:v1 The following keys were added: - schemas.MetricRule.properties.dynamicMetricCosts (Total Keys: 2)
1 parent 130c317 commit 5dbe3b6

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed

docs/dyn/servicemanagement_v1.services.configs.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,9 @@ <h3>Method Details</h3>
439439
],
440440
&quot;metricRules&quot;: [ # List of `MetricRule` definitions, each one mapping a selected method to one or more metrics.
441441
{ # Bind API methods to metrics. Binding a method to a metric causes that metric&#x27;s configured quota behaviors to apply to the method call.
442+
&quot;dynamicMetricCosts&quot;: { # Metrics to update when the selected methods are called. The key of the map is the metric name, the value is the DynamicCostType to specify how to calculate the cost from the request. The cost amount will be increased for the metric against which the quota limits are defined. It is only implemented in CloudESF(go/cloudesf)
443+
&quot;a_key&quot;: &quot;A String&quot;,
444+
},
442445
&quot;metricCosts&quot;: { # Metrics to update when the selected methods are called, and the associated cost applied to each metric. The key of the map is the metric name, and the values are the amount increased for the metric against which the quota limits are defined. The value must not be negative.
443446
&quot;a_key&quot;: &quot;A String&quot;,
444447
},
@@ -905,6 +908,9 @@ <h3>Method Details</h3>
905908
],
906909
&quot;metricRules&quot;: [ # List of `MetricRule` definitions, each one mapping a selected method to one or more metrics.
907910
{ # Bind API methods to metrics. Binding a method to a metric causes that metric&#x27;s configured quota behaviors to apply to the method call.
911+
&quot;dynamicMetricCosts&quot;: { # Metrics to update when the selected methods are called. The key of the map is the metric name, the value is the DynamicCostType to specify how to calculate the cost from the request. The cost amount will be increased for the metric against which the quota limits are defined. It is only implemented in CloudESF(go/cloudesf)
912+
&quot;a_key&quot;: &quot;A String&quot;,
913+
},
908914
&quot;metricCosts&quot;: { # Metrics to update when the selected methods are called, and the associated cost applied to each metric. The key of the map is the metric name, and the values are the amount increased for the metric against which the quota limits are defined. The value must not be negative.
909915
&quot;a_key&quot;: &quot;A String&quot;,
910916
},
@@ -1383,6 +1389,9 @@ <h3>Method Details</h3>
13831389
],
13841390
&quot;metricRules&quot;: [ # List of `MetricRule` definitions, each one mapping a selected method to one or more metrics.
13851391
{ # Bind API methods to metrics. Binding a method to a metric causes that metric&#x27;s configured quota behaviors to apply to the method call.
1392+
&quot;dynamicMetricCosts&quot;: { # Metrics to update when the selected methods are called. The key of the map is the metric name, the value is the DynamicCostType to specify how to calculate the cost from the request. The cost amount will be increased for the metric against which the quota limits are defined. It is only implemented in CloudESF(go/cloudesf)
1393+
&quot;a_key&quot;: &quot;A String&quot;,
1394+
},
13861395
&quot;metricCosts&quot;: { # Metrics to update when the selected methods are called, and the associated cost applied to each metric. The key of the map is the metric name, and the values are the amount increased for the metric against which the quota limits are defined. The value must not be negative.
13871396
&quot;a_key&quot;: &quot;A String&quot;,
13881397
},
@@ -1861,6 +1870,9 @@ <h3>Method Details</h3>
18611870
],
18621871
&quot;metricRules&quot;: [ # List of `MetricRule` definitions, each one mapping a selected method to one or more metrics.
18631872
{ # Bind API methods to metrics. Binding a method to a metric causes that metric&#x27;s configured quota behaviors to apply to the method call.
1873+
&quot;dynamicMetricCosts&quot;: { # Metrics to update when the selected methods are called. The key of the map is the metric name, the value is the DynamicCostType to specify how to calculate the cost from the request. The cost amount will be increased for the metric against which the quota limits are defined. It is only implemented in CloudESF(go/cloudesf)
1874+
&quot;a_key&quot;: &quot;A String&quot;,
1875+
},
18641876
&quot;metricCosts&quot;: { # Metrics to update when the selected methods are called, and the associated cost applied to each metric. The key of the map is the metric name, and the values are the amount increased for the metric against which the quota limits are defined. The value must not be negative.
18651877
&quot;a_key&quot;: &quot;A String&quot;,
18661878
},

docs/dyn/servicemanagement_v1.services.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,9 @@ <h3>Method Details</h3>
634634
],
635635
&quot;metricRules&quot;: [ # List of `MetricRule` definitions, each one mapping a selected method to one or more metrics.
636636
{ # Bind API methods to metrics. Binding a method to a metric causes that metric&#x27;s configured quota behaviors to apply to the method call.
637+
&quot;dynamicMetricCosts&quot;: { # Metrics to update when the selected methods are called. The key of the map is the metric name, the value is the DynamicCostType to specify how to calculate the cost from the request. The cost amount will be increased for the metric against which the quota limits are defined. It is only implemented in CloudESF(go/cloudesf)
638+
&quot;a_key&quot;: &quot;A String&quot;,
639+
},
637640
&quot;metricCosts&quot;: { # Metrics to update when the selected methods are called, and the associated cost applied to each metric. The key of the map is the metric name, and the values are the amount increased for the metric against which the quota limits are defined. The value must not be negative.
638641
&quot;a_key&quot;: &quot;A String&quot;,
639642
},
@@ -823,7 +826,7 @@ <h3>Method Details</h3>
823826

824827
Args:
825828
consumerId: string, Include services consumed by the specified consumer. The Google Service Management implementation accepts the following forms: - project:
826-
pageSize: integer, The max number of items to include in the response list. Page size is 50 if not specified. Maximum value is 100.
829+
pageSize: integer, The max number of items to include in the response list. Page size is 50 if not specified. Maximum value is 500.
827830
pageToken: string, Token identifying which result to start with; returned by a previous list call.
828831
producerProjectId: string, Include services produced by the specified project.
829832
x__xgafv: string, V1 error format.

googleapiclient/discovery_cache/documents/servicemanagement.v1.json

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@
363363
"type": "string"
364364
},
365365
"pageSize": {
366-
"description": "The max number of items to include in the response list. Page size is 50 if not specified. Maximum value is 100.",
366+
"description": "The max number of items to include in the response list. Page size is 50 if not specified. Maximum value is 500.",
367367
"format": "int32",
368368
"location": "query",
369369
"type": "integer"
@@ -829,7 +829,7 @@
829829
}
830830
}
831831
},
832-
"revision": "20220513",
832+
"revision": "20220524",
833833
"rootUrl": "https://servicemanagement.googleapis.com/",
834834
"schemas": {
835835
"Advice": {
@@ -2254,6 +2254,27 @@
22542254
"description": "Bind API methods to metrics. Binding a method to a metric causes that metric's configured quota behaviors to apply to the method call.",
22552255
"id": "MetricRule",
22562256
"properties": {
2257+
"dynamicMetricCosts": {
2258+
"additionalProperties": {
2259+
"enum": [
2260+
"DYNAMIC_COST_TYPE_UNSPECIFIED",
2261+
"REQUEST_BODY_BYTES",
2262+
"REQUEST_BODY_AND_HEADER_BYTES",
2263+
"RESPONSE_BODY_BYTES",
2264+
"RESPONSE_BODY_AND_HEADER_BYTES"
2265+
],
2266+
"enumDescriptions": [
2267+
"Unspecified dynamic cost type.",
2268+
"Cost is the request body bytes",
2269+
"Cost is the request body and HTTP header bytes",
2270+
"Cost is the response body bytes",
2271+
"Cost is the response body and header bytes"
2272+
],
2273+
"type": "string"
2274+
},
2275+
"description": "Metrics to update when the selected methods are called. The key of the map is the metric name, the value is the DynamicCostType to specify how to calculate the cost from the request. The cost amount will be increased for the metric against which the quota limits are defined. It is only implemented in CloudESF(go/cloudesf)",
2276+
"type": "object"
2277+
},
22572278
"metricCosts": {
22582279
"additionalProperties": {
22592280
"format": "int64",

0 commit comments

Comments
 (0)