@alphauspkgs/blue-sdk-ts 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -0
- package/admin/v1/admin_pb.js +239 -0
- package/admin/v1/admin_pb.ts +1604 -0
- package/admin/v1/client.js +9 -0
- package/admin/v1/client.ts +7 -0
- package/api/account_pb.js +22 -0
- package/api/account_pb.ts +132 -0
- package/api/accountgroup_pb.js +18 -0
- package/api/accountgroup_pb.ts +56 -0
- package/api/adjustment_pb.js +26 -0
- package/api/adjustment_pb.ts +102 -0
- package/api/apiclient_pb.js +16 -0
- package/api/apiclient_pb.ts +66 -0
- package/api/audit_pb.js +21 -0
- package/api/audit_pb.ts +70 -0
- package/api/aws/breakeven_pb.js +21 -0
- package/api/aws/breakeven_pb.ts +93 -0
- package/api/aws/calculator_pb.js +31 -0
- package/api/aws/calculator_pb.ts +138 -0
- package/api/aws/cost_pb.js +22 -0
- package/api/aws/cost_pb.ts +315 -0
- package/api/aws/recommendation_pb.js +36 -0
- package/api/aws/recommendation_pb.ts +338 -0
- package/api/aws/reduction_pb.js +31 -0
- package/api/aws/reduction_pb.ts +416 -0
- package/api/azure/cost_pb.js +21 -0
- package/api/azure/cost_pb.ts +268 -0
- package/api/azureea/cost_pb.js +16 -0
- package/api/azureea/cost_pb.ts +141 -0
- package/api/budget_pb.js +57 -0
- package/api/budget_pb.ts +293 -0
- package/api/costtag_pb.js +17 -0
- package/api/costtag_pb.ts +77 -0
- package/api/cover/accountaccess_pb.js +46 -0
- package/api/cover/accountaccess_pb.ts +334 -0
- package/api/cover/alert_pb.js +36 -0
- package/api/cover/alert_pb.ts +183 -0
- package/api/cover/applyrecommendation_pb.js +41 -0
- package/api/cover/applyrecommendation_pb.ts +133 -0
- package/api/cover/asset_pb.js +26 -0
- package/api/cover/asset_pb.ts +305 -0
- package/api/cover/attribute_pb.js +21 -0
- package/api/cover/attribute_pb.ts +58 -0
- package/api/cover/budget_pb.js +42 -0
- package/api/cover/budget_pb.ts +275 -0
- package/api/cover/costforecast_pb.js +16 -0
- package/api/cover/costforecast_pb.ts +81 -0
- package/api/cover/costgroup_pb.js +89 -0
- package/api/cover/costgroup_pb.ts +473 -0
- package/api/cover/discountplan_pb.js +31 -0
- package/api/cover/discountplan_pb.ts +461 -0
- package/api/cover/discountrecommendation_pb.js +96 -0
- package/api/cover/discountrecommendation_pb.ts +500 -0
- package/api/cover/insightreport_pb.js +26 -0
- package/api/cover/insightreport_pb.ts +167 -0
- package/api/cover/optimizationrecommendation_pb.js +262 -0
- package/api/cover/optimizationrecommendation_pb.ts +1964 -0
- package/api/cover/recommendation/aws_pb.js +407 -0
- package/api/cover/recommendation/aws_pb.ts +2418 -0
- package/api/cover/recommendation/azurecsp_pb.js +16 -0
- package/api/cover/recommendation/azurecsp_pb.ts +27 -0
- package/api/cover/recommendation/gcp_pb.js +27 -0
- package/api/cover/recommendation/gcp_pb.ts +91 -0
- package/api/cover/recommendation/octoaws_pb.js +22 -0
- package/api/cover/recommendation/octoaws_pb.ts +55 -0
- package/api/cover/recommendation/octoazurecsp_pb.js +16 -0
- package/api/cover/recommendation/octoazurecsp_pb.ts +27 -0
- package/api/cover/recommendation/octogcp_pb.js +16 -0
- package/api/cover/recommendation/octogcp_pb.ts +27 -0
- package/api/cover/recommendation/recommendation_pb.js +27 -0
- package/api/cover/recommendation/recommendation_pb.ts +190 -0
- package/api/cover/rightsizingrecommendation_pb.js +21 -0
- package/api/cover/rightsizingrecommendation_pb.ts +133 -0
- package/api/cover/unitcost_pb.js +82 -0
- package/api/cover/unitcost_pb.ts +576 -0
- package/api/cover/user_pb.js +26 -0
- package/api/cover/user_pb.ts +330 -0
- package/api/cover/view_pb.js +53 -0
- package/api/cover/view_pb.ts +393 -0
- package/api/coverage_pb.js +31 -0
- package/api/coverage_pb.ts +132 -0
- package/api/forecast_pb.js +61 -0
- package/api/forecast_pb.ts +346 -0
- package/api/gcp/cost_pb.js +16 -0
- package/api/gcp/cost_pb.ts +128 -0
- package/api/grouprootuser_pb.js +21 -0
- package/api/grouprootuser_pb.ts +390 -0
- package/api/invoice_pb.js +96 -0
- package/api/invoice_pb.ts +905 -0
- package/api/keyvalue_pb.js +21 -0
- package/api/keyvalue_pb.ts +72 -0
- package/api/notification_pb.js +46 -0
- package/api/notification_pb.ts +232 -0
- package/api/pricing/details_pb.js +17 -0
- package/api/pricing/details_pb.ts +172 -0
- package/api/rbac_pb.js +31 -0
- package/api/rbac_pb.ts +142 -0
- package/api/ripple/accessgroup_pb.js +16 -0
- package/api/ripple/accessgroup_pb.ts +48 -0
- package/api/ripple/billinggroup_pb.js +16 -0
- package/api/ripple/billinggroup_pb.ts +154 -0
- package/api/ripple/customfield_pb.js +16 -0
- package/api/ripple/customfield_pb.ts +49 -0
- package/api/ripple/customizedbillingservice_pb.js +175 -0
- package/api/ripple/customizedbillingservice_pb.ts +455 -0
- package/api/ripple/duedate_pb.js +16 -0
- package/api/ripple/duedate_pb.ts +58 -0
- package/api/ripple/exchangerate_pb.js +41 -0
- package/api/ripple/exchangerate_pb.ts +205 -0
- package/api/ripple/invoicelayout_pb.js +46 -0
- package/api/ripple/invoicelayout_pb.ts +547 -0
- package/api/ripple/org_pb.js +16 -0
- package/api/ripple/org_pb.ts +51 -0
- package/api/ripple/payer_pb.js +18 -0
- package/api/ripple/payer_pb.ts +60 -0
- package/api/ripple/reseller_pb.js +21 -0
- package/api/ripple/reseller_pb.ts +168 -0
- package/api/ripple/rounding_pb.js +46 -0
- package/api/ripple/rounding_pb.ts +69 -0
- package/api/ripple/untaggedgroup_pb.js +28 -0
- package/api/ripple/untaggedgroup_pb.ts +151 -0
- package/api/ripple/v1/accountsupportplan_pb.js +59 -0
- package/api/ripple/v1/accountsupportplan_pb.ts +98 -0
- package/api/ripple/v1/adjustmententry_pb.js +31 -0
- package/api/ripple/v1/adjustmententry_pb.ts +275 -0
- package/api/ripple/v1/dashboard_pb.js +61 -0
- package/api/ripple/v1/dashboard_pb.ts +661 -0
- package/api/ripple/v1/export_pb.js +16 -0
- package/api/ripple/v1/export_pb.ts +49 -0
- package/api/ripple/v1/invoiceservicediscounts_pb.js +48 -0
- package/api/ripple/v1/invoiceservicediscounts_pb.ts +298 -0
- package/api/ripple/yearmonth_pb.js +16 -0
- package/api/ripple/yearmonth_pb.ts +35 -0
- package/api/user_pb.js +26 -0
- package/api/user_pb.ts +124 -0
- package/api/utilization_pb.js +21 -0
- package/api/utilization_pb.ts +78 -0
- package/api/wave/adjustment_pb.js +16 -0
- package/api/wave/adjustment_pb.ts +105 -0
- package/api/wave/budget_pb.js +27 -0
- package/api/wave/budget_pb.ts +122 -0
- package/billing/v1/billing_pb.js +952 -0
- package/billing/v1/billing_pb.ts +7570 -0
- package/billing/v1/client.js +9 -0
- package/billing/v1/client.ts +7 -0
- package/conn/conn.js +38 -0
- package/conn/conn.ts +46 -0
- package/cost/v1/client.js +9 -0
- package/cost/v1/client.ts +7 -0
- package/cost/v1/cost_pb.js +721 -0
- package/cost/v1/cost_pb.ts +5845 -0
- package/cover/v1/client.js +9 -0
- package/cover/v1/client.ts +7 -0
- package/cover/v1/cover_pb.js +2085 -0
- package/cover/v1/cover_pb.ts +12883 -0
- package/flow/v1/client.js +9 -0
- package/flow/v1/client.ts +7 -0
- package/flow/v1/flow_pb.js +265 -0
- package/flow/v1/flow_pb.ts +2496 -0
- package/google/api/annotations_pb.js +29 -0
- package/google/api/annotations_pb.ts +39 -0
- package/google/api/auth_pb.js +47 -0
- package/google/api/auth_pb.ts +295 -0
- package/google/api/backend_pb.js +31 -0
- package/google/api/backend_pb.ts +97 -0
- package/google/api/billing_pb.js +32 -0
- package/google/api/billing_pb.ts +104 -0
- package/google/api/client_pb.js +101 -0
- package/google/api/client_pb.ts +114 -0
- package/google/api/config_change_pb.js +71 -0
- package/google/api/config_change_pb.ts +161 -0
- package/google/api/consumer_pb.js +73 -0
- package/google/api/consumer_pb.ts +156 -0
- package/google/api/context_pb.js +31 -0
- package/google/api/context_pb.ts +105 -0
- package/google/api/control_pb.js +26 -0
- package/google/api/control_pb.ts +52 -0
- package/google/api/distribution_pb.js +58 -0
- package/google/api/distribution_pb.ts +388 -0
- package/google/api/documentation_pb.js +36 -0
- package/google/api/documentation_pb.ts +238 -0
- package/google/api/endpoint_pb.js +27 -0
- package/google/api/endpoint_pb.ts +105 -0
- package/google/api/field_behavior_pb.js +103 -0
- package/google/api/field_behavior_pb.ts +119 -0
- package/google/api/http_pb.js +36 -0
- package/google/api/http_pb.ts +420 -0
- package/google/api/httpbody_pb.js +27 -0
- package/google/api/httpbody_pb.ts +103 -0
- package/google/api/label_pb.js +56 -0
- package/google/api/label_pb.ts +97 -0
- package/google/api/launch_stage_pb.js +92 -0
- package/google/api/launch_stage_pb.ts +105 -0
- package/google/api/log_pb.js +27 -0
- package/google/api/log_pb.ts +86 -0
- package/google/api/logging_pb.js +32 -0
- package/google/api/logging_pb.ts +124 -0
- package/google/api/metric_pb.js +128 -0
- package/google/api/metric_pb.ts +322 -0
- package/google/api/monitored_resource_pb.js +38 -0
- package/google/api/monitored_resource_pb.ts +188 -0
- package/google/api/monitoring_pb.js +32 -0
- package/google/api/monitoring_pb.ts +130 -0
- package/google/api/quota_pb.js +37 -0
- package/google/api/quota_pb.ts +351 -0
- package/google/api/resource_pb.js +118 -0
- package/google/api/resource_pb.ts +410 -0
- package/google/api/service_pb.js +45 -0
- package/google/api/service_pb.ts +302 -0
- package/google/api/source_info_pb.js +27 -0
- package/google/api/source_info_pb.ts +51 -0
- package/google/api/system_parameter_pb.js +36 -0
- package/google/api/system_parameter_pb.ts +157 -0
- package/google/api/usage_pb.js +32 -0
- package/google/api/usage_pb.ts +141 -0
- package/google/longrunning/operations_pb.js +90 -0
- package/google/longrunning/operations_pb.ts +434 -0
- package/google/rpc/code_pb.js +244 -0
- package/google/rpc/code_pb.ts +268 -0
- package/google/rpc/context/attribute_context_pb.js +57 -0
- package/google/rpc/context/attribute_context_pb.ts +532 -0
- package/google/rpc/error_details_pb.js +92 -0
- package/google/rpc/error_details_pb.ts +513 -0
- package/google/rpc/status_pb.js +27 -0
- package/google/rpc/status_pb.ts +74 -0
- package/iam/v1/client.js +9 -0
- package/iam/v1/client.ts +8 -0
- package/iam/v1/iam_pb.js +285 -0
- package/iam/v1/iam_pb.ts +1698 -0
- package/kvstore/v1/kvstore_pb.js +40 -0
- package/kvstore/v1/kvstore_pb.ts +155 -0
- package/operations/v1/operations_pb.js +52 -0
- package/operations/v1/operations_pb.ts +235 -0
- package/org/v1/client.js +9 -0
- package/org/v1/client.ts +7 -0
- package/org/v1/org_pb.js +61 -0
- package/org/v1/org_pb.ts +321 -0
- package/package.json +22 -0
- package/preferences/v1/client.js +9 -0
- package/preferences/v1/client.ts +8 -0
- package/preferences/v1/preferences_pb.js +29 -0
- package/preferences/v1/preferences_pb.ts +63 -0
- package/pricing/v1/client.js +9 -0
- package/pricing/v1/client.ts +7 -0
- package/pricing/v1/pricing_pb.js +60 -0
- package/pricing/v1/pricing_pb.ts +311 -0
- package/prism/v1/client.js +9 -0
- package/prism/v1/client.ts +7 -0
- package/prism/v1/prism_pb.js +250 -0
- package/prism/v1/prism_pb.ts +1396 -0
- package/protoc-gen-openapiv2/options/annotations_pb.js +58 -0
- package/protoc-gen-openapiv2/options/annotations_pb.ts +72 -0
- package/protoc-gen-openapiv2/options/openapiv2_pb.js +253 -0
- package/protoc-gen-openapiv2/options/openapiv2_pb.ts +1313 -0
- package/protos/entity_pb.js +17 -0
- package/protos/entity_pb.ts +49 -0
- package/protos/message_pb.js +16 -0
- package/protos/message_pb.ts +40 -0
- package/protos/operation_pb.js +33 -0
- package/protos/operation_pb.ts +198 -0
- package/tsconfig.json +12 -0
- package/vortex/v1/client.js +9 -0
- package/vortex/v1/client.ts +7 -0
- package/vortex/v1/vortex_pb.js +65 -0
- package/vortex/v1/vortex_pb.ts +280 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018 Google LLC.
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.Monitoring_MonitoringDestinationSchema = exports.MonitoringSchema = exports.file_google_api_monitoring = void 0;
|
|
17
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
18
|
+
const annotations_pb_1 = require("./annotations_pb");
|
|
19
|
+
/**
|
|
20
|
+
* Describes the file google/api/monitoring.proto.
|
|
21
|
+
*/
|
|
22
|
+
exports.file_google_api_monitoring = (0, codegenv2_1.fileDesc)("Chtnb29nbGUvYXBpL21vbml0b3JpbmcucHJvdG8SCmdvb2dsZS5hcGki7AEKCk1vbml0b3JpbmcSSwoVcHJvZHVjZXJfZGVzdGluYXRpb25zGAEgAygLMiwuZ29vZ2xlLmFwaS5Nb25pdG9yaW5nLk1vbml0b3JpbmdEZXN0aW5hdGlvbhJLChVjb25zdW1lcl9kZXN0aW5hdGlvbnMYAiADKAsyLC5nb29nbGUuYXBpLk1vbml0b3JpbmcuTW9uaXRvcmluZ0Rlc3RpbmF0aW9uGkQKFU1vbml0b3JpbmdEZXN0aW5hdGlvbhIaChJtb25pdG9yZWRfcmVzb3VyY2UYASABKAkSDwoHbWV0cmljcxgCIAMoCUJxCg5jb20uZ29vZ2xlLmFwaUIPTW9uaXRvcmluZ1Byb3RvUAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYXBpL3NlcnZpY2Vjb25maWc7c2VydmljZWNvbmZpZ6ICBEdBUEliBnByb3RvMw", [annotations_pb_1.file_google_api_annotations]);
|
|
23
|
+
/**
|
|
24
|
+
* Describes the message google.api.Monitoring.
|
|
25
|
+
* Use `create(MonitoringSchema)` to create a new message.
|
|
26
|
+
*/
|
|
27
|
+
exports.MonitoringSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_monitoring, 0);
|
|
28
|
+
/**
|
|
29
|
+
* Describes the message google.api.Monitoring.MonitoringDestination.
|
|
30
|
+
* Use `create(Monitoring_MonitoringDestinationSchema)` to create a new message.
|
|
31
|
+
*/
|
|
32
|
+
exports.Monitoring_MonitoringDestinationSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_monitoring, 0, 0);
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
// Copyright 2018 Google LLC.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
// @generated by protoc-gen-es v2.7.0 with parameter "target=ts"
|
|
16
|
+
// @generated from file google/api/monitoring.proto (package google.api, syntax proto3)
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
|
|
19
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
20
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
21
|
+
import { file_google_api_annotations } from "./annotations_pb";
|
|
22
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Describes the file google/api/monitoring.proto.
|
|
26
|
+
*/
|
|
27
|
+
export const file_google_api_monitoring: GenFile = /*@__PURE__*/
|
|
28
|
+
fileDesc("Chtnb29nbGUvYXBpL21vbml0b3JpbmcucHJvdG8SCmdvb2dsZS5hcGki7AEKCk1vbml0b3JpbmcSSwoVcHJvZHVjZXJfZGVzdGluYXRpb25zGAEgAygLMiwuZ29vZ2xlLmFwaS5Nb25pdG9yaW5nLk1vbml0b3JpbmdEZXN0aW5hdGlvbhJLChVjb25zdW1lcl9kZXN0aW5hdGlvbnMYAiADKAsyLC5nb29nbGUuYXBpLk1vbml0b3JpbmcuTW9uaXRvcmluZ0Rlc3RpbmF0aW9uGkQKFU1vbml0b3JpbmdEZXN0aW5hdGlvbhIaChJtb25pdG9yZWRfcmVzb3VyY2UYASABKAkSDwoHbWV0cmljcxgCIAMoCUJxCg5jb20uZ29vZ2xlLmFwaUIPTW9uaXRvcmluZ1Byb3RvUAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYXBpL3NlcnZpY2Vjb25maWc7c2VydmljZWNvbmZpZ6ICBEdBUEliBnByb3RvMw", [file_google_api_annotations]);
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Monitoring configuration of the service.
|
|
32
|
+
*
|
|
33
|
+
* The example below shows how to configure monitored resources and metrics
|
|
34
|
+
* for monitoring. In the example, a monitored resource and two metrics are
|
|
35
|
+
* defined. The `library.googleapis.com/book/returned_count` metric is sent
|
|
36
|
+
* to both producer and consumer projects, whereas the
|
|
37
|
+
* `library.googleapis.com/book/overdue_count` metric is only sent to the
|
|
38
|
+
* consumer project.
|
|
39
|
+
*
|
|
40
|
+
* monitored_resources:
|
|
41
|
+
* - type: library.googleapis.com/branch
|
|
42
|
+
* labels:
|
|
43
|
+
* - key: /city
|
|
44
|
+
* description: The city where the library branch is located in.
|
|
45
|
+
* - key: /name
|
|
46
|
+
* description: The name of the branch.
|
|
47
|
+
* metrics:
|
|
48
|
+
* - name: library.googleapis.com/book/returned_count
|
|
49
|
+
* metric_kind: DELTA
|
|
50
|
+
* value_type: INT64
|
|
51
|
+
* labels:
|
|
52
|
+
* - key: /customer_id
|
|
53
|
+
* - name: library.googleapis.com/book/overdue_count
|
|
54
|
+
* metric_kind: GAUGE
|
|
55
|
+
* value_type: INT64
|
|
56
|
+
* labels:
|
|
57
|
+
* - key: /customer_id
|
|
58
|
+
* monitoring:
|
|
59
|
+
* producer_destinations:
|
|
60
|
+
* - monitored_resource: library.googleapis.com/branch
|
|
61
|
+
* metrics:
|
|
62
|
+
* - library.googleapis.com/book/returned_count
|
|
63
|
+
* consumer_destinations:
|
|
64
|
+
* - monitored_resource: library.googleapis.com/branch
|
|
65
|
+
* metrics:
|
|
66
|
+
* - library.googleapis.com/book/returned_count
|
|
67
|
+
* - library.googleapis.com/book/overdue_count
|
|
68
|
+
*
|
|
69
|
+
* @generated from message google.api.Monitoring
|
|
70
|
+
*/
|
|
71
|
+
export type Monitoring = Message<"google.api.Monitoring"> & {
|
|
72
|
+
/**
|
|
73
|
+
* Monitoring configurations for sending metrics to the producer project.
|
|
74
|
+
* There can be multiple producer destinations, each one must have a
|
|
75
|
+
* different monitored resource type. A metric can be used in at most
|
|
76
|
+
* one producer destination.
|
|
77
|
+
*
|
|
78
|
+
* @generated from field: repeated google.api.Monitoring.MonitoringDestination producer_destinations = 1;
|
|
79
|
+
*/
|
|
80
|
+
producerDestinations: Monitoring_MonitoringDestination[];
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Monitoring configurations for sending metrics to the consumer project.
|
|
84
|
+
* There can be multiple consumer destinations, each one must have a
|
|
85
|
+
* different monitored resource type. A metric can be used in at most
|
|
86
|
+
* one consumer destination.
|
|
87
|
+
*
|
|
88
|
+
* @generated from field: repeated google.api.Monitoring.MonitoringDestination consumer_destinations = 2;
|
|
89
|
+
*/
|
|
90
|
+
consumerDestinations: Monitoring_MonitoringDestination[];
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Describes the message google.api.Monitoring.
|
|
95
|
+
* Use `create(MonitoringSchema)` to create a new message.
|
|
96
|
+
*/
|
|
97
|
+
export const MonitoringSchema: GenMessage<Monitoring> = /*@__PURE__*/
|
|
98
|
+
messageDesc(file_google_api_monitoring, 0);
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Configuration of a specific monitoring destination (the producer project
|
|
102
|
+
* or the consumer project).
|
|
103
|
+
*
|
|
104
|
+
* @generated from message google.api.Monitoring.MonitoringDestination
|
|
105
|
+
*/
|
|
106
|
+
export type Monitoring_MonitoringDestination = Message<"google.api.Monitoring.MonitoringDestination"> & {
|
|
107
|
+
/**
|
|
108
|
+
* The monitored resource type. The type must be defined in
|
|
109
|
+
* [Service.monitored_resources][google.api.Service.monitored_resources] section.
|
|
110
|
+
*
|
|
111
|
+
* @generated from field: string monitored_resource = 1;
|
|
112
|
+
*/
|
|
113
|
+
monitoredResource: string;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Names of the metrics to report to this monitoring destination.
|
|
117
|
+
* Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
|
|
118
|
+
*
|
|
119
|
+
* @generated from field: repeated string metrics = 2;
|
|
120
|
+
*/
|
|
121
|
+
metrics: string[];
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Describes the message google.api.Monitoring.MonitoringDestination.
|
|
126
|
+
* Use `create(Monitoring_MonitoringDestinationSchema)` to create a new message.
|
|
127
|
+
*/
|
|
128
|
+
export const Monitoring_MonitoringDestinationSchema: GenMessage<Monitoring_MonitoringDestination> = /*@__PURE__*/
|
|
129
|
+
messageDesc(file_google_api_monitoring, 0, 0);
|
|
130
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2017 Google Inc.
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.QuotaLimitSchema = exports.MetricRuleSchema = exports.QuotaSchema = exports.file_google_api_quota = void 0;
|
|
17
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
18
|
+
const annotations_pb_1 = require("./annotations_pb");
|
|
19
|
+
/**
|
|
20
|
+
* Describes the file google/api/quota.proto.
|
|
21
|
+
*/
|
|
22
|
+
exports.file_google_api_quota = (0, codegenv2_1.fileDesc)("ChZnb29nbGUvYXBpL3F1b3RhLnByb3RvEgpnb29nbGUuYXBpIl0KBVF1b3RhEiYKBmxpbWl0cxgDIAMoCzIWLmdvb2dsZS5hcGkuUXVvdGFMaW1pdBIsCgxtZXRyaWNfcnVsZXMYBCADKAsyFi5nb29nbGUuYXBpLk1ldHJpY1J1bGUikQEKCk1ldHJpY1J1bGUSEAoIc2VsZWN0b3IYASABKAkSPQoMbWV0cmljX2Nvc3RzGAIgAygLMicuZ29vZ2xlLmFwaS5NZXRyaWNSdWxlLk1ldHJpY0Nvc3RzRW50cnkaMgoQTWV0cmljQ29zdHNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAM6AjgBIpUCCgpRdW90YUxpbWl0EgwKBG5hbWUYBiABKAkSEwoLZGVzY3JpcHRpb24YAiABKAkSFQoNZGVmYXVsdF9saW1pdBgDIAEoAxIRCgltYXhfbGltaXQYBCABKAMSEQoJZnJlZV90aWVyGAcgASgDEhAKCGR1cmF0aW9uGAUgASgJEg4KBm1ldHJpYxgIIAEoCRIMCgR1bml0GAkgASgJEjIKBnZhbHVlcxgKIAMoCzIiLmdvb2dsZS5hcGkuUXVvdGFMaW1pdC5WYWx1ZXNFbnRyeRIUCgxkaXNwbGF5X25hbWUYDCABKAkaLQoLVmFsdWVzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgDOgI4AUJsCg5jb20uZ29vZ2xlLmFwaUIKUXVvdGFQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2FwaS9zZXJ2aWNlY29uZmlnO3NlcnZpY2Vjb25maWeiAgRHQVBJYgZwcm90bzM", [annotations_pb_1.file_google_api_annotations]);
|
|
23
|
+
/**
|
|
24
|
+
* Describes the message google.api.Quota.
|
|
25
|
+
* Use `create(QuotaSchema)` to create a new message.
|
|
26
|
+
*/
|
|
27
|
+
exports.QuotaSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_quota, 0);
|
|
28
|
+
/**
|
|
29
|
+
* Describes the message google.api.MetricRule.
|
|
30
|
+
* Use `create(MetricRuleSchema)` to create a new message.
|
|
31
|
+
*/
|
|
32
|
+
exports.MetricRuleSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_quota, 1);
|
|
33
|
+
/**
|
|
34
|
+
* Describes the message google.api.QuotaLimit.
|
|
35
|
+
* Use `create(QuotaLimitSchema)` to create a new message.
|
|
36
|
+
*/
|
|
37
|
+
exports.QuotaLimitSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_quota, 2);
|
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
// Copyright 2017 Google Inc.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
// @generated by protoc-gen-es v2.7.0 with parameter "target=ts"
|
|
16
|
+
// @generated from file google/api/quota.proto (package google.api, syntax proto3)
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
|
|
19
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
20
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
21
|
+
import { file_google_api_annotations } from "./annotations_pb";
|
|
22
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Describes the file google/api/quota.proto.
|
|
26
|
+
*/
|
|
27
|
+
export const file_google_api_quota: GenFile = /*@__PURE__*/
|
|
28
|
+
fileDesc("ChZnb29nbGUvYXBpL3F1b3RhLnByb3RvEgpnb29nbGUuYXBpIl0KBVF1b3RhEiYKBmxpbWl0cxgDIAMoCzIWLmdvb2dsZS5hcGkuUXVvdGFMaW1pdBIsCgxtZXRyaWNfcnVsZXMYBCADKAsyFi5nb29nbGUuYXBpLk1ldHJpY1J1bGUikQEKCk1ldHJpY1J1bGUSEAoIc2VsZWN0b3IYASABKAkSPQoMbWV0cmljX2Nvc3RzGAIgAygLMicuZ29vZ2xlLmFwaS5NZXRyaWNSdWxlLk1ldHJpY0Nvc3RzRW50cnkaMgoQTWV0cmljQ29zdHNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAM6AjgBIpUCCgpRdW90YUxpbWl0EgwKBG5hbWUYBiABKAkSEwoLZGVzY3JpcHRpb24YAiABKAkSFQoNZGVmYXVsdF9saW1pdBgDIAEoAxIRCgltYXhfbGltaXQYBCABKAMSEQoJZnJlZV90aWVyGAcgASgDEhAKCGR1cmF0aW9uGAUgASgJEg4KBm1ldHJpYxgIIAEoCRIMCgR1bml0GAkgASgJEjIKBnZhbHVlcxgKIAMoCzIiLmdvb2dsZS5hcGkuUXVvdGFMaW1pdC5WYWx1ZXNFbnRyeRIUCgxkaXNwbGF5X25hbWUYDCABKAkaLQoLVmFsdWVzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgDOgI4AUJsCg5jb20uZ29vZ2xlLmFwaUIKUXVvdGFQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2FwaS9zZXJ2aWNlY29uZmlnO3NlcnZpY2Vjb25maWeiAgRHQVBJYgZwcm90bzM", [file_google_api_annotations]);
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Quota configuration helps to achieve fairness and budgeting in service
|
|
32
|
+
* usage.
|
|
33
|
+
*
|
|
34
|
+
* The quota configuration works this way:
|
|
35
|
+
* - The service configuration defines a set of metrics.
|
|
36
|
+
* - For API calls, the quota.metric_rules maps methods to metrics with
|
|
37
|
+
* corresponding costs.
|
|
38
|
+
* - The quota.limits defines limits on the metrics, which will be used for
|
|
39
|
+
* quota checks at runtime.
|
|
40
|
+
*
|
|
41
|
+
* An example quota configuration in yaml format:
|
|
42
|
+
*
|
|
43
|
+
* quota:
|
|
44
|
+
* limits:
|
|
45
|
+
*
|
|
46
|
+
* - name: apiWriteQpsPerProject
|
|
47
|
+
* metric: library.googleapis.com/write_calls
|
|
48
|
+
* unit: "1/min/{project}" # rate limit for consumer projects
|
|
49
|
+
* values:
|
|
50
|
+
* STANDARD: 10000
|
|
51
|
+
*
|
|
52
|
+
* # The metric rules bind all methods to the read_calls metric,
|
|
53
|
+
* # except for the UpdateBook and DeleteBook methods. These two methods
|
|
54
|
+
* # are mapped to the write_calls metric, with the UpdateBook method
|
|
55
|
+
* # consuming at twice rate as the DeleteBook method.
|
|
56
|
+
* metric_rules:
|
|
57
|
+
* - selector: "*"
|
|
58
|
+
* metric_costs:
|
|
59
|
+
* library.googleapis.com/read_calls: 1
|
|
60
|
+
* - selector: google.example.library.v1.LibraryService.UpdateBook
|
|
61
|
+
* metric_costs:
|
|
62
|
+
* library.googleapis.com/write_calls: 2
|
|
63
|
+
* - selector: google.example.library.v1.LibraryService.DeleteBook
|
|
64
|
+
* metric_costs:
|
|
65
|
+
* library.googleapis.com/write_calls: 1
|
|
66
|
+
*
|
|
67
|
+
* Corresponding Metric definition:
|
|
68
|
+
*
|
|
69
|
+
* metrics:
|
|
70
|
+
* - name: library.googleapis.com/read_calls
|
|
71
|
+
* display_name: Read requests
|
|
72
|
+
* metric_kind: DELTA
|
|
73
|
+
* value_type: INT64
|
|
74
|
+
*
|
|
75
|
+
* - name: library.googleapis.com/write_calls
|
|
76
|
+
* display_name: Write requests
|
|
77
|
+
* metric_kind: DELTA
|
|
78
|
+
* value_type: INT64
|
|
79
|
+
*
|
|
80
|
+
*
|
|
81
|
+
* @generated from message google.api.Quota
|
|
82
|
+
*/
|
|
83
|
+
export type Quota = Message<"google.api.Quota"> & {
|
|
84
|
+
/**
|
|
85
|
+
* List of `QuotaLimit` definitions for the service.
|
|
86
|
+
*
|
|
87
|
+
* Used by metric-based quotas only.
|
|
88
|
+
*
|
|
89
|
+
* @generated from field: repeated google.api.QuotaLimit limits = 3;
|
|
90
|
+
*/
|
|
91
|
+
limits: QuotaLimit[];
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* List of `MetricRule` definitions, each one mapping a selected method to one
|
|
95
|
+
* or more metrics.
|
|
96
|
+
*
|
|
97
|
+
* Used by metric-based quotas only.
|
|
98
|
+
*
|
|
99
|
+
* @generated from field: repeated google.api.MetricRule metric_rules = 4;
|
|
100
|
+
*/
|
|
101
|
+
metricRules: MetricRule[];
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Describes the message google.api.Quota.
|
|
106
|
+
* Use `create(QuotaSchema)` to create a new message.
|
|
107
|
+
*/
|
|
108
|
+
export const QuotaSchema: GenMessage<Quota> = /*@__PURE__*/
|
|
109
|
+
messageDesc(file_google_api_quota, 0);
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Bind API methods to metrics. Binding a method to a metric causes that
|
|
113
|
+
* metric's configured quota, billing, and monitoring behaviors to apply to the
|
|
114
|
+
* method call.
|
|
115
|
+
*
|
|
116
|
+
* Used by metric-based quotas only.
|
|
117
|
+
*
|
|
118
|
+
* @generated from message google.api.MetricRule
|
|
119
|
+
*/
|
|
120
|
+
export type MetricRule = Message<"google.api.MetricRule"> & {
|
|
121
|
+
/**
|
|
122
|
+
* Selects the methods to which this rule applies.
|
|
123
|
+
*
|
|
124
|
+
* Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
|
|
125
|
+
*
|
|
126
|
+
* @generated from field: string selector = 1;
|
|
127
|
+
*/
|
|
128
|
+
selector: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Metrics to update when the selected methods are called, and the associated
|
|
132
|
+
* cost applied to each metric.
|
|
133
|
+
*
|
|
134
|
+
* The key of the map is the metric name, and the values are the amount
|
|
135
|
+
* increased for the metric against which the quota limits are defined.
|
|
136
|
+
* The value must not be negative.
|
|
137
|
+
*
|
|
138
|
+
* @generated from field: map<string, int64> metric_costs = 2;
|
|
139
|
+
*/
|
|
140
|
+
metricCosts: { [key: string]: bigint };
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Describes the message google.api.MetricRule.
|
|
145
|
+
* Use `create(MetricRuleSchema)` to create a new message.
|
|
146
|
+
*/
|
|
147
|
+
export const MetricRuleSchema: GenMessage<MetricRule> = /*@__PURE__*/
|
|
148
|
+
messageDesc(file_google_api_quota, 1);
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* `QuotaLimit` defines a specific limit that applies over a specified duration
|
|
152
|
+
* for a limit type. There can be at most one limit for a duration and limit
|
|
153
|
+
* type combination defined within a `QuotaGroup`.
|
|
154
|
+
*
|
|
155
|
+
* @generated from message google.api.QuotaLimit
|
|
156
|
+
*/
|
|
157
|
+
export type QuotaLimit = Message<"google.api.QuotaLimit"> & {
|
|
158
|
+
/**
|
|
159
|
+
* Name of the quota limit. The name is used to refer to the limit when
|
|
160
|
+
* overriding the default limit on per-consumer basis.
|
|
161
|
+
*
|
|
162
|
+
* For group-based quota limits, the name must be unique within the quota
|
|
163
|
+
* group. If a name is not provided, it will be generated from the limit_by
|
|
164
|
+
* and duration fields.
|
|
165
|
+
*
|
|
166
|
+
* For metric-based quota limits, the name must be provided, and it must be
|
|
167
|
+
* unique within the service. The name can only include alphanumeric
|
|
168
|
+
* characters as well as '-'.
|
|
169
|
+
*
|
|
170
|
+
* The maximum length of the limit name is 64 characters.
|
|
171
|
+
*
|
|
172
|
+
* The name of a limit is used as a unique identifier for this limit.
|
|
173
|
+
* Therefore, once a limit has been put into use, its name should be
|
|
174
|
+
* immutable. You can use the display_name field to provide a user-friendly
|
|
175
|
+
* name for the limit. The display name can be evolved over time without
|
|
176
|
+
* affecting the identity of the limit.
|
|
177
|
+
*
|
|
178
|
+
* @generated from field: string name = 6;
|
|
179
|
+
*/
|
|
180
|
+
name: string;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Optional. User-visible, extended description for this quota limit.
|
|
184
|
+
* Should be used only when more context is needed to understand this limit
|
|
185
|
+
* than provided by the limit's display name (see: `display_name`).
|
|
186
|
+
*
|
|
187
|
+
* @generated from field: string description = 2;
|
|
188
|
+
*/
|
|
189
|
+
description: string;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Default number of tokens that can be consumed during the specified
|
|
193
|
+
* duration. This is the number of tokens assigned when a client
|
|
194
|
+
* application developer activates the service for his/her project.
|
|
195
|
+
*
|
|
196
|
+
* Specifying a value of 0 will block all requests. This can be used if you
|
|
197
|
+
* are provisioning quota to selected consumers and blocking others.
|
|
198
|
+
* Similarly, a value of -1 will indicate an unlimited quota. No other
|
|
199
|
+
* negative values are allowed.
|
|
200
|
+
*
|
|
201
|
+
* Used by group-based quotas only.
|
|
202
|
+
*
|
|
203
|
+
* @generated from field: int64 default_limit = 3;
|
|
204
|
+
*/
|
|
205
|
+
defaultLimit: bigint;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Maximum number of tokens that can be consumed during the specified
|
|
209
|
+
* duration. Client application developers can override the default limit up
|
|
210
|
+
* to this maximum. If specified, this value cannot be set to a value less
|
|
211
|
+
* than the default limit. If not specified, it is set to the default limit.
|
|
212
|
+
*
|
|
213
|
+
* To allow clients to apply overrides with no upper bound, set this to -1,
|
|
214
|
+
* indicating unlimited maximum quota.
|
|
215
|
+
*
|
|
216
|
+
* Used by group-based quotas only.
|
|
217
|
+
*
|
|
218
|
+
* @generated from field: int64 max_limit = 4;
|
|
219
|
+
*/
|
|
220
|
+
maxLimit: bigint;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Free tier value displayed in the Developers Console for this limit.
|
|
224
|
+
* The free tier is the number of tokens that will be subtracted from the
|
|
225
|
+
* billed amount when billing is enabled.
|
|
226
|
+
* This field can only be set on a limit with duration "1d", in a billable
|
|
227
|
+
* group; it is invalid on any other limit. If this field is not set, it
|
|
228
|
+
* defaults to 0, indicating that there is no free tier for this service.
|
|
229
|
+
*
|
|
230
|
+
* Used by group-based quotas only.
|
|
231
|
+
*
|
|
232
|
+
* @generated from field: int64 free_tier = 7;
|
|
233
|
+
*/
|
|
234
|
+
freeTier: bigint;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Duration of this limit in textual notation. Example: "100s", "24h", "1d".
|
|
238
|
+
* For duration longer than a day, only multiple of days is supported. We
|
|
239
|
+
* support only "100s" and "1d" for now. Additional support will be added in
|
|
240
|
+
* the future. "0" indicates indefinite duration.
|
|
241
|
+
*
|
|
242
|
+
* Used by group-based quotas only.
|
|
243
|
+
*
|
|
244
|
+
* @generated from field: string duration = 5;
|
|
245
|
+
*/
|
|
246
|
+
duration: string;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* The name of the metric this quota limit applies to. The quota limits with
|
|
250
|
+
* the same metric will be checked together during runtime. The metric must be
|
|
251
|
+
* defined within the service config.
|
|
252
|
+
*
|
|
253
|
+
* Used by metric-based quotas only.
|
|
254
|
+
*
|
|
255
|
+
* @generated from field: string metric = 8;
|
|
256
|
+
*/
|
|
257
|
+
metric: string;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Specify the unit of the quota limit. It uses the same syntax as
|
|
261
|
+
* [Metric.unit][]. The supported unit kinds are determined by the quota
|
|
262
|
+
* backend system.
|
|
263
|
+
*
|
|
264
|
+
* The [Google Service Control](https://cloud.google.com/service-control)
|
|
265
|
+
* supports the following unit components:
|
|
266
|
+
* * One of the time intevals:
|
|
267
|
+
* * "/min" for quota every minute.
|
|
268
|
+
* * "/d" for quota every 24 hours, starting 00:00 US Pacific Time.
|
|
269
|
+
* * Otherwise the quota won't be reset by time, such as storage limit.
|
|
270
|
+
* * One and only one of the granted containers:
|
|
271
|
+
* * "/{organization}" quota for an organization.
|
|
272
|
+
* * "/{project}" quota for a project.
|
|
273
|
+
* * "/{folder}" quota for a folder.
|
|
274
|
+
* * "/{resource}" quota for a universal resource.
|
|
275
|
+
* * Zero or more quota segmentation dimension. Not all combos are valid.
|
|
276
|
+
* * "/{region}" quota for every region. Not to be used with time intervals.
|
|
277
|
+
* * Otherwise the resources granted on the target is not segmented.
|
|
278
|
+
* * "/{zone}" quota for every zone. Not to be used with time intervals.
|
|
279
|
+
* * Otherwise the resources granted on the target is not segmented.
|
|
280
|
+
* * "/{resource}" quota for a resource associated with a project or org.
|
|
281
|
+
*
|
|
282
|
+
* Here are some examples:
|
|
283
|
+
* * "1/min/{project}" for quota per minute per project.
|
|
284
|
+
* * "1/min/{user}" for quota per minute per user.
|
|
285
|
+
* * "1/min/{organization}" for quota per minute per organization.
|
|
286
|
+
*
|
|
287
|
+
* Note: the order of unit components is insignificant.
|
|
288
|
+
* The "1" at the beginning is required to follow the metric unit syntax.
|
|
289
|
+
*
|
|
290
|
+
* Used by metric-based quotas only.
|
|
291
|
+
*
|
|
292
|
+
* @generated from field: string unit = 9;
|
|
293
|
+
*/
|
|
294
|
+
unit: string;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Tiered limit values. Also allows for regional or zone overrides for these
|
|
298
|
+
* values if "/{region}" or "/{zone}" is specified in the unit field.
|
|
299
|
+
*
|
|
300
|
+
* Currently supported tiers from low to high:
|
|
301
|
+
* VERY_LOW, LOW, STANDARD, HIGH, VERY_HIGH
|
|
302
|
+
*
|
|
303
|
+
* To apply different limit values for users according to their tiers, specify
|
|
304
|
+
* the values for the tiers you want to differentiate. For example:
|
|
305
|
+
* {LOW:100, STANDARD:500, HIGH:1000, VERY_HIGH:5000}
|
|
306
|
+
*
|
|
307
|
+
* The limit value for each tier is optional except for the tier STANDARD.
|
|
308
|
+
* The limit value for an unspecified tier falls to the value of its next
|
|
309
|
+
* tier towards tier STANDARD. For the above example, the limit value for tier
|
|
310
|
+
* STANDARD is 500.
|
|
311
|
+
*
|
|
312
|
+
* To apply the same limit value for all users, just specify limit value for
|
|
313
|
+
* tier STANDARD. For example: {STANDARD:500}.
|
|
314
|
+
*
|
|
315
|
+
* To apply a regional overide for a tier, add a map entry with key
|
|
316
|
+
* "<TIER>/<region>", where <region> is a region name. Similarly, for a zone
|
|
317
|
+
* override, add a map entry with key "<TIER>/{zone}".
|
|
318
|
+
* Further, a wildcard can be used at the end of a zone name in order to
|
|
319
|
+
* specify zone level overrides. For example:
|
|
320
|
+
* LOW: 10, STANDARD: 50, HIGH: 100,
|
|
321
|
+
* LOW/us-central1: 20, STANDARD/us-central1: 60, HIGH/us-central1: 200,
|
|
322
|
+
* LOW/us-central1-*: 10, STANDARD/us-central1-*: 20, HIGH/us-central1-*: 80
|
|
323
|
+
*
|
|
324
|
+
* The regional overrides tier set for each region must be the same as
|
|
325
|
+
* the tier set for default limit values. Same rule applies for zone overrides
|
|
326
|
+
* tier as well.
|
|
327
|
+
*
|
|
328
|
+
* Used by metric-based quotas only.
|
|
329
|
+
*
|
|
330
|
+
* @generated from field: map<string, int64> values = 10;
|
|
331
|
+
*/
|
|
332
|
+
values: { [key: string]: bigint };
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* User-visible display name for this limit.
|
|
336
|
+
* Optional. If not set, the UI will provide a default display name based on
|
|
337
|
+
* the quota configuration. This field can be used to override the default
|
|
338
|
+
* display name generated from the configuration.
|
|
339
|
+
*
|
|
340
|
+
* @generated from field: string display_name = 12;
|
|
341
|
+
*/
|
|
342
|
+
displayName: string;
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Describes the message google.api.QuotaLimit.
|
|
347
|
+
* Use `create(QuotaLimitSchema)` to create a new message.
|
|
348
|
+
*/
|
|
349
|
+
export const QuotaLimitSchema: GenMessage<QuotaLimit> = /*@__PURE__*/
|
|
350
|
+
messageDesc(file_google_api_quota, 2);
|
|
351
|
+
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2020 Google LLC
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.resource = exports.resource_definition = exports.resource_reference = exports.ResourceReferenceSchema = exports.ResourceDescriptor_StyleSchema = exports.ResourceDescriptor_Style = exports.ResourceDescriptor_HistorySchema = exports.ResourceDescriptor_History = exports.ResourceDescriptorSchema = exports.file_google_api_resource = void 0;
|
|
17
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
18
|
+
const wkt_1 = require("@bufbuild/protobuf/wkt");
|
|
19
|
+
/**
|
|
20
|
+
* Describes the file google/api/resource.proto.
|
|
21
|
+
*/
|
|
22
|
+
exports.file_google_api_resource = (0, codegenv2_1.fileDesc)("Chlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvEgpnb29nbGUuYXBpIu4CChJSZXNvdXJjZURlc2NyaXB0b3ISDAoEdHlwZRgBIAEoCRIPCgdwYXR0ZXJuGAIgAygJEhIKCm5hbWVfZmllbGQYAyABKAkSNwoHaGlzdG9yeRgEIAEoDjImLmdvb2dsZS5hcGkuUmVzb3VyY2VEZXNjcmlwdG9yLkhpc3RvcnkSDgoGcGx1cmFsGAUgASgJEhAKCHNpbmd1bGFyGAYgASgJEjMKBXN0eWxlGAogAygOMiQuZ29vZ2xlLmFwaS5SZXNvdXJjZURlc2NyaXB0b3IuU3R5bGUiWwoHSGlzdG9yeRIXChNISVNUT1JZX1VOU1BFQ0lGSUVEEAASHQoZT1JJR0lOQUxMWV9TSU5HTEVfUEFUVEVSThABEhgKFEZVVFVSRV9NVUxUSV9QQVRURVJOEAIiOAoFU3R5bGUSFQoRU1RZTEVfVU5TUEVDSUZJRUQQABIYChRERUNMQVJBVElWRV9GUklFTkRMWRABIjUKEVJlc291cmNlUmVmZXJlbmNlEgwKBHR5cGUYASABKAkSEgoKY2hpbGRfdHlwZRgCIAEoCTpsChJyZXNvdXJjZV9yZWZlcmVuY2USHS5nb29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zGJ8IIAEoCzIdLmdvb2dsZS5hcGkuUmVzb3VyY2VSZWZlcmVuY2VSEXJlc291cmNlUmVmZXJlbmNlOm4KE3Jlc291cmNlX2RlZmluaXRpb24SHC5nb29nbGUucHJvdG9idWYuRmlsZU9wdGlvbnMYnQggAygLMh4uZ29vZ2xlLmFwaS5SZXNvdXJjZURlc2NyaXB0b3JSEnJlc291cmNlRGVmaW5pdGlvbjpcCghyZXNvdXJjZRIfLmdvb2dsZS5wcm90b2J1Zi5NZXNzYWdlT3B0aW9ucxidCCABKAsyHi5nb29nbGUuYXBpLlJlc291cmNlRGVzY3JpcHRvclIIcmVzb3VyY2VCbgoOY29tLmdvb2dsZS5hcGlCDVJlc291cmNlUHJvdG9QAVpBZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkvYW5ub3RhdGlvbnM7YW5ub3RhdGlvbnP4AQGiAgRHQVBJYgZwcm90bzM", [wkt_1.file_google_protobuf_descriptor]);
|
|
23
|
+
/**
|
|
24
|
+
* Describes the message google.api.ResourceDescriptor.
|
|
25
|
+
* Use `create(ResourceDescriptorSchema)` to create a new message.
|
|
26
|
+
*/
|
|
27
|
+
exports.ResourceDescriptorSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_resource, 0);
|
|
28
|
+
/**
|
|
29
|
+
* A description of the historical or future-looking state of the
|
|
30
|
+
* resource pattern.
|
|
31
|
+
*
|
|
32
|
+
* @generated from enum google.api.ResourceDescriptor.History
|
|
33
|
+
*/
|
|
34
|
+
var ResourceDescriptor_History;
|
|
35
|
+
(function (ResourceDescriptor_History) {
|
|
36
|
+
/**
|
|
37
|
+
* The "unset" value.
|
|
38
|
+
*
|
|
39
|
+
* @generated from enum value: HISTORY_UNSPECIFIED = 0;
|
|
40
|
+
*/
|
|
41
|
+
ResourceDescriptor_History[ResourceDescriptor_History["HISTORY_UNSPECIFIED"] = 0] = "HISTORY_UNSPECIFIED";
|
|
42
|
+
/**
|
|
43
|
+
* The resource originally had one pattern and launched as such, and
|
|
44
|
+
* additional patterns were added later.
|
|
45
|
+
*
|
|
46
|
+
* @generated from enum value: ORIGINALLY_SINGLE_PATTERN = 1;
|
|
47
|
+
*/
|
|
48
|
+
ResourceDescriptor_History[ResourceDescriptor_History["ORIGINALLY_SINGLE_PATTERN"] = 1] = "ORIGINALLY_SINGLE_PATTERN";
|
|
49
|
+
/**
|
|
50
|
+
* The resource has one pattern, but the API owner expects to add more
|
|
51
|
+
* later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents
|
|
52
|
+
* that from being necessary once there are multiple patterns.)
|
|
53
|
+
*
|
|
54
|
+
* @generated from enum value: FUTURE_MULTI_PATTERN = 2;
|
|
55
|
+
*/
|
|
56
|
+
ResourceDescriptor_History[ResourceDescriptor_History["FUTURE_MULTI_PATTERN"] = 2] = "FUTURE_MULTI_PATTERN";
|
|
57
|
+
})(ResourceDescriptor_History || (exports.ResourceDescriptor_History = ResourceDescriptor_History = {}));
|
|
58
|
+
/**
|
|
59
|
+
* Describes the enum google.api.ResourceDescriptor.History.
|
|
60
|
+
*/
|
|
61
|
+
exports.ResourceDescriptor_HistorySchema = (0, codegenv2_1.enumDesc)(exports.file_google_api_resource, 0, 0);
|
|
62
|
+
/**
|
|
63
|
+
* A flag representing a specific style that a resource claims to conform to.
|
|
64
|
+
*
|
|
65
|
+
* @generated from enum google.api.ResourceDescriptor.Style
|
|
66
|
+
*/
|
|
67
|
+
var ResourceDescriptor_Style;
|
|
68
|
+
(function (ResourceDescriptor_Style) {
|
|
69
|
+
/**
|
|
70
|
+
* The unspecified value. Do not use.
|
|
71
|
+
*
|
|
72
|
+
* @generated from enum value: STYLE_UNSPECIFIED = 0;
|
|
73
|
+
*/
|
|
74
|
+
ResourceDescriptor_Style[ResourceDescriptor_Style["STYLE_UNSPECIFIED"] = 0] = "STYLE_UNSPECIFIED";
|
|
75
|
+
/**
|
|
76
|
+
* This resource is intended to be "declarative-friendly".
|
|
77
|
+
*
|
|
78
|
+
* Declarative-friendly resources must be more strictly consistent, and
|
|
79
|
+
* setting this to true communicates to tools that this resource should
|
|
80
|
+
* adhere to declarative-friendly expectations.
|
|
81
|
+
*
|
|
82
|
+
* Note: This is used by the API linter (linter.aip.dev) to enable
|
|
83
|
+
* additional checks.
|
|
84
|
+
*
|
|
85
|
+
* @generated from enum value: DECLARATIVE_FRIENDLY = 1;
|
|
86
|
+
*/
|
|
87
|
+
ResourceDescriptor_Style[ResourceDescriptor_Style["DECLARATIVE_FRIENDLY"] = 1] = "DECLARATIVE_FRIENDLY";
|
|
88
|
+
})(ResourceDescriptor_Style || (exports.ResourceDescriptor_Style = ResourceDescriptor_Style = {}));
|
|
89
|
+
/**
|
|
90
|
+
* Describes the enum google.api.ResourceDescriptor.Style.
|
|
91
|
+
*/
|
|
92
|
+
exports.ResourceDescriptor_StyleSchema = (0, codegenv2_1.enumDesc)(exports.file_google_api_resource, 0, 1);
|
|
93
|
+
/**
|
|
94
|
+
* Describes the message google.api.ResourceReference.
|
|
95
|
+
* Use `create(ResourceReferenceSchema)` to create a new message.
|
|
96
|
+
*/
|
|
97
|
+
exports.ResourceReferenceSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_resource, 1);
|
|
98
|
+
/**
|
|
99
|
+
* An annotation that describes a resource reference, see
|
|
100
|
+
* [ResourceReference][].
|
|
101
|
+
*
|
|
102
|
+
* @generated from extension: google.api.ResourceReference resource_reference = 1055;
|
|
103
|
+
*/
|
|
104
|
+
exports.resource_reference = (0, codegenv2_1.extDesc)(exports.file_google_api_resource, 0);
|
|
105
|
+
/**
|
|
106
|
+
* An annotation that describes a resource definition without a corresponding
|
|
107
|
+
* message; see [ResourceDescriptor][].
|
|
108
|
+
*
|
|
109
|
+
* @generated from extension: repeated google.api.ResourceDescriptor resource_definition = 1053;
|
|
110
|
+
*/
|
|
111
|
+
exports.resource_definition = (0, codegenv2_1.extDesc)(exports.file_google_api_resource, 1);
|
|
112
|
+
/**
|
|
113
|
+
* An annotation that describes a resource definition, see
|
|
114
|
+
* [ResourceDescriptor][].
|
|
115
|
+
*
|
|
116
|
+
* @generated from extension: google.api.ResourceDescriptor resource = 1053;
|
|
117
|
+
*/
|
|
118
|
+
exports.resource = (0, codegenv2_1.extDesc)(exports.file_google_api_resource, 2);
|