@devvit/protos 0.11.4 → 0.11.5-next-2024-12-09-1c29dd3cd.0
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/meta.min.json +7814 -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/dev_portal/app/app.proto +3 -0
- package/schema/devvit/dev_portal/app/info/app_info.proto +13 -1
- package/schema/devvit/ui/block_kit/v1beta/ui.proto +1 -1
- package/schema/devvit/ui/effects/web_view/v1alpha/fullscreen.proto +7 -1
- package/schema/snootobuf.devenv.lock +459 -292
- package/schema/snootobuf.lock +459 -292
- package/schema/snootobuf.redditapi.lock +459 -292
- package/schema/snootobuf.ts.lock +459 -293
- package/types/devvit/dev_portal/app/app.d.ts +2 -0
- package/types/devvit/dev_portal/app/app.d.ts.map +1 -1
- package/types/devvit/dev_portal/app/app.js +17 -0
- package/types/devvit/dev_portal/app/info/app_info.d.ts +13 -0
- package/types/devvit/dev_portal/app/info/app_info.d.ts.map +1 -1
- package/types/devvit/dev_portal/app/info/app_info.js +17 -0
- package/types/devvit/dev_portal/dev_portal.d.ts +42 -0
- package/types/devvit/dev_portal/dev_portal.d.ts.map +1 -1
- package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts +4 -0
- package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts.map +1 -1
- package/types/devvit/ui/effects/web_view/v1alpha/fullscreen.d.ts +8 -1
- package/types/devvit/ui/effects/web_view/v1alpha/fullscreen.d.ts.map +1 -1
- package/types/devvit/ui/effects/web_view/v1alpha/fullscreen.js +15 -1
@@ -0,0 +1,305 @@
|
|
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.serviceusage.v1;
|
18
|
+
|
19
|
+
import "google/api/annotations.proto";
|
20
|
+
import "google/api/client.proto";
|
21
|
+
import "google/api/serviceusage/v1/resources.proto";
|
22
|
+
import "google/longrunning/operations.proto";
|
23
|
+
|
24
|
+
option csharp_namespace = "Google.Cloud.ServiceUsage.V1";
|
25
|
+
option go_package = "cloud.google.com/go/serviceusage/apiv1/serviceusagepb;serviceusagepb";
|
26
|
+
option java_multiple_files = true;
|
27
|
+
option java_outer_classname = "ServiceUsageProto";
|
28
|
+
option java_package = "com.google.api.serviceusage.v1";
|
29
|
+
option php_namespace = "Google\\Cloud\\ServiceUsage\\V1";
|
30
|
+
option ruby_package = "Google::Cloud::ServiceUsage::V1";
|
31
|
+
|
32
|
+
// Enables services that service consumers want to use on Google Cloud Platform,
|
33
|
+
// lists the available or enabled services, or disables services that service
|
34
|
+
// consumers no longer use.
|
35
|
+
//
|
36
|
+
// See [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
|
37
|
+
service ServiceUsage {
|
38
|
+
option (google.api.default_host) = "serviceusage.googleapis.com";
|
39
|
+
option (google.api.oauth_scopes) =
|
40
|
+
"https://www.googleapis.com/auth/cloud-platform,"
|
41
|
+
"https://www.googleapis.com/auth/cloud-platform.read-only,"
|
42
|
+
"https://www.googleapis.com/auth/service.management";
|
43
|
+
|
44
|
+
// Enable a service so that it can be used with a project.
|
45
|
+
rpc EnableService(EnableServiceRequest)
|
46
|
+
returns (google.longrunning.Operation) {
|
47
|
+
option (google.api.http) = {
|
48
|
+
post: "/v1/{name=*/*/services/*}:enable"
|
49
|
+
body: "*"
|
50
|
+
};
|
51
|
+
option (google.longrunning.operation_info) = {
|
52
|
+
response_type: "EnableServiceResponse"
|
53
|
+
metadata_type: "OperationMetadata"
|
54
|
+
};
|
55
|
+
}
|
56
|
+
|
57
|
+
// Disable a service so that it can no longer be used with a project.
|
58
|
+
// This prevents unintended usage that may cause unexpected billing
|
59
|
+
// charges or security leaks.
|
60
|
+
//
|
61
|
+
// It is not valid to call the disable method on a service that is not
|
62
|
+
// currently enabled. Callers will receive a `FAILED_PRECONDITION` status if
|
63
|
+
// the target service is not currently enabled.
|
64
|
+
rpc DisableService(DisableServiceRequest)
|
65
|
+
returns (google.longrunning.Operation) {
|
66
|
+
option (google.api.http) = {
|
67
|
+
post: "/v1/{name=*/*/services/*}:disable"
|
68
|
+
body: "*"
|
69
|
+
};
|
70
|
+
option (google.longrunning.operation_info) = {
|
71
|
+
response_type: "DisableServiceResponse"
|
72
|
+
metadata_type: "OperationMetadata"
|
73
|
+
};
|
74
|
+
}
|
75
|
+
|
76
|
+
// Returns the service configuration and enabled state for a given service.
|
77
|
+
rpc GetService(GetServiceRequest) returns (Service) {
|
78
|
+
option (google.api.http) = {
|
79
|
+
get: "/v1/{name=*/*/services/*}"
|
80
|
+
};
|
81
|
+
}
|
82
|
+
|
83
|
+
// List all services available to the specified project, and the current
|
84
|
+
// state of those services with respect to the project. The list includes
|
85
|
+
// all public services, all services for which the calling user has the
|
86
|
+
// `servicemanagement.services.bind` permission, and all services that have
|
87
|
+
// already been enabled on the project. The list can be filtered to
|
88
|
+
// only include services in a specific state, for example to only include
|
89
|
+
// services enabled on the project.
|
90
|
+
//
|
91
|
+
// WARNING: If you need to query enabled services frequently or across
|
92
|
+
// an organization, you should use
|
93
|
+
// [Cloud Asset Inventory
|
94
|
+
// API](https://cloud.google.com/asset-inventory/docs/apis), which provides
|
95
|
+
// higher throughput and richer filtering capability.
|
96
|
+
rpc ListServices(ListServicesRequest) returns (ListServicesResponse) {
|
97
|
+
option (google.api.http) = {
|
98
|
+
get: "/v1/{parent=*/*}/services"
|
99
|
+
};
|
100
|
+
}
|
101
|
+
|
102
|
+
// Enable multiple services on a project. The operation is atomic: if enabling
|
103
|
+
// any service fails, then the entire batch fails, and no state changes occur.
|
104
|
+
// To enable a single service, use the `EnableService` method instead.
|
105
|
+
rpc BatchEnableServices(BatchEnableServicesRequest)
|
106
|
+
returns (google.longrunning.Operation) {
|
107
|
+
option (google.api.http) = {
|
108
|
+
post: "/v1/{parent=*/*}/services:batchEnable"
|
109
|
+
body: "*"
|
110
|
+
};
|
111
|
+
option (google.longrunning.operation_info) = {
|
112
|
+
response_type: "BatchEnableServicesResponse"
|
113
|
+
metadata_type: "OperationMetadata"
|
114
|
+
};
|
115
|
+
}
|
116
|
+
|
117
|
+
// Returns the service configurations and enabled states for a given list of
|
118
|
+
// services.
|
119
|
+
rpc BatchGetServices(BatchGetServicesRequest)
|
120
|
+
returns (BatchGetServicesResponse) {
|
121
|
+
option (google.api.http) = {
|
122
|
+
get: "/v1/{parent=*/*}/services:batchGet"
|
123
|
+
};
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
// Request message for the `EnableService` method.
|
128
|
+
message EnableServiceRequest {
|
129
|
+
// Name of the consumer and service to enable the service on.
|
130
|
+
//
|
131
|
+
// The `EnableService` and `DisableService` methods currently only support
|
132
|
+
// projects.
|
133
|
+
//
|
134
|
+
// Enabling a service requires that the service is public or is shared with
|
135
|
+
// the user enabling the service.
|
136
|
+
//
|
137
|
+
// An example name would be:
|
138
|
+
// `projects/123/services/serviceusage.googleapis.com` where `123` is the
|
139
|
+
// project number.
|
140
|
+
string name = 1;
|
141
|
+
}
|
142
|
+
|
143
|
+
// Response message for the `EnableService` method.
|
144
|
+
// This response message is assigned to the `response` field of the returned
|
145
|
+
// Operation when that operation is done.
|
146
|
+
message EnableServiceResponse {
|
147
|
+
// The new state of the service after enabling.
|
148
|
+
Service service = 1;
|
149
|
+
}
|
150
|
+
|
151
|
+
// Request message for the `DisableService` method.
|
152
|
+
message DisableServiceRequest {
|
153
|
+
// Enum to determine if service usage should be checked when disabling a
|
154
|
+
// service.
|
155
|
+
enum CheckIfServiceHasUsage {
|
156
|
+
// When unset, the default behavior is used, which is SKIP.
|
157
|
+
CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED = 0;
|
158
|
+
|
159
|
+
// If set, skip checking service usage when disabling a service.
|
160
|
+
SKIP = 1;
|
161
|
+
|
162
|
+
// If set, service usage is checked when disabling the service. If a
|
163
|
+
// service, or its dependents, has usage in the last 30 days, the request
|
164
|
+
// returns a FAILED_PRECONDITION error.
|
165
|
+
CHECK = 2;
|
166
|
+
}
|
167
|
+
|
168
|
+
// Name of the consumer and service to disable the service on.
|
169
|
+
//
|
170
|
+
// The enable and disable methods currently only support projects.
|
171
|
+
//
|
172
|
+
// An example name would be:
|
173
|
+
// `projects/123/services/serviceusage.googleapis.com` where `123` is the
|
174
|
+
// project number.
|
175
|
+
string name = 1;
|
176
|
+
|
177
|
+
// Indicates if services that are enabled and which depend on this service
|
178
|
+
// should also be disabled. If not set, an error will be generated if any
|
179
|
+
// enabled services depend on the service to be disabled. When set, the
|
180
|
+
// service, and any enabled services that depend on it, will be disabled
|
181
|
+
// together.
|
182
|
+
bool disable_dependent_services = 2;
|
183
|
+
|
184
|
+
// Defines the behavior for checking service usage when disabling a service.
|
185
|
+
CheckIfServiceHasUsage check_if_service_has_usage = 3;
|
186
|
+
}
|
187
|
+
|
188
|
+
// Response message for the `DisableService` method.
|
189
|
+
// This response message is assigned to the `response` field of the returned
|
190
|
+
// Operation when that operation is done.
|
191
|
+
message DisableServiceResponse {
|
192
|
+
// The new state of the service after disabling.
|
193
|
+
Service service = 1;
|
194
|
+
}
|
195
|
+
|
196
|
+
// Request message for the `GetService` method.
|
197
|
+
message GetServiceRequest {
|
198
|
+
// Name of the consumer and service to get the `ConsumerState` for.
|
199
|
+
//
|
200
|
+
// An example name would be:
|
201
|
+
// `projects/123/services/serviceusage.googleapis.com` where `123` is the
|
202
|
+
// project number.
|
203
|
+
string name = 1;
|
204
|
+
}
|
205
|
+
|
206
|
+
// Request message for the `ListServices` method.
|
207
|
+
message ListServicesRequest {
|
208
|
+
// Parent to search for services on.
|
209
|
+
//
|
210
|
+
// An example name would be:
|
211
|
+
// `projects/123` where `123` is the project number.
|
212
|
+
string parent = 1;
|
213
|
+
|
214
|
+
// Requested size of the next page of data.
|
215
|
+
// Requested page size cannot exceed 200.
|
216
|
+
// If not set, the default page size is 50.
|
217
|
+
int32 page_size = 2;
|
218
|
+
|
219
|
+
// Token identifying which result to start with, which is returned by a
|
220
|
+
// previous list call.
|
221
|
+
string page_token = 3;
|
222
|
+
|
223
|
+
// Only list services that conform to the given filter.
|
224
|
+
// The allowed filter strings are `state:ENABLED` and `state:DISABLED`.
|
225
|
+
string filter = 4;
|
226
|
+
}
|
227
|
+
|
228
|
+
// Response message for the `ListServices` method.
|
229
|
+
message ListServicesResponse {
|
230
|
+
// The available services for the requested project.
|
231
|
+
repeated Service services = 1;
|
232
|
+
|
233
|
+
// Token that can be passed to `ListServices` to resume a paginated
|
234
|
+
// query.
|
235
|
+
string next_page_token = 2;
|
236
|
+
}
|
237
|
+
|
238
|
+
// Request message for the `BatchEnableServices` method.
|
239
|
+
message BatchEnableServicesRequest {
|
240
|
+
// Parent to enable services on.
|
241
|
+
//
|
242
|
+
// An example name would be:
|
243
|
+
// `projects/123` where `123` is the project number.
|
244
|
+
//
|
245
|
+
// The `BatchEnableServices` method currently only supports projects.
|
246
|
+
string parent = 1;
|
247
|
+
|
248
|
+
// The identifiers of the services to enable on the project.
|
249
|
+
//
|
250
|
+
// A valid identifier would be:
|
251
|
+
// serviceusage.googleapis.com
|
252
|
+
//
|
253
|
+
// Enabling services requires that each service is public or is shared with
|
254
|
+
// the user enabling the service.
|
255
|
+
//
|
256
|
+
// A single request can enable a maximum of 20 services at a time. If more
|
257
|
+
// than 20 services are specified, the request will fail, and no state changes
|
258
|
+
// will occur.
|
259
|
+
repeated string service_ids = 2;
|
260
|
+
}
|
261
|
+
|
262
|
+
// Response message for the `BatchEnableServices` method.
|
263
|
+
// This response message is assigned to the `response` field of the returned
|
264
|
+
// Operation when that operation is done.
|
265
|
+
message BatchEnableServicesResponse {
|
266
|
+
// Provides error messages for the failing services.
|
267
|
+
message EnableFailure {
|
268
|
+
// The service id of a service that could not be enabled.
|
269
|
+
string service_id = 1;
|
270
|
+
|
271
|
+
// An error message describing why the service could not be enabled.
|
272
|
+
string error_message = 2;
|
273
|
+
}
|
274
|
+
|
275
|
+
// The new state of the services after enabling.
|
276
|
+
repeated Service services = 1;
|
277
|
+
|
278
|
+
// If allow_partial_success is true, and one or more services could not be
|
279
|
+
// enabled, this field contains the details about each failure.
|
280
|
+
repeated EnableFailure failures = 2;
|
281
|
+
}
|
282
|
+
|
283
|
+
// Request message for the `BatchGetServices` method.
|
284
|
+
message BatchGetServicesRequest {
|
285
|
+
// Parent to retrieve services from.
|
286
|
+
// If this is set, the parent of all of the services specified in `names` must
|
287
|
+
// match this field. An example name would be: `projects/123` where `123` is
|
288
|
+
// the project number. The `BatchGetServices` method currently only supports
|
289
|
+
// projects.
|
290
|
+
string parent = 1;
|
291
|
+
|
292
|
+
// Names of the services to retrieve.
|
293
|
+
//
|
294
|
+
// An example name would be:
|
295
|
+
// `projects/123/services/serviceusage.googleapis.com` where `123` is the
|
296
|
+
// project number.
|
297
|
+
// A single request can get a maximum of 30 services at a time.
|
298
|
+
repeated string names = 2;
|
299
|
+
}
|
300
|
+
|
301
|
+
// Response message for the `BatchGetServices` method.
|
302
|
+
message BatchGetServicesResponse {
|
303
|
+
// The requested Service states.
|
304
|
+
repeated Service services = 1;
|
305
|
+
}
|