endpointsapis.yaml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. type: google.api.Service
  2. config_version: 3
  3. name: endpointsapis.appspot.com
  4. title: Endpoints APIs
  5. producer_project_id: endpointsapis
  6. apis:
  7. - name: google.example.endpointsapis.v1.Workspaces
  8. control:
  9. environment: servicecontrol.googleapis.com
  10. resources:
  11. - type: endpointsapis.appspot.com/Workspace
  12. plural: workspaces
  13. singular: workspace
  14. name_descriptor:
  15. - pattern: projects/{project}/locations/{location}/workspaces/{workspace}
  16. parent_type: cloudresourcemanager.googleapis.com/Project
  17. parent_name_extractor: projects/{project}
  18. iam:
  19. launch_stage: ALPHA
  20. resources:
  21. - type: endpointsapis.appspot.com/Workspace
  22. internal:
  23. # This is the internal resource 'type' in the IAM service file in the format of
  24. # "<servicename>_<resourceplural>", and the 'PolicyName.type' must use this value when
  25. # making CheckPolicy calls.
  26. name_for_resource: endpointsapis_workspaces
  27. permissions:
  28. - name: endpointsapis.appspot.com/workspaces.get
  29. display_name: Get workspaces
  30. type: DATA_READ
  31. scope: USER_SCOPE
  32. - name: endpointsapis.appspot.com/workspaces.list
  33. display_name: List all workspaces under a project
  34. type: DATA_READ
  35. scope: USER_SCOPE
  36. parent_only: true
  37. - name: endpointsapis.appspot.com/workspaces.create
  38. display_name: Create new workspaces
  39. type: DATA_WRITE
  40. scope: ADMIN_SCOPE
  41. parent_only: true
  42. - name: endpointsapis.appspot.com/workspaces.update
  43. display_name: Update existing workspaces
  44. type: DATA_WRITE
  45. scope: ADMIN_SCOPE
  46. - name: endpointsapis.appspot.com/workspaces.delete
  47. display_name: Delete workspaces
  48. type: DATA_WRITE
  49. scope: ADMIN_SCOPE
  50. roles:
  51. # Viewer role: only includes get/list permissions
  52. - name: endpointsapis.appspot.com/viewer
  53. display_name: Workspace Viewer
  54. description: This role can list and view all workspaces.
  55. permissions:
  56. # These are recommended for all roles that could be granted to a user at or above the
  57. # project level
  58. - cloudresourcemanager.googleapis.com/projects.get
  59. - cloudresourcemanager.googleapis.com/projects.list
  60. # Additional permissions for read access
  61. - endpointsapis.appspot.com/workspaces.get
  62. - endpointsapis.appspot.com/workspaces.list
  63. # Editor role: Includes all permission from viewer role, and workspaces edit permissions
  64. - name: endpointsapis.appspot.com/editor
  65. display_name: Workspace Editor
  66. description: This role can list, view, and update all workspaces.
  67. permissions:
  68. # These are recommended for all roles that could be granted to a user at or above the
  69. # project level
  70. - cloudresourcemanager.googleapis.com/projects.get
  71. - cloudresourcemanager.googleapis.com/projects.list
  72. # Viewer permissions + additional edit permissions
  73. - endpointsapis.appspot.com/workspaces.get
  74. - endpointsapis.appspot.com/workspaces.list
  75. - endpointsapis.appspot.com/workspaces.create
  76. - endpointsapis.appspot.com/workspaces.update
  77. - endpointsapis.appspot.com/workspaces.delete
  78. # This setting means the service will use Service Control API v2 for admission control.
  79. reader: group:servicecontrol
  80. # This setting is **unused** for services using Service Control API v2 for admission control.
  81. environment: PROD