mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-25 08:31:09 +02:00
61 lines
2.2 KiB
JavaScript
61 lines
2.2 KiB
JavaScript
"use strict";
|
|
/* 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.
|
|
*/
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.instanceOfGroupCreateRequest = instanceOfGroupCreateRequest;
|
|
exports.GroupCreateRequestFromJSON = GroupCreateRequestFromJSON;
|
|
exports.GroupCreateRequestFromJSONTyped = GroupCreateRequestFromJSONTyped;
|
|
exports.GroupCreateRequestToJSON = GroupCreateRequestToJSON;
|
|
exports.GroupCreateRequestToJSONTyped = GroupCreateRequestToJSONTyped;
|
|
/**
|
|
* Check if a given object implements the GroupCreateRequest interface.
|
|
*/
|
|
function instanceOfGroupCreateRequest(value) {
|
|
return true;
|
|
}
|
|
function GroupCreateRequestFromJSON(json) {
|
|
return GroupCreateRequestFromJSONTyped(json, false);
|
|
}
|
|
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'],
|
|
};
|
|
}
|
|
function GroupCreateRequestToJSON(json) {
|
|
return GroupCreateRequestToJSONTyped(json, false);
|
|
}
|
|
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'],
|
|
};
|
|
}
|