code: func ShowTenant(ctx context.Context, config tenantConfig, options ...configuration.HTTPClientOption) (*tenant.TenantSingle, error) {
  	c, err := createClient(ctx, config, options...)
  	if err != nil {
  		return nil, err
  	}
  	res, err := c.ShowTenant(goasupport.ForwardContextRequestID(ctx), tenant.ShowTenantPath())
  	if err != nil {
  		return nil, err
  	}
  	defer rest.CloseResponse(res)
  	switch res.StatusCode {
  	case http.StatusOK:
  		tenant, err := c.DecodeTenantSingle(res)
  		if err != nil {
  			return nil, errors.NewInternalError(ctx, err)
  		}
  		return tenant, nil
  	case http.StatusNotFound:
  		jsonErr, err := c.DecodeJSONAPIErrors(res)
  		if err == nil {
  			if len(jsonErr.Errors) > 0 {
  				log.Error(ctx, map[string]interface{}{
  					"error_msg": jsonErr.Errors[0].Detail,
  				}, "failed to retrieve tenant")
  				return nil, errors.NewNotFoundError("tenants", *jsonErr.Errors[0].ID)
  			}
  		} else {
  			log.Error(ctx, map[string]interface{}{"error_msg": err}, "failed to parse JSON-API error response")
  		}
  
  	}
  	return nil, errors.NewInternalError(ctx, fmt.Errorf("Unknown response: '%v' (%d)", res.Status, res.StatusCode))
  }
docs: // ShowTenant fetches the current tenant state.