@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,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) 2015, 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.http = exports.file_google_api_annotations = void 0;
|
|
17
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
18
|
+
const http_pb_1 = require("./http_pb");
|
|
19
|
+
const wkt_1 = require("@bufbuild/protobuf/wkt");
|
|
20
|
+
/**
|
|
21
|
+
* Describes the file google/api/annotations.proto.
|
|
22
|
+
*/
|
|
23
|
+
exports.file_google_api_annotations = (0, codegenv2_1.fileDesc)("Chxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvEgpnb29nbGUuYXBpOksKBGh0dHASHi5nb29nbGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxiwyrwiIAEoCzIULmdvb2dsZS5hcGkuSHR0cFJ1bGVSBGh0dHBCbgoOY29tLmdvb2dsZS5hcGlCEEFubm90YXRpb25zUHJvdG9QAVpBZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkvYW5ub3RhdGlvbnM7YW5ub3RhdGlvbnOiAgRHQVBJYgZwcm90bzM", [http_pb_1.file_google_api_http, wkt_1.file_google_protobuf_descriptor]);
|
|
24
|
+
/**
|
|
25
|
+
* See `HttpRule`.
|
|
26
|
+
*
|
|
27
|
+
* @generated from extension: google.api.HttpRule http = 72295728;
|
|
28
|
+
*/
|
|
29
|
+
exports.http = (0, codegenv2_1.extDesc)(exports.file_google_api_annotations, 0);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// Copyright (c) 2015, 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/annotations.proto (package google.api, syntax proto3)
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
|
|
19
|
+
import type { GenExtension, GenFile } from "@bufbuild/protobuf/codegenv2";
|
|
20
|
+
import { extDesc, fileDesc } from "@bufbuild/protobuf/codegenv2";
|
|
21
|
+
import type { HttpRule } from "./http_pb";
|
|
22
|
+
import { file_google_api_http } from "./http_pb";
|
|
23
|
+
import type { MethodOptions } from "@bufbuild/protobuf/wkt";
|
|
24
|
+
import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Describes the file google/api/annotations.proto.
|
|
28
|
+
*/
|
|
29
|
+
export const file_google_api_annotations: GenFile = /*@__PURE__*/
|
|
30
|
+
fileDesc("Chxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvEgpnb29nbGUuYXBpOksKBGh0dHASHi5nb29nbGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxiwyrwiIAEoCzIULmdvb2dsZS5hcGkuSHR0cFJ1bGVSBGh0dHBCbgoOY29tLmdvb2dsZS5hcGlCEEFubm90YXRpb25zUHJvdG9QAVpBZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkvYW5ub3RhdGlvbnM7YW5ub3RhdGlvbnOiAgRHQVBJYgZwcm90bzM", [file_google_api_http, file_google_protobuf_descriptor]);
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* See `HttpRule`.
|
|
34
|
+
*
|
|
35
|
+
* @generated from extension: google.api.HttpRule http = 72295728;
|
|
36
|
+
*/
|
|
37
|
+
export const http: GenExtension<MethodOptions, HttpRule> = /*@__PURE__*/
|
|
38
|
+
extDesc(file_google_api_annotations, 0);
|
|
39
|
+
|
|
@@ -0,0 +1,47 @@
|
|
|
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.AuthRequirementSchema = exports.OAuthRequirementsSchema = exports.AuthProviderSchema = exports.AuthenticationRuleSchema = exports.AuthenticationSchema = exports.file_google_api_auth = 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/auth.proto.
|
|
21
|
+
*/
|
|
22
|
+
exports.file_google_api_auth = (0, codegenv2_1.fileDesc)("ChVnb29nbGUvYXBpL2F1dGgucHJvdG8SCmdvb2dsZS5hcGkibAoOQXV0aGVudGljYXRpb24SLQoFcnVsZXMYAyADKAsyHi5nb29nbGUuYXBpLkF1dGhlbnRpY2F0aW9uUnVsZRIrCglwcm92aWRlcnMYBCADKAsyGC5nb29nbGUuYXBpLkF1dGhQcm92aWRlciKpAQoSQXV0aGVudGljYXRpb25SdWxlEhAKCHNlbGVjdG9yGAEgASgJEiwKBW9hdXRoGAIgASgLMh0uZ29vZ2xlLmFwaS5PQXV0aFJlcXVpcmVtZW50cxIgChhhbGxvd193aXRob3V0X2NyZWRlbnRpYWwYBSABKAgSMQoMcmVxdWlyZW1lbnRzGAcgAygLMhsuZ29vZ2xlLmFwaS5BdXRoUmVxdWlyZW1lbnQiagoMQXV0aFByb3ZpZGVyEgoKAmlkGAEgASgJEg4KBmlzc3VlchgCIAEoCRIQCghqd2tzX3VyaRgDIAEoCRIRCglhdWRpZW5jZXMYBCABKAkSGQoRYXV0aG9yaXphdGlvbl91cmwYBSABKAkiLQoRT0F1dGhSZXF1aXJlbWVudHMSGAoQY2Fub25pY2FsX3Njb3BlcxgBIAEoCSI5Cg9BdXRoUmVxdWlyZW1lbnQSEwoLcHJvdmlkZXJfaWQYASABKAkSEQoJYXVkaWVuY2VzGAIgASgJQmsKDmNvbS5nb29nbGUuYXBpQglBdXRoUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkvc2VydmljZWNvbmZpZztzZXJ2aWNlY29uZmlnogIER0FQSWIGcHJvdG8z", [annotations_pb_1.file_google_api_annotations]);
|
|
23
|
+
/**
|
|
24
|
+
* Describes the message google.api.Authentication.
|
|
25
|
+
* Use `create(AuthenticationSchema)` to create a new message.
|
|
26
|
+
*/
|
|
27
|
+
exports.AuthenticationSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_auth, 0);
|
|
28
|
+
/**
|
|
29
|
+
* Describes the message google.api.AuthenticationRule.
|
|
30
|
+
* Use `create(AuthenticationRuleSchema)` to create a new message.
|
|
31
|
+
*/
|
|
32
|
+
exports.AuthenticationRuleSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_auth, 1);
|
|
33
|
+
/**
|
|
34
|
+
* Describes the message google.api.AuthProvider.
|
|
35
|
+
* Use `create(AuthProviderSchema)` to create a new message.
|
|
36
|
+
*/
|
|
37
|
+
exports.AuthProviderSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_auth, 2);
|
|
38
|
+
/**
|
|
39
|
+
* Describes the message google.api.OAuthRequirements.
|
|
40
|
+
* Use `create(OAuthRequirementsSchema)` to create a new message.
|
|
41
|
+
*/
|
|
42
|
+
exports.OAuthRequirementsSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_auth, 3);
|
|
43
|
+
/**
|
|
44
|
+
* Describes the message google.api.AuthRequirement.
|
|
45
|
+
* Use `create(AuthRequirementSchema)` to create a new message.
|
|
46
|
+
*/
|
|
47
|
+
exports.AuthRequirementSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_auth, 4);
|
|
@@ -0,0 +1,295 @@
|
|
|
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/auth.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/auth.proto.
|
|
26
|
+
*/
|
|
27
|
+
export const file_google_api_auth: GenFile = /*@__PURE__*/
|
|
28
|
+
fileDesc("ChVnb29nbGUvYXBpL2F1dGgucHJvdG8SCmdvb2dsZS5hcGkibAoOQXV0aGVudGljYXRpb24SLQoFcnVsZXMYAyADKAsyHi5nb29nbGUuYXBpLkF1dGhlbnRpY2F0aW9uUnVsZRIrCglwcm92aWRlcnMYBCADKAsyGC5nb29nbGUuYXBpLkF1dGhQcm92aWRlciKpAQoSQXV0aGVudGljYXRpb25SdWxlEhAKCHNlbGVjdG9yGAEgASgJEiwKBW9hdXRoGAIgASgLMh0uZ29vZ2xlLmFwaS5PQXV0aFJlcXVpcmVtZW50cxIgChhhbGxvd193aXRob3V0X2NyZWRlbnRpYWwYBSABKAgSMQoMcmVxdWlyZW1lbnRzGAcgAygLMhsuZ29vZ2xlLmFwaS5BdXRoUmVxdWlyZW1lbnQiagoMQXV0aFByb3ZpZGVyEgoKAmlkGAEgASgJEg4KBmlzc3VlchgCIAEoCRIQCghqd2tzX3VyaRgDIAEoCRIRCglhdWRpZW5jZXMYBCABKAkSGQoRYXV0aG9yaXphdGlvbl91cmwYBSABKAkiLQoRT0F1dGhSZXF1aXJlbWVudHMSGAoQY2Fub25pY2FsX3Njb3BlcxgBIAEoCSI5Cg9BdXRoUmVxdWlyZW1lbnQSEwoLcHJvdmlkZXJfaWQYASABKAkSEQoJYXVkaWVuY2VzGAIgASgJQmsKDmNvbS5nb29nbGUuYXBpQglBdXRoUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkvc2VydmljZWNvbmZpZztzZXJ2aWNlY29uZmlnogIER0FQSWIGcHJvdG8z", [file_google_api_annotations]);
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* `Authentication` defines the authentication configuration for an API.
|
|
32
|
+
*
|
|
33
|
+
* Example for an API targeted for external use:
|
|
34
|
+
*
|
|
35
|
+
* name: calendar.googleapis.com
|
|
36
|
+
* authentication:
|
|
37
|
+
* providers:
|
|
38
|
+
* - id: google_calendar_auth
|
|
39
|
+
* jwks_uri: https://www.googleapis.com/oauth2/v1/certs
|
|
40
|
+
* issuer: https://securetoken.google.com
|
|
41
|
+
* rules:
|
|
42
|
+
* - selector: "*"
|
|
43
|
+
* requirements:
|
|
44
|
+
* provider_id: google_calendar_auth
|
|
45
|
+
*
|
|
46
|
+
* @generated from message google.api.Authentication
|
|
47
|
+
*/
|
|
48
|
+
export type Authentication = Message<"google.api.Authentication"> & {
|
|
49
|
+
/**
|
|
50
|
+
* A list of authentication rules that apply to individual API methods.
|
|
51
|
+
*
|
|
52
|
+
* **NOTE:** All service configuration rules follow "last one wins" order.
|
|
53
|
+
*
|
|
54
|
+
* @generated from field: repeated google.api.AuthenticationRule rules = 3;
|
|
55
|
+
*/
|
|
56
|
+
rules: AuthenticationRule[];
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Defines a set of authentication providers that a service supports.
|
|
60
|
+
*
|
|
61
|
+
* @generated from field: repeated google.api.AuthProvider providers = 4;
|
|
62
|
+
*/
|
|
63
|
+
providers: AuthProvider[];
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Describes the message google.api.Authentication.
|
|
68
|
+
* Use `create(AuthenticationSchema)` to create a new message.
|
|
69
|
+
*/
|
|
70
|
+
export const AuthenticationSchema: GenMessage<Authentication> = /*@__PURE__*/
|
|
71
|
+
messageDesc(file_google_api_auth, 0);
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Authentication rules for the service.
|
|
75
|
+
*
|
|
76
|
+
* By default, if a method has any authentication requirements, every request
|
|
77
|
+
* must include a valid credential matching one of the requirements.
|
|
78
|
+
* It's an error to include more than one kind of credential in a single
|
|
79
|
+
* request.
|
|
80
|
+
*
|
|
81
|
+
* If a method doesn't have any auth requirements, request credentials will be
|
|
82
|
+
* ignored.
|
|
83
|
+
*
|
|
84
|
+
* @generated from message google.api.AuthenticationRule
|
|
85
|
+
*/
|
|
86
|
+
export type AuthenticationRule = Message<"google.api.AuthenticationRule"> & {
|
|
87
|
+
/**
|
|
88
|
+
* Selects the methods to which this rule applies.
|
|
89
|
+
*
|
|
90
|
+
* Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
|
|
91
|
+
*
|
|
92
|
+
* @generated from field: string selector = 1;
|
|
93
|
+
*/
|
|
94
|
+
selector: string;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* The requirements for OAuth credentials.
|
|
98
|
+
*
|
|
99
|
+
* @generated from field: google.api.OAuthRequirements oauth = 2;
|
|
100
|
+
*/
|
|
101
|
+
oauth?: OAuthRequirements;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* If true, the service accepts API keys without any other credential.
|
|
105
|
+
*
|
|
106
|
+
* @generated from field: bool allow_without_credential = 5;
|
|
107
|
+
*/
|
|
108
|
+
allowWithoutCredential: boolean;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Requirements for additional authentication providers.
|
|
112
|
+
*
|
|
113
|
+
* @generated from field: repeated google.api.AuthRequirement requirements = 7;
|
|
114
|
+
*/
|
|
115
|
+
requirements: AuthRequirement[];
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Describes the message google.api.AuthenticationRule.
|
|
120
|
+
* Use `create(AuthenticationRuleSchema)` to create a new message.
|
|
121
|
+
*/
|
|
122
|
+
export const AuthenticationRuleSchema: GenMessage<AuthenticationRule> = /*@__PURE__*/
|
|
123
|
+
messageDesc(file_google_api_auth, 1);
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Configuration for an anthentication provider, including support for
|
|
127
|
+
* [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
|
128
|
+
*
|
|
129
|
+
* @generated from message google.api.AuthProvider
|
|
130
|
+
*/
|
|
131
|
+
export type AuthProvider = Message<"google.api.AuthProvider"> & {
|
|
132
|
+
/**
|
|
133
|
+
* The unique identifier of the auth provider. It will be referred to by
|
|
134
|
+
* `AuthRequirement.provider_id`.
|
|
135
|
+
*
|
|
136
|
+
* Example: "bookstore_auth".
|
|
137
|
+
*
|
|
138
|
+
* @generated from field: string id = 1;
|
|
139
|
+
*/
|
|
140
|
+
id: string;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Identifies the principal that issued the JWT. See
|
|
144
|
+
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
|
|
145
|
+
* Usually a URL or an email address.
|
|
146
|
+
*
|
|
147
|
+
* Example: https://securetoken.google.com
|
|
148
|
+
* Example: 1234567-compute@developer.gserviceaccount.com
|
|
149
|
+
*
|
|
150
|
+
* @generated from field: string issuer = 2;
|
|
151
|
+
*/
|
|
152
|
+
issuer: string;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* URL of the provider's public key set to validate signature of the JWT. See
|
|
156
|
+
* [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
|
|
157
|
+
* Optional if the key set document:
|
|
158
|
+
* - can be retrieved from
|
|
159
|
+
* [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html
|
|
160
|
+
* of the issuer.
|
|
161
|
+
* - can be inferred from the email domain of the issuer (e.g. a Google service account).
|
|
162
|
+
*
|
|
163
|
+
* Example: https://www.googleapis.com/oauth2/v1/certs
|
|
164
|
+
*
|
|
165
|
+
* @generated from field: string jwks_uri = 3;
|
|
166
|
+
*/
|
|
167
|
+
jwksUri: string;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* The list of JWT
|
|
171
|
+
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
|
172
|
+
* that are allowed to access. A JWT containing any of these audiences will
|
|
173
|
+
* be accepted. When this setting is absent, only JWTs with audience
|
|
174
|
+
* "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]"
|
|
175
|
+
* will be accepted. For example, if no audiences are in the setting,
|
|
176
|
+
* LibraryService API will only accept JWTs with the following audience
|
|
177
|
+
* "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
|
|
178
|
+
*
|
|
179
|
+
* Example:
|
|
180
|
+
*
|
|
181
|
+
* audiences: bookstore_android.apps.googleusercontent.com,
|
|
182
|
+
* bookstore_web.apps.googleusercontent.com
|
|
183
|
+
*
|
|
184
|
+
* @generated from field: string audiences = 4;
|
|
185
|
+
*/
|
|
186
|
+
audiences: string;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Redirect URL if JWT token is required but no present or is expired.
|
|
190
|
+
* Implement authorizationUrl of securityDefinitions in OpenAPI spec.
|
|
191
|
+
*
|
|
192
|
+
* @generated from field: string authorization_url = 5;
|
|
193
|
+
*/
|
|
194
|
+
authorizationUrl: string;
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Describes the message google.api.AuthProvider.
|
|
199
|
+
* Use `create(AuthProviderSchema)` to create a new message.
|
|
200
|
+
*/
|
|
201
|
+
export const AuthProviderSchema: GenMessage<AuthProvider> = /*@__PURE__*/
|
|
202
|
+
messageDesc(file_google_api_auth, 2);
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* OAuth scopes are a way to define data and permissions on data. For example,
|
|
206
|
+
* there are scopes defined for "Read-only access to Google Calendar" and
|
|
207
|
+
* "Access to Cloud Platform". Users can consent to a scope for an application,
|
|
208
|
+
* giving it permission to access that data on their behalf.
|
|
209
|
+
*
|
|
210
|
+
* OAuth scope specifications should be fairly coarse grained; a user will need
|
|
211
|
+
* to see and understand the text description of what your scope means.
|
|
212
|
+
*
|
|
213
|
+
* In most cases: use one or at most two OAuth scopes for an entire family of
|
|
214
|
+
* products. If your product has multiple APIs, you should probably be sharing
|
|
215
|
+
* the OAuth scope across all of those APIs.
|
|
216
|
+
*
|
|
217
|
+
* When you need finer grained OAuth consent screens: talk with your product
|
|
218
|
+
* management about how developers will use them in practice.
|
|
219
|
+
*
|
|
220
|
+
* Please note that even though each of the canonical scopes is enough for a
|
|
221
|
+
* request to be accepted and passed to the backend, a request can still fail
|
|
222
|
+
* due to the backend requiring additional scopes or permissions.
|
|
223
|
+
*
|
|
224
|
+
* @generated from message google.api.OAuthRequirements
|
|
225
|
+
*/
|
|
226
|
+
export type OAuthRequirements = Message<"google.api.OAuthRequirements"> & {
|
|
227
|
+
/**
|
|
228
|
+
* The list of publicly documented OAuth scopes that are allowed access. An
|
|
229
|
+
* OAuth token containing any of these scopes will be accepted.
|
|
230
|
+
*
|
|
231
|
+
* Example:
|
|
232
|
+
*
|
|
233
|
+
* canonical_scopes: https://www.googleapis.com/auth/calendar,
|
|
234
|
+
* https://www.googleapis.com/auth/calendar.read
|
|
235
|
+
*
|
|
236
|
+
* @generated from field: string canonical_scopes = 1;
|
|
237
|
+
*/
|
|
238
|
+
canonicalScopes: string;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Describes the message google.api.OAuthRequirements.
|
|
243
|
+
* Use `create(OAuthRequirementsSchema)` to create a new message.
|
|
244
|
+
*/
|
|
245
|
+
export const OAuthRequirementsSchema: GenMessage<OAuthRequirements> = /*@__PURE__*/
|
|
246
|
+
messageDesc(file_google_api_auth, 3);
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* User-defined authentication requirements, including support for
|
|
250
|
+
* [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
|
251
|
+
*
|
|
252
|
+
* @generated from message google.api.AuthRequirement
|
|
253
|
+
*/
|
|
254
|
+
export type AuthRequirement = Message<"google.api.AuthRequirement"> & {
|
|
255
|
+
/**
|
|
256
|
+
* [id][google.api.AuthProvider.id] from authentication provider.
|
|
257
|
+
*
|
|
258
|
+
* Example:
|
|
259
|
+
*
|
|
260
|
+
* provider_id: bookstore_auth
|
|
261
|
+
*
|
|
262
|
+
* @generated from field: string provider_id = 1;
|
|
263
|
+
*/
|
|
264
|
+
providerId: string;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
|
|
268
|
+
* implemented and accepted in all the runtime components.
|
|
269
|
+
*
|
|
270
|
+
* The list of JWT
|
|
271
|
+
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
|
272
|
+
* that are allowed to access. A JWT containing any of these audiences will
|
|
273
|
+
* be accepted. When this setting is absent, only JWTs with audience
|
|
274
|
+
* "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]"
|
|
275
|
+
* will be accepted. For example, if no audiences are in the setting,
|
|
276
|
+
* LibraryService API will only accept JWTs with the following audience
|
|
277
|
+
* "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
|
|
278
|
+
*
|
|
279
|
+
* Example:
|
|
280
|
+
*
|
|
281
|
+
* audiences: bookstore_android.apps.googleusercontent.com,
|
|
282
|
+
* bookstore_web.apps.googleusercontent.com
|
|
283
|
+
*
|
|
284
|
+
* @generated from field: string audiences = 2;
|
|
285
|
+
*/
|
|
286
|
+
audiences: string;
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Describes the message google.api.AuthRequirement.
|
|
291
|
+
* Use `create(AuthRequirementSchema)` to create a new message.
|
|
292
|
+
*/
|
|
293
|
+
export const AuthRequirementSchema: GenMessage<AuthRequirement> = /*@__PURE__*/
|
|
294
|
+
messageDesc(file_google_api_auth, 4);
|
|
295
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
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.BackendRuleSchema = exports.BackendSchema = exports.file_google_api_backend = void 0;
|
|
17
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
18
|
+
/**
|
|
19
|
+
* Describes the file google/api/backend.proto.
|
|
20
|
+
*/
|
|
21
|
+
exports.file_google_api_backend = (0, codegenv2_1.fileDesc)("Chhnb29nbGUvYXBpL2JhY2tlbmQucHJvdG8SCmdvb2dsZS5hcGkiMQoHQmFja2VuZBImCgVydWxlcxgBIAMoCzIXLmdvb2dsZS5hcGkuQmFja2VuZFJ1bGUiWAoLQmFja2VuZFJ1bGUSEAoIc2VsZWN0b3IYASABKAkSDwoHYWRkcmVzcxgCIAEoCRIQCghkZWFkbGluZRgDIAEoARIUCgxtaW5fZGVhZGxpbmUYBCABKAFCbgoOY29tLmdvb2dsZS5hcGlCDEJhY2tlbmRQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2FwaS9zZXJ2aWNlY29uZmlnO3NlcnZpY2Vjb25maWeiAgRHQVBJYgZwcm90bzM");
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message google.api.Backend.
|
|
24
|
+
* Use `create(BackendSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
exports.BackendSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_backend, 0);
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message google.api.BackendRule.
|
|
29
|
+
* Use `create(BackendRuleSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
exports.BackendRuleSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_backend, 1);
|
|
@@ -0,0 +1,97 @@
|
|
|
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/backend.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 type { Message } from "@bufbuild/protobuf";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Describes the file google/api/backend.proto.
|
|
25
|
+
*/
|
|
26
|
+
export const file_google_api_backend: GenFile = /*@__PURE__*/
|
|
27
|
+
fileDesc("Chhnb29nbGUvYXBpL2JhY2tlbmQucHJvdG8SCmdvb2dsZS5hcGkiMQoHQmFja2VuZBImCgVydWxlcxgBIAMoCzIXLmdvb2dsZS5hcGkuQmFja2VuZFJ1bGUiWAoLQmFja2VuZFJ1bGUSEAoIc2VsZWN0b3IYASABKAkSDwoHYWRkcmVzcxgCIAEoCRIQCghkZWFkbGluZRgDIAEoARIUCgxtaW5fZGVhZGxpbmUYBCABKAFCbgoOY29tLmdvb2dsZS5hcGlCDEJhY2tlbmRQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2FwaS9zZXJ2aWNlY29uZmlnO3NlcnZpY2Vjb25maWeiAgRHQVBJYgZwcm90bzM");
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* `Backend` defines the backend configuration for a service.
|
|
31
|
+
*
|
|
32
|
+
* @generated from message google.api.Backend
|
|
33
|
+
*/
|
|
34
|
+
export type Backend = Message<"google.api.Backend"> & {
|
|
35
|
+
/**
|
|
36
|
+
* A list of API backend rules that apply to individual API methods.
|
|
37
|
+
*
|
|
38
|
+
* **NOTE:** All service configuration rules follow "last one wins" order.
|
|
39
|
+
*
|
|
40
|
+
* @generated from field: repeated google.api.BackendRule rules = 1;
|
|
41
|
+
*/
|
|
42
|
+
rules: BackendRule[];
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Describes the message google.api.Backend.
|
|
47
|
+
* Use `create(BackendSchema)` to create a new message.
|
|
48
|
+
*/
|
|
49
|
+
export const BackendSchema: GenMessage<Backend> = /*@__PURE__*/
|
|
50
|
+
messageDesc(file_google_api_backend, 0);
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* A backend rule provides configuration for an individual API element.
|
|
54
|
+
*
|
|
55
|
+
* @generated from message google.api.BackendRule
|
|
56
|
+
*/
|
|
57
|
+
export type BackendRule = Message<"google.api.BackendRule"> & {
|
|
58
|
+
/**
|
|
59
|
+
* Selects the methods to which this rule applies.
|
|
60
|
+
*
|
|
61
|
+
* Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
|
|
62
|
+
*
|
|
63
|
+
* @generated from field: string selector = 1;
|
|
64
|
+
*/
|
|
65
|
+
selector: string;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* The address of the API backend.
|
|
69
|
+
*
|
|
70
|
+
* @generated from field: string address = 2;
|
|
71
|
+
*/
|
|
72
|
+
address: string;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* The number of seconds to wait for a response from a request. The default
|
|
76
|
+
* deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds.
|
|
77
|
+
*
|
|
78
|
+
* @generated from field: double deadline = 3;
|
|
79
|
+
*/
|
|
80
|
+
deadline: number;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Minimum deadline in seconds needed for this method. Calls having deadline
|
|
84
|
+
* value lower than this will be rejected.
|
|
85
|
+
*
|
|
86
|
+
* @generated from field: double min_deadline = 4;
|
|
87
|
+
*/
|
|
88
|
+
minDeadline: number;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Describes the message google.api.BackendRule.
|
|
93
|
+
* Use `create(BackendRuleSchema)` to create a new message.
|
|
94
|
+
*/
|
|
95
|
+
export const BackendRuleSchema: GenMessage<BackendRule> = /*@__PURE__*/
|
|
96
|
+
messageDesc(file_google_api_backend, 1);
|
|
97
|
+
|
|
@@ -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.Billing_BillingDestinationSchema = exports.BillingSchema = exports.file_google_api_billing = 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/billing.proto.
|
|
21
|
+
*/
|
|
22
|
+
exports.file_google_api_billing = (0, codegenv2_1.fileDesc)("Chhnb29nbGUvYXBpL2JpbGxpbmcucHJvdG8SCmdvb2dsZS5hcGkikwEKB0JpbGxpbmcSRQoVY29uc3VtZXJfZGVzdGluYXRpb25zGAggAygLMiYuZ29vZ2xlLmFwaS5CaWxsaW5nLkJpbGxpbmdEZXN0aW5hdGlvbhpBChJCaWxsaW5nRGVzdGluYXRpb24SGgoSbW9uaXRvcmVkX3Jlc291cmNlGAEgASgJEg8KB21ldHJpY3MYAiADKAlCbgoOY29tLmdvb2dsZS5hcGlCDEJpbGxpbmdQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2FwaS9zZXJ2aWNlY29uZmlnO3NlcnZpY2Vjb25maWeiAgRHQVBJYgZwcm90bzM", [annotations_pb_1.file_google_api_annotations]);
|
|
23
|
+
/**
|
|
24
|
+
* Describes the message google.api.Billing.
|
|
25
|
+
* Use `create(BillingSchema)` to create a new message.
|
|
26
|
+
*/
|
|
27
|
+
exports.BillingSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_billing, 0);
|
|
28
|
+
/**
|
|
29
|
+
* Describes the message google.api.Billing.BillingDestination.
|
|
30
|
+
* Use `create(Billing_BillingDestinationSchema)` to create a new message.
|
|
31
|
+
*/
|
|
32
|
+
exports.Billing_BillingDestinationSchema = (0, codegenv2_1.messageDesc)(exports.file_google_api_billing, 0, 0);
|
|
@@ -0,0 +1,104 @@
|
|
|
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/billing.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/billing.proto.
|
|
26
|
+
*/
|
|
27
|
+
export const file_google_api_billing: GenFile = /*@__PURE__*/
|
|
28
|
+
fileDesc("Chhnb29nbGUvYXBpL2JpbGxpbmcucHJvdG8SCmdvb2dsZS5hcGkikwEKB0JpbGxpbmcSRQoVY29uc3VtZXJfZGVzdGluYXRpb25zGAggAygLMiYuZ29vZ2xlLmFwaS5CaWxsaW5nLkJpbGxpbmdEZXN0aW5hdGlvbhpBChJCaWxsaW5nRGVzdGluYXRpb24SGgoSbW9uaXRvcmVkX3Jlc291cmNlGAEgASgJEg8KB21ldHJpY3MYAiADKAlCbgoOY29tLmdvb2dsZS5hcGlCDEJpbGxpbmdQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2FwaS9zZXJ2aWNlY29uZmlnO3NlcnZpY2Vjb25maWeiAgRHQVBJYgZwcm90bzM", [file_google_api_annotations]);
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Billing related configuration of the service.
|
|
32
|
+
*
|
|
33
|
+
* The following example shows how to configure monitored resources and metrics
|
|
34
|
+
* for billing:
|
|
35
|
+
*
|
|
36
|
+
* monitored_resources:
|
|
37
|
+
* - type: library.googleapis.com/branch
|
|
38
|
+
* labels:
|
|
39
|
+
* - key: /city
|
|
40
|
+
* description: The city where the library branch is located in.
|
|
41
|
+
* - key: /name
|
|
42
|
+
* description: The name of the branch.
|
|
43
|
+
* metrics:
|
|
44
|
+
* - name: library.googleapis.com/book/borrowed_count
|
|
45
|
+
* metric_kind: DELTA
|
|
46
|
+
* value_type: INT64
|
|
47
|
+
* billing:
|
|
48
|
+
* consumer_destinations:
|
|
49
|
+
* - monitored_resource: library.googleapis.com/branch
|
|
50
|
+
* metrics:
|
|
51
|
+
* - library.googleapis.com/book/borrowed_count
|
|
52
|
+
*
|
|
53
|
+
* @generated from message google.api.Billing
|
|
54
|
+
*/
|
|
55
|
+
export type Billing = Message<"google.api.Billing"> & {
|
|
56
|
+
/**
|
|
57
|
+
* Billing configurations for sending metrics to the consumer project.
|
|
58
|
+
* There can be multiple consumer destinations per service, each one must have
|
|
59
|
+
* a different monitored resource type. A metric can be used in at most
|
|
60
|
+
* one consumer destination.
|
|
61
|
+
*
|
|
62
|
+
* @generated from field: repeated google.api.Billing.BillingDestination consumer_destinations = 8;
|
|
63
|
+
*/
|
|
64
|
+
consumerDestinations: Billing_BillingDestination[];
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Describes the message google.api.Billing.
|
|
69
|
+
* Use `create(BillingSchema)` to create a new message.
|
|
70
|
+
*/
|
|
71
|
+
export const BillingSchema: GenMessage<Billing> = /*@__PURE__*/
|
|
72
|
+
messageDesc(file_google_api_billing, 0);
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Configuration of a specific billing destination (Currently only support
|
|
76
|
+
* bill against consumer project).
|
|
77
|
+
*
|
|
78
|
+
* @generated from message google.api.Billing.BillingDestination
|
|
79
|
+
*/
|
|
80
|
+
export type Billing_BillingDestination = Message<"google.api.Billing.BillingDestination"> & {
|
|
81
|
+
/**
|
|
82
|
+
* The monitored resource type. The type must be defined in
|
|
83
|
+
* [Service.monitored_resources][google.api.Service.monitored_resources] section.
|
|
84
|
+
*
|
|
85
|
+
* @generated from field: string monitored_resource = 1;
|
|
86
|
+
*/
|
|
87
|
+
monitoredResource: string;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Names of the metrics to report to this billing destination.
|
|
91
|
+
* Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
|
|
92
|
+
*
|
|
93
|
+
* @generated from field: repeated string metrics = 2;
|
|
94
|
+
*/
|
|
95
|
+
metrics: string[];
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Describes the message google.api.Billing.BillingDestination.
|
|
100
|
+
* Use `create(Billing_BillingDestinationSchema)` to create a new message.
|
|
101
|
+
*/
|
|
102
|
+
export const Billing_BillingDestinationSchema: GenMessage<Billing_BillingDestination> = /*@__PURE__*/
|
|
103
|
+
messageDesc(file_google_api_billing, 0, 0);
|
|
104
|
+
|