@devvit/protos 0.11.7-next-2025-02-10-a03b99540.0 → 0.11.7
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +4 -4
- package/meta.min.json +0 -7820
- package/protos.min.js +0 -2
- package/protos.min.js.map +0 -7
- package/schema/.snootobuf/deps/buf/validate/expression.proto +0 -92
- package/schema/.snootobuf/deps/buf/validate/priv/private.proto +0 -41
- package/schema/.snootobuf/deps/buf/validate/validate.proto +0 -4130
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/audit.proto +0 -72
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/auth.proto +0 -49
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/organization.proto +0 -54
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/service.proto +0 -46
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/subscription.proto +0 -72
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/ui.proto +0 -20
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/user.proto +0 -45
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/admin.proto +0 -54
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/delivery.proto +0 -773
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/filter.proto +0 -66
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/firehose.proto +0 -100
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/intake.proto +0 -19
- package/schema/.snootobuf/deps/devvit/events/v1alpha/events.proto +0 -446
- package/schema/.snootobuf/deps/devvit/gateway/v1alpha/payments.proto +0 -24
- package/schema/.snootobuf/deps/devvit/options/options.proto +0 -98
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/commentv2.proto +0 -29
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/flair.proto +0 -25
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modaction.proto +0 -53
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modmail.proto +0 -56
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/postv2.proto +0 -107
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/subredditv2.proto +0 -41
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/userv2.proto +0 -23
- package/schema/.snootobuf/deps/devvit/triggers/v1alpha/triggers.proto +0 -162
- package/schema/.snootobuf/deps/enum/account_gender_category.proto +0 -14
- package/schema/.snootobuf/deps/enum/approval_status.proto +0 -15
- package/schema/.snootobuf/deps/enum/automated_reporting_level.proto +0 -12
- package/schema/.snootobuf/deps/enum/ban_evasion_threshold.proto +0 -13
- package/schema/.snootobuf/deps/enum/ban_info_action.proto +0 -12
- package/schema/.snootobuf/deps/enum/block_relation_type.proto +0 -11
- package/schema/.snootobuf/deps/enum/comment_sort.proto +0 -18
- package/schema/.snootobuf/deps/enum/comment_type.proto +0 -11
- package/schema/.snootobuf/deps/enum/crowd_control_level.proto +0 -12
- package/schema/.snootobuf/deps/enum/discussion_type.proto +0 -10
- package/schema/.snootobuf/deps/enum/distinguish_type.proto +0 -14
- package/schema/.snootobuf/deps/enum/flair_position.proto +0 -11
- package/schema/.snootobuf/deps/enum/hateful_content_threshold.proto +0 -12
- package/schema/.snootobuf/deps/enum/link_content_type.proto +0 -11
- package/schema/.snootobuf/deps/enum/link_type.proto +0 -11
- package/schema/.snootobuf/deps/enum/link_visibility.proto +0 -11
- package/schema/.snootobuf/deps/enum/prediction_leaderboard_entry_type.proto +0 -11
- package/schema/.snootobuf/deps/enum/promo_layout.proto +0 -11
- package/schema/.snootobuf/deps/enum/removed_by_type.proto +0 -18
- package/schema/.snootobuf/deps/enum/spam_level.proto +0 -11
- package/schema/.snootobuf/deps/enum/subreddit_type.proto +0 -16
- package/schema/.snootobuf/deps/enum/verdict.proto +0 -14
- package/schema/.snootobuf/deps/enum/vote.proto +0 -12
- package/schema/.snootobuf/deps/enum/whitelist_status.proto +0 -17
- package/schema/.snootobuf/deps/enum/wiki_edit_mode.proto +0 -12
- package/schema/.snootobuf/deps/evaluator/evaluator.proto +0 -203
- package/schema/.snootobuf/deps/google/api/annotations.proto +0 -31
- package/schema/.snootobuf/deps/google/api/apikeys/v2/apikeys.proto +0 -288
- package/schema/.snootobuf/deps/google/api/apikeys/v2/resources.proto +0 -175
- package/schema/.snootobuf/deps/google/api/auth.proto +0 -237
- package/schema/.snootobuf/deps/google/api/backend.proto +0 -185
- package/schema/.snootobuf/deps/google/api/billing.proto +0 -77
- package/schema/.snootobuf/deps/google/api/client.proto +0 -431
- package/schema/.snootobuf/deps/google/api/cloudquotas/v1/cloudquotas.proto +0 -322
- package/schema/.snootobuf/deps/google/api/cloudquotas/v1/resources.proto +0 -315
- package/schema/.snootobuf/deps/google/api/config_change.proto +0 -84
- package/schema/.snootobuf/deps/google/api/consumer.proto +0 -82
- package/schema/.snootobuf/deps/google/api/context.proto +0 -92
- package/schema/.snootobuf/deps/google/api/control.proto +0 -41
- package/schema/.snootobuf/deps/google/api/distribution.proto +0 -213
- package/schema/.snootobuf/deps/google/api/documentation.proto +0 -168
- package/schema/.snootobuf/deps/google/api/endpoint.proto +0 -69
- package/schema/.snootobuf/deps/google/api/error_reason.proto +0 -589
- package/schema/.snootobuf/deps/google/api/expr/conformance/v1alpha1/conformance_service.proto +0 -183
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/checked.proto +0 -343
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/eval.proto +0 -118
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/explain.proto +0 -53
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/syntax.proto +0 -438
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/value.proto +0 -115
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/decl.proto +0 -84
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/eval.proto +0 -125
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/expr.proto +0 -265
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/source.proto +0 -62
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/value.proto +0 -114
- package/schema/.snootobuf/deps/google/api/field_behavior.proto +0 -104
- package/schema/.snootobuf/deps/google/api/field_info.proto +0 -106
- package/schema/.snootobuf/deps/google/api/http.proto +0 -371
- package/schema/.snootobuf/deps/google/api/httpbody.proto +0 -81
- package/schema/.snootobuf/deps/google/api/label.proto +0 -48
- package/schema/.snootobuf/deps/google/api/launch_stage.proto +0 -72
- package/schema/.snootobuf/deps/google/api/log.proto +0 -54
- package/schema/.snootobuf/deps/google/api/logging.proto +0 -81
- package/schema/.snootobuf/deps/google/api/metric.proto +0 -268
- package/schema/.snootobuf/deps/google/api/monitored_resource.proto +0 -130
- package/schema/.snootobuf/deps/google/api/monitoring.proto +0 -107
- package/schema/.snootobuf/deps/google/api/policy.proto +0 -85
- package/schema/.snootobuf/deps/google/api/quota.proto +0 -184
- package/schema/.snootobuf/deps/google/api/resource.proto +0 -243
- package/schema/.snootobuf/deps/google/api/routing.proto +0 -461
- package/schema/.snootobuf/deps/google/api/service.proto +0 -191
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/check_error.proto +0 -124
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/distribution.proto +0 -166
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/http_request.proto +0 -93
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/log_entry.proto +0 -126
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/metric_value.proto +0 -81
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/operation.proto +0 -123
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/quota_controller.proto +0 -245
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/service_controller.proto +0 -260
- package/schema/.snootobuf/deps/google/api/servicecontrol/v2/service_controller.proto +0 -196
- package/schema/.snootobuf/deps/google/api/servicemanagement/v1/resources.proto +0 -295
- package/schema/.snootobuf/deps/google/api/servicemanagement/v1/servicemanager.proto +0 -508
- package/schema/.snootobuf/deps/google/api/serviceusage/v1/resources.proto +0 -130
- package/schema/.snootobuf/deps/google/api/serviceusage/v1/serviceusage.proto +0 -305
- package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/resources.proto +0 -458
- package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/serviceusage.proto +0 -793
- package/schema/.snootobuf/deps/google/api/source_info.proto +0 -31
- package/schema/.snootobuf/deps/google/api/system_parameter.proto +0 -96
- package/schema/.snootobuf/deps/google/api/usage.proto +0 -96
- package/schema/.snootobuf/deps/google/api/visibility.proto +0 -113
- package/schema/.snootobuf/deps/google/cloud/extended_operations.proto +0 -150
- package/schema/.snootobuf/deps/google/iam/admin/v1/iam.proto +0 -1087
- package/schema/.snootobuf/deps/google/iam/v1/iam_policy.proto +0 -145
- package/schema/.snootobuf/deps/google/iam/v1/logging/audit_data.proto +0 -34
- package/schema/.snootobuf/deps/google/iam/v1/options.proto +0 -41
- package/schema/.snootobuf/deps/google/iam/v1/policy.proto +0 -240
- package/schema/.snootobuf/deps/google/logging/type/http_request.proto +0 -92
- package/schema/.snootobuf/deps/google/logging/type/log_severity.proto +0 -72
- package/schema/.snootobuf/deps/google/longrunning/operations.proto +0 -247
- package/schema/.snootobuf/deps/google/protobuf/any.proto +0 -158
- package/schema/.snootobuf/deps/google/protobuf/api.proto +0 -208
- package/schema/.snootobuf/deps/google/protobuf/compiler/plugin.proto +0 -183
- package/schema/.snootobuf/deps/google/protobuf/descriptor.proto +0 -921
- package/schema/.snootobuf/deps/google/protobuf/duration.proto +0 -116
- package/schema/.snootobuf/deps/google/protobuf/empty.proto +0 -51
- package/schema/.snootobuf/deps/google/protobuf/field_mask.proto +0 -245
- package/schema/.snootobuf/deps/google/protobuf/source_context.proto +0 -48
- package/schema/.snootobuf/deps/google/protobuf/struct.proto +0 -95
- package/schema/.snootobuf/deps/google/protobuf/timestamp.proto +0 -147
- package/schema/.snootobuf/deps/google/protobuf/type.proto +0 -187
- package/schema/.snootobuf/deps/google/protobuf/wrappers.proto +0 -123
- package/schema/.snootobuf/deps/google/rpc/code.proto +0 -186
- package/schema/.snootobuf/deps/google/rpc/context/attribute_context.proto +0 -287
- package/schema/.snootobuf/deps/google/rpc/error_details.proto +0 -246
- package/schema/.snootobuf/deps/google/rpc/status.proto +0 -47
- package/schema/.snootobuf/deps/google/type/calendar_period.proto +0 -57
- package/schema/.snootobuf/deps/google/type/color.proto +0 -170
- package/schema/.snootobuf/deps/google/type/date.proto +0 -50
- package/schema/.snootobuf/deps/google/type/datetime.proto +0 -97
- package/schema/.snootobuf/deps/google/type/dayofweek.proto +0 -51
- package/schema/.snootobuf/deps/google/type/expr.proto +0 -51
- package/schema/.snootobuf/deps/google/type/fraction.proto +0 -34
- package/schema/.snootobuf/deps/google/type/latlng.proto +0 -37
- package/schema/.snootobuf/deps/google/type/money.proto +0 -43
- package/schema/.snootobuf/deps/google/type/month.proto +0 -66
- package/schema/.snootobuf/deps/google/type/postal_address.proto +0 -135
- package/schema/.snootobuf/deps/google/type/quaternion.proto +0 -95
- package/schema/.snootobuf/deps/google/type/timeofday.proto +0 -44
- package/schema/.snootobuf/deps/openapi/helper.proto +0 -20
- package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +0 -189
- package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +0 -118
- package/schema/.snootobuf/deps/reddit/api/metadata/v1/metadata.proto +0 -55
- package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account.proto +0 -579
- package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account_relations.proto +0 -43
- package/schema/.snootobuf/deps/reddit/coreplatform/api/metadata/v1/metadata.proto +0 -82
- package/schema/.snootobuf/deps/reddit/coreplatform/blocking/v1/user_blocking_service.proto +0 -221
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree.proto +0 -78
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_service.proto +0 -189
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_structure.proto +0 -29
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments.proto +0 -417
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments_service.proto +0 -72
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/auth.proto +0 -25
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/features.proto +0 -52
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/lang.proto +0 -16
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/legal.proto +0 -20
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/media.proto +0 -149
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/moderation.proto +0 -197
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/safety.proto +0 -116
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/time.proto +0 -25
- package/schema/.snootobuf/deps/reddit/coreplatform/domains/v1/domains_metadata_service.proto +0 -101
- package/schema/.snootobuf/deps/reddit/coreplatform/grpc_thrift/v1/grpc_thrift_options.proto +0 -34
- package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links.proto +0 -798
- package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links_service.proto +0 -186
- package/schema/.snootobuf/deps/reddit/coreplatform/messages/v1/messages.proto +0 -110
- package/schema/.snootobuf/deps/reddit/coreplatform/sensitive/v1/wrappers.proto +0 -51
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit.proto +0 -1202
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_member_relations.proto +0 -85
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_moderator_service.proto +0 -363
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_service.proto +0 -301
- package/schema/.snootobuf/deps/reddit/coreplatform/thing/v0/thing.proto +0 -2869
- package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/custom_post.proto +0 -15
- package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/service.proto +0 -11
- package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/context_action.proto +0 -48
- package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/manifest.proto +0 -70
- package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/service.proto +0 -11
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/acknowledge_order_delivery.proto +0 -17
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/checkout.proto +0 -89
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/common.proto +0 -322
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/delete_products.proto +0 -17
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/events.proto +0 -14
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_batch_products.proto +0 -15
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_gold_balances.proto +0 -48
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_order.proto +0 -31
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders.proto +0 -26
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders_by_user.proto +0 -15
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_payout_info_batch.proto +0 -52
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_products.proto +0 -23
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_user_profiles.proto +0 -28
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/refund_order.proto +0 -17
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service.proto +0 -49
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service_data_compliance.proto +0 -20
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/upsert_products.proto +0 -17
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paygatewaypsps/v1/paygatewaypsps.proto +0 -158
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payments_data_compliance.proto +0 -18
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payorders.proto +0 -195
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/admin.proto +0 -44
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/ledger.proto +0 -200
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/payments_data_compliance.proto +0 -18
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/paypayments.proto +0 -210
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +0 -189
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +0 -135
- package/schema/.snootobuf/deps/snooron_sources/text_classification/text_classification.proto +0 -29
- package/schema/.snootobuf/deps/snooron_sources/v2_event/v2_event.proto +0 -3292
- package/schema/.snootobuf/deps/validate/validate.proto +0 -862
@@ -1,508 +0,0 @@
|
|
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.servicemanagement.v1;
|
18
|
-
|
19
|
-
import "google/api/annotations.proto";
|
20
|
-
import "google/api/client.proto";
|
21
|
-
import "google/api/field_behavior.proto";
|
22
|
-
import "google/api/service.proto";
|
23
|
-
import "google/api/servicemanagement/v1/resources.proto";
|
24
|
-
import "google/longrunning/operations.proto";
|
25
|
-
import "google/protobuf/any.proto";
|
26
|
-
import "google/protobuf/empty.proto";
|
27
|
-
|
28
|
-
option csharp_namespace = "Google.Cloud.ServiceManagement.V1";
|
29
|
-
option go_package = "cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb;servicemanagementpb";
|
30
|
-
option java_multiple_files = true;
|
31
|
-
option java_outer_classname = "ServiceManagerProto";
|
32
|
-
option java_package = "com.google.api.servicemanagement.v1";
|
33
|
-
option objc_class_prefix = "GASM";
|
34
|
-
option php_namespace = "Google\\Cloud\\ServiceManagement\\V1";
|
35
|
-
option ruby_package = "Google::Cloud::ServiceManagement::V1";
|
36
|
-
|
37
|
-
// [Google Service Management
|
38
|
-
// API](https://cloud.google.com/service-infrastructure/docs/overview)
|
39
|
-
service ServiceManager {
|
40
|
-
option (google.api.default_host) = "servicemanagement.googleapis.com";
|
41
|
-
option (google.api.oauth_scopes) =
|
42
|
-
"https://www.googleapis.com/auth/cloud-platform,"
|
43
|
-
"https://www.googleapis.com/auth/cloud-platform.read-only,"
|
44
|
-
"https://www.googleapis.com/auth/service.management,"
|
45
|
-
"https://www.googleapis.com/auth/service.management.readonly";
|
46
|
-
|
47
|
-
// Lists managed services.
|
48
|
-
//
|
49
|
-
// Returns all public services. For authenticated users, also returns all
|
50
|
-
// services the calling user has "servicemanagement.services.get" permission
|
51
|
-
// for.
|
52
|
-
rpc ListServices(ListServicesRequest) returns (ListServicesResponse) {
|
53
|
-
option (google.api.http) = {
|
54
|
-
get: "/v1/services"
|
55
|
-
};
|
56
|
-
option (google.api.method_signature) = "producer_project_id,consumer_id";
|
57
|
-
}
|
58
|
-
|
59
|
-
// Gets a managed service. Authentication is required unless the service is
|
60
|
-
// public.
|
61
|
-
rpc GetService(GetServiceRequest) returns (ManagedService) {
|
62
|
-
option (google.api.http) = {
|
63
|
-
get: "/v1/services/{service_name}"
|
64
|
-
};
|
65
|
-
option (google.api.method_signature) = "service_name";
|
66
|
-
}
|
67
|
-
|
68
|
-
// Creates a new managed service.
|
69
|
-
//
|
70
|
-
// A managed service is immutable, and is subject to mandatory 30-day
|
71
|
-
// data retention. You cannot move a service or recreate it within 30 days
|
72
|
-
// after deletion.
|
73
|
-
//
|
74
|
-
// One producer project can own no more than 500 services. For security and
|
75
|
-
// reliability purposes, a production service should be hosted in a
|
76
|
-
// dedicated producer project.
|
77
|
-
//
|
78
|
-
// Operation<response: ManagedService>
|
79
|
-
rpc CreateService(CreateServiceRequest)
|
80
|
-
returns (google.longrunning.Operation) {
|
81
|
-
option (google.api.http) = {
|
82
|
-
post: "/v1/services"
|
83
|
-
body: "service"
|
84
|
-
};
|
85
|
-
option (google.api.method_signature) = "service";
|
86
|
-
option (google.longrunning.operation_info) = {
|
87
|
-
response_type: "google.api.servicemanagement.v1.ManagedService"
|
88
|
-
metadata_type: "google.api.servicemanagement.v1.OperationMetadata"
|
89
|
-
};
|
90
|
-
}
|
91
|
-
|
92
|
-
// Deletes a managed service. This method will change the service to the
|
93
|
-
// `Soft-Delete` state for 30 days. Within this period, service producers may
|
94
|
-
// call
|
95
|
-
// [UndeleteService][google.api.servicemanagement.v1.ServiceManager.UndeleteService]
|
96
|
-
// to restore the service. After 30 days, the service will be permanently
|
97
|
-
// deleted.
|
98
|
-
//
|
99
|
-
// Operation<response: google.protobuf.Empty>
|
100
|
-
rpc DeleteService(DeleteServiceRequest)
|
101
|
-
returns (google.longrunning.Operation) {
|
102
|
-
option (google.api.http) = {
|
103
|
-
delete: "/v1/services/{service_name}"
|
104
|
-
};
|
105
|
-
option (google.api.method_signature) = "service_name";
|
106
|
-
option (google.longrunning.operation_info) = {
|
107
|
-
response_type: "google.protobuf.Empty"
|
108
|
-
metadata_type: "google.api.servicemanagement.v1.OperationMetadata"
|
109
|
-
};
|
110
|
-
}
|
111
|
-
|
112
|
-
// Revives a previously deleted managed service. The method restores the
|
113
|
-
// service using the configuration at the time the service was deleted.
|
114
|
-
// The target service must exist and must have been deleted within the
|
115
|
-
// last 30 days.
|
116
|
-
//
|
117
|
-
// Operation<response: UndeleteServiceResponse>
|
118
|
-
rpc UndeleteService(UndeleteServiceRequest)
|
119
|
-
returns (google.longrunning.Operation) {
|
120
|
-
option (google.api.http) = {
|
121
|
-
post: "/v1/services/{service_name}:undelete"
|
122
|
-
};
|
123
|
-
option (google.api.method_signature) = "service_name";
|
124
|
-
option (google.longrunning.operation_info) = {
|
125
|
-
response_type: "google.api.servicemanagement.v1.UndeleteServiceResponse"
|
126
|
-
metadata_type: "google.api.servicemanagement.v1.OperationMetadata"
|
127
|
-
};
|
128
|
-
}
|
129
|
-
|
130
|
-
// Lists the history of the service configuration for a managed service,
|
131
|
-
// from the newest to the oldest.
|
132
|
-
rpc ListServiceConfigs(ListServiceConfigsRequest)
|
133
|
-
returns (ListServiceConfigsResponse) {
|
134
|
-
option (google.api.http) = {
|
135
|
-
get: "/v1/services/{service_name}/configs"
|
136
|
-
};
|
137
|
-
option (google.api.method_signature) = "service_name";
|
138
|
-
}
|
139
|
-
|
140
|
-
// Gets a service configuration (version) for a managed service.
|
141
|
-
rpc GetServiceConfig(GetServiceConfigRequest) returns (google.api.Service) {
|
142
|
-
option (google.api.http) = {
|
143
|
-
get: "/v1/services/{service_name}/configs/{config_id}"
|
144
|
-
additional_bindings { get: "/v1/services/{service_name}/config" }
|
145
|
-
};
|
146
|
-
option (google.api.method_signature) = "service_name,config_id,view";
|
147
|
-
}
|
148
|
-
|
149
|
-
// Creates a new service configuration (version) for a managed service.
|
150
|
-
// This method only stores the service configuration. To roll out the service
|
151
|
-
// configuration to backend systems please call
|
152
|
-
// [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout].
|
153
|
-
//
|
154
|
-
// Only the 100 most recent service configurations and ones referenced by
|
155
|
-
// existing rollouts are kept for each service. The rest will be deleted
|
156
|
-
// eventually.
|
157
|
-
rpc CreateServiceConfig(CreateServiceConfigRequest)
|
158
|
-
returns (google.api.Service) {
|
159
|
-
option (google.api.http) = {
|
160
|
-
post: "/v1/services/{service_name}/configs"
|
161
|
-
body: "service_config"
|
162
|
-
};
|
163
|
-
option (google.api.method_signature) = "service_name,service_config";
|
164
|
-
}
|
165
|
-
|
166
|
-
// Creates a new service configuration (version) for a managed service based
|
167
|
-
// on
|
168
|
-
// user-supplied configuration source files (for example: OpenAPI
|
169
|
-
// Specification). This method stores the source configurations as well as the
|
170
|
-
// generated service configuration. To rollout the service configuration to
|
171
|
-
// other services,
|
172
|
-
// please call
|
173
|
-
// [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout].
|
174
|
-
//
|
175
|
-
// Only the 100 most recent configuration sources and ones referenced by
|
176
|
-
// existing service configurtions are kept for each service. The rest will be
|
177
|
-
// deleted eventually.
|
178
|
-
//
|
179
|
-
// Operation<response: SubmitConfigSourceResponse>
|
180
|
-
rpc SubmitConfigSource(SubmitConfigSourceRequest)
|
181
|
-
returns (google.longrunning.Operation) {
|
182
|
-
option (google.api.http) = {
|
183
|
-
post: "/v1/services/{service_name}/configs:submit"
|
184
|
-
body: "*"
|
185
|
-
};
|
186
|
-
option (google.api.method_signature) =
|
187
|
-
"service_name,config_source,validate_only";
|
188
|
-
option (google.longrunning.operation_info) = {
|
189
|
-
response_type: "google.api.servicemanagement.v1.SubmitConfigSourceResponse"
|
190
|
-
metadata_type: "google.api.servicemanagement.v1.OperationMetadata"
|
191
|
-
};
|
192
|
-
}
|
193
|
-
|
194
|
-
// Lists the history of the service configuration rollouts for a managed
|
195
|
-
// service, from the newest to the oldest.
|
196
|
-
rpc ListServiceRollouts(ListServiceRolloutsRequest)
|
197
|
-
returns (ListServiceRolloutsResponse) {
|
198
|
-
option (google.api.http) = {
|
199
|
-
get: "/v1/services/{service_name}/rollouts"
|
200
|
-
};
|
201
|
-
option (google.api.method_signature) = "service_name,filter";
|
202
|
-
}
|
203
|
-
|
204
|
-
// Gets a service configuration
|
205
|
-
// [rollout][google.api.servicemanagement.v1.Rollout].
|
206
|
-
rpc GetServiceRollout(GetServiceRolloutRequest) returns (Rollout) {
|
207
|
-
option (google.api.http) = {
|
208
|
-
get: "/v1/services/{service_name}/rollouts/{rollout_id}"
|
209
|
-
};
|
210
|
-
option (google.api.method_signature) = "service_name,rollout_id";
|
211
|
-
}
|
212
|
-
|
213
|
-
// Creates a new service configuration rollout. Based on rollout, the
|
214
|
-
// Google Service Management will roll out the service configurations to
|
215
|
-
// different backend services. For example, the logging configuration will be
|
216
|
-
// pushed to Google Cloud Logging.
|
217
|
-
//
|
218
|
-
// Please note that any previous pending and running Rollouts and associated
|
219
|
-
// Operations will be automatically cancelled so that the latest Rollout will
|
220
|
-
// not be blocked by previous Rollouts.
|
221
|
-
//
|
222
|
-
// Only the 100 most recent (in any state) and the last 10 successful (if not
|
223
|
-
// already part of the set of 100 most recent) rollouts are kept for each
|
224
|
-
// service. The rest will be deleted eventually.
|
225
|
-
//
|
226
|
-
// Operation<response: Rollout>
|
227
|
-
rpc CreateServiceRollout(CreateServiceRolloutRequest)
|
228
|
-
returns (google.longrunning.Operation) {
|
229
|
-
option (google.api.http) = {
|
230
|
-
post: "/v1/services/{service_name}/rollouts"
|
231
|
-
body: "rollout"
|
232
|
-
};
|
233
|
-
option (google.api.method_signature) = "service_name,rollout";
|
234
|
-
option (google.longrunning.operation_info) = {
|
235
|
-
response_type: "google.api.servicemanagement.v1.Rollout"
|
236
|
-
metadata_type: "google.api.servicemanagement.v1.OperationMetadata"
|
237
|
-
};
|
238
|
-
}
|
239
|
-
|
240
|
-
// Generates and returns a report (errors, warnings and changes from
|
241
|
-
// existing configurations) associated with
|
242
|
-
// GenerateConfigReportRequest.new_value
|
243
|
-
//
|
244
|
-
// If GenerateConfigReportRequest.old_value is specified,
|
245
|
-
// GenerateConfigReportRequest will contain a single ChangeReport based on the
|
246
|
-
// comparison between GenerateConfigReportRequest.new_value and
|
247
|
-
// GenerateConfigReportRequest.old_value.
|
248
|
-
// If GenerateConfigReportRequest.old_value is not specified, this method
|
249
|
-
// will compare GenerateConfigReportRequest.new_value with the last pushed
|
250
|
-
// service configuration.
|
251
|
-
rpc GenerateConfigReport(GenerateConfigReportRequest)
|
252
|
-
returns (GenerateConfigReportResponse) {
|
253
|
-
option (google.api.http) = {
|
254
|
-
post: "/v1/services:generateConfigReport"
|
255
|
-
body: "*"
|
256
|
-
};
|
257
|
-
option (google.api.method_signature) = "new_config,old_config";
|
258
|
-
}
|
259
|
-
}
|
260
|
-
|
261
|
-
// Request message for `ListServices` method.
|
262
|
-
message ListServicesRequest {
|
263
|
-
// Include services produced by the specified project.
|
264
|
-
string producer_project_id = 1;
|
265
|
-
|
266
|
-
// The max number of items to include in the response list. Page size is 50
|
267
|
-
// if not specified. Maximum value is 500.
|
268
|
-
int32 page_size = 5;
|
269
|
-
|
270
|
-
// Token identifying which result to start with; returned by a previous list
|
271
|
-
// call.
|
272
|
-
string page_token = 6;
|
273
|
-
|
274
|
-
// Include services consumed by the specified consumer.
|
275
|
-
//
|
276
|
-
// The Google Service Management implementation accepts the following
|
277
|
-
// forms:
|
278
|
-
// - project:<project_id>
|
279
|
-
string consumer_id = 7 [deprecated = true];
|
280
|
-
}
|
281
|
-
|
282
|
-
// Response message for `ListServices` method.
|
283
|
-
message ListServicesResponse {
|
284
|
-
// The returned services will only have the name field set.
|
285
|
-
repeated ManagedService services = 1;
|
286
|
-
|
287
|
-
// Token that can be passed to `ListServices` to resume a paginated query.
|
288
|
-
string next_page_token = 2;
|
289
|
-
}
|
290
|
-
|
291
|
-
// Request message for `GetService` method.
|
292
|
-
message GetServiceRequest {
|
293
|
-
// Required. The name of the service. See the `ServiceManager` overview for
|
294
|
-
// naming requirements. For example: `example.googleapis.com`.
|
295
|
-
string service_name = 1 [(google.api.field_behavior) = REQUIRED];
|
296
|
-
}
|
297
|
-
|
298
|
-
// Request message for CreateService method.
|
299
|
-
message CreateServiceRequest {
|
300
|
-
// Required. Initial values for the service resource.
|
301
|
-
ManagedService service = 1 [(google.api.field_behavior) = REQUIRED];
|
302
|
-
}
|
303
|
-
|
304
|
-
// Request message for DeleteService method.
|
305
|
-
message DeleteServiceRequest {
|
306
|
-
// Required. The name of the service. See the
|
307
|
-
// [overview](https://cloud.google.com/service-management/overview) for naming
|
308
|
-
// requirements. For example: `example.googleapis.com`.
|
309
|
-
string service_name = 1 [(google.api.field_behavior) = REQUIRED];
|
310
|
-
}
|
311
|
-
|
312
|
-
// Request message for UndeleteService method.
|
313
|
-
message UndeleteServiceRequest {
|
314
|
-
// Required. The name of the service. See the
|
315
|
-
// [overview](https://cloud.google.com/service-management/overview) for naming
|
316
|
-
// requirements. For example: `example.googleapis.com`.
|
317
|
-
string service_name = 1 [(google.api.field_behavior) = REQUIRED];
|
318
|
-
}
|
319
|
-
|
320
|
-
// Response message for UndeleteService method.
|
321
|
-
message UndeleteServiceResponse {
|
322
|
-
// Revived service resource.
|
323
|
-
ManagedService service = 1;
|
324
|
-
}
|
325
|
-
|
326
|
-
// Request message for GetServiceConfig method.
|
327
|
-
message GetServiceConfigRequest {
|
328
|
-
enum ConfigView {
|
329
|
-
// Server response includes all fields except SourceInfo.
|
330
|
-
BASIC = 0;
|
331
|
-
|
332
|
-
// Server response includes all fields including SourceInfo.
|
333
|
-
// SourceFiles are of type 'google.api.servicemanagement.v1.ConfigFile'
|
334
|
-
// and are only available for configs created using the
|
335
|
-
// SubmitConfigSource method.
|
336
|
-
FULL = 1;
|
337
|
-
}
|
338
|
-
|
339
|
-
// Required. The name of the service. See the
|
340
|
-
// [overview](https://cloud.google.com/service-management/overview) for naming
|
341
|
-
// requirements. For example: `example.googleapis.com`.
|
342
|
-
string service_name = 1 [(google.api.field_behavior) = REQUIRED];
|
343
|
-
|
344
|
-
// Required. The id of the service configuration resource.
|
345
|
-
//
|
346
|
-
// This field must be specified for the server to return all fields, including
|
347
|
-
// `SourceInfo`.
|
348
|
-
string config_id = 2 [(google.api.field_behavior) = REQUIRED];
|
349
|
-
|
350
|
-
// Specifies which parts of the Service Config should be returned in the
|
351
|
-
// response.
|
352
|
-
ConfigView view = 3;
|
353
|
-
}
|
354
|
-
|
355
|
-
// Request message for ListServiceConfigs method.
|
356
|
-
message ListServiceConfigsRequest {
|
357
|
-
// Required. The name of the service. See the
|
358
|
-
// [overview](https://cloud.google.com/service-management/overview) for naming
|
359
|
-
// requirements. For example: `example.googleapis.com`.
|
360
|
-
string service_name = 1 [(google.api.field_behavior) = REQUIRED];
|
361
|
-
|
362
|
-
// The token of the page to retrieve.
|
363
|
-
string page_token = 2;
|
364
|
-
|
365
|
-
// The max number of items to include in the response list. Page size is 50
|
366
|
-
// if not specified. Maximum value is 100.
|
367
|
-
int32 page_size = 3;
|
368
|
-
}
|
369
|
-
|
370
|
-
// Response message for ListServiceConfigs method.
|
371
|
-
message ListServiceConfigsResponse {
|
372
|
-
// The list of service configuration resources.
|
373
|
-
repeated google.api.Service service_configs = 1;
|
374
|
-
|
375
|
-
// The token of the next page of results.
|
376
|
-
string next_page_token = 2;
|
377
|
-
}
|
378
|
-
|
379
|
-
// Request message for CreateServiceConfig method.
|
380
|
-
message CreateServiceConfigRequest {
|
381
|
-
// Required. The name of the service. See the
|
382
|
-
// [overview](https://cloud.google.com/service-management/overview) for naming
|
383
|
-
// requirements. For example: `example.googleapis.com`.
|
384
|
-
string service_name = 1 [(google.api.field_behavior) = REQUIRED];
|
385
|
-
|
386
|
-
// Required. The service configuration resource.
|
387
|
-
google.api.Service service_config = 2
|
388
|
-
[(google.api.field_behavior) = REQUIRED];
|
389
|
-
}
|
390
|
-
|
391
|
-
// Request message for SubmitConfigSource method.
|
392
|
-
message SubmitConfigSourceRequest {
|
393
|
-
// Required. The name of the service. See the
|
394
|
-
// [overview](https://cloud.google.com/service-management/overview) for naming
|
395
|
-
// requirements. For example: `example.googleapis.com`.
|
396
|
-
string service_name = 1 [(google.api.field_behavior) = REQUIRED];
|
397
|
-
|
398
|
-
// Required. The source configuration for the service.
|
399
|
-
ConfigSource config_source = 2 [(google.api.field_behavior) = REQUIRED];
|
400
|
-
|
401
|
-
// Optional. If set, this will result in the generation of a
|
402
|
-
// `google.api.Service` configuration based on the `ConfigSource` provided,
|
403
|
-
// but the generated config and the sources will NOT be persisted.
|
404
|
-
bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL];
|
405
|
-
}
|
406
|
-
|
407
|
-
// Response message for SubmitConfigSource method.
|
408
|
-
message SubmitConfigSourceResponse {
|
409
|
-
// The generated service configuration.
|
410
|
-
google.api.Service service_config = 1;
|
411
|
-
}
|
412
|
-
|
413
|
-
//
|
414
|
-
// Request message for 'CreateServiceRollout'
|
415
|
-
message CreateServiceRolloutRequest {
|
416
|
-
// Required. The name of the service. See the
|
417
|
-
// [overview](https://cloud.google.com/service-management/overview) for naming
|
418
|
-
// requirements. For example: `example.googleapis.com`.
|
419
|
-
string service_name = 1 [(google.api.field_behavior) = REQUIRED];
|
420
|
-
|
421
|
-
// Required. The rollout resource. The `service_name` field is output only.
|
422
|
-
Rollout rollout = 2 [(google.api.field_behavior) = REQUIRED];
|
423
|
-
}
|
424
|
-
|
425
|
-
// Request message for 'ListServiceRollouts'
|
426
|
-
message ListServiceRolloutsRequest {
|
427
|
-
// Required. The name of the service. See the
|
428
|
-
// [overview](https://cloud.google.com/service-management/overview) for naming
|
429
|
-
// requirements. For example: `example.googleapis.com`.
|
430
|
-
string service_name = 1 [(google.api.field_behavior) = REQUIRED];
|
431
|
-
|
432
|
-
// The token of the page to retrieve.
|
433
|
-
string page_token = 2;
|
434
|
-
|
435
|
-
// The max number of items to include in the response list. Page size is 50
|
436
|
-
// if not specified. Maximum value is 100.
|
437
|
-
int32 page_size = 3;
|
438
|
-
|
439
|
-
// Required. Use `filter` to return subset of rollouts.
|
440
|
-
// The following filters are supported:
|
441
|
-
//
|
442
|
-
// -- By [status]
|
443
|
-
// [google.api.servicemanagement.v1.Rollout.RolloutStatus]. For example,
|
444
|
-
// `filter='status=SUCCESS'`
|
445
|
-
//
|
446
|
-
// -- By [strategy]
|
447
|
-
// [google.api.servicemanagement.v1.Rollout.strategy]. For example,
|
448
|
-
// `filter='strategy=TrafficPercentStrategy'`
|
449
|
-
string filter = 4 [(google.api.field_behavior) = REQUIRED];
|
450
|
-
}
|
451
|
-
|
452
|
-
// Response message for ListServiceRollouts method.
|
453
|
-
message ListServiceRolloutsResponse {
|
454
|
-
// The list of rollout resources.
|
455
|
-
repeated Rollout rollouts = 1;
|
456
|
-
|
457
|
-
// The token of the next page of results.
|
458
|
-
string next_page_token = 2;
|
459
|
-
}
|
460
|
-
|
461
|
-
// Request message for GetServiceRollout method.
|
462
|
-
message GetServiceRolloutRequest {
|
463
|
-
// Required. The name of the service. See the
|
464
|
-
// [overview](https://cloud.google.com/service-management/overview) for naming
|
465
|
-
// requirements. For example: `example.googleapis.com`.
|
466
|
-
string service_name = 1 [(google.api.field_behavior) = REQUIRED];
|
467
|
-
|
468
|
-
// Required. The id of the rollout resource.
|
469
|
-
string rollout_id = 2 [(google.api.field_behavior) = REQUIRED];
|
470
|
-
}
|
471
|
-
|
472
|
-
// Operation payload for EnableService method.
|
473
|
-
message EnableServiceResponse {}
|
474
|
-
|
475
|
-
// Request message for GenerateConfigReport method.
|
476
|
-
message GenerateConfigReportRequest {
|
477
|
-
// Required. Service configuration for which we want to generate the report.
|
478
|
-
// For this version of API, the supported types are
|
479
|
-
// [google.api.servicemanagement.v1.ConfigRef][google.api.servicemanagement.v1.ConfigRef],
|
480
|
-
// [google.api.servicemanagement.v1.ConfigSource][google.api.servicemanagement.v1.ConfigSource],
|
481
|
-
// and [google.api.Service][google.api.Service]
|
482
|
-
google.protobuf.Any new_config = 1 [(google.api.field_behavior) = REQUIRED];
|
483
|
-
|
484
|
-
// Optional. Service configuration against which the comparison will be done.
|
485
|
-
// For this version of API, the supported types are
|
486
|
-
// [google.api.servicemanagement.v1.ConfigRef][google.api.servicemanagement.v1.ConfigRef],
|
487
|
-
// [google.api.servicemanagement.v1.ConfigSource][google.api.servicemanagement.v1.ConfigSource],
|
488
|
-
// and [google.api.Service][google.api.Service]
|
489
|
-
google.protobuf.Any old_config = 2 [(google.api.field_behavior) = OPTIONAL];
|
490
|
-
}
|
491
|
-
|
492
|
-
// Response message for GenerateConfigReport method.
|
493
|
-
message GenerateConfigReportResponse {
|
494
|
-
// Name of the service this report belongs to.
|
495
|
-
string service_name = 1;
|
496
|
-
|
497
|
-
// ID of the service configuration this report belongs to.
|
498
|
-
string id = 2;
|
499
|
-
|
500
|
-
// list of ChangeReport, each corresponding to comparison between two
|
501
|
-
// service configurations.
|
502
|
-
repeated ChangeReport change_reports = 3;
|
503
|
-
|
504
|
-
// Errors / Linter warnings associated with the service definition this
|
505
|
-
// report
|
506
|
-
// belongs to.
|
507
|
-
repeated Diagnostic diagnostics = 4;
|
508
|
-
}
|
@@ -1,130 +0,0 @@
|
|
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/auth.proto";
|
20
|
-
import "google/api/documentation.proto";
|
21
|
-
import "google/api/endpoint.proto";
|
22
|
-
import "google/api/monitored_resource.proto";
|
23
|
-
import "google/api/monitoring.proto";
|
24
|
-
import "google/api/quota.proto";
|
25
|
-
import "google/api/resource.proto";
|
26
|
-
import "google/api/usage.proto";
|
27
|
-
import "google/protobuf/api.proto";
|
28
|
-
|
29
|
-
option csharp_namespace = "Google.Cloud.ServiceUsage.V1";
|
30
|
-
option go_package = "cloud.google.com/go/serviceusage/apiv1/serviceusagepb;serviceusagepb";
|
31
|
-
option java_multiple_files = true;
|
32
|
-
option java_outer_classname = "ResourcesProto";
|
33
|
-
option java_package = "com.google.api.serviceusage.v1";
|
34
|
-
option php_namespace = "Google\\Cloud\\ServiceUsage\\V1";
|
35
|
-
option ruby_package = "Google::Cloud::ServiceUsage::V1";
|
36
|
-
|
37
|
-
// A service that is available for use by the consumer.
|
38
|
-
message Service {
|
39
|
-
option (google.api.resource) = {
|
40
|
-
type: "serviceusage.googleapis.com/Service"
|
41
|
-
pattern: "projects/{project}/services/{service}"
|
42
|
-
pattern: "folders/{folder}/services/{service}"
|
43
|
-
pattern: "organizations/{organization}/services/{service}"
|
44
|
-
};
|
45
|
-
|
46
|
-
// The resource name of the consumer and service.
|
47
|
-
//
|
48
|
-
// A valid name would be:
|
49
|
-
// - projects/123/services/serviceusage.googleapis.com
|
50
|
-
string name = 1;
|
51
|
-
|
52
|
-
// The resource name of the consumer.
|
53
|
-
//
|
54
|
-
// A valid name would be:
|
55
|
-
// - projects/123
|
56
|
-
string parent = 5;
|
57
|
-
|
58
|
-
// The service configuration of the available service.
|
59
|
-
// Some fields may be filtered out of the configuration in responses to
|
60
|
-
// the `ListServices` method. These fields are present only in responses to
|
61
|
-
// the `GetService` method.
|
62
|
-
ServiceConfig config = 2;
|
63
|
-
|
64
|
-
// Whether or not the service has been enabled for use by the consumer.
|
65
|
-
State state = 4;
|
66
|
-
}
|
67
|
-
|
68
|
-
// Whether or not a service has been enabled for use by a consumer.
|
69
|
-
enum State {
|
70
|
-
// The default value, which indicates that the enabled state of the service
|
71
|
-
// is unspecified or not meaningful. Currently, all consumers other than
|
72
|
-
// projects (such as folders and organizations) are always in this state.
|
73
|
-
STATE_UNSPECIFIED = 0;
|
74
|
-
|
75
|
-
// The service cannot be used by this consumer. It has either been explicitly
|
76
|
-
// disabled, or has never been enabled.
|
77
|
-
DISABLED = 1;
|
78
|
-
|
79
|
-
// The service has been explicitly enabled for use by this consumer.
|
80
|
-
ENABLED = 2;
|
81
|
-
}
|
82
|
-
|
83
|
-
// The configuration of the service.
|
84
|
-
message ServiceConfig {
|
85
|
-
// The DNS address at which this service is available.
|
86
|
-
//
|
87
|
-
// An example DNS address would be:
|
88
|
-
// `calendar.googleapis.com`.
|
89
|
-
string name = 1;
|
90
|
-
|
91
|
-
// The product title for this service.
|
92
|
-
string title = 2;
|
93
|
-
|
94
|
-
// A list of API interfaces exported by this service. Contains only the names,
|
95
|
-
// versions, and method names of the interfaces.
|
96
|
-
repeated google.protobuf.Api apis = 3;
|
97
|
-
|
98
|
-
// Additional API documentation. Contains only the summary and the
|
99
|
-
// documentation URL.
|
100
|
-
google.api.Documentation documentation = 6;
|
101
|
-
|
102
|
-
// Quota configuration.
|
103
|
-
google.api.Quota quota = 10;
|
104
|
-
|
105
|
-
// Auth configuration. Contains only the OAuth rules.
|
106
|
-
google.api.Authentication authentication = 11;
|
107
|
-
|
108
|
-
// Configuration controlling usage of this service.
|
109
|
-
google.api.Usage usage = 15;
|
110
|
-
|
111
|
-
// Configuration for network endpoints. Contains only the names and aliases
|
112
|
-
// of the endpoints.
|
113
|
-
repeated google.api.Endpoint endpoints = 18;
|
114
|
-
|
115
|
-
// Defines the monitored resources used by this service. This is required
|
116
|
-
// by the [Service.monitoring][google.api.Service.monitoring] and
|
117
|
-
// [Service.logging][google.api.Service.logging] configurations.
|
118
|
-
repeated google.api.MonitoredResourceDescriptor monitored_resources = 25;
|
119
|
-
|
120
|
-
// Monitoring configuration.
|
121
|
-
// This should not include the 'producer_destinations' field.
|
122
|
-
google.api.Monitoring monitoring = 28;
|
123
|
-
}
|
124
|
-
|
125
|
-
// The operation metadata returned for the batchend services operation.
|
126
|
-
message OperationMetadata {
|
127
|
-
// The full name of the resources that this operation is directly
|
128
|
-
// associated with.
|
129
|
-
repeated string resource_names = 2;
|
130
|
-
}
|