Skip to content

Commit 9490dbd

Browse files
feat(serviceusage): update the api
#### serviceusage:v1 The following keys were added: - schemas.MetricRule.properties.dynamicMetricCosts (Total Keys: 2) #### serviceusage:v1beta1 The following keys were added: - schemas.MetricRule.properties.dynamicMetricCosts (Total Keys: 2)
1 parent 278892a commit 9490dbd

File tree

4 files changed

+59
-2
lines changed

4 files changed

+59
-2
lines changed

docs/dyn/serviceusage_v1.services.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,9 @@ <h3>Method Details</h3>
321321
],
322322
&quot;metricRules&quot;: [ # List of `MetricRule` definitions, each one mapping a selected method to one or more metrics.
323323
{ # 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.
324+
&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)
325+
&quot;a_key&quot;: &quot;A String&quot;,
326+
},
324327
&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.
325328
&quot;a_key&quot;: &quot;A String&quot;,
326329
},
@@ -615,6 +618,9 @@ <h3>Method Details</h3>
615618
],
616619
&quot;metricRules&quot;: [ # List of `MetricRule` definitions, each one mapping a selected method to one or more metrics.
617620
{ # 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.
621+
&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)
622+
&quot;a_key&quot;: &quot;A String&quot;,
623+
},
618624
&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.
619625
&quot;a_key&quot;: &quot;A String&quot;,
620626
},
@@ -824,6 +830,9 @@ <h3>Method Details</h3>
824830
],
825831
&quot;metricRules&quot;: [ # List of `MetricRule` definitions, each one mapping a selected method to one or more metrics.
826832
{ # 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.
833+
&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)
834+
&quot;a_key&quot;: &quot;A String&quot;,
835+
},
827836
&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.
828837
&quot;a_key&quot;: &quot;A String&quot;,
829838
},

docs/dyn/serviceusage_v1beta1.services.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,9 @@ <h3>Method Details</h3>
445445
],
446446
&quot;metricRules&quot;: [ # List of `MetricRule` definitions, each one mapping a selected method to one or more metrics.
447447
{ # 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.
448+
&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)
449+
&quot;a_key&quot;: &quot;A String&quot;,
450+
},
448451
&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.
449452
&quot;a_key&quot;: &quot;A String&quot;,
450453
},
@@ -654,6 +657,9 @@ <h3>Method Details</h3>
654657
],
655658
&quot;metricRules&quot;: [ # List of `MetricRule` definitions, each one mapping a selected method to one or more metrics.
656659
{ # 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.
660+
&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)
661+
&quot;a_key&quot;: &quot;A String&quot;,
662+
},
657663
&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.
658664
&quot;a_key&quot;: &quot;A String&quot;,
659665
},

googleapiclient/discovery_cache/documents/serviceusage.v1.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@
426426
}
427427
}
428428
},
429-
"revision": "20220503",
429+
"revision": "20220513",
430430
"rootUrl": "https://serviceusage.googleapis.com/",
431431
"schemas": {
432432
"AdminQuotaPolicy": {
@@ -2026,6 +2026,27 @@
20262026
"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.",
20272027
"id": "MetricRule",
20282028
"properties": {
2029+
"dynamicMetricCosts": {
2030+
"additionalProperties": {
2031+
"enum": [
2032+
"DYNAMIC_COST_TYPE_UNSPECIFIED",
2033+
"REQUEST_BODY_BYTES",
2034+
"REQUEST_BODY_AND_HEADER_BYTES",
2035+
"RESPONSE_BODY_BYTES",
2036+
"RESPONSE_BODY_AND_HEADER_BYTES"
2037+
],
2038+
"enumDescriptions": [
2039+
"Unspecified dynamic cost type.",
2040+
"Cost is the request body bytes",
2041+
"Cost is the request body and HTTP header bytes",
2042+
"Cost is the response body bytes",
2043+
"Cost is the response body and header bytes"
2044+
],
2045+
"type": "string"
2046+
},
2047+
"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)",
2048+
"type": "object"
2049+
},
20292050
"metricCosts": {
20302051
"additionalProperties": {
20312052
"format": "int64",

googleapiclient/discovery_cache/documents/serviceusage.v1beta1.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@
959959
}
960960
}
961961
},
962-
"revision": "20220503",
962+
"revision": "20220513",
963963
"rootUrl": "https://serviceusage.googleapis.com/",
964964
"schemas": {
965965
"AdminQuotaPolicy": {
@@ -2716,6 +2716,27 @@
27162716
"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.",
27172717
"id": "MetricRule",
27182718
"properties": {
2719+
"dynamicMetricCosts": {
2720+
"additionalProperties": {
2721+
"enum": [
2722+
"DYNAMIC_COST_TYPE_UNSPECIFIED",
2723+
"REQUEST_BODY_BYTES",
2724+
"REQUEST_BODY_AND_HEADER_BYTES",
2725+
"RESPONSE_BODY_BYTES",
2726+
"RESPONSE_BODY_AND_HEADER_BYTES"
2727+
],
2728+
"enumDescriptions": [
2729+
"Unspecified dynamic cost type.",
2730+
"Cost is the request body bytes",
2731+
"Cost is the request body and HTTP header bytes",
2732+
"Cost is the response body bytes",
2733+
"Cost is the response body and header bytes"
2734+
],
2735+
"type": "string"
2736+
},
2737+
"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)",
2738+
"type": "object"
2739+
},
27192740
"metricCosts": {
27202741
"additionalProperties": {
27212742
"format": "int64",

0 commit comments

Comments
 (0)