@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,513 @@
|
|
|
1
|
+
// Copyright 2020 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/rpc/error_details.proto (package google.rpc, 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 { Duration } from "@bufbuild/protobuf/wkt";
|
|
22
|
+
import { file_google_protobuf_duration } from "@bufbuild/protobuf/wkt";
|
|
23
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Describes the file google/rpc/error_details.proto.
|
|
27
|
+
*/
|
|
28
|
+
export const file_google_rpc_error_details: GenFile = /*@__PURE__*/
|
|
29
|
+
fileDesc("Ch5nb29nbGUvcnBjL2Vycm9yX2RldGFpbHMucHJvdG8SCmdvb2dsZS5ycGMiOwoJUmV0cnlJbmZvEi4KC3JldHJ5X2RlbGF5GAEgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uIjIKCURlYnVnSW5mbxIVCg1zdGFja19lbnRyaWVzGAEgAygJEg4KBmRldGFpbBgCIAEoCSJ5CgxRdW90YUZhaWx1cmUSNgoKdmlvbGF0aW9ucxgBIAMoCzIiLmdvb2dsZS5ycGMuUXVvdGFGYWlsdXJlLlZpb2xhdGlvbhoxCglWaW9sYXRpb24SDwoHc3ViamVjdBgBIAEoCRITCgtkZXNjcmlwdGlvbhgCIAEoCSKTAQoJRXJyb3JJbmZvEg4KBnJlYXNvbhgBIAEoCRIOCgZkb21haW4YAiABKAkSNQoIbWV0YWRhdGEYAyADKAsyIy5nb29nbGUucnBjLkVycm9ySW5mby5NZXRhZGF0YUVudHJ5Gi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASKVAQoTUHJlY29uZGl0aW9uRmFpbHVyZRI9Cgp2aW9sYXRpb25zGAEgAygLMikuZ29vZ2xlLnJwYy5QcmVjb25kaXRpb25GYWlsdXJlLlZpb2xhdGlvbho/CglWaW9sYXRpb24SDAoEdHlwZRgBIAEoCRIPCgdzdWJqZWN0GAIgASgJEhMKC2Rlc2NyaXB0aW9uGAMgASgJIoMBCgpCYWRSZXF1ZXN0Ej8KEGZpZWxkX3Zpb2xhdGlvbnMYASADKAsyJS5nb29nbGUucnBjLkJhZFJlcXVlc3QuRmllbGRWaW9sYXRpb24aNAoORmllbGRWaW9sYXRpb24SDQoFZmllbGQYASABKAkSEwoLZGVzY3JpcHRpb24YAiABKAkiNwoLUmVxdWVzdEluZm8SEgoKcmVxdWVzdF9pZBgBIAEoCRIUCgxzZXJ2aW5nX2RhdGEYAiABKAkiYAoMUmVzb3VyY2VJbmZvEhUKDXJlc291cmNlX3R5cGUYASABKAkSFQoNcmVzb3VyY2VfbmFtZRgCIAEoCRINCgVvd25lchgDIAEoCRITCgtkZXNjcmlwdGlvbhgEIAEoCSJWCgRIZWxwEiQKBWxpbmtzGAEgAygLMhUuZ29vZ2xlLnJwYy5IZWxwLkxpbmsaKAoETGluaxITCgtkZXNjcmlwdGlvbhgBIAEoCRILCgN1cmwYAiABKAkiMwoQTG9jYWxpemVkTWVzc2FnZRIOCgZsb2NhbGUYASABKAkSDwoHbWVzc2FnZRgCIAEoCUJsCg5jb20uZ29vZ2xlLnJwY0IRRXJyb3JEZXRhaWxzUHJvdG9QAVo/Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9ycGMvZXJyZGV0YWlscztlcnJkZXRhaWxzogIDUlBDYgZwcm90bzM", [file_google_protobuf_duration]);
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Describes when the clients can retry a failed request. Clients could ignore
|
|
33
|
+
* the recommendation here or retry when this information is missing from error
|
|
34
|
+
* responses.
|
|
35
|
+
*
|
|
36
|
+
* It's always recommended that clients should use exponential backoff when
|
|
37
|
+
* retrying.
|
|
38
|
+
*
|
|
39
|
+
* Clients should wait until `retry_delay` amount of time has passed since
|
|
40
|
+
* receiving the error response before retrying. If retrying requests also
|
|
41
|
+
* fail, clients should use an exponential backoff scheme to gradually increase
|
|
42
|
+
* the delay between retries based on `retry_delay`, until either a maximum
|
|
43
|
+
* number of retries have been reached or a maximum retry delay cap has been
|
|
44
|
+
* reached.
|
|
45
|
+
*
|
|
46
|
+
* @generated from message google.rpc.RetryInfo
|
|
47
|
+
*/
|
|
48
|
+
export type RetryInfo = Message<"google.rpc.RetryInfo"> & {
|
|
49
|
+
/**
|
|
50
|
+
* Clients should wait at least this long between retrying the same request.
|
|
51
|
+
*
|
|
52
|
+
* @generated from field: google.protobuf.Duration retry_delay = 1;
|
|
53
|
+
*/
|
|
54
|
+
retryDelay?: Duration;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Describes the message google.rpc.RetryInfo.
|
|
59
|
+
* Use `create(RetryInfoSchema)` to create a new message.
|
|
60
|
+
*/
|
|
61
|
+
export const RetryInfoSchema: GenMessage<RetryInfo> = /*@__PURE__*/
|
|
62
|
+
messageDesc(file_google_rpc_error_details, 0);
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Describes additional debugging info.
|
|
66
|
+
*
|
|
67
|
+
* @generated from message google.rpc.DebugInfo
|
|
68
|
+
*/
|
|
69
|
+
export type DebugInfo = Message<"google.rpc.DebugInfo"> & {
|
|
70
|
+
/**
|
|
71
|
+
* The stack trace entries indicating where the error occurred.
|
|
72
|
+
*
|
|
73
|
+
* @generated from field: repeated string stack_entries = 1;
|
|
74
|
+
*/
|
|
75
|
+
stackEntries: string[];
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Additional debugging information provided by the server.
|
|
79
|
+
*
|
|
80
|
+
* @generated from field: string detail = 2;
|
|
81
|
+
*/
|
|
82
|
+
detail: string;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Describes the message google.rpc.DebugInfo.
|
|
87
|
+
* Use `create(DebugInfoSchema)` to create a new message.
|
|
88
|
+
*/
|
|
89
|
+
export const DebugInfoSchema: GenMessage<DebugInfo> = /*@__PURE__*/
|
|
90
|
+
messageDesc(file_google_rpc_error_details, 1);
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Describes how a quota check failed.
|
|
94
|
+
*
|
|
95
|
+
* For example if a daily limit was exceeded for the calling project,
|
|
96
|
+
* a service could respond with a QuotaFailure detail containing the project
|
|
97
|
+
* id and the description of the quota limit that was exceeded. If the
|
|
98
|
+
* calling project hasn't enabled the service in the developer console, then
|
|
99
|
+
* a service could respond with the project id and set `service_disabled`
|
|
100
|
+
* to true.
|
|
101
|
+
*
|
|
102
|
+
* Also see RetryInfo and Help types for other details about handling a
|
|
103
|
+
* quota failure.
|
|
104
|
+
*
|
|
105
|
+
* @generated from message google.rpc.QuotaFailure
|
|
106
|
+
*/
|
|
107
|
+
export type QuotaFailure = Message<"google.rpc.QuotaFailure"> & {
|
|
108
|
+
/**
|
|
109
|
+
* Describes all quota violations.
|
|
110
|
+
*
|
|
111
|
+
* @generated from field: repeated google.rpc.QuotaFailure.Violation violations = 1;
|
|
112
|
+
*/
|
|
113
|
+
violations: QuotaFailure_Violation[];
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Describes the message google.rpc.QuotaFailure.
|
|
118
|
+
* Use `create(QuotaFailureSchema)` to create a new message.
|
|
119
|
+
*/
|
|
120
|
+
export const QuotaFailureSchema: GenMessage<QuotaFailure> = /*@__PURE__*/
|
|
121
|
+
messageDesc(file_google_rpc_error_details, 2);
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* A message type used to describe a single quota violation. For example, a
|
|
125
|
+
* daily quota or a custom quota that was exceeded.
|
|
126
|
+
*
|
|
127
|
+
* @generated from message google.rpc.QuotaFailure.Violation
|
|
128
|
+
*/
|
|
129
|
+
export type QuotaFailure_Violation = Message<"google.rpc.QuotaFailure.Violation"> & {
|
|
130
|
+
/**
|
|
131
|
+
* The subject on which the quota check failed.
|
|
132
|
+
* For example, "clientip:<ip address of client>" or "project:<Google
|
|
133
|
+
* developer project id>".
|
|
134
|
+
*
|
|
135
|
+
* @generated from field: string subject = 1;
|
|
136
|
+
*/
|
|
137
|
+
subject: string;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* A description of how the quota check failed. Clients can use this
|
|
141
|
+
* description to find more about the quota configuration in the service's
|
|
142
|
+
* public documentation, or find the relevant quota limit to adjust through
|
|
143
|
+
* developer console.
|
|
144
|
+
*
|
|
145
|
+
* For example: "Service disabled" or "Daily Limit for read operations
|
|
146
|
+
* exceeded".
|
|
147
|
+
*
|
|
148
|
+
* @generated from field: string description = 2;
|
|
149
|
+
*/
|
|
150
|
+
description: string;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Describes the message google.rpc.QuotaFailure.Violation.
|
|
155
|
+
* Use `create(QuotaFailure_ViolationSchema)` to create a new message.
|
|
156
|
+
*/
|
|
157
|
+
export const QuotaFailure_ViolationSchema: GenMessage<QuotaFailure_Violation> = /*@__PURE__*/
|
|
158
|
+
messageDesc(file_google_rpc_error_details, 2, 0);
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Describes the cause of the error with structured details.
|
|
162
|
+
*
|
|
163
|
+
* Example of an error when contacting the "pubsub.googleapis.com" API when it
|
|
164
|
+
* is not enabled:
|
|
165
|
+
* { "reason": "API_DISABLED"
|
|
166
|
+
* "domain": "googleapis.com"
|
|
167
|
+
* "metadata": {
|
|
168
|
+
* "resource": "projects/123",
|
|
169
|
+
* "service": "pubsub.googleapis.com"
|
|
170
|
+
* }
|
|
171
|
+
* }
|
|
172
|
+
* This response indicates that the pubsub.googleapis.com API is not enabled.
|
|
173
|
+
*
|
|
174
|
+
* Example of an error that is returned when attempting to create a Spanner
|
|
175
|
+
* instance in a region that is out of stock:
|
|
176
|
+
* { "reason": "STOCKOUT"
|
|
177
|
+
* "domain": "spanner.googleapis.com",
|
|
178
|
+
* "metadata": {
|
|
179
|
+
* "availableRegions": "us-central1,us-east2"
|
|
180
|
+
* }
|
|
181
|
+
* }
|
|
182
|
+
*
|
|
183
|
+
*
|
|
184
|
+
* @generated from message google.rpc.ErrorInfo
|
|
185
|
+
*/
|
|
186
|
+
export type ErrorInfo = Message<"google.rpc.ErrorInfo"> & {
|
|
187
|
+
/**
|
|
188
|
+
* The reason of the error. This is a constant value that identifies the
|
|
189
|
+
* proximate cause of the error. Error reasons are unique within a particular
|
|
190
|
+
* domain of errors. This should be at most 63 characters and match
|
|
191
|
+
* /[A-Z0-9_]+/.
|
|
192
|
+
*
|
|
193
|
+
* @generated from field: string reason = 1;
|
|
194
|
+
*/
|
|
195
|
+
reason: string;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* The logical grouping to which the "reason" belongs. Often "domain" will
|
|
199
|
+
* contain the registered service name of the tool or product that is the
|
|
200
|
+
* source of the error. Example: "pubsub.googleapis.com". If the error is
|
|
201
|
+
* common across many APIs, the first segment of the example above will be
|
|
202
|
+
* omitted. The value will be, "googleapis.com".
|
|
203
|
+
*
|
|
204
|
+
* @generated from field: string domain = 2;
|
|
205
|
+
*/
|
|
206
|
+
domain: string;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Additional structured details about this error.
|
|
210
|
+
*
|
|
211
|
+
* Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
|
|
212
|
+
* length. When identifying the current value of an exceeded limit, the units
|
|
213
|
+
* should be contained in the key, not the value. For example, rather than
|
|
214
|
+
* {"instanceLimit": "100/request"}, should be returned as,
|
|
215
|
+
* {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
|
|
216
|
+
* instances that can be created in a single (batch) request.
|
|
217
|
+
*
|
|
218
|
+
* @generated from field: map<string, string> metadata = 3;
|
|
219
|
+
*/
|
|
220
|
+
metadata: { [key: string]: string };
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Describes the message google.rpc.ErrorInfo.
|
|
225
|
+
* Use `create(ErrorInfoSchema)` to create a new message.
|
|
226
|
+
*/
|
|
227
|
+
export const ErrorInfoSchema: GenMessage<ErrorInfo> = /*@__PURE__*/
|
|
228
|
+
messageDesc(file_google_rpc_error_details, 3);
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Describes what preconditions have failed.
|
|
232
|
+
*
|
|
233
|
+
* For example, if an RPC failed because it required the Terms of Service to be
|
|
234
|
+
* acknowledged, it could list the terms of service violation in the
|
|
235
|
+
* PreconditionFailure message.
|
|
236
|
+
*
|
|
237
|
+
* @generated from message google.rpc.PreconditionFailure
|
|
238
|
+
*/
|
|
239
|
+
export type PreconditionFailure = Message<"google.rpc.PreconditionFailure"> & {
|
|
240
|
+
/**
|
|
241
|
+
* Describes all precondition violations.
|
|
242
|
+
*
|
|
243
|
+
* @generated from field: repeated google.rpc.PreconditionFailure.Violation violations = 1;
|
|
244
|
+
*/
|
|
245
|
+
violations: PreconditionFailure_Violation[];
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Describes the message google.rpc.PreconditionFailure.
|
|
250
|
+
* Use `create(PreconditionFailureSchema)` to create a new message.
|
|
251
|
+
*/
|
|
252
|
+
export const PreconditionFailureSchema: GenMessage<PreconditionFailure> = /*@__PURE__*/
|
|
253
|
+
messageDesc(file_google_rpc_error_details, 4);
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* A message type used to describe a single precondition failure.
|
|
257
|
+
*
|
|
258
|
+
* @generated from message google.rpc.PreconditionFailure.Violation
|
|
259
|
+
*/
|
|
260
|
+
export type PreconditionFailure_Violation = Message<"google.rpc.PreconditionFailure.Violation"> & {
|
|
261
|
+
/**
|
|
262
|
+
* The type of PreconditionFailure. We recommend using a service-specific
|
|
263
|
+
* enum type to define the supported precondition violation subjects. For
|
|
264
|
+
* example, "TOS" for "Terms of Service violation".
|
|
265
|
+
*
|
|
266
|
+
* @generated from field: string type = 1;
|
|
267
|
+
*/
|
|
268
|
+
type: string;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* The subject, relative to the type, that failed.
|
|
272
|
+
* For example, "google.com/cloud" relative to the "TOS" type would indicate
|
|
273
|
+
* which terms of service is being referenced.
|
|
274
|
+
*
|
|
275
|
+
* @generated from field: string subject = 2;
|
|
276
|
+
*/
|
|
277
|
+
subject: string;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* A description of how the precondition failed. Developers can use this
|
|
281
|
+
* description to understand how to fix the failure.
|
|
282
|
+
*
|
|
283
|
+
* For example: "Terms of service not accepted".
|
|
284
|
+
*
|
|
285
|
+
* @generated from field: string description = 3;
|
|
286
|
+
*/
|
|
287
|
+
description: string;
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Describes the message google.rpc.PreconditionFailure.Violation.
|
|
292
|
+
* Use `create(PreconditionFailure_ViolationSchema)` to create a new message.
|
|
293
|
+
*/
|
|
294
|
+
export const PreconditionFailure_ViolationSchema: GenMessage<PreconditionFailure_Violation> = /*@__PURE__*/
|
|
295
|
+
messageDesc(file_google_rpc_error_details, 4, 0);
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Describes violations in a client request. This error type focuses on the
|
|
299
|
+
* syntactic aspects of the request.
|
|
300
|
+
*
|
|
301
|
+
* @generated from message google.rpc.BadRequest
|
|
302
|
+
*/
|
|
303
|
+
export type BadRequest = Message<"google.rpc.BadRequest"> & {
|
|
304
|
+
/**
|
|
305
|
+
* Describes all violations in a client request.
|
|
306
|
+
*
|
|
307
|
+
* @generated from field: repeated google.rpc.BadRequest.FieldViolation field_violations = 1;
|
|
308
|
+
*/
|
|
309
|
+
fieldViolations: BadRequest_FieldViolation[];
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Describes the message google.rpc.BadRequest.
|
|
314
|
+
* Use `create(BadRequestSchema)` to create a new message.
|
|
315
|
+
*/
|
|
316
|
+
export const BadRequestSchema: GenMessage<BadRequest> = /*@__PURE__*/
|
|
317
|
+
messageDesc(file_google_rpc_error_details, 5);
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* A message type used to describe a single bad request field.
|
|
321
|
+
*
|
|
322
|
+
* @generated from message google.rpc.BadRequest.FieldViolation
|
|
323
|
+
*/
|
|
324
|
+
export type BadRequest_FieldViolation = Message<"google.rpc.BadRequest.FieldViolation"> & {
|
|
325
|
+
/**
|
|
326
|
+
* A path leading to a field in the request body. The value will be a
|
|
327
|
+
* sequence of dot-separated identifiers that identify a protocol buffer
|
|
328
|
+
* field. E.g., "field_violations.field" would identify this field.
|
|
329
|
+
*
|
|
330
|
+
* @generated from field: string field = 1;
|
|
331
|
+
*/
|
|
332
|
+
field: string;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* A description of why the request element is bad.
|
|
336
|
+
*
|
|
337
|
+
* @generated from field: string description = 2;
|
|
338
|
+
*/
|
|
339
|
+
description: string;
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Describes the message google.rpc.BadRequest.FieldViolation.
|
|
344
|
+
* Use `create(BadRequest_FieldViolationSchema)` to create a new message.
|
|
345
|
+
*/
|
|
346
|
+
export const BadRequest_FieldViolationSchema: GenMessage<BadRequest_FieldViolation> = /*@__PURE__*/
|
|
347
|
+
messageDesc(file_google_rpc_error_details, 5, 0);
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Contains metadata about the request that clients can attach when filing a bug
|
|
351
|
+
* or providing other forms of feedback.
|
|
352
|
+
*
|
|
353
|
+
* @generated from message google.rpc.RequestInfo
|
|
354
|
+
*/
|
|
355
|
+
export type RequestInfo = Message<"google.rpc.RequestInfo"> & {
|
|
356
|
+
/**
|
|
357
|
+
* An opaque string that should only be interpreted by the service generating
|
|
358
|
+
* it. For example, it can be used to identify requests in the service's logs.
|
|
359
|
+
*
|
|
360
|
+
* @generated from field: string request_id = 1;
|
|
361
|
+
*/
|
|
362
|
+
requestId: string;
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Any data that was used to serve this request. For example, an encrypted
|
|
366
|
+
* stack trace that can be sent back to the service provider for debugging.
|
|
367
|
+
*
|
|
368
|
+
* @generated from field: string serving_data = 2;
|
|
369
|
+
*/
|
|
370
|
+
servingData: string;
|
|
371
|
+
};
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Describes the message google.rpc.RequestInfo.
|
|
375
|
+
* Use `create(RequestInfoSchema)` to create a new message.
|
|
376
|
+
*/
|
|
377
|
+
export const RequestInfoSchema: GenMessage<RequestInfo> = /*@__PURE__*/
|
|
378
|
+
messageDesc(file_google_rpc_error_details, 6);
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Describes the resource that is being accessed.
|
|
382
|
+
*
|
|
383
|
+
* @generated from message google.rpc.ResourceInfo
|
|
384
|
+
*/
|
|
385
|
+
export type ResourceInfo = Message<"google.rpc.ResourceInfo"> & {
|
|
386
|
+
/**
|
|
387
|
+
* A name for the type of resource being accessed, e.g. "sql table",
|
|
388
|
+
* "cloud storage bucket", "file", "Google calendar"; or the type URL
|
|
389
|
+
* of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
|
|
390
|
+
*
|
|
391
|
+
* @generated from field: string resource_type = 1;
|
|
392
|
+
*/
|
|
393
|
+
resourceType: string;
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* The name of the resource being accessed. For example, a shared calendar
|
|
397
|
+
* name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
|
|
398
|
+
* error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
|
|
399
|
+
*
|
|
400
|
+
* @generated from field: string resource_name = 2;
|
|
401
|
+
*/
|
|
402
|
+
resourceName: string;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* The owner of the resource (optional).
|
|
406
|
+
* For example, "user:<owner email>" or "project:<Google developer project
|
|
407
|
+
* id>".
|
|
408
|
+
*
|
|
409
|
+
* @generated from field: string owner = 3;
|
|
410
|
+
*/
|
|
411
|
+
owner: string;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Describes what error is encountered when accessing this resource.
|
|
415
|
+
* For example, updating a cloud project may require the `writer` permission
|
|
416
|
+
* on the developer console project.
|
|
417
|
+
*
|
|
418
|
+
* @generated from field: string description = 4;
|
|
419
|
+
*/
|
|
420
|
+
description: string;
|
|
421
|
+
};
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Describes the message google.rpc.ResourceInfo.
|
|
425
|
+
* Use `create(ResourceInfoSchema)` to create a new message.
|
|
426
|
+
*/
|
|
427
|
+
export const ResourceInfoSchema: GenMessage<ResourceInfo> = /*@__PURE__*/
|
|
428
|
+
messageDesc(file_google_rpc_error_details, 7);
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Provides links to documentation or for performing an out of band action.
|
|
432
|
+
*
|
|
433
|
+
* For example, if a quota check failed with an error indicating the calling
|
|
434
|
+
* project hasn't enabled the accessed service, this can contain a URL pointing
|
|
435
|
+
* directly to the right place in the developer console to flip the bit.
|
|
436
|
+
*
|
|
437
|
+
* @generated from message google.rpc.Help
|
|
438
|
+
*/
|
|
439
|
+
export type Help = Message<"google.rpc.Help"> & {
|
|
440
|
+
/**
|
|
441
|
+
* URL(s) pointing to additional information on handling the current error.
|
|
442
|
+
*
|
|
443
|
+
* @generated from field: repeated google.rpc.Help.Link links = 1;
|
|
444
|
+
*/
|
|
445
|
+
links: Help_Link[];
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Describes the message google.rpc.Help.
|
|
450
|
+
* Use `create(HelpSchema)` to create a new message.
|
|
451
|
+
*/
|
|
452
|
+
export const HelpSchema: GenMessage<Help> = /*@__PURE__*/
|
|
453
|
+
messageDesc(file_google_rpc_error_details, 8);
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* Describes a URL link.
|
|
457
|
+
*
|
|
458
|
+
* @generated from message google.rpc.Help.Link
|
|
459
|
+
*/
|
|
460
|
+
export type Help_Link = Message<"google.rpc.Help.Link"> & {
|
|
461
|
+
/**
|
|
462
|
+
* Describes what the link offers.
|
|
463
|
+
*
|
|
464
|
+
* @generated from field: string description = 1;
|
|
465
|
+
*/
|
|
466
|
+
description: string;
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* The URL of the link.
|
|
470
|
+
*
|
|
471
|
+
* @generated from field: string url = 2;
|
|
472
|
+
*/
|
|
473
|
+
url: string;
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Describes the message google.rpc.Help.Link.
|
|
478
|
+
* Use `create(Help_LinkSchema)` to create a new message.
|
|
479
|
+
*/
|
|
480
|
+
export const Help_LinkSchema: GenMessage<Help_Link> = /*@__PURE__*/
|
|
481
|
+
messageDesc(file_google_rpc_error_details, 8, 0);
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Provides a localized error message that is safe to return to the user
|
|
485
|
+
* which can be attached to an RPC error.
|
|
486
|
+
*
|
|
487
|
+
* @generated from message google.rpc.LocalizedMessage
|
|
488
|
+
*/
|
|
489
|
+
export type LocalizedMessage = Message<"google.rpc.LocalizedMessage"> & {
|
|
490
|
+
/**
|
|
491
|
+
* The locale used following the specification defined at
|
|
492
|
+
* http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
|
|
493
|
+
* Examples are: "en-US", "fr-CH", "es-MX"
|
|
494
|
+
*
|
|
495
|
+
* @generated from field: string locale = 1;
|
|
496
|
+
*/
|
|
497
|
+
locale: string;
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* The localized error message in the above locale.
|
|
501
|
+
*
|
|
502
|
+
* @generated from field: string message = 2;
|
|
503
|
+
*/
|
|
504
|
+
message: string;
|
|
505
|
+
};
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* Describes the message google.rpc.LocalizedMessage.
|
|
509
|
+
* Use `create(LocalizedMessageSchema)` to create a new message.
|
|
510
|
+
*/
|
|
511
|
+
export const LocalizedMessageSchema: GenMessage<LocalizedMessage> = /*@__PURE__*/
|
|
512
|
+
messageDesc(file_google_rpc_error_details, 9);
|
|
513
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
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.StatusSchema = exports.file_google_rpc_status = void 0;
|
|
17
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
18
|
+
const wkt_1 = require("@bufbuild/protobuf/wkt");
|
|
19
|
+
/**
|
|
20
|
+
* Describes the file google/rpc/status.proto.
|
|
21
|
+
*/
|
|
22
|
+
exports.file_google_rpc_status = (0, codegenv2_1.fileDesc)("Chdnb29nbGUvcnBjL3N0YXR1cy5wcm90bxIKZ29vZ2xlLnJwYyJOCgZTdGF0dXMSDAoEY29kZRgBIAEoBRIPCgdtZXNzYWdlGAIgASgJEiUKB2RldGFpbHMYAyADKAsyFC5nb29nbGUucHJvdG9idWYuQW55QmEKDmNvbS5nb29nbGUucnBjQgtTdGF0dXNQcm90b1ABWjdnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL3JwYy9zdGF0dXM7c3RhdHVz+AEBogIDUlBDYgZwcm90bzM", [wkt_1.file_google_protobuf_any]);
|
|
23
|
+
/**
|
|
24
|
+
* Describes the message google.rpc.Status.
|
|
25
|
+
* Use `create(StatusSchema)` to create a new message.
|
|
26
|
+
*/
|
|
27
|
+
exports.StatusSchema = (0, codegenv2_1.messageDesc)(exports.file_google_rpc_status, 0);
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// Copyright 2020 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/rpc/status.proto (package google.rpc, 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 { Any } from "@bufbuild/protobuf/wkt";
|
|
22
|
+
import { file_google_protobuf_any } from "@bufbuild/protobuf/wkt";
|
|
23
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Describes the file google/rpc/status.proto.
|
|
27
|
+
*/
|
|
28
|
+
export const file_google_rpc_status: GenFile = /*@__PURE__*/
|
|
29
|
+
fileDesc("Chdnb29nbGUvcnBjL3N0YXR1cy5wcm90bxIKZ29vZ2xlLnJwYyJOCgZTdGF0dXMSDAoEY29kZRgBIAEoBRIPCgdtZXNzYWdlGAIgASgJEiUKB2RldGFpbHMYAyADKAsyFC5nb29nbGUucHJvdG9idWYuQW55QmEKDmNvbS5nb29nbGUucnBjQgtTdGF0dXNQcm90b1ABWjdnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL3JwYy9zdGF0dXM7c3RhdHVz+AEBogIDUlBDYgZwcm90bzM", [file_google_protobuf_any]);
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The `Status` type defines a logical error model that is suitable for
|
|
33
|
+
* different programming environments, including REST APIs and RPC APIs. It is
|
|
34
|
+
* used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
|
35
|
+
* three pieces of data: error code, error message, and error details.
|
|
36
|
+
*
|
|
37
|
+
* You can find out more about this error model and how to work with it in the
|
|
38
|
+
* [API Design Guide](https://cloud.google.com/apis/design/errors).
|
|
39
|
+
*
|
|
40
|
+
* @generated from message google.rpc.Status
|
|
41
|
+
*/
|
|
42
|
+
export type Status = Message<"google.rpc.Status"> & {
|
|
43
|
+
/**
|
|
44
|
+
* The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
|
|
45
|
+
*
|
|
46
|
+
* @generated from field: int32 code = 1;
|
|
47
|
+
*/
|
|
48
|
+
code: number;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* A developer-facing error message, which should be in English. Any
|
|
52
|
+
* user-facing error message should be localized and sent in the
|
|
53
|
+
* [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
|
|
54
|
+
*
|
|
55
|
+
* @generated from field: string message = 2;
|
|
56
|
+
*/
|
|
57
|
+
message: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* A list of messages that carry the error details. There is a common set of
|
|
61
|
+
* message types for APIs to use.
|
|
62
|
+
*
|
|
63
|
+
* @generated from field: repeated google.protobuf.Any details = 3;
|
|
64
|
+
*/
|
|
65
|
+
details: Any[];
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Describes the message google.rpc.Status.
|
|
70
|
+
* Use `create(StatusSchema)` to create a new message.
|
|
71
|
+
*/
|
|
72
|
+
export const StatusSchema: GenMessage<Status> = /*@__PURE__*/
|
|
73
|
+
messageDesc(file_google_rpc_status, 0);
|
|
74
|
+
|
package/iam/v1/client.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NewIamClient = NewIamClient;
|
|
4
|
+
const iam_pb_1 = require("./iam_pb");
|
|
5
|
+
const conn_1 = require("../../conn/conn");
|
|
6
|
+
function NewIamClient(...opts) {
|
|
7
|
+
const blueapi = new conn_1.BlueAPIService(iam_pb_1.Iam, "blue", opts);
|
|
8
|
+
return blueapi.clientInstance;
|
|
9
|
+
}
|
package/iam/v1/client.ts
ADDED