mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-07 07:07:05 +02:00
* removes dist from api-client gitignore * ignores api-client/dist directory for eslint and prettier * builds api client
54 lines
1.8 KiB
JavaScript
54 lines
1.8 KiB
JavaScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* HashiCorp Vault API
|
|
* HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`.
|
|
*
|
|
* The version of the OpenAPI document: 1.20.0
|
|
*
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
/**
|
|
* Check if a given object implements the GroupCreateRequest interface.
|
|
*/
|
|
export function instanceOfGroupCreateRequest(value) {
|
|
return true;
|
|
}
|
|
export function GroupCreateRequestFromJSON(json) {
|
|
return GroupCreateRequestFromJSONTyped(json, false);
|
|
}
|
|
export function GroupCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
id: json['id'] == null ? undefined : json['id'],
|
|
memberEntityIds: json['member_entity_ids'] == null ? undefined : json['member_entity_ids'],
|
|
memberGroupIds: json['member_group_ids'] == null ? undefined : json['member_group_ids'],
|
|
metadata: json['metadata'] == null ? undefined : json['metadata'],
|
|
name: json['name'] == null ? undefined : json['name'],
|
|
policies: json['policies'] == null ? undefined : json['policies'],
|
|
type: json['type'] == null ? undefined : json['type'],
|
|
};
|
|
}
|
|
export function GroupCreateRequestToJSON(json) {
|
|
return GroupCreateRequestToJSONTyped(json, false);
|
|
}
|
|
export function GroupCreateRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
id: value['id'],
|
|
member_entity_ids: value['memberEntityIds'],
|
|
member_group_ids: value['memberGroupIds'],
|
|
metadata: value['metadata'],
|
|
name: value['name'],
|
|
policies: value['policies'],
|
|
type: value['type'],
|
|
};
|
|
}
|