user_capabilities.proto 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Copyright 2022 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. syntax = "proto3";
  15. package google.apps.drive.labels.v2beta;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. option go_package = "google.golang.org/genproto/googleapis/apps/drive/labels/v2beta;labels";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "UserCapabilitiesProto";
  21. option java_package = "com.google.apps.drive.labels.v2beta";
  22. option objc_class_prefix = "DLBL";
  23. // The capabilities of a user.
  24. message UserCapabilities {
  25. option (google.api.resource) = {
  26. type: "drivelabels.googleapis.com/UserCapabilities"
  27. pattern: "users/{id}/capabilities"
  28. };
  29. // Output only. Resource name for the user capabilities.
  30. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  31. // Output only. Whether the user is allowed access to the label manager.
  32. bool can_access_label_manager = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  33. // Output only. Whether the user is an administrator for the shared labels
  34. // feature.
  35. bool can_administrate_labels = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  36. // Output only. Whether the user is allowed to create new shared labels.
  37. bool can_create_shared_labels = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  38. // Output only. Whether the user is allowed to create new admin labels.
  39. bool can_create_admin_labels = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  40. }