Commit 520434e9 authored by Diego Molteni's avatar Diego Molteni
Browse files

fix: 'master' into slb/dm3/silent-errors

parent c54c9c4e
Pipeline #76289 passed with stages
in 14 minutes and 22 seconds
...@@ -855,4 +855,3 @@ The following software have components provided under the terms of this license: ...@@ -855,4 +855,3 @@ The following software have components provided under the terms of this license:
- querystring (from https://www.npmjs.com/package/querystring) - querystring (from https://www.npmjs.com/package/querystring)
- sax (from https://www.npmjs.com/package/sax) - sax (from https://www.npmjs.com/package/sax)
...@@ -1287,12 +1287,12 @@ paths: ...@@ -1287,12 +1287,12 @@ paths:
/tenant/{tenantid}: /tenant/{tenantid}:
post: post:
summary: "Register a seismic-dms tenant." summary: "Register a seismic-dms tenant."
description: "<ul><li>Register a seismic-dms tenant in a data partition.</li><li>Required roles: seistore.system.admin</li></ul>" description: "<ul><li>Register a data partition in seismic-dms.</li><li>Required roles: users.datalake.admin</li></ul>"
operationId: tenant-create operationId: tenant-create
tags: tags:
- Tenant - Tenant
parameters: parameters:
- description: "Name of the tenant." - description: "Name of the tenant. It should match the name of the data partition."
in: path in: path
name: tenantid name: tenantid
type: string type: string
...@@ -2124,36 +2124,43 @@ definitions: ...@@ -2124,36 +2124,43 @@ definitions:
# OK # OK
TenantCreateBody: TenantCreateBody:
required: ["gcpid", "des", "default_acl"] required: ["gcpid", "esd", "default_acls"]
properties: properties:
gcpid: gcpid:
type: string type: string
description: Google cloud project id associated with the tenant. description: Google cloud project id associated with the tenant. For other providers, name of the data partition.
des: esd:
type: string type: string
description: Entitlements group sub domain. For instance, if the entitlements group is group-a.slb.env.cloud.com, the esd value is slb.env.cloud.com. description: Entitlements group Sub Domain (ESD). For instance, if the entitlements group is users.datalake.viewers@{datapartition}.{domain}.com, the esd value is {datapartition}.{domain}.com. It must start with the name of the data partition.
default_acl: default_acls:
type: string type: string
description: Entitlements authorization group to manage tenant administrators. description: Entitlements authorization group to manage tenant administrators.
example: example:
gcpid: "google_project_id" gcpid: "datapartition"
esd: "slb.env.cloud.slb-ds.com" esd: "{datapartition}.{domain}.com"
default_acl: "authgroup@data_partition.com" default_acls: "users.datalake.admins@{datapartition}.{domain}.com"
# OK # OK
Tenant: Tenant:
required: ["name", "esd", "gcpid"] required: ["name", "esd", "gcpid", "default_acls"]
properties: properties:
name: name:
type: string type: string
description: Name of the tenant.
esd: esd:
type: string type: string
description: Entitlements group Sub Domain (ESD). For instance, if the entitlements group is users.datalake.viewers@{datapartition}.{domain}.com, the esd value is {datapartition}.{domain}.com. It has to start with the name of the data partition.
gcpid: gcpid:
type: string type: string
description: Google cloud project id associated with the tenant. For other providers, name of the data partition.
default_acls:
type: string
description: Entitlements authorization group to manage tenant administrators.
example: example:
name: "tnx01" name: "datapartition"
esd: "slb.env.cloud.slb-ds.com" esd: "{datapartition}.{domain}.com"
gcpid: "google_project_id" gcpid: "datapartition"
default_acls: "users.datalake.admins@{datapartition}.{domain}.com"
# OK # OK
UserAddRequest: UserAddRequest:
...@@ -2245,4 +2252,4 @@ securityDefinitions: ...@@ -2245,4 +2252,4 @@ securityDefinitions:
bearer: bearer:
type: apiKey type: apiKey
name: Authorization name: Authorization
in: header in: header
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment