Skip to content

Commit

Permalink
description for access request (frontend) (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelquigley committed Feb 4, 2025
1 parent a0383b4 commit c9c60b4
Show file tree
Hide file tree
Showing 13 changed files with 111 additions and 4 deletions.
3 changes: 3 additions & 0 deletions rest_client_zrok/share/access_responses.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions rest_model_zrok/frontend.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions rest_server_zrok/embedded_spec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions rest_server_zrok/operations/share/access.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions sdk/nodejs/sdk/src/zrok/api/model/accessRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { RequestFile } from './models';
export class AccessRequest {
'envZId'?: string;
'shareToken'?: string;
'description'?: string;

static discriminator: string | undefined = undefined;

Expand All @@ -28,6 +29,11 @@ export class AccessRequest {
"name": "shareToken",
"baseName": "shareToken",
"type": "string"
},
{
"name": "description",
"baseName": "description",
"type": "string"
} ];

static getAttributeTypeMap() {
Expand Down
6 changes: 6 additions & 0 deletions sdk/nodejs/sdk/src/zrok/api/model/frontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export class Frontend {
'id'?: number;
'feToken'?: string;
'shareToken'?: string;
'description'?: string;
'zId'?: string;
'createdAt'?: number;
'updatedAt'?: number;
Expand All @@ -38,6 +39,11 @@ export class Frontend {
"baseName": "shareToken",
"type": "string"
},
{
"name": "description",
"baseName": "description",
"type": "string"
},
{
"name": "zId",
"baseName": "zId",
Expand Down
1 change: 1 addition & 0 deletions sdk/python/sdk/zrok/docs/AccessBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**env_zid** | **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)

1 change: 1 addition & 0 deletions sdk/python/sdk/zrok/docs/Frontend.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
**id** | **int** | | [optional]
**fe_token** | **str** | | [optional]
**share_token** | **str** | | [optional]
**description** | **str** | | [optional]
**z_id** | **str** | | [optional]
**created_at** | **int** | | [optional]
**updated_at** | **int** | | [optional]
Expand Down
32 changes: 29 additions & 3 deletions sdk/python/sdk/zrok/zrok_api/models/access_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,28 @@ class AccessBody(object):
"""
swagger_types = {
'env_zid': 'str',
'share_token': 'str'
'share_token': 'str',
'description': 'str'
}

attribute_map = {
'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
self._env_zid = None
self._share_token = None
self._description = None
self.discriminator = None
if env_zid is not None:
self.env_zid = env_zid
if share_token is not None:
self.share_token = share_token
if description is not None:
self.description = description

@property
def env_zid(self):
Expand Down Expand Up @@ -89,6 +94,27 @@ def share_token(self, 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):
"""Returns the model properties as a dict"""
result = {}
Expand Down
28 changes: 27 additions & 1 deletion sdk/python/sdk/zrok/zrok_api/models/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Frontend(object):
'id': 'int',
'fe_token': 'str',
'share_token': 'str',
'description': 'str',
'z_id': 'str',
'created_at': 'int',
'updated_at': 'int'
Expand All @@ -40,16 +41,18 @@ class Frontend(object):
'id': 'id',
'fe_token': 'feToken',
'share_token': 'shareToken',
'description': 'description',
'z_id': 'zId',
'created_at': 'createdAt',
'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
self._id = None
self._fe_token = None
self._share_token = None
self._description = None
self._z_id = None
self._created_at = None
self._updated_at = None
Expand All @@ -60,6 +63,8 @@ def __init__(self, id=None, fe_token=None, share_token=None, z_id=None, created_
self.fe_token = fe_token
if share_token is not None:
self.share_token = share_token
if description is not None:
self.description = description
if z_id is not None:
self.z_id = z_id
if created_at is not None:
Expand Down Expand Up @@ -130,6 +135,27 @@ def share_token(self, 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
def z_id(self):
"""Gets the z_id of this Frontend. # noqa: E501
Expand Down
4 changes: 4 additions & 0 deletions specs/zrok.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1011,6 +1011,8 @@ paths:
type: string
shareToken:
type: string
description:
type: string
responses:
201:
description: access created
Expand Down Expand Up @@ -1219,6 +1221,8 @@ definitions:
type: string
shareToken:
type: string
description:
type: string
zId:
type: string
createdAt:
Expand Down
8 changes: 8 additions & 0 deletions ui/src/api/models/AccessRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ export interface AccessRequest {
* @memberof AccessRequest
*/
shareToken?: string;
/**
*
* @type {string}
* @memberof AccessRequest
*/
description?: string;
}

/**
Expand All @@ -52,6 +58,7 @@ export function AccessRequestFromJSONTyped(json: any, ignoreDiscriminator: boole

'envZId': json['envZId'] == null ? undefined : json['envZId'],
'shareToken': json['shareToken'] == null ? undefined : json['shareToken'],
'description': json['description'] == null ? undefined : json['description'],
};
}

Expand All @@ -63,6 +70,7 @@ export function AccessRequestToJSON(value?: AccessRequest | null): any {

'envZId': value['envZId'],
'shareToken': value['shareToken'],
'description': value['description'],
};
}

8 changes: 8 additions & 0 deletions ui/src/api/models/Frontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ export interface Frontend {
* @memberof Frontend
*/
shareToken?: string;
/**
*
* @type {string}
* @memberof Frontend
*/
description?: string;
/**
*
* @type {string}
Expand Down Expand Up @@ -77,6 +83,7 @@ export function FrontendFromJSONTyped(json: any, ignoreDiscriminator: boolean):
'id': json['id'] == null ? undefined : json['id'],
'feToken': json['feToken'] == null ? undefined : json['feToken'],
'shareToken': json['shareToken'] == null ? undefined : json['shareToken'],
'description': json['description'] == null ? undefined : json['description'],
'zId': json['zId'] == null ? undefined : json['zId'],
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
Expand All @@ -92,6 +99,7 @@ export function FrontendToJSON(value?: Frontend | null): any {
'id': value['id'],
'feToken': value['feToken'],
'shareToken': value['shareToken'],
'description': value['description'],
'zId': value['zId'],
'createdAt': value['createdAt'],
'updatedAt': value['updatedAt'],
Expand Down

0 comments on commit c9c60b4

Please sign in to comment.