mirror of
https://github.com/openziti/zrok.git
synced 2025-08-09 08:05:04 +02:00
description for access request (frontend) (#834)
This commit is contained in:
@ -294,6 +294,9 @@ swagger:model AccessBody
|
|||||||
*/
|
*/
|
||||||
type AccessBody struct {
|
type AccessBody struct {
|
||||||
|
|
||||||
|
// description
|
||||||
|
Description string `json:"description,omitempty"`
|
||||||
|
|
||||||
// env z Id
|
// env z Id
|
||||||
EnvZID string `json:"envZId,omitempty"`
|
EnvZID string `json:"envZId,omitempty"`
|
||||||
|
|
||||||
|
@ -20,6 +20,9 @@ type Frontend struct {
|
|||||||
// created at
|
// created at
|
||||||
CreatedAt int64 `json:"createdAt,omitempty"`
|
CreatedAt int64 `json:"createdAt,omitempty"`
|
||||||
|
|
||||||
|
// description
|
||||||
|
Description string `json:"description,omitempty"`
|
||||||
|
|
||||||
// fe token
|
// fe token
|
||||||
FeToken string `json:"feToken,omitempty"`
|
FeToken string `json:"feToken,omitempty"`
|
||||||
|
|
||||||
|
@ -52,6 +52,9 @@ func init() {
|
|||||||
"in": "body",
|
"in": "body",
|
||||||
"schema": {
|
"schema": {
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"description": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"envZId": {
|
"envZId": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
@ -1952,6 +1955,9 @@ func init() {
|
|||||||
"createdAt": {
|
"createdAt": {
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
|
"description": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"feToken": {
|
"feToken": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
@ -2249,6 +2255,9 @@ func init() {
|
|||||||
"in": "body",
|
"in": "body",
|
||||||
"schema": {
|
"schema": {
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"description": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"envZId": {
|
"envZId": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
@ -4154,6 +4163,9 @@ func init() {
|
|||||||
"createdAt": {
|
"createdAt": {
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
|
"description": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"feToken": {
|
"feToken": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
@ -78,6 +78,9 @@ func (o *Access) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
|
|||||||
// swagger:model AccessBody
|
// swagger:model AccessBody
|
||||||
type AccessBody struct {
|
type AccessBody struct {
|
||||||
|
|
||||||
|
// description
|
||||||
|
Description string `json:"description,omitempty"`
|
||||||
|
|
||||||
// env z Id
|
// env z Id
|
||||||
EnvZID string `json:"envZId,omitempty"`
|
EnvZID string `json:"envZId,omitempty"`
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@ import { RequestFile } from './models';
|
|||||||
export class AccessRequest {
|
export class AccessRequest {
|
||||||
'envZId'?: string;
|
'envZId'?: string;
|
||||||
'shareToken'?: string;
|
'shareToken'?: string;
|
||||||
|
'description'?: string;
|
||||||
|
|
||||||
static discriminator: string | undefined = undefined;
|
static discriminator: string | undefined = undefined;
|
||||||
|
|
||||||
@ -28,6 +29,11 @@ export class AccessRequest {
|
|||||||
"name": "shareToken",
|
"name": "shareToken",
|
||||||
"baseName": "shareToken",
|
"baseName": "shareToken",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "description",
|
||||||
|
"baseName": "description",
|
||||||
|
"type": "string"
|
||||||
} ];
|
} ];
|
||||||
|
|
||||||
static getAttributeTypeMap() {
|
static getAttributeTypeMap() {
|
||||||
|
@ -16,6 +16,7 @@ export class Frontend {
|
|||||||
'id'?: number;
|
'id'?: number;
|
||||||
'feToken'?: string;
|
'feToken'?: string;
|
||||||
'shareToken'?: string;
|
'shareToken'?: string;
|
||||||
|
'description'?: string;
|
||||||
'zId'?: string;
|
'zId'?: string;
|
||||||
'createdAt'?: number;
|
'createdAt'?: number;
|
||||||
'updatedAt'?: number;
|
'updatedAt'?: number;
|
||||||
@ -38,6 +39,11 @@ export class Frontend {
|
|||||||
"baseName": "shareToken",
|
"baseName": "shareToken",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "description",
|
||||||
|
"baseName": "description",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "zId",
|
"name": "zId",
|
||||||
"baseName": "zId",
|
"baseName": "zId",
|
||||||
|
@ -5,6 +5,7 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**env_zid** | **str** | | [optional]
|
**env_zid** | **str** | | [optional]
|
||||||
**share_token** | **str** | | [optional]
|
**share_token** | **str** | | [optional]
|
||||||
|
**description** | **str** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
|||||||
**id** | **int** | | [optional]
|
**id** | **int** | | [optional]
|
||||||
**fe_token** | **str** | | [optional]
|
**fe_token** | **str** | | [optional]
|
||||||
**share_token** | **str** | | [optional]
|
**share_token** | **str** | | [optional]
|
||||||
|
**description** | **str** | | [optional]
|
||||||
**z_id** | **str** | | [optional]
|
**z_id** | **str** | | [optional]
|
||||||
**created_at** | **int** | | [optional]
|
**created_at** | **int** | | [optional]
|
||||||
**updated_at** | **int** | | [optional]
|
**updated_at** | **int** | | [optional]
|
||||||
|
@ -29,23 +29,28 @@ class AccessBody(object):
|
|||||||
"""
|
"""
|
||||||
swagger_types = {
|
swagger_types = {
|
||||||
'env_zid': 'str',
|
'env_zid': 'str',
|
||||||
'share_token': 'str'
|
'share_token': 'str',
|
||||||
|
'description': 'str'
|
||||||
}
|
}
|
||||||
|
|
||||||
attribute_map = {
|
attribute_map = {
|
||||||
'env_zid': 'envZId',
|
'env_zid': 'envZId',
|
||||||
'share_token': 'shareToken'
|
'share_token': 'shareToken',
|
||||||
|
'description': 'description'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, env_zid=None, share_token=None): # noqa: E501
|
def __init__(self, env_zid=None, share_token=None, description=None): # noqa: E501
|
||||||
"""AccessBody - a model defined in Swagger""" # noqa: E501
|
"""AccessBody - a model defined in Swagger""" # noqa: E501
|
||||||
self._env_zid = None
|
self._env_zid = None
|
||||||
self._share_token = None
|
self._share_token = None
|
||||||
|
self._description = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
if env_zid is not None:
|
if env_zid is not None:
|
||||||
self.env_zid = env_zid
|
self.env_zid = env_zid
|
||||||
if share_token is not None:
|
if share_token is not None:
|
||||||
self.share_token = share_token
|
self.share_token = share_token
|
||||||
|
if description is not None:
|
||||||
|
self.description = description
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def env_zid(self):
|
def env_zid(self):
|
||||||
@ -89,6 +94,27 @@ class AccessBody(object):
|
|||||||
|
|
||||||
self._share_token = share_token
|
self._share_token = share_token
|
||||||
|
|
||||||
|
@property
|
||||||
|
def description(self):
|
||||||
|
"""Gets the description of this AccessBody. # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
:return: The description of this AccessBody. # noqa: E501
|
||||||
|
:rtype: str
|
||||||
|
"""
|
||||||
|
return self._description
|
||||||
|
|
||||||
|
@description.setter
|
||||||
|
def description(self, description):
|
||||||
|
"""Sets the description of this AccessBody.
|
||||||
|
|
||||||
|
|
||||||
|
:param description: The description of this AccessBody. # noqa: E501
|
||||||
|
:type: str
|
||||||
|
"""
|
||||||
|
|
||||||
|
self._description = description
|
||||||
|
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
@ -31,6 +31,7 @@ class Frontend(object):
|
|||||||
'id': 'int',
|
'id': 'int',
|
||||||
'fe_token': 'str',
|
'fe_token': 'str',
|
||||||
'share_token': 'str',
|
'share_token': 'str',
|
||||||
|
'description': 'str',
|
||||||
'z_id': 'str',
|
'z_id': 'str',
|
||||||
'created_at': 'int',
|
'created_at': 'int',
|
||||||
'updated_at': 'int'
|
'updated_at': 'int'
|
||||||
@ -40,16 +41,18 @@ class Frontend(object):
|
|||||||
'id': 'id',
|
'id': 'id',
|
||||||
'fe_token': 'feToken',
|
'fe_token': 'feToken',
|
||||||
'share_token': 'shareToken',
|
'share_token': 'shareToken',
|
||||||
|
'description': 'description',
|
||||||
'z_id': 'zId',
|
'z_id': 'zId',
|
||||||
'created_at': 'createdAt',
|
'created_at': 'createdAt',
|
||||||
'updated_at': 'updatedAt'
|
'updated_at': 'updatedAt'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, id=None, fe_token=None, share_token=None, z_id=None, created_at=None, updated_at=None): # noqa: E501
|
def __init__(self, id=None, fe_token=None, share_token=None, description=None, z_id=None, created_at=None, updated_at=None): # noqa: E501
|
||||||
"""Frontend - a model defined in Swagger""" # noqa: E501
|
"""Frontend - a model defined in Swagger""" # noqa: E501
|
||||||
self._id = None
|
self._id = None
|
||||||
self._fe_token = None
|
self._fe_token = None
|
||||||
self._share_token = None
|
self._share_token = None
|
||||||
|
self._description = None
|
||||||
self._z_id = None
|
self._z_id = None
|
||||||
self._created_at = None
|
self._created_at = None
|
||||||
self._updated_at = None
|
self._updated_at = None
|
||||||
@ -60,6 +63,8 @@ class Frontend(object):
|
|||||||
self.fe_token = fe_token
|
self.fe_token = fe_token
|
||||||
if share_token is not None:
|
if share_token is not None:
|
||||||
self.share_token = share_token
|
self.share_token = share_token
|
||||||
|
if description is not None:
|
||||||
|
self.description = description
|
||||||
if z_id is not None:
|
if z_id is not None:
|
||||||
self.z_id = z_id
|
self.z_id = z_id
|
||||||
if created_at is not None:
|
if created_at is not None:
|
||||||
@ -130,6 +135,27 @@ class Frontend(object):
|
|||||||
|
|
||||||
self._share_token = share_token
|
self._share_token = share_token
|
||||||
|
|
||||||
|
@property
|
||||||
|
def description(self):
|
||||||
|
"""Gets the description of this Frontend. # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
:return: The description of this Frontend. # noqa: E501
|
||||||
|
:rtype: str
|
||||||
|
"""
|
||||||
|
return self._description
|
||||||
|
|
||||||
|
@description.setter
|
||||||
|
def description(self, description):
|
||||||
|
"""Sets the description of this Frontend.
|
||||||
|
|
||||||
|
|
||||||
|
:param description: The description of this Frontend. # noqa: E501
|
||||||
|
:type: str
|
||||||
|
"""
|
||||||
|
|
||||||
|
self._description = description
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def z_id(self):
|
def z_id(self):
|
||||||
"""Gets the z_id of this Frontend. # noqa: E501
|
"""Gets the z_id of this Frontend. # noqa: E501
|
||||||
|
@ -1011,6 +1011,8 @@ paths:
|
|||||||
type: string
|
type: string
|
||||||
shareToken:
|
shareToken:
|
||||||
type: string
|
type: string
|
||||||
|
description:
|
||||||
|
type: string
|
||||||
responses:
|
responses:
|
||||||
201:
|
201:
|
||||||
description: access created
|
description: access created
|
||||||
@ -1219,6 +1221,8 @@ definitions:
|
|||||||
type: string
|
type: string
|
||||||
shareToken:
|
shareToken:
|
||||||
type: string
|
type: string
|
||||||
|
description:
|
||||||
|
type: string
|
||||||
zId:
|
zId:
|
||||||
type: string
|
type: string
|
||||||
createdAt:
|
createdAt:
|
||||||
|
@ -31,6 +31,12 @@ export interface AccessRequest {
|
|||||||
* @memberof AccessRequest
|
* @memberof AccessRequest
|
||||||
*/
|
*/
|
||||||
shareToken?: string;
|
shareToken?: string;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof AccessRequest
|
||||||
|
*/
|
||||||
|
description?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -52,6 +58,7 @@ export function AccessRequestFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|||||||
|
|
||||||
'envZId': json['envZId'] == null ? undefined : json['envZId'],
|
'envZId': json['envZId'] == null ? undefined : json['envZId'],
|
||||||
'shareToken': json['shareToken'] == null ? undefined : json['shareToken'],
|
'shareToken': json['shareToken'] == null ? undefined : json['shareToken'],
|
||||||
|
'description': json['description'] == null ? undefined : json['description'],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -63,6 +70,7 @@ export function AccessRequestToJSON(value?: AccessRequest | null): any {
|
|||||||
|
|
||||||
'envZId': value['envZId'],
|
'envZId': value['envZId'],
|
||||||
'shareToken': value['shareToken'],
|
'shareToken': value['shareToken'],
|
||||||
|
'description': value['description'],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,6 +37,12 @@ export interface Frontend {
|
|||||||
* @memberof Frontend
|
* @memberof Frontend
|
||||||
*/
|
*/
|
||||||
shareToken?: string;
|
shareToken?: string;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof Frontend
|
||||||
|
*/
|
||||||
|
description?: string;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
@ -77,6 +83,7 @@ export function FrontendFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|||||||
'id': json['id'] == null ? undefined : json['id'],
|
'id': json['id'] == null ? undefined : json['id'],
|
||||||
'feToken': json['feToken'] == null ? undefined : json['feToken'],
|
'feToken': json['feToken'] == null ? undefined : json['feToken'],
|
||||||
'shareToken': json['shareToken'] == null ? undefined : json['shareToken'],
|
'shareToken': json['shareToken'] == null ? undefined : json['shareToken'],
|
||||||
|
'description': json['description'] == null ? undefined : json['description'],
|
||||||
'zId': json['zId'] == null ? undefined : json['zId'],
|
'zId': json['zId'] == null ? undefined : json['zId'],
|
||||||
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
||||||
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
||||||
@ -92,6 +99,7 @@ export function FrontendToJSON(value?: Frontend | null): any {
|
|||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
'feToken': value['feToken'],
|
'feToken': value['feToken'],
|
||||||
'shareToken': value['shareToken'],
|
'shareToken': value['shareToken'],
|
||||||
|
'description': value['description'],
|
||||||
'zId': value['zId'],
|
'zId': value['zId'],
|
||||||
'createdAt': value['createdAt'],
|
'createdAt': value['createdAt'],
|
||||||
'updatedAt': value['updatedAt'],
|
'updatedAt': value['updatedAt'],
|
||||||
|
Reference in New Issue
Block a user