@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,141 @@
|
|
|
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/usage.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/usage.proto.
|
|
26
|
+
*/
|
|
27
|
+
export const file_google_api_usage: GenFile = /*@__PURE__*/
|
|
28
|
+
fileDesc("ChZnb29nbGUvYXBpL3VzYWdlLnByb3RvEgpnb29nbGUuYXBpImoKBVVzYWdlEhQKDHJlcXVpcmVtZW50cxgBIAMoCRIkCgVydWxlcxgGIAMoCzIVLmdvb2dsZS5hcGkuVXNhZ2VSdWxlEiUKHXByb2R1Y2VyX25vdGlmaWNhdGlvbl9jaGFubmVsGAcgASgJIl0KCVVzYWdlUnVsZRIQCghzZWxlY3RvchgBIAEoCRIgChhhbGxvd191bnJlZ2lzdGVyZWRfY2FsbHMYAiABKAgSHAoUc2tpcF9zZXJ2aWNlX2NvbnRyb2wYAyABKAhCbAoOY29tLmdvb2dsZS5hcGlCClVzYWdlUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hcGkvc2VydmljZWNvbmZpZztzZXJ2aWNlY29uZmlnogIER0FQSWIGcHJvdG8z", [file_google_api_annotations]);
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Configuration controlling usage of a service.
|
|
32
|
+
*
|
|
33
|
+
* @generated from message google.api.Usage
|
|
34
|
+
*/
|
|
35
|
+
export type Usage = Message<"google.api.Usage"> & {
|
|
36
|
+
/**
|
|
37
|
+
* Requirements that must be satisfied before a consumer project can use the
|
|
38
|
+
* service. Each requirement is of the form <service.name>/<requirement-id>;
|
|
39
|
+
* for example 'serviceusage.googleapis.com/billing-enabled'.
|
|
40
|
+
*
|
|
41
|
+
* @generated from field: repeated string requirements = 1;
|
|
42
|
+
*/
|
|
43
|
+
requirements: string[];
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* A list of usage rules that apply to individual API methods.
|
|
47
|
+
*
|
|
48
|
+
* **NOTE:** All service configuration rules follow "last one wins" order.
|
|
49
|
+
*
|
|
50
|
+
* @generated from field: repeated google.api.UsageRule rules = 6;
|
|
51
|
+
*/
|
|
52
|
+
rules: UsageRule[];
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* The full resource name of a channel used for sending notifications to the
|
|
56
|
+
* service producer.
|
|
57
|
+
*
|
|
58
|
+
* Google Service Management currently only supports
|
|
59
|
+
* [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
|
|
60
|
+
* channel. To use Google Cloud Pub/Sub as the channel, this must be the name
|
|
61
|
+
* of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format
|
|
62
|
+
* documented in https://cloud.google.com/pubsub/docs/overview.
|
|
63
|
+
*
|
|
64
|
+
* @generated from field: string producer_notification_channel = 7;
|
|
65
|
+
*/
|
|
66
|
+
producerNotificationChannel: string;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Describes the message google.api.Usage.
|
|
71
|
+
* Use `create(UsageSchema)` to create a new message.
|
|
72
|
+
*/
|
|
73
|
+
export const UsageSchema: GenMessage<Usage> = /*@__PURE__*/
|
|
74
|
+
messageDesc(file_google_api_usage, 0);
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Usage configuration rules for the service.
|
|
78
|
+
*
|
|
79
|
+
* NOTE: Under development.
|
|
80
|
+
*
|
|
81
|
+
*
|
|
82
|
+
* Use this rule to configure unregistered calls for the service. Unregistered
|
|
83
|
+
* calls are calls that do not contain consumer project identity.
|
|
84
|
+
* (Example: calls that do not contain an API key).
|
|
85
|
+
* By default, API methods do not allow unregistered calls, and each method call
|
|
86
|
+
* must be identified by a consumer project identity. Use this rule to
|
|
87
|
+
* allow/disallow unregistered calls.
|
|
88
|
+
*
|
|
89
|
+
* Example of an API that wants to allow unregistered calls for entire service.
|
|
90
|
+
*
|
|
91
|
+
* usage:
|
|
92
|
+
* rules:
|
|
93
|
+
* - selector: "*"
|
|
94
|
+
* allow_unregistered_calls: true
|
|
95
|
+
*
|
|
96
|
+
* Example of a method that wants to allow unregistered calls.
|
|
97
|
+
*
|
|
98
|
+
* usage:
|
|
99
|
+
* rules:
|
|
100
|
+
* - selector: "google.example.library.v1.LibraryService.CreateBook"
|
|
101
|
+
* allow_unregistered_calls: true
|
|
102
|
+
*
|
|
103
|
+
* @generated from message google.api.UsageRule
|
|
104
|
+
*/
|
|
105
|
+
export type UsageRule = Message<"google.api.UsageRule"> & {
|
|
106
|
+
/**
|
|
107
|
+
* Selects the methods to which this rule applies. Use '*' to indicate all
|
|
108
|
+
* methods in all APIs.
|
|
109
|
+
*
|
|
110
|
+
* Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
|
|
111
|
+
*
|
|
112
|
+
* @generated from field: string selector = 1;
|
|
113
|
+
*/
|
|
114
|
+
selector: string;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* If true, the selected method allows unregistered calls, e.g. calls
|
|
118
|
+
* that don't identify any user or application.
|
|
119
|
+
*
|
|
120
|
+
* @generated from field: bool allow_unregistered_calls = 2;
|
|
121
|
+
*/
|
|
122
|
+
allowUnregisteredCalls: boolean;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* If true, the selected method should skip service control and the control
|
|
126
|
+
* plane features, such as quota and billing, will not be available.
|
|
127
|
+
* This flag is used by Google Cloud Endpoints to bypass checks for internal
|
|
128
|
+
* methods, such as service health check methods.
|
|
129
|
+
*
|
|
130
|
+
* @generated from field: bool skip_service_control = 3;
|
|
131
|
+
*/
|
|
132
|
+
skipServiceControl: boolean;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Describes the message google.api.UsageRule.
|
|
137
|
+
* Use `create(UsageRuleSchema)` to create a new message.
|
|
138
|
+
*/
|
|
139
|
+
export const UsageRuleSchema: GenMessage<UsageRule> = /*@__PURE__*/
|
|
140
|
+
messageDesc(file_google_api_usage, 1);
|
|
141
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2019 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.operation_info = exports.Operations = exports.OperationInfoSchema = exports.WaitOperationRequestSchema = exports.DeleteOperationRequestSchema = exports.CancelOperationRequestSchema = exports.ListOperationsResponseSchema = exports.ListOperationsRequestSchema = exports.GetOperationRequestSchema = exports.OperationSchema = exports.file_google_longrunning_operations = void 0;
|
|
17
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
18
|
+
const annotations_pb_1 = require("../api/annotations_pb");
|
|
19
|
+
const client_pb_1 = require("../api/client_pb");
|
|
20
|
+
const wkt_1 = require("@bufbuild/protobuf/wkt");
|
|
21
|
+
const status_pb_1 = require("../rpc/status_pb");
|
|
22
|
+
/**
|
|
23
|
+
* Describes the file google/longrunning/operations.proto.
|
|
24
|
+
*/
|
|
25
|
+
exports.file_google_longrunning_operations = (0, codegenv2_1.fileDesc)("CiNnb29nbGUvbG9uZ3J1bm5pbmcvb3BlcmF0aW9ucy5wcm90bxISZ29vZ2xlLmxvbmdydW5uaW5nIqgBCglPcGVyYXRpb24SDAoEbmFtZRgBIAEoCRImCghtZXRhZGF0YRgCIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnkSDAoEZG9uZRgDIAEoCBIjCgVlcnJvchgEIAEoCzISLmdvb2dsZS5ycGMuU3RhdHVzSAASKAoIcmVzcG9uc2UYBSABKAsyFC5nb29nbGUucHJvdG9idWYuQW55SABCCAoGcmVzdWx0IiMKE0dldE9wZXJhdGlvblJlcXVlc3QSDAoEbmFtZRgBIAEoCSJcChVMaXN0T3BlcmF0aW9uc1JlcXVlc3QSDAoEbmFtZRgEIAEoCRIOCgZmaWx0ZXIYASABKAkSEQoJcGFnZV9zaXplGAIgASgFEhIKCnBhZ2VfdG9rZW4YAyABKAkiZAoWTGlzdE9wZXJhdGlvbnNSZXNwb25zZRIxCgpvcGVyYXRpb25zGAEgAygLMh0uZ29vZ2xlLmxvbmdydW5uaW5nLk9wZXJhdGlvbhIXCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAkiJgoWQ2FuY2VsT3BlcmF0aW9uUmVxdWVzdBIMCgRuYW1lGAEgASgJIiYKFkRlbGV0ZU9wZXJhdGlvblJlcXVlc3QSDAoEbmFtZRgBIAEoCSJQChRXYWl0T3BlcmF0aW9uUmVxdWVzdBIMCgRuYW1lGAEgASgJEioKB3RpbWVvdXQYAiABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb24iPQoNT3BlcmF0aW9uSW5mbxIVCg1yZXNwb25zZV90eXBlGAEgASgJEhUKDW1ldGFkYXRhX3R5cGUYAiABKAkyqgUKCk9wZXJhdGlvbnMSlAEKDkxpc3RPcGVyYXRpb25zEikuZ29vZ2xlLmxvbmdydW5uaW5nLkxpc3RPcGVyYXRpb25zUmVxdWVzdBoqLmdvb2dsZS5sb25ncnVubmluZy5MaXN0T3BlcmF0aW9uc1Jlc3BvbnNlIivaQQtuYW1lLGZpbHRlcoLT5JMCFxIVL3YxL3tuYW1lPW9wZXJhdGlvbnN9En8KDEdldE9wZXJhdGlvbhInLmdvb2dsZS5sb25ncnVubmluZy5HZXRPcGVyYXRpb25SZXF1ZXN0Gh0uZ29vZ2xlLmxvbmdydW5uaW5nLk9wZXJhdGlvbiIn2kEEbmFtZYLT5JMCGhIYL3YxL3tuYW1lPW9wZXJhdGlvbnMvKip9En4KD0RlbGV0ZU9wZXJhdGlvbhIqLmdvb2dsZS5sb25ncnVubmluZy5EZWxldGVPcGVyYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IifaQQRuYW1lgtPkkwIaKhgvdjEve25hbWU9b3BlcmF0aW9ucy8qKn0SiAEKD0NhbmNlbE9wZXJhdGlvbhIqLmdvb2dsZS5sb25ncnVubmluZy5DYW5jZWxPcGVyYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IjHaQQRuYW1lgtPkkwIkOgEqIh8vdjEve25hbWU9b3BlcmF0aW9ucy8qKn06Y2FuY2VsEloKDVdhaXRPcGVyYXRpb24SKC5nb29nbGUubG9uZ3J1bm5pbmcuV2FpdE9wZXJhdGlvblJlcXVlc3QaHS5nb29nbGUubG9uZ3J1bm5pbmcuT3BlcmF0aW9uIgAaHcpBGmxvbmdydW5uaW5nLmdvb2dsZWFwaXMuY29tOmkKDm9wZXJhdGlvbl9pbmZvEh4uZ29vZ2xlLnByb3RvYnVmLk1ldGhvZE9wdGlvbnMYmQggASgLMiEuZ29vZ2xlLmxvbmdydW5uaW5nLk9wZXJhdGlvbkluZm9SDW9wZXJhdGlvbkluZm9ClwEKFmNvbS5nb29nbGUubG9uZ3J1bm5pbmdCD09wZXJhdGlvbnNQcm90b1ABWj1nb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2xvbmdydW5uaW5nO2xvbmdydW5uaW5n+AEBqgISR29vZ2xlLkxvbmdSdW5uaW5nygISR29vZ2xlXExvbmdSdW5uaW5nYgZwcm90bzM", [annotations_pb_1.file_google_api_annotations, client_pb_1.file_google_api_client, wkt_1.file_google_protobuf_any, wkt_1.file_google_protobuf_duration, wkt_1.file_google_protobuf_empty, status_pb_1.file_google_rpc_status, wkt_1.file_google_protobuf_descriptor]);
|
|
26
|
+
/**
|
|
27
|
+
* Describes the message google.longrunning.Operation.
|
|
28
|
+
* Use `create(OperationSchema)` to create a new message.
|
|
29
|
+
*/
|
|
30
|
+
exports.OperationSchema = (0, codegenv2_1.messageDesc)(exports.file_google_longrunning_operations, 0);
|
|
31
|
+
/**
|
|
32
|
+
* Describes the message google.longrunning.GetOperationRequest.
|
|
33
|
+
* Use `create(GetOperationRequestSchema)` to create a new message.
|
|
34
|
+
*/
|
|
35
|
+
exports.GetOperationRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_google_longrunning_operations, 1);
|
|
36
|
+
/**
|
|
37
|
+
* Describes the message google.longrunning.ListOperationsRequest.
|
|
38
|
+
* Use `create(ListOperationsRequestSchema)` to create a new message.
|
|
39
|
+
*/
|
|
40
|
+
exports.ListOperationsRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_google_longrunning_operations, 2);
|
|
41
|
+
/**
|
|
42
|
+
* Describes the message google.longrunning.ListOperationsResponse.
|
|
43
|
+
* Use `create(ListOperationsResponseSchema)` to create a new message.
|
|
44
|
+
*/
|
|
45
|
+
exports.ListOperationsResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_google_longrunning_operations, 3);
|
|
46
|
+
/**
|
|
47
|
+
* Describes the message google.longrunning.CancelOperationRequest.
|
|
48
|
+
* Use `create(CancelOperationRequestSchema)` to create a new message.
|
|
49
|
+
*/
|
|
50
|
+
exports.CancelOperationRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_google_longrunning_operations, 4);
|
|
51
|
+
/**
|
|
52
|
+
* Describes the message google.longrunning.DeleteOperationRequest.
|
|
53
|
+
* Use `create(DeleteOperationRequestSchema)` to create a new message.
|
|
54
|
+
*/
|
|
55
|
+
exports.DeleteOperationRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_google_longrunning_operations, 5);
|
|
56
|
+
/**
|
|
57
|
+
* Describes the message google.longrunning.WaitOperationRequest.
|
|
58
|
+
* Use `create(WaitOperationRequestSchema)` to create a new message.
|
|
59
|
+
*/
|
|
60
|
+
exports.WaitOperationRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_google_longrunning_operations, 6);
|
|
61
|
+
/**
|
|
62
|
+
* Describes the message google.longrunning.OperationInfo.
|
|
63
|
+
* Use `create(OperationInfoSchema)` to create a new message.
|
|
64
|
+
*/
|
|
65
|
+
exports.OperationInfoSchema = (0, codegenv2_1.messageDesc)(exports.file_google_longrunning_operations, 7);
|
|
66
|
+
/**
|
|
67
|
+
* Manages long-running operations with an API service.
|
|
68
|
+
*
|
|
69
|
+
* When an API method normally takes long time to complete, it can be designed
|
|
70
|
+
* to return [Operation][google.longrunning.Operation] to the client, and the client can use this
|
|
71
|
+
* interface to receive the real response asynchronously by polling the
|
|
72
|
+
* operation resource, or pass the operation resource to another API (such as
|
|
73
|
+
* Google Cloud Pub/Sub API) to receive the response. Any API service that
|
|
74
|
+
* returns long-running operations should implement the `Operations` interface
|
|
75
|
+
* so developers can have a consistent client experience.
|
|
76
|
+
*
|
|
77
|
+
* @generated from service google.longrunning.Operations
|
|
78
|
+
*/
|
|
79
|
+
exports.Operations = (0, codegenv2_1.serviceDesc)(exports.file_google_longrunning_operations, 0);
|
|
80
|
+
/**
|
|
81
|
+
* Additional information regarding long-running operations.
|
|
82
|
+
* In particular, this specifies the types that are returned from
|
|
83
|
+
* long-running operations.
|
|
84
|
+
*
|
|
85
|
+
* Required for methods that return `google.longrunning.Operation`; invalid
|
|
86
|
+
* otherwise.
|
|
87
|
+
*
|
|
88
|
+
* @generated from extension: google.longrunning.OperationInfo operation_info = 1049;
|
|
89
|
+
*/
|
|
90
|
+
exports.operation_info = (0, codegenv2_1.extDesc)(exports.file_google_longrunning_operations, 0);
|
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
// Copyright 2019 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/longrunning/operations.proto (package google.longrunning, syntax proto3)
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
|
|
19
|
+
import type { GenExtension, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
20
|
+
import { extDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
21
|
+
import { file_google_api_annotations } from "../api/annotations_pb";
|
|
22
|
+
import { file_google_api_client } from "../api/client_pb";
|
|
23
|
+
import type { Any, Duration, EmptySchema, MethodOptions } from "@bufbuild/protobuf/wkt";
|
|
24
|
+
import { file_google_protobuf_any, file_google_protobuf_descriptor, file_google_protobuf_duration, file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
|
|
25
|
+
import type { Status } from "../rpc/status_pb";
|
|
26
|
+
import { file_google_rpc_status } from "../rpc/status_pb";
|
|
27
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Describes the file google/longrunning/operations.proto.
|
|
31
|
+
*/
|
|
32
|
+
export const file_google_longrunning_operations: GenFile = /*@__PURE__*/
|
|
33
|
+
fileDesc("CiNnb29nbGUvbG9uZ3J1bm5pbmcvb3BlcmF0aW9ucy5wcm90bxISZ29vZ2xlLmxvbmdydW5uaW5nIqgBCglPcGVyYXRpb24SDAoEbmFtZRgBIAEoCRImCghtZXRhZGF0YRgCIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnkSDAoEZG9uZRgDIAEoCBIjCgVlcnJvchgEIAEoCzISLmdvb2dsZS5ycGMuU3RhdHVzSAASKAoIcmVzcG9uc2UYBSABKAsyFC5nb29nbGUucHJvdG9idWYuQW55SABCCAoGcmVzdWx0IiMKE0dldE9wZXJhdGlvblJlcXVlc3QSDAoEbmFtZRgBIAEoCSJcChVMaXN0T3BlcmF0aW9uc1JlcXVlc3QSDAoEbmFtZRgEIAEoCRIOCgZmaWx0ZXIYASABKAkSEQoJcGFnZV9zaXplGAIgASgFEhIKCnBhZ2VfdG9rZW4YAyABKAkiZAoWTGlzdE9wZXJhdGlvbnNSZXNwb25zZRIxCgpvcGVyYXRpb25zGAEgAygLMh0uZ29vZ2xlLmxvbmdydW5uaW5nLk9wZXJhdGlvbhIXCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAkiJgoWQ2FuY2VsT3BlcmF0aW9uUmVxdWVzdBIMCgRuYW1lGAEgASgJIiYKFkRlbGV0ZU9wZXJhdGlvblJlcXVlc3QSDAoEbmFtZRgBIAEoCSJQChRXYWl0T3BlcmF0aW9uUmVxdWVzdBIMCgRuYW1lGAEgASgJEioKB3RpbWVvdXQYAiABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb24iPQoNT3BlcmF0aW9uSW5mbxIVCg1yZXNwb25zZV90eXBlGAEgASgJEhUKDW1ldGFkYXRhX3R5cGUYAiABKAkyqgUKCk9wZXJhdGlvbnMSlAEKDkxpc3RPcGVyYXRpb25zEikuZ29vZ2xlLmxvbmdydW5uaW5nLkxpc3RPcGVyYXRpb25zUmVxdWVzdBoqLmdvb2dsZS5sb25ncnVubmluZy5MaXN0T3BlcmF0aW9uc1Jlc3BvbnNlIivaQQtuYW1lLGZpbHRlcoLT5JMCFxIVL3YxL3tuYW1lPW9wZXJhdGlvbnN9En8KDEdldE9wZXJhdGlvbhInLmdvb2dsZS5sb25ncnVubmluZy5HZXRPcGVyYXRpb25SZXF1ZXN0Gh0uZ29vZ2xlLmxvbmdydW5uaW5nLk9wZXJhdGlvbiIn2kEEbmFtZYLT5JMCGhIYL3YxL3tuYW1lPW9wZXJhdGlvbnMvKip9En4KD0RlbGV0ZU9wZXJhdGlvbhIqLmdvb2dsZS5sb25ncnVubmluZy5EZWxldGVPcGVyYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IifaQQRuYW1lgtPkkwIaKhgvdjEve25hbWU9b3BlcmF0aW9ucy8qKn0SiAEKD0NhbmNlbE9wZXJhdGlvbhIqLmdvb2dsZS5sb25ncnVubmluZy5DYW5jZWxPcGVyYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IjHaQQRuYW1lgtPkkwIkOgEqIh8vdjEve25hbWU9b3BlcmF0aW9ucy8qKn06Y2FuY2VsEloKDVdhaXRPcGVyYXRpb24SKC5nb29nbGUubG9uZ3J1bm5pbmcuV2FpdE9wZXJhdGlvblJlcXVlc3QaHS5nb29nbGUubG9uZ3J1bm5pbmcuT3BlcmF0aW9uIgAaHcpBGmxvbmdydW5uaW5nLmdvb2dsZWFwaXMuY29tOmkKDm9wZXJhdGlvbl9pbmZvEh4uZ29vZ2xlLnByb3RvYnVmLk1ldGhvZE9wdGlvbnMYmQggASgLMiEuZ29vZ2xlLmxvbmdydW5uaW5nLk9wZXJhdGlvbkluZm9SDW9wZXJhdGlvbkluZm9ClwEKFmNvbS5nb29nbGUubG9uZ3J1bm5pbmdCD09wZXJhdGlvbnNQcm90b1ABWj1nb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2xvbmdydW5uaW5nO2xvbmdydW5uaW5n+AEBqgISR29vZ2xlLkxvbmdSdW5uaW5nygISR29vZ2xlXExvbmdSdW5uaW5nYgZwcm90bzM", [file_google_api_annotations, file_google_api_client, file_google_protobuf_any, file_google_protobuf_duration, file_google_protobuf_empty, file_google_rpc_status, file_google_protobuf_descriptor]);
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* This resource represents a long-running operation that is the result of a
|
|
37
|
+
* network API call.
|
|
38
|
+
*
|
|
39
|
+
* @generated from message google.longrunning.Operation
|
|
40
|
+
*/
|
|
41
|
+
export type Operation = Message<"google.longrunning.Operation"> & {
|
|
42
|
+
/**
|
|
43
|
+
* The server-assigned name, which is only unique within the same service that
|
|
44
|
+
* originally returns it. If you use the default HTTP mapping, the
|
|
45
|
+
* `name` should be a resource name ending with `operations/{unique_id}`.
|
|
46
|
+
*
|
|
47
|
+
* @generated from field: string name = 1;
|
|
48
|
+
*/
|
|
49
|
+
name: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Service-specific metadata associated with the operation. It typically
|
|
53
|
+
* contains progress information and common metadata such as create time.
|
|
54
|
+
* Some services might not provide such metadata. Any method that returns a
|
|
55
|
+
* long-running operation should document the metadata type, if any.
|
|
56
|
+
*
|
|
57
|
+
* @generated from field: google.protobuf.Any metadata = 2;
|
|
58
|
+
*/
|
|
59
|
+
metadata?: Any;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* If the value is `false`, it means the operation is still in progress.
|
|
63
|
+
* If `true`, the operation is completed, and either `error` or `response` is
|
|
64
|
+
* available.
|
|
65
|
+
*
|
|
66
|
+
* @generated from field: bool done = 3;
|
|
67
|
+
*/
|
|
68
|
+
done: boolean;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The operation result, which can be either an `error` or a valid `response`.
|
|
72
|
+
* If `done` == `false`, neither `error` nor `response` is set.
|
|
73
|
+
* If `done` == `true`, exactly one of `error` or `response` is set.
|
|
74
|
+
*
|
|
75
|
+
* @generated from oneof google.longrunning.Operation.result
|
|
76
|
+
*/
|
|
77
|
+
result: {
|
|
78
|
+
/**
|
|
79
|
+
* The error result of the operation in case of failure or cancellation.
|
|
80
|
+
*
|
|
81
|
+
* @generated from field: google.rpc.Status error = 4;
|
|
82
|
+
*/
|
|
83
|
+
value: Status;
|
|
84
|
+
case: "error";
|
|
85
|
+
} | {
|
|
86
|
+
/**
|
|
87
|
+
* The normal response of the operation in case of success. If the original
|
|
88
|
+
* method returns no data on success, such as `Delete`, the response is
|
|
89
|
+
* `google.protobuf.Empty`. If the original method is standard
|
|
90
|
+
* `Get`/`Create`/`Update`, the response should be the resource. For other
|
|
91
|
+
* methods, the response should have the type `XxxResponse`, where `Xxx`
|
|
92
|
+
* is the original method name. For example, if the original method name
|
|
93
|
+
* is `TakeSnapshot()`, the inferred response type is
|
|
94
|
+
* `TakeSnapshotResponse`.
|
|
95
|
+
*
|
|
96
|
+
* @generated from field: google.protobuf.Any response = 5;
|
|
97
|
+
*/
|
|
98
|
+
value: Any;
|
|
99
|
+
case: "response";
|
|
100
|
+
} | { case: undefined; value?: undefined };
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Describes the message google.longrunning.Operation.
|
|
105
|
+
* Use `create(OperationSchema)` to create a new message.
|
|
106
|
+
*/
|
|
107
|
+
export const OperationSchema: GenMessage<Operation> = /*@__PURE__*/
|
|
108
|
+
messageDesc(file_google_longrunning_operations, 0);
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The request message for [Operations.GetOperation][google.longrunning.Operations.GetOperation].
|
|
112
|
+
*
|
|
113
|
+
* @generated from message google.longrunning.GetOperationRequest
|
|
114
|
+
*/
|
|
115
|
+
export type GetOperationRequest = Message<"google.longrunning.GetOperationRequest"> & {
|
|
116
|
+
/**
|
|
117
|
+
* The name of the operation resource.
|
|
118
|
+
*
|
|
119
|
+
* @generated from field: string name = 1;
|
|
120
|
+
*/
|
|
121
|
+
name: string;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Describes the message google.longrunning.GetOperationRequest.
|
|
126
|
+
* Use `create(GetOperationRequestSchema)` to create a new message.
|
|
127
|
+
*/
|
|
128
|
+
export const GetOperationRequestSchema: GenMessage<GetOperationRequest> = /*@__PURE__*/
|
|
129
|
+
messageDesc(file_google_longrunning_operations, 1);
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* The request message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
|
|
133
|
+
*
|
|
134
|
+
* @generated from message google.longrunning.ListOperationsRequest
|
|
135
|
+
*/
|
|
136
|
+
export type ListOperationsRequest = Message<"google.longrunning.ListOperationsRequest"> & {
|
|
137
|
+
/**
|
|
138
|
+
* The name of the operation's parent resource.
|
|
139
|
+
*
|
|
140
|
+
* @generated from field: string name = 4;
|
|
141
|
+
*/
|
|
142
|
+
name: string;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* The standard list filter.
|
|
146
|
+
*
|
|
147
|
+
* @generated from field: string filter = 1;
|
|
148
|
+
*/
|
|
149
|
+
filter: string;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* The standard list page size.
|
|
153
|
+
*
|
|
154
|
+
* @generated from field: int32 page_size = 2;
|
|
155
|
+
*/
|
|
156
|
+
pageSize: number;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* The standard list page token.
|
|
160
|
+
*
|
|
161
|
+
* @generated from field: string page_token = 3;
|
|
162
|
+
*/
|
|
163
|
+
pageToken: string;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Describes the message google.longrunning.ListOperationsRequest.
|
|
168
|
+
* Use `create(ListOperationsRequestSchema)` to create a new message.
|
|
169
|
+
*/
|
|
170
|
+
export const ListOperationsRequestSchema: GenMessage<ListOperationsRequest> = /*@__PURE__*/
|
|
171
|
+
messageDesc(file_google_longrunning_operations, 2);
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* The response message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
|
|
175
|
+
*
|
|
176
|
+
* @generated from message google.longrunning.ListOperationsResponse
|
|
177
|
+
*/
|
|
178
|
+
export type ListOperationsResponse = Message<"google.longrunning.ListOperationsResponse"> & {
|
|
179
|
+
/**
|
|
180
|
+
* A list of operations that matches the specified filter in the request.
|
|
181
|
+
*
|
|
182
|
+
* @generated from field: repeated google.longrunning.Operation operations = 1;
|
|
183
|
+
*/
|
|
184
|
+
operations: Operation[];
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* The standard List next-page token.
|
|
188
|
+
*
|
|
189
|
+
* @generated from field: string next_page_token = 2;
|
|
190
|
+
*/
|
|
191
|
+
nextPageToken: string;
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Describes the message google.longrunning.ListOperationsResponse.
|
|
196
|
+
* Use `create(ListOperationsResponseSchema)` to create a new message.
|
|
197
|
+
*/
|
|
198
|
+
export const ListOperationsResponseSchema: GenMessage<ListOperationsResponse> = /*@__PURE__*/
|
|
199
|
+
messageDesc(file_google_longrunning_operations, 3);
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* The request message for [Operations.CancelOperation][google.longrunning.Operations.CancelOperation].
|
|
203
|
+
*
|
|
204
|
+
* @generated from message google.longrunning.CancelOperationRequest
|
|
205
|
+
*/
|
|
206
|
+
export type CancelOperationRequest = Message<"google.longrunning.CancelOperationRequest"> & {
|
|
207
|
+
/**
|
|
208
|
+
* The name of the operation resource to be cancelled.
|
|
209
|
+
*
|
|
210
|
+
* @generated from field: string name = 1;
|
|
211
|
+
*/
|
|
212
|
+
name: string;
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Describes the message google.longrunning.CancelOperationRequest.
|
|
217
|
+
* Use `create(CancelOperationRequestSchema)` to create a new message.
|
|
218
|
+
*/
|
|
219
|
+
export const CancelOperationRequestSchema: GenMessage<CancelOperationRequest> = /*@__PURE__*/
|
|
220
|
+
messageDesc(file_google_longrunning_operations, 4);
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* The request message for [Operations.DeleteOperation][google.longrunning.Operations.DeleteOperation].
|
|
224
|
+
*
|
|
225
|
+
* @generated from message google.longrunning.DeleteOperationRequest
|
|
226
|
+
*/
|
|
227
|
+
export type DeleteOperationRequest = Message<"google.longrunning.DeleteOperationRequest"> & {
|
|
228
|
+
/**
|
|
229
|
+
* The name of the operation resource to be deleted.
|
|
230
|
+
*
|
|
231
|
+
* @generated from field: string name = 1;
|
|
232
|
+
*/
|
|
233
|
+
name: string;
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Describes the message google.longrunning.DeleteOperationRequest.
|
|
238
|
+
* Use `create(DeleteOperationRequestSchema)` to create a new message.
|
|
239
|
+
*/
|
|
240
|
+
export const DeleteOperationRequestSchema: GenMessage<DeleteOperationRequest> = /*@__PURE__*/
|
|
241
|
+
messageDesc(file_google_longrunning_operations, 5);
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* The request message for [Operations.WaitOperation][google.longrunning.Operations.WaitOperation].
|
|
245
|
+
*
|
|
246
|
+
* @generated from message google.longrunning.WaitOperationRequest
|
|
247
|
+
*/
|
|
248
|
+
export type WaitOperationRequest = Message<"google.longrunning.WaitOperationRequest"> & {
|
|
249
|
+
/**
|
|
250
|
+
* The name of the operation resource to wait on.
|
|
251
|
+
*
|
|
252
|
+
* @generated from field: string name = 1;
|
|
253
|
+
*/
|
|
254
|
+
name: string;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* The maximum duration to wait before timing out. If left blank, the wait
|
|
258
|
+
* will be at most the time permitted by the underlying HTTP/RPC protocol.
|
|
259
|
+
* If RPC context deadline is also specified, the shorter one will be used.
|
|
260
|
+
*
|
|
261
|
+
* @generated from field: google.protobuf.Duration timeout = 2;
|
|
262
|
+
*/
|
|
263
|
+
timeout?: Duration;
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Describes the message google.longrunning.WaitOperationRequest.
|
|
268
|
+
* Use `create(WaitOperationRequestSchema)` to create a new message.
|
|
269
|
+
*/
|
|
270
|
+
export const WaitOperationRequestSchema: GenMessage<WaitOperationRequest> = /*@__PURE__*/
|
|
271
|
+
messageDesc(file_google_longrunning_operations, 6);
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* A message representing the message types used by a long-running operation.
|
|
275
|
+
*
|
|
276
|
+
* Example:
|
|
277
|
+
*
|
|
278
|
+
* rpc LongRunningRecognize(LongRunningRecognizeRequest)
|
|
279
|
+
* returns (google.longrunning.Operation) {
|
|
280
|
+
* option (google.longrunning.operation_info) = {
|
|
281
|
+
* response_type: "LongRunningRecognizeResponse"
|
|
282
|
+
* metadata_type: "LongRunningRecognizeMetadata"
|
|
283
|
+
* };
|
|
284
|
+
* }
|
|
285
|
+
*
|
|
286
|
+
* @generated from message google.longrunning.OperationInfo
|
|
287
|
+
*/
|
|
288
|
+
export type OperationInfo = Message<"google.longrunning.OperationInfo"> & {
|
|
289
|
+
/**
|
|
290
|
+
* Required. The message name of the primary return type for this
|
|
291
|
+
* long-running operation.
|
|
292
|
+
* This type will be used to deserialize the LRO's response.
|
|
293
|
+
*
|
|
294
|
+
* If the response is in a different package from the rpc, a fully-qualified
|
|
295
|
+
* message name must be used (e.g. `google.protobuf.Struct`).
|
|
296
|
+
*
|
|
297
|
+
* Note: Altering this value constitutes a breaking change.
|
|
298
|
+
*
|
|
299
|
+
* @generated from field: string response_type = 1;
|
|
300
|
+
*/
|
|
301
|
+
responseType: string;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Required. The message name of the metadata type for this long-running
|
|
305
|
+
* operation.
|
|
306
|
+
*
|
|
307
|
+
* If the response is in a different package from the rpc, a fully-qualified
|
|
308
|
+
* message name must be used (e.g. `google.protobuf.Struct`).
|
|
309
|
+
*
|
|
310
|
+
* Note: Altering this value constitutes a breaking change.
|
|
311
|
+
*
|
|
312
|
+
* @generated from field: string metadata_type = 2;
|
|
313
|
+
*/
|
|
314
|
+
metadataType: string;
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Describes the message google.longrunning.OperationInfo.
|
|
319
|
+
* Use `create(OperationInfoSchema)` to create a new message.
|
|
320
|
+
*/
|
|
321
|
+
export const OperationInfoSchema: GenMessage<OperationInfo> = /*@__PURE__*/
|
|
322
|
+
messageDesc(file_google_longrunning_operations, 7);
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Manages long-running operations with an API service.
|
|
326
|
+
*
|
|
327
|
+
* When an API method normally takes long time to complete, it can be designed
|
|
328
|
+
* to return [Operation][google.longrunning.Operation] to the client, and the client can use this
|
|
329
|
+
* interface to receive the real response asynchronously by polling the
|
|
330
|
+
* operation resource, or pass the operation resource to another API (such as
|
|
331
|
+
* Google Cloud Pub/Sub API) to receive the response. Any API service that
|
|
332
|
+
* returns long-running operations should implement the `Operations` interface
|
|
333
|
+
* so developers can have a consistent client experience.
|
|
334
|
+
*
|
|
335
|
+
* @generated from service google.longrunning.Operations
|
|
336
|
+
*/
|
|
337
|
+
export const Operations: GenService<{
|
|
338
|
+
/**
|
|
339
|
+
* Lists operations that match the specified filter in the request. If the
|
|
340
|
+
* server doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
341
|
+
*
|
|
342
|
+
* NOTE: the `name` binding allows API services to override the binding
|
|
343
|
+
* to use different resource name schemes, such as `users/*\/operations`. To
|
|
344
|
+
* override the binding, API services can add a binding such as
|
|
345
|
+
* `"/v1/{name=users/*}/operations"` to their service configuration.
|
|
346
|
+
* For backwards compatibility, the default name includes the operations
|
|
347
|
+
* collection id, however overriding users must ensure the name binding
|
|
348
|
+
* is the parent resource, without the operations collection id.
|
|
349
|
+
*
|
|
350
|
+
* @generated from rpc google.longrunning.Operations.ListOperations
|
|
351
|
+
*/
|
|
352
|
+
listOperations: {
|
|
353
|
+
methodKind: "unary";
|
|
354
|
+
input: typeof ListOperationsRequestSchema;
|
|
355
|
+
output: typeof ListOperationsResponseSchema;
|
|
356
|
+
},
|
|
357
|
+
/**
|
|
358
|
+
* Gets the latest state of a long-running operation. Clients can use this
|
|
359
|
+
* method to poll the operation result at intervals as recommended by the API
|
|
360
|
+
* service.
|
|
361
|
+
*
|
|
362
|
+
* @generated from rpc google.longrunning.Operations.GetOperation
|
|
363
|
+
*/
|
|
364
|
+
getOperation: {
|
|
365
|
+
methodKind: "unary";
|
|
366
|
+
input: typeof GetOperationRequestSchema;
|
|
367
|
+
output: typeof OperationSchema;
|
|
368
|
+
},
|
|
369
|
+
/**
|
|
370
|
+
* Deletes a long-running operation. This method indicates that the client is
|
|
371
|
+
* no longer interested in the operation result. It does not cancel the
|
|
372
|
+
* operation. If the server doesn't support this method, it returns
|
|
373
|
+
* `google.rpc.Code.UNIMPLEMENTED`.
|
|
374
|
+
*
|
|
375
|
+
* @generated from rpc google.longrunning.Operations.DeleteOperation
|
|
376
|
+
*/
|
|
377
|
+
deleteOperation: {
|
|
378
|
+
methodKind: "unary";
|
|
379
|
+
input: typeof DeleteOperationRequestSchema;
|
|
380
|
+
output: typeof EmptySchema;
|
|
381
|
+
},
|
|
382
|
+
/**
|
|
383
|
+
* Starts asynchronous cancellation on a long-running operation. The server
|
|
384
|
+
* makes a best effort to cancel the operation, but success is not
|
|
385
|
+
* guaranteed. If the server doesn't support this method, it returns
|
|
386
|
+
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
|
387
|
+
* [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
|
|
388
|
+
* other methods to check whether the cancellation succeeded or whether the
|
|
389
|
+
* operation completed despite cancellation. On successful cancellation,
|
|
390
|
+
* the operation is not deleted; instead, it becomes an operation with
|
|
391
|
+
* an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
|
|
392
|
+
* corresponding to `Code.CANCELLED`.
|
|
393
|
+
*
|
|
394
|
+
* @generated from rpc google.longrunning.Operations.CancelOperation
|
|
395
|
+
*/
|
|
396
|
+
cancelOperation: {
|
|
397
|
+
methodKind: "unary";
|
|
398
|
+
input: typeof CancelOperationRequestSchema;
|
|
399
|
+
output: typeof EmptySchema;
|
|
400
|
+
},
|
|
401
|
+
/**
|
|
402
|
+
* Waits for the specified long-running operation until it is done or reaches
|
|
403
|
+
* at most a specified timeout, returning the latest state. If the operation
|
|
404
|
+
* is already done, the latest state is immediately returned. If the timeout
|
|
405
|
+
* specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
|
|
406
|
+
* timeout is used. If the server does not support this method, it returns
|
|
407
|
+
* `google.rpc.Code.UNIMPLEMENTED`.
|
|
408
|
+
* Note that this method is on a best-effort basis. It may return the latest
|
|
409
|
+
* state before the specified timeout (including immediately), meaning even an
|
|
410
|
+
* immediate response is no guarantee that the operation is done.
|
|
411
|
+
*
|
|
412
|
+
* @generated from rpc google.longrunning.Operations.WaitOperation
|
|
413
|
+
*/
|
|
414
|
+
waitOperation: {
|
|
415
|
+
methodKind: "unary";
|
|
416
|
+
input: typeof WaitOperationRequestSchema;
|
|
417
|
+
output: typeof OperationSchema;
|
|
418
|
+
},
|
|
419
|
+
}> = /*@__PURE__*/
|
|
420
|
+
serviceDesc(file_google_longrunning_operations, 0);
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Additional information regarding long-running operations.
|
|
424
|
+
* In particular, this specifies the types that are returned from
|
|
425
|
+
* long-running operations.
|
|
426
|
+
*
|
|
427
|
+
* Required for methods that return `google.longrunning.Operation`; invalid
|
|
428
|
+
* otherwise.
|
|
429
|
+
*
|
|
430
|
+
* @generated from extension: google.longrunning.OperationInfo operation_info = 1049;
|
|
431
|
+
*/
|
|
432
|
+
export const operation_info: GenExtension<MethodOptions, OperationInfo> = /*@__PURE__*/
|
|
433
|
+
extDesc(file_google_longrunning_operations, 0);
|
|
434
|
+
|