123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280 |
- syntax = "proto3";
- package google.cloud.gkehub.v1beta;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/cloud/gkehub/v1beta/feature.proto";
- import "google/longrunning/operations.proto";
- import "google/protobuf/field_mask.proto";
- import "google/protobuf/timestamp.proto";
- option csharp_namespace = "Google.Cloud.GkeHub.V1Beta";
- option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/v1beta;gkehub";
- option java_multiple_files = true;
- option java_outer_classname = "ServiceProto";
- option java_package = "com.google.cloud.gkehub.v1beta";
- option php_namespace = "Google\\Cloud\\GkeHub\\V1beta";
- option ruby_package = "Google::Cloud::GkeHub::V1beta";
- service GkeHub {
- option (google.api.default_host) = "gkehub.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
-
- rpc ListFeatures(ListFeaturesRequest) returns (ListFeaturesResponse) {
- option (google.api.http) = {
- get: "/v1beta/{parent=projects/*/locations/*}/features"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc GetFeature(GetFeatureRequest) returns (Feature) {
- option (google.api.http) = {
- get: "/v1beta/{name=projects/*/locations/*/features/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc CreateFeature(CreateFeatureRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1beta/{parent=projects/*/locations/*}/features"
- body: "resource"
- };
- option (google.api.method_signature) = "parent,resource,feature_id";
- option (google.longrunning.operation_info) = {
- response_type: "Feature"
- metadata_type: "OperationMetadata"
- };
- }
-
- rpc DeleteFeature(DeleteFeatureRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v1beta/{name=projects/*/locations/*/features/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "google.protobuf.Empty"
- metadata_type: "OperationMetadata"
- };
- }
-
- rpc UpdateFeature(UpdateFeatureRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- patch: "/v1beta/{name=projects/*/locations/*/features/*}"
- body: "resource"
- };
- option (google.api.method_signature) = "name,resource,update_mask";
- option (google.longrunning.operation_info) = {
- response_type: "Feature"
- metadata_type: "OperationMetadata"
- };
- }
- }
- message ListFeaturesRequest {
-
-
- string parent = 1;
-
-
-
- int32 page_size = 2;
-
-
-
- string page_token = 3;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- string filter = 4;
-
-
- string order_by = 5;
- }
- message ListFeaturesResponse {
-
- repeated Feature resources = 1;
-
-
-
- string next_page_token = 2;
- }
- message GetFeatureRequest {
-
-
- string name = 1;
- }
- message CreateFeatureRequest {
-
-
- string parent = 1;
-
- string feature_id = 2;
-
- Feature resource = 3;
-
-
-
-
-
-
-
-
-
-
-
-
-
- string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
- }
- message DeleteFeatureRequest {
-
-
- string name = 1;
-
-
-
- bool force = 2;
-
-
-
-
-
-
-
-
-
-
-
-
-
- string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
- }
- message UpdateFeatureRequest {
-
-
- string name = 1;
-
- google.protobuf.FieldMask update_mask = 2;
-
-
-
-
-
-
-
-
- Feature resource = 3;
-
-
-
-
-
-
-
-
-
-
-
-
-
- string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
- }
- message OperationMetadata {
-
- google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string status_detail = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
- bool cancel_requested = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
|