@devvit/protos 0.11.6 → 0.11.7-next-2025-01-28-641048aff.0
Sign up to get free protection for your applications and to get access to all the features.
- package/meta.min.json +7820 -0
- package/package.json +4 -4
- package/protos.min.js +2 -0
- package/protos.min.js.map +7 -0
- package/schema/.snootobuf/deps/buf/validate/expression.proto +92 -0
- package/schema/.snootobuf/deps/buf/validate/priv/private.proto +41 -0
- package/schema/.snootobuf/deps/buf/validate/validate.proto +4130 -0
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/audit.proto +72 -0
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/auth.proto +49 -0
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/organization.proto +54 -0
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/service.proto +46 -0
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/subscription.proto +72 -0
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/ui.proto +20 -0
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/user.proto +45 -0
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/admin.proto +54 -0
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/delivery.proto +773 -0
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/filter.proto +66 -0
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/firehose.proto +100 -0
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/intake.proto +19 -0
- package/schema/.snootobuf/deps/devvit/events/v1alpha/events.proto +446 -0
- package/schema/.snootobuf/deps/devvit/gateway/v1alpha/payments.proto +24 -0
- package/schema/.snootobuf/deps/devvit/options/options.proto +98 -0
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/commentv2.proto +29 -0
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/flair.proto +25 -0
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modaction.proto +53 -0
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modmail.proto +56 -0
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/postv2.proto +107 -0
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/subredditv2.proto +41 -0
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/userv2.proto +23 -0
- package/schema/.snootobuf/deps/devvit/triggers/v1alpha/triggers.proto +162 -0
- package/schema/.snootobuf/deps/enum/account_gender_category.proto +14 -0
- package/schema/.snootobuf/deps/enum/approval_status.proto +15 -0
- package/schema/.snootobuf/deps/enum/automated_reporting_level.proto +12 -0
- package/schema/.snootobuf/deps/enum/ban_evasion_threshold.proto +13 -0
- package/schema/.snootobuf/deps/enum/ban_info_action.proto +12 -0
- package/schema/.snootobuf/deps/enum/block_relation_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/comment_sort.proto +18 -0
- package/schema/.snootobuf/deps/enum/comment_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/crowd_control_level.proto +12 -0
- package/schema/.snootobuf/deps/enum/discussion_type.proto +10 -0
- package/schema/.snootobuf/deps/enum/distinguish_type.proto +14 -0
- package/schema/.snootobuf/deps/enum/flair_position.proto +11 -0
- package/schema/.snootobuf/deps/enum/hateful_content_threshold.proto +12 -0
- package/schema/.snootobuf/deps/enum/link_content_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/link_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/link_visibility.proto +11 -0
- package/schema/.snootobuf/deps/enum/prediction_leaderboard_entry_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/promo_layout.proto +11 -0
- package/schema/.snootobuf/deps/enum/removed_by_type.proto +18 -0
- package/schema/.snootobuf/deps/enum/spam_level.proto +11 -0
- package/schema/.snootobuf/deps/enum/subreddit_type.proto +16 -0
- package/schema/.snootobuf/deps/enum/verdict.proto +14 -0
- package/schema/.snootobuf/deps/enum/vote.proto +12 -0
- package/schema/.snootobuf/deps/enum/whitelist_status.proto +17 -0
- package/schema/.snootobuf/deps/enum/wiki_edit_mode.proto +12 -0
- package/schema/.snootobuf/deps/evaluator/evaluator.proto +203 -0
- package/schema/.snootobuf/deps/google/api/annotations.proto +31 -0
- package/schema/.snootobuf/deps/google/api/apikeys/v2/apikeys.proto +288 -0
- package/schema/.snootobuf/deps/google/api/apikeys/v2/resources.proto +175 -0
- package/schema/.snootobuf/deps/google/api/auth.proto +237 -0
- package/schema/.snootobuf/deps/google/api/backend.proto +185 -0
- package/schema/.snootobuf/deps/google/api/billing.proto +77 -0
- package/schema/.snootobuf/deps/google/api/client.proto +431 -0
- package/schema/.snootobuf/deps/google/api/cloudquotas/v1/cloudquotas.proto +322 -0
- package/schema/.snootobuf/deps/google/api/cloudquotas/v1/resources.proto +315 -0
- package/schema/.snootobuf/deps/google/api/config_change.proto +84 -0
- package/schema/.snootobuf/deps/google/api/consumer.proto +82 -0
- package/schema/.snootobuf/deps/google/api/context.proto +92 -0
- package/schema/.snootobuf/deps/google/api/control.proto +41 -0
- package/schema/.snootobuf/deps/google/api/distribution.proto +213 -0
- package/schema/.snootobuf/deps/google/api/documentation.proto +168 -0
- package/schema/.snootobuf/deps/google/api/endpoint.proto +69 -0
- package/schema/.snootobuf/deps/google/api/error_reason.proto +589 -0
- package/schema/.snootobuf/deps/google/api/expr/conformance/v1alpha1/conformance_service.proto +183 -0
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/checked.proto +343 -0
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/eval.proto +118 -0
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/explain.proto +53 -0
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/syntax.proto +438 -0
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/value.proto +115 -0
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/decl.proto +84 -0
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/eval.proto +125 -0
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/expr.proto +265 -0
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/source.proto +62 -0
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/value.proto +114 -0
- package/schema/.snootobuf/deps/google/api/field_behavior.proto +104 -0
- package/schema/.snootobuf/deps/google/api/field_info.proto +106 -0
- package/schema/.snootobuf/deps/google/api/http.proto +371 -0
- package/schema/.snootobuf/deps/google/api/httpbody.proto +81 -0
- package/schema/.snootobuf/deps/google/api/label.proto +48 -0
- package/schema/.snootobuf/deps/google/api/launch_stage.proto +72 -0
- package/schema/.snootobuf/deps/google/api/log.proto +54 -0
- package/schema/.snootobuf/deps/google/api/logging.proto +81 -0
- package/schema/.snootobuf/deps/google/api/metric.proto +268 -0
- package/schema/.snootobuf/deps/google/api/monitored_resource.proto +130 -0
- package/schema/.snootobuf/deps/google/api/monitoring.proto +107 -0
- package/schema/.snootobuf/deps/google/api/policy.proto +85 -0
- package/schema/.snootobuf/deps/google/api/quota.proto +184 -0
- package/schema/.snootobuf/deps/google/api/resource.proto +243 -0
- package/schema/.snootobuf/deps/google/api/routing.proto +461 -0
- package/schema/.snootobuf/deps/google/api/service.proto +191 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/check_error.proto +124 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/distribution.proto +166 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/http_request.proto +93 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/log_entry.proto +126 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/metric_value.proto +81 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/operation.proto +123 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/quota_controller.proto +245 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/service_controller.proto +260 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v2/service_controller.proto +196 -0
- package/schema/.snootobuf/deps/google/api/servicemanagement/v1/resources.proto +295 -0
- package/schema/.snootobuf/deps/google/api/servicemanagement/v1/servicemanager.proto +508 -0
- package/schema/.snootobuf/deps/google/api/serviceusage/v1/resources.proto +130 -0
- package/schema/.snootobuf/deps/google/api/serviceusage/v1/serviceusage.proto +305 -0
- package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/resources.proto +458 -0
- package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/serviceusage.proto +793 -0
- package/schema/.snootobuf/deps/google/api/source_info.proto +31 -0
- package/schema/.snootobuf/deps/google/api/system_parameter.proto +96 -0
- package/schema/.snootobuf/deps/google/api/usage.proto +96 -0
- package/schema/.snootobuf/deps/google/api/visibility.proto +113 -0
- package/schema/.snootobuf/deps/google/cloud/extended_operations.proto +150 -0
- package/schema/.snootobuf/deps/google/iam/admin/v1/iam.proto +1087 -0
- package/schema/.snootobuf/deps/google/iam/v1/iam_policy.proto +145 -0
- package/schema/.snootobuf/deps/google/iam/v1/logging/audit_data.proto +34 -0
- package/schema/.snootobuf/deps/google/iam/v1/options.proto +41 -0
- package/schema/.snootobuf/deps/google/iam/v1/policy.proto +240 -0
- package/schema/.snootobuf/deps/google/logging/type/http_request.proto +92 -0
- package/schema/.snootobuf/deps/google/logging/type/log_severity.proto +72 -0
- package/schema/.snootobuf/deps/google/longrunning/operations.proto +247 -0
- package/schema/.snootobuf/deps/google/protobuf/any.proto +158 -0
- package/schema/.snootobuf/deps/google/protobuf/api.proto +208 -0
- package/schema/.snootobuf/deps/google/protobuf/compiler/plugin.proto +183 -0
- package/schema/.snootobuf/deps/google/protobuf/descriptor.proto +921 -0
- package/schema/.snootobuf/deps/google/protobuf/duration.proto +116 -0
- package/schema/.snootobuf/deps/google/protobuf/empty.proto +51 -0
- package/schema/.snootobuf/deps/google/protobuf/field_mask.proto +245 -0
- package/schema/.snootobuf/deps/google/protobuf/source_context.proto +48 -0
- package/schema/.snootobuf/deps/google/protobuf/struct.proto +95 -0
- package/schema/.snootobuf/deps/google/protobuf/timestamp.proto +147 -0
- package/schema/.snootobuf/deps/google/protobuf/type.proto +187 -0
- package/schema/.snootobuf/deps/google/protobuf/wrappers.proto +123 -0
- package/schema/.snootobuf/deps/google/rpc/code.proto +186 -0
- package/schema/.snootobuf/deps/google/rpc/context/attribute_context.proto +287 -0
- package/schema/.snootobuf/deps/google/rpc/error_details.proto +246 -0
- package/schema/.snootobuf/deps/google/rpc/status.proto +47 -0
- package/schema/.snootobuf/deps/google/type/calendar_period.proto +57 -0
- package/schema/.snootobuf/deps/google/type/color.proto +170 -0
- package/schema/.snootobuf/deps/google/type/date.proto +50 -0
- package/schema/.snootobuf/deps/google/type/datetime.proto +97 -0
- package/schema/.snootobuf/deps/google/type/dayofweek.proto +51 -0
- package/schema/.snootobuf/deps/google/type/expr.proto +51 -0
- package/schema/.snootobuf/deps/google/type/fraction.proto +34 -0
- package/schema/.snootobuf/deps/google/type/latlng.proto +37 -0
- package/schema/.snootobuf/deps/google/type/money.proto +43 -0
- package/schema/.snootobuf/deps/google/type/month.proto +66 -0
- package/schema/.snootobuf/deps/google/type/postal_address.proto +135 -0
- package/schema/.snootobuf/deps/google/type/quaternion.proto +95 -0
- package/schema/.snootobuf/deps/google/type/timeofday.proto +44 -0
- package/schema/.snootobuf/deps/openapi/helper.proto +20 -0
- package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +189 -0
- package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +118 -0
- package/schema/.snootobuf/deps/reddit/api/metadata/v1/metadata.proto +55 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account.proto +579 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account_relations.proto +43 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/api/metadata/v1/metadata.proto +82 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/blocking/v1/user_blocking_service.proto +221 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree.proto +78 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_service.proto +189 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_structure.proto +29 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments.proto +417 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments_service.proto +72 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/auth.proto +25 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/features.proto +52 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/lang.proto +16 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/legal.proto +20 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/media.proto +149 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/moderation.proto +197 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/safety.proto +116 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/time.proto +25 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/domains/v1/domains_metadata_service.proto +101 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/grpc_thrift/v1/grpc_thrift_options.proto +34 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links.proto +798 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links_service.proto +186 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/messages/v1/messages.proto +110 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/sensitive/v1/wrappers.proto +51 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit.proto +1202 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_member_relations.proto +85 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_moderator_service.proto +363 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_service.proto +301 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/thing/v0/thing.proto +2869 -0
- package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/custom_post.proto +15 -0
- package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/service.proto +11 -0
- package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/context_action.proto +48 -0
- package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/manifest.proto +70 -0
- package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/service.proto +11 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/acknowledge_order_delivery.proto +17 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/checkout.proto +89 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/common.proto +322 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/delete_products.proto +17 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/events.proto +14 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_batch_products.proto +15 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_gold_balances.proto +48 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_order.proto +31 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders.proto +26 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders_by_user.proto +15 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_payout_info_batch.proto +52 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_products.proto +23 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_user_profiles.proto +28 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/refund_order.proto +17 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service.proto +49 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service_data_compliance.proto +20 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/upsert_products.proto +17 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paygatewaypsps/v1/paygatewaypsps.proto +158 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payments_data_compliance.proto +18 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payorders.proto +195 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/admin.proto +44 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/ledger.proto +200 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/payments_data_compliance.proto +18 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/paypayments.proto +210 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +189 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +135 -0
- package/schema/.snootobuf/deps/snooron_sources/text_classification/text_classification.proto +29 -0
- package/schema/.snootobuf/deps/snooron_sources/v2_event/v2_event.proto +3292 -0
- package/schema/.snootobuf/deps/validate/validate.proto +862 -0
- package/schema/devvit/plugin/buildpack/buildpack_common.proto +6 -1
- package/schema/snootobuf.devenv.lock +210 -102
- package/schema/snootobuf.lock +210 -102
- package/schema/snootobuf.redditapi.lock +210 -102
- package/schema/snootobuf.ts.lock +210 -102
- package/types/devvit/dev_portal/dev_portal.d.ts +2 -0
- package/types/devvit/dev_portal/dev_portal.d.ts.map +1 -1
- package/types/devvit/plugin/builder/builder.d.ts +4 -0
- package/types/devvit/plugin/builder/builder.d.ts.map +1 -1
- package/types/devvit/plugin/buildpack/buildpack.d.ts +8 -0
- package/types/devvit/plugin/buildpack/buildpack.d.ts.map +1 -1
- package/types/devvit/plugin/buildpack/buildpack_common.d.ts +3 -0
- package/types/devvit/plugin/buildpack/buildpack_common.d.ts.map +1 -1
- package/types/devvit/plugin/buildpack/buildpack_common.js +37 -1
- package/types/devvit/plugin/linker/linker.d.ts +2 -0
- package/types/devvit/plugin/linker/linker.d.ts.map +1 -1
- package/types/devvit/plugin/linker/resolver.d.ts +2 -0
- package/types/devvit/plugin/linker/resolver.d.ts.map +1 -1
@@ -0,0 +1,69 @@
|
|
1
|
+
// Copyright 2024 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
|
+
syntax = "proto3";
|
16
|
+
|
17
|
+
package google.api;
|
18
|
+
|
19
|
+
option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
|
20
|
+
option java_multiple_files = true;
|
21
|
+
option java_outer_classname = "EndpointProto";
|
22
|
+
option java_package = "com.google.api";
|
23
|
+
option objc_class_prefix = "GAPI";
|
24
|
+
|
25
|
+
// `Endpoint` describes a network address of a service that serves a set of
|
26
|
+
// APIs. It is commonly known as a service endpoint. A service may expose
|
27
|
+
// any number of service endpoints, and all service endpoints share the same
|
28
|
+
// service definition, such as quota limits and monitoring metrics.
|
29
|
+
//
|
30
|
+
// Example:
|
31
|
+
//
|
32
|
+
// type: google.api.Service
|
33
|
+
// name: library-example.googleapis.com
|
34
|
+
// endpoints:
|
35
|
+
// # Declares network address `https://library-example.googleapis.com`
|
36
|
+
// # for service `library-example.googleapis.com`. The `https` scheme
|
37
|
+
// # is implicit for all service endpoints. Other schemes may be
|
38
|
+
// # supported in the future.
|
39
|
+
// - name: library-example.googleapis.com
|
40
|
+
// allow_cors: false
|
41
|
+
// - name: content-staging-library-example.googleapis.com
|
42
|
+
// # Allows HTTP OPTIONS calls to be passed to the API frontend, for it
|
43
|
+
// # to decide whether the subsequent cross-origin request is allowed
|
44
|
+
// # to proceed.
|
45
|
+
// allow_cors: true
|
46
|
+
message Endpoint {
|
47
|
+
// The canonical name of this endpoint.
|
48
|
+
string name = 1;
|
49
|
+
|
50
|
+
// Aliases for this endpoint, these will be served by the same UrlMap as the
|
51
|
+
// parent endpoint, and will be provisioned in the GCP stack for the Regional
|
52
|
+
// Endpoints.
|
53
|
+
repeated string aliases = 2;
|
54
|
+
|
55
|
+
// The specification of an Internet routable address of API frontend that will
|
56
|
+
// handle requests to this [API
|
57
|
+
// Endpoint](https://cloud.google.com/apis/design/glossary). It should be
|
58
|
+
// either a valid IPv4 address or a fully-qualified domain name. For example,
|
59
|
+
// "8.8.8.8" or "myservice.appspot.com".
|
60
|
+
string target = 101;
|
61
|
+
|
62
|
+
// Allowing
|
63
|
+
// [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
|
64
|
+
// cross-domain traffic, would allow the backends served from this endpoint to
|
65
|
+
// receive and respond to HTTP OPTIONS requests. The response will be used by
|
66
|
+
// the browser to determine whether the subsequent cross-origin request is
|
67
|
+
// allowed to proceed.
|
68
|
+
bool allow_cors = 5;
|
69
|
+
}
|
@@ -0,0 +1,589 @@
|
|
1
|
+
// Copyright 2024 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
|
+
syntax = "proto3";
|
16
|
+
|
17
|
+
package google.api;
|
18
|
+
|
19
|
+
option go_package = "google.golang.org/genproto/googleapis/api/error_reason;error_reason";
|
20
|
+
option java_multiple_files = true;
|
21
|
+
option java_outer_classname = "ErrorReasonProto";
|
22
|
+
option java_package = "com.google.api";
|
23
|
+
option objc_class_prefix = "GAPI";
|
24
|
+
|
25
|
+
// Defines the supported values for `google.rpc.ErrorInfo.reason` for the
|
26
|
+
// `googleapis.com` error domain. This error domain is reserved for [Service
|
27
|
+
// Infrastructure](https://cloud.google.com/service-infrastructure/docs/overview).
|
28
|
+
// For each error info of this domain, the metadata key "service" refers to the
|
29
|
+
// logical identifier of an API service, such as "pubsub.googleapis.com". The
|
30
|
+
// "consumer" refers to the entity that consumes an API Service. It typically is
|
31
|
+
// a Google project that owns the client application or the server resource,
|
32
|
+
// such as "projects/123". Other metadata keys are specific to each error
|
33
|
+
// reason. For more information, see the definition of the specific error
|
34
|
+
// reason.
|
35
|
+
enum ErrorReason {
|
36
|
+
// Do not use this default value.
|
37
|
+
ERROR_REASON_UNSPECIFIED = 0;
|
38
|
+
|
39
|
+
// The request is calling a disabled service for a consumer.
|
40
|
+
//
|
41
|
+
// Example of an ErrorInfo when the consumer "projects/123" contacting
|
42
|
+
// "pubsub.googleapis.com" service which is disabled:
|
43
|
+
//
|
44
|
+
// { "reason": "SERVICE_DISABLED",
|
45
|
+
// "domain": "googleapis.com",
|
46
|
+
// "metadata": {
|
47
|
+
// "consumer": "projects/123",
|
48
|
+
// "service": "pubsub.googleapis.com"
|
49
|
+
// }
|
50
|
+
// }
|
51
|
+
//
|
52
|
+
// This response indicates the "pubsub.googleapis.com" has been disabled in
|
53
|
+
// "projects/123".
|
54
|
+
SERVICE_DISABLED = 1;
|
55
|
+
|
56
|
+
// The request whose associated billing account is disabled.
|
57
|
+
//
|
58
|
+
// Example of an ErrorInfo when the consumer "projects/123" fails to contact
|
59
|
+
// "pubsub.googleapis.com" service because the associated billing account is
|
60
|
+
// disabled:
|
61
|
+
//
|
62
|
+
// { "reason": "BILLING_DISABLED",
|
63
|
+
// "domain": "googleapis.com",
|
64
|
+
// "metadata": {
|
65
|
+
// "consumer": "projects/123",
|
66
|
+
// "service": "pubsub.googleapis.com"
|
67
|
+
// }
|
68
|
+
// }
|
69
|
+
//
|
70
|
+
// This response indicates the billing account associated has been disabled.
|
71
|
+
BILLING_DISABLED = 2;
|
72
|
+
|
73
|
+
// The request is denied because the provided [API
|
74
|
+
// key](https://cloud.google.com/docs/authentication/api-keys) is invalid. It
|
75
|
+
// may be in a bad format, cannot be found, or has been expired).
|
76
|
+
//
|
77
|
+
// Example of an ErrorInfo when the request is contacting
|
78
|
+
// "storage.googleapis.com" service with an invalid API key:
|
79
|
+
//
|
80
|
+
// { "reason": "API_KEY_INVALID",
|
81
|
+
// "domain": "googleapis.com",
|
82
|
+
// "metadata": {
|
83
|
+
// "service": "storage.googleapis.com",
|
84
|
+
// }
|
85
|
+
// }
|
86
|
+
API_KEY_INVALID = 3;
|
87
|
+
|
88
|
+
// The request is denied because it violates [API key API
|
89
|
+
// restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_api_restrictions).
|
90
|
+
//
|
91
|
+
// Example of an ErrorInfo when the consumer "projects/123" fails to call the
|
92
|
+
// "storage.googleapis.com" service because this service is restricted in the
|
93
|
+
// API key:
|
94
|
+
//
|
95
|
+
// { "reason": "API_KEY_SERVICE_BLOCKED",
|
96
|
+
// "domain": "googleapis.com",
|
97
|
+
// "metadata": {
|
98
|
+
// "consumer": "projects/123",
|
99
|
+
// "service": "storage.googleapis.com"
|
100
|
+
// }
|
101
|
+
// }
|
102
|
+
API_KEY_SERVICE_BLOCKED = 4;
|
103
|
+
|
104
|
+
// The request is denied because it violates [API key HTTP
|
105
|
+
// restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_http_restrictions).
|
106
|
+
//
|
107
|
+
// Example of an ErrorInfo when the consumer "projects/123" fails to call
|
108
|
+
// "storage.googleapis.com" service because the http referrer of the request
|
109
|
+
// violates API key HTTP restrictions:
|
110
|
+
//
|
111
|
+
// { "reason": "API_KEY_HTTP_REFERRER_BLOCKED",
|
112
|
+
// "domain": "googleapis.com",
|
113
|
+
// "metadata": {
|
114
|
+
// "consumer": "projects/123",
|
115
|
+
// "service": "storage.googleapis.com",
|
116
|
+
// }
|
117
|
+
// }
|
118
|
+
API_KEY_HTTP_REFERRER_BLOCKED = 7;
|
119
|
+
|
120
|
+
// The request is denied because it violates [API key IP address
|
121
|
+
// restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
|
122
|
+
//
|
123
|
+
// Example of an ErrorInfo when the consumer "projects/123" fails to call
|
124
|
+
// "storage.googleapis.com" service because the caller IP of the request
|
125
|
+
// violates API key IP address restrictions:
|
126
|
+
//
|
127
|
+
// { "reason": "API_KEY_IP_ADDRESS_BLOCKED",
|
128
|
+
// "domain": "googleapis.com",
|
129
|
+
// "metadata": {
|
130
|
+
// "consumer": "projects/123",
|
131
|
+
// "service": "storage.googleapis.com",
|
132
|
+
// }
|
133
|
+
// }
|
134
|
+
API_KEY_IP_ADDRESS_BLOCKED = 8;
|
135
|
+
|
136
|
+
// The request is denied because it violates [API key Android application
|
137
|
+
// restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
|
138
|
+
//
|
139
|
+
// Example of an ErrorInfo when the consumer "projects/123" fails to call
|
140
|
+
// "storage.googleapis.com" service because the request from the Android apps
|
141
|
+
// violates the API key Android application restrictions:
|
142
|
+
//
|
143
|
+
// { "reason": "API_KEY_ANDROID_APP_BLOCKED",
|
144
|
+
// "domain": "googleapis.com",
|
145
|
+
// "metadata": {
|
146
|
+
// "consumer": "projects/123",
|
147
|
+
// "service": "storage.googleapis.com"
|
148
|
+
// }
|
149
|
+
// }
|
150
|
+
API_KEY_ANDROID_APP_BLOCKED = 9;
|
151
|
+
|
152
|
+
// The request is denied because it violates [API key iOS application
|
153
|
+
// restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
|
154
|
+
//
|
155
|
+
// Example of an ErrorInfo when the consumer "projects/123" fails to call
|
156
|
+
// "storage.googleapis.com" service because the request from the iOS apps
|
157
|
+
// violates the API key iOS application restrictions:
|
158
|
+
//
|
159
|
+
// { "reason": "API_KEY_IOS_APP_BLOCKED",
|
160
|
+
// "domain": "googleapis.com",
|
161
|
+
// "metadata": {
|
162
|
+
// "consumer": "projects/123",
|
163
|
+
// "service": "storage.googleapis.com"
|
164
|
+
// }
|
165
|
+
// }
|
166
|
+
API_KEY_IOS_APP_BLOCKED = 13;
|
167
|
+
|
168
|
+
// The request is denied because there is not enough rate quota for the
|
169
|
+
// consumer.
|
170
|
+
//
|
171
|
+
// Example of an ErrorInfo when the consumer "projects/123" fails to contact
|
172
|
+
// "pubsub.googleapis.com" service because consumer's rate quota usage has
|
173
|
+
// reached the maximum value set for the quota limit
|
174
|
+
// "ReadsPerMinutePerProject" on the quota metric
|
175
|
+
// "pubsub.googleapis.com/read_requests":
|
176
|
+
//
|
177
|
+
// { "reason": "RATE_LIMIT_EXCEEDED",
|
178
|
+
// "domain": "googleapis.com",
|
179
|
+
// "metadata": {
|
180
|
+
// "consumer": "projects/123",
|
181
|
+
// "service": "pubsub.googleapis.com",
|
182
|
+
// "quota_metric": "pubsub.googleapis.com/read_requests",
|
183
|
+
// "quota_limit": "ReadsPerMinutePerProject"
|
184
|
+
// }
|
185
|
+
// }
|
186
|
+
//
|
187
|
+
// Example of an ErrorInfo when the consumer "projects/123" checks quota on
|
188
|
+
// the service "dataflow.googleapis.com" and hits the organization quota
|
189
|
+
// limit "DefaultRequestsPerMinutePerOrganization" on the metric
|
190
|
+
// "dataflow.googleapis.com/default_requests".
|
191
|
+
//
|
192
|
+
// { "reason": "RATE_LIMIT_EXCEEDED",
|
193
|
+
// "domain": "googleapis.com",
|
194
|
+
// "metadata": {
|
195
|
+
// "consumer": "projects/123",
|
196
|
+
// "service": "dataflow.googleapis.com",
|
197
|
+
// "quota_metric": "dataflow.googleapis.com/default_requests",
|
198
|
+
// "quota_limit": "DefaultRequestsPerMinutePerOrganization"
|
199
|
+
// }
|
200
|
+
// }
|
201
|
+
RATE_LIMIT_EXCEEDED = 5;
|
202
|
+
|
203
|
+
// The request is denied because there is not enough resource quota for the
|
204
|
+
// consumer.
|
205
|
+
//
|
206
|
+
// Example of an ErrorInfo when the consumer "projects/123" fails to contact
|
207
|
+
// "compute.googleapis.com" service because consumer's resource quota usage
|
208
|
+
// has reached the maximum value set for the quota limit "VMsPerProject"
|
209
|
+
// on the quota metric "compute.googleapis.com/vms":
|
210
|
+
//
|
211
|
+
// { "reason": "RESOURCE_QUOTA_EXCEEDED",
|
212
|
+
// "domain": "googleapis.com",
|
213
|
+
// "metadata": {
|
214
|
+
// "consumer": "projects/123",
|
215
|
+
// "service": "compute.googleapis.com",
|
216
|
+
// "quota_metric": "compute.googleapis.com/vms",
|
217
|
+
// "quota_limit": "VMsPerProject"
|
218
|
+
// }
|
219
|
+
// }
|
220
|
+
//
|
221
|
+
// Example of an ErrorInfo when the consumer "projects/123" checks resource
|
222
|
+
// quota on the service "dataflow.googleapis.com" and hits the organization
|
223
|
+
// quota limit "jobs-per-organization" on the metric
|
224
|
+
// "dataflow.googleapis.com/job_count".
|
225
|
+
//
|
226
|
+
// { "reason": "RESOURCE_QUOTA_EXCEEDED",
|
227
|
+
// "domain": "googleapis.com",
|
228
|
+
// "metadata": {
|
229
|
+
// "consumer": "projects/123",
|
230
|
+
// "service": "dataflow.googleapis.com",
|
231
|
+
// "quota_metric": "dataflow.googleapis.com/job_count",
|
232
|
+
// "quota_limit": "jobs-per-organization"
|
233
|
+
// }
|
234
|
+
// }
|
235
|
+
RESOURCE_QUOTA_EXCEEDED = 6;
|
236
|
+
|
237
|
+
// The request whose associated billing account address is in a tax restricted
|
238
|
+
// location, violates the local tax restrictions when creating resources in
|
239
|
+
// the restricted region.
|
240
|
+
//
|
241
|
+
// Example of an ErrorInfo when creating the Cloud Storage Bucket in the
|
242
|
+
// container "projects/123" under a tax restricted region
|
243
|
+
// "locations/asia-northeast3":
|
244
|
+
//
|
245
|
+
// { "reason": "LOCATION_TAX_POLICY_VIOLATED",
|
246
|
+
// "domain": "googleapis.com",
|
247
|
+
// "metadata": {
|
248
|
+
// "consumer": "projects/123",
|
249
|
+
// "service": "storage.googleapis.com",
|
250
|
+
// "location": "locations/asia-northeast3"
|
251
|
+
// }
|
252
|
+
// }
|
253
|
+
//
|
254
|
+
// This response indicates creating the Cloud Storage Bucket in
|
255
|
+
// "locations/asia-northeast3" violates the location tax restriction.
|
256
|
+
LOCATION_TAX_POLICY_VIOLATED = 10;
|
257
|
+
|
258
|
+
// The request is denied because the caller does not have required permission
|
259
|
+
// on the user project "projects/123" or the user project is invalid. For more
|
260
|
+
// information, check the [userProject System
|
261
|
+
// Parameters](https://cloud.google.com/apis/docs/system-parameters).
|
262
|
+
//
|
263
|
+
// Example of an ErrorInfo when the caller is calling Cloud Storage service
|
264
|
+
// with insufficient permissions on the user project:
|
265
|
+
//
|
266
|
+
// { "reason": "USER_PROJECT_DENIED",
|
267
|
+
// "domain": "googleapis.com",
|
268
|
+
// "metadata": {
|
269
|
+
// "consumer": "projects/123",
|
270
|
+
// "service": "storage.googleapis.com"
|
271
|
+
// }
|
272
|
+
// }
|
273
|
+
USER_PROJECT_DENIED = 11;
|
274
|
+
|
275
|
+
// The request is denied because the consumer "projects/123" is suspended due
|
276
|
+
// to Terms of Service(Tos) violations. Check [Project suspension
|
277
|
+
// guidelines](https://cloud.google.com/resource-manager/docs/project-suspension-guidelines)
|
278
|
+
// for more information.
|
279
|
+
//
|
280
|
+
// Example of an ErrorInfo when calling Cloud Storage service with the
|
281
|
+
// suspended consumer "projects/123":
|
282
|
+
//
|
283
|
+
// { "reason": "CONSUMER_SUSPENDED",
|
284
|
+
// "domain": "googleapis.com",
|
285
|
+
// "metadata": {
|
286
|
+
// "consumer": "projects/123",
|
287
|
+
// "service": "storage.googleapis.com"
|
288
|
+
// }
|
289
|
+
// }
|
290
|
+
CONSUMER_SUSPENDED = 12;
|
291
|
+
|
292
|
+
// The request is denied because the associated consumer is invalid. It may be
|
293
|
+
// in a bad format, cannot be found, or have been deleted.
|
294
|
+
//
|
295
|
+
// Example of an ErrorInfo when calling Cloud Storage service with the
|
296
|
+
// invalid consumer "projects/123":
|
297
|
+
//
|
298
|
+
// { "reason": "CONSUMER_INVALID",
|
299
|
+
// "domain": "googleapis.com",
|
300
|
+
// "metadata": {
|
301
|
+
// "consumer": "projects/123",
|
302
|
+
// "service": "storage.googleapis.com"
|
303
|
+
// }
|
304
|
+
// }
|
305
|
+
CONSUMER_INVALID = 14;
|
306
|
+
|
307
|
+
// The request is denied because it violates [VPC Service
|
308
|
+
// Controls](https://cloud.google.com/vpc-service-controls/docs/overview).
|
309
|
+
// The 'uid' field is a random generated identifier that customer can use it
|
310
|
+
// to search the audit log for a request rejected by VPC Service Controls. For
|
311
|
+
// more information, please refer [VPC Service Controls
|
312
|
+
// Troubleshooting](https://cloud.google.com/vpc-service-controls/docs/troubleshooting#unique-id)
|
313
|
+
//
|
314
|
+
// Example of an ErrorInfo when the consumer "projects/123" fails to call
|
315
|
+
// Cloud Storage service because the request is prohibited by the VPC Service
|
316
|
+
// Controls.
|
317
|
+
//
|
318
|
+
// { "reason": "SECURITY_POLICY_VIOLATED",
|
319
|
+
// "domain": "googleapis.com",
|
320
|
+
// "metadata": {
|
321
|
+
// "uid": "123456789abcde",
|
322
|
+
// "consumer": "projects/123",
|
323
|
+
// "service": "storage.googleapis.com"
|
324
|
+
// }
|
325
|
+
// }
|
326
|
+
SECURITY_POLICY_VIOLATED = 15;
|
327
|
+
|
328
|
+
// The request is denied because the provided access token has expired.
|
329
|
+
//
|
330
|
+
// Example of an ErrorInfo when the request is calling Cloud Storage service
|
331
|
+
// with an expired access token:
|
332
|
+
//
|
333
|
+
// { "reason": "ACCESS_TOKEN_EXPIRED",
|
334
|
+
// "domain": "googleapis.com",
|
335
|
+
// "metadata": {
|
336
|
+
// "service": "storage.googleapis.com",
|
337
|
+
// "method": "google.storage.v1.Storage.GetObject"
|
338
|
+
// }
|
339
|
+
// }
|
340
|
+
ACCESS_TOKEN_EXPIRED = 16;
|
341
|
+
|
342
|
+
// The request is denied because the provided access token doesn't have at
|
343
|
+
// least one of the acceptable scopes required for the API. Please check
|
344
|
+
// [OAuth 2.0 Scopes for Google
|
345
|
+
// APIs](https://developers.google.com/identity/protocols/oauth2/scopes) for
|
346
|
+
// the list of the OAuth 2.0 scopes that you might need to request to access
|
347
|
+
// the API.
|
348
|
+
//
|
349
|
+
// Example of an ErrorInfo when the request is calling Cloud Storage service
|
350
|
+
// with an access token that is missing required scopes:
|
351
|
+
//
|
352
|
+
// { "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT",
|
353
|
+
// "domain": "googleapis.com",
|
354
|
+
// "metadata": {
|
355
|
+
// "service": "storage.googleapis.com",
|
356
|
+
// "method": "google.storage.v1.Storage.GetObject"
|
357
|
+
// }
|
358
|
+
// }
|
359
|
+
ACCESS_TOKEN_SCOPE_INSUFFICIENT = 17;
|
360
|
+
|
361
|
+
// The request is denied because the account associated with the provided
|
362
|
+
// access token is in an invalid state, such as disabled or deleted.
|
363
|
+
// For more information, see https://cloud.google.com/docs/authentication.
|
364
|
+
//
|
365
|
+
// Warning: For privacy reasons, the server may not be able to disclose the
|
366
|
+
// email address for some accounts. The client MUST NOT depend on the
|
367
|
+
// availability of the `email` attribute.
|
368
|
+
//
|
369
|
+
// Example of an ErrorInfo when the request is to the Cloud Storage API with
|
370
|
+
// an access token that is associated with a disabled or deleted [service
|
371
|
+
// account](http://cloud/iam/docs/service-accounts):
|
372
|
+
//
|
373
|
+
// { "reason": "ACCOUNT_STATE_INVALID",
|
374
|
+
// "domain": "googleapis.com",
|
375
|
+
// "metadata": {
|
376
|
+
// "service": "storage.googleapis.com",
|
377
|
+
// "method": "google.storage.v1.Storage.GetObject",
|
378
|
+
// "email": "user@123.iam.gserviceaccount.com"
|
379
|
+
// }
|
380
|
+
// }
|
381
|
+
ACCOUNT_STATE_INVALID = 18;
|
382
|
+
|
383
|
+
// The request is denied because the type of the provided access token is not
|
384
|
+
// supported by the API being called.
|
385
|
+
//
|
386
|
+
// Example of an ErrorInfo when the request is to the Cloud Storage API with
|
387
|
+
// an unsupported token type.
|
388
|
+
//
|
389
|
+
// { "reason": "ACCESS_TOKEN_TYPE_UNSUPPORTED",
|
390
|
+
// "domain": "googleapis.com",
|
391
|
+
// "metadata": {
|
392
|
+
// "service": "storage.googleapis.com",
|
393
|
+
// "method": "google.storage.v1.Storage.GetObject"
|
394
|
+
// }
|
395
|
+
// }
|
396
|
+
ACCESS_TOKEN_TYPE_UNSUPPORTED = 19;
|
397
|
+
|
398
|
+
// The request is denied because the request doesn't have any authentication
|
399
|
+
// credentials. For more information regarding the supported authentication
|
400
|
+
// strategies for Google Cloud APIs, see
|
401
|
+
// https://cloud.google.com/docs/authentication.
|
402
|
+
//
|
403
|
+
// Example of an ErrorInfo when the request is to the Cloud Storage API
|
404
|
+
// without any authentication credentials.
|
405
|
+
//
|
406
|
+
// { "reason": "CREDENTIALS_MISSING",
|
407
|
+
// "domain": "googleapis.com",
|
408
|
+
// "metadata": {
|
409
|
+
// "service": "storage.googleapis.com",
|
410
|
+
// "method": "google.storage.v1.Storage.GetObject"
|
411
|
+
// }
|
412
|
+
// }
|
413
|
+
CREDENTIALS_MISSING = 20;
|
414
|
+
|
415
|
+
// The request is denied because the provided project owning the resource
|
416
|
+
// which acts as the [API
|
417
|
+
// consumer](https://cloud.google.com/apis/design/glossary#api_consumer) is
|
418
|
+
// invalid. It may be in a bad format or empty.
|
419
|
+
//
|
420
|
+
// Example of an ErrorInfo when the request is to the Cloud Functions API,
|
421
|
+
// but the offered resource project in the request in a bad format which can't
|
422
|
+
// perform the ListFunctions method.
|
423
|
+
//
|
424
|
+
// { "reason": "RESOURCE_PROJECT_INVALID",
|
425
|
+
// "domain": "googleapis.com",
|
426
|
+
// "metadata": {
|
427
|
+
// "service": "cloudfunctions.googleapis.com",
|
428
|
+
// "method":
|
429
|
+
// "google.cloud.functions.v1.CloudFunctionsService.ListFunctions"
|
430
|
+
// }
|
431
|
+
// }
|
432
|
+
RESOURCE_PROJECT_INVALID = 21;
|
433
|
+
|
434
|
+
// The request is denied because the provided session cookie is missing,
|
435
|
+
// invalid or failed to decode.
|
436
|
+
//
|
437
|
+
// Example of an ErrorInfo when the request is calling Cloud Storage service
|
438
|
+
// with a SID cookie which can't be decoded.
|
439
|
+
//
|
440
|
+
// { "reason": "SESSION_COOKIE_INVALID",
|
441
|
+
// "domain": "googleapis.com",
|
442
|
+
// "metadata": {
|
443
|
+
// "service": "storage.googleapis.com",
|
444
|
+
// "method": "google.storage.v1.Storage.GetObject",
|
445
|
+
// "cookie": "SID"
|
446
|
+
// }
|
447
|
+
// }
|
448
|
+
SESSION_COOKIE_INVALID = 23;
|
449
|
+
|
450
|
+
// The request is denied because the user is from a Google Workspace customer
|
451
|
+
// that blocks their users from accessing a particular service.
|
452
|
+
//
|
453
|
+
// Example scenario: https://support.google.com/a/answer/9197205?hl=en
|
454
|
+
//
|
455
|
+
// Example of an ErrorInfo when access to Google Cloud Storage service is
|
456
|
+
// blocked by the Google Workspace administrator:
|
457
|
+
//
|
458
|
+
// { "reason": "USER_BLOCKED_BY_ADMIN",
|
459
|
+
// "domain": "googleapis.com",
|
460
|
+
// "metadata": {
|
461
|
+
// "service": "storage.googleapis.com",
|
462
|
+
// "method": "google.storage.v1.Storage.GetObject",
|
463
|
+
// }
|
464
|
+
// }
|
465
|
+
USER_BLOCKED_BY_ADMIN = 24;
|
466
|
+
|
467
|
+
// The request is denied because the resource service usage is restricted
|
468
|
+
// by administrators according to the organization policy constraint.
|
469
|
+
// For more information see
|
470
|
+
// https://cloud.google.com/resource-manager/docs/organization-policy/restricting-services.
|
471
|
+
//
|
472
|
+
// Example of an ErrorInfo when access to Google Cloud Storage service is
|
473
|
+
// restricted by Resource Usage Restriction policy:
|
474
|
+
//
|
475
|
+
// { "reason": "RESOURCE_USAGE_RESTRICTION_VIOLATED",
|
476
|
+
// "domain": "googleapis.com",
|
477
|
+
// "metadata": {
|
478
|
+
// "consumer": "projects/project-123",
|
479
|
+
// "service": "storage.googleapis.com"
|
480
|
+
// }
|
481
|
+
// }
|
482
|
+
RESOURCE_USAGE_RESTRICTION_VIOLATED = 25;
|
483
|
+
|
484
|
+
// Unimplemented. Do not use.
|
485
|
+
//
|
486
|
+
// The request is denied because it contains unsupported system parameters in
|
487
|
+
// URL query parameters or HTTP headers. For more information,
|
488
|
+
// see https://cloud.google.com/apis/docs/system-parameters
|
489
|
+
//
|
490
|
+
// Example of an ErrorInfo when access "pubsub.googleapis.com" service with
|
491
|
+
// a request header of "x-goog-user-ip":
|
492
|
+
//
|
493
|
+
// { "reason": "SYSTEM_PARAMETER_UNSUPPORTED",
|
494
|
+
// "domain": "googleapis.com",
|
495
|
+
// "metadata": {
|
496
|
+
// "service": "pubsub.googleapis.com"
|
497
|
+
// "parameter": "x-goog-user-ip"
|
498
|
+
// }
|
499
|
+
// }
|
500
|
+
SYSTEM_PARAMETER_UNSUPPORTED = 26;
|
501
|
+
|
502
|
+
// The request is denied because it violates Org Restriction: the requested
|
503
|
+
// resource does not belong to allowed organizations specified in
|
504
|
+
// "X-Goog-Allowed-Resources" header.
|
505
|
+
//
|
506
|
+
// Example of an ErrorInfo when accessing a GCP resource that is restricted by
|
507
|
+
// Org Restriction for "pubsub.googleapis.com" service.
|
508
|
+
//
|
509
|
+
// {
|
510
|
+
// reason: "ORG_RESTRICTION_VIOLATION"
|
511
|
+
// domain: "googleapis.com"
|
512
|
+
// metadata {
|
513
|
+
// "consumer":"projects/123456"
|
514
|
+
// "service": "pubsub.googleapis.com"
|
515
|
+
// }
|
516
|
+
// }
|
517
|
+
ORG_RESTRICTION_VIOLATION = 27;
|
518
|
+
|
519
|
+
// The request is denied because "X-Goog-Allowed-Resources" header is in a bad
|
520
|
+
// format.
|
521
|
+
//
|
522
|
+
// Example of an ErrorInfo when
|
523
|
+
// accessing "pubsub.googleapis.com" service with an invalid
|
524
|
+
// "X-Goog-Allowed-Resources" request header.
|
525
|
+
//
|
526
|
+
// {
|
527
|
+
// reason: "ORG_RESTRICTION_HEADER_INVALID"
|
528
|
+
// domain: "googleapis.com"
|
529
|
+
// metadata {
|
530
|
+
// "consumer":"projects/123456"
|
531
|
+
// "service": "pubsub.googleapis.com"
|
532
|
+
// }
|
533
|
+
// }
|
534
|
+
ORG_RESTRICTION_HEADER_INVALID = 28;
|
535
|
+
|
536
|
+
// Unimplemented. Do not use.
|
537
|
+
//
|
538
|
+
// The request is calling a service that is not visible to the consumer.
|
539
|
+
//
|
540
|
+
// Example of an ErrorInfo when the consumer "projects/123" contacting
|
541
|
+
// "pubsub.googleapis.com" service which is not visible to the consumer.
|
542
|
+
//
|
543
|
+
// { "reason": "SERVICE_NOT_VISIBLE",
|
544
|
+
// "domain": "googleapis.com",
|
545
|
+
// "metadata": {
|
546
|
+
// "consumer": "projects/123",
|
547
|
+
// "service": "pubsub.googleapis.com"
|
548
|
+
// }
|
549
|
+
// }
|
550
|
+
//
|
551
|
+
// This response indicates the "pubsub.googleapis.com" is not visible to
|
552
|
+
// "projects/123" (or it may not exist).
|
553
|
+
SERVICE_NOT_VISIBLE = 29;
|
554
|
+
|
555
|
+
// The request is related to a project for which GCP access is suspended.
|
556
|
+
//
|
557
|
+
// Example of an ErrorInfo when the consumer "projects/123" fails to contact
|
558
|
+
// "pubsub.googleapis.com" service because GCP access is suspended:
|
559
|
+
//
|
560
|
+
// { "reason": "GCP_SUSPENDED",
|
561
|
+
// "domain": "googleapis.com",
|
562
|
+
// "metadata": {
|
563
|
+
// "consumer": "projects/123",
|
564
|
+
// "service": "pubsub.googleapis.com"
|
565
|
+
// }
|
566
|
+
// }
|
567
|
+
//
|
568
|
+
// This response indicates the associated GCP account has been suspended.
|
569
|
+
GCP_SUSPENDED = 30;
|
570
|
+
|
571
|
+
// The request violates the location policies when creating resources in
|
572
|
+
// the restricted region.
|
573
|
+
//
|
574
|
+
// Example of an ErrorInfo when creating the Cloud Storage Bucket by
|
575
|
+
// "projects/123" for service storage.googleapis.com:
|
576
|
+
//
|
577
|
+
// { "reason": "LOCATION_POLICY_VIOLATED",
|
578
|
+
// "domain": "googleapis.com",
|
579
|
+
// "metadata": {
|
580
|
+
// "consumer": "projects/123",
|
581
|
+
// "service": "storage.googleapis.com",
|
582
|
+
// }
|
583
|
+
// }
|
584
|
+
//
|
585
|
+
// This response indicates creating the Cloud Storage Bucket in
|
586
|
+
// "locations/asia-northeast3" violates at least one location policy.
|
587
|
+
// The troubleshooting guidance is provided in the Help links.
|
588
|
+
LOCATION_POLICY_VIOLATED = 31;
|
589
|
+
}
|