vault/ui/api-client/dist/models/GoogleCloudWriteRoleRequest.js

103 lines
5.4 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.instanceOfGoogleCloudWriteRoleRequest = instanceOfGoogleCloudWriteRoleRequest;
exports.GoogleCloudWriteRoleRequestFromJSON = GoogleCloudWriteRoleRequestFromJSON;
exports.GoogleCloudWriteRoleRequestFromJSONTyped = GoogleCloudWriteRoleRequestFromJSONTyped;
exports.GoogleCloudWriteRoleRequestToJSON = GoogleCloudWriteRoleRequestToJSON;
exports.GoogleCloudWriteRoleRequestToJSONTyped = GoogleCloudWriteRoleRequestToJSONTyped;
/**
* Check if a given object implements the GoogleCloudWriteRoleRequest interface.
*/
function instanceOfGoogleCloudWriteRoleRequest(value) {
return true;
}
function GoogleCloudWriteRoleRequestFromJSON(json) {
return GoogleCloudWriteRoleRequestFromJSONTyped(json, false);
}
function GoogleCloudWriteRoleRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'addGroupAliases': json['add_group_aliases'] == null ? undefined : json['add_group_aliases'],
'allowGceInference': json['allow_gce_inference'] == null ? undefined : json['allow_gce_inference'],
'boundInstanceGroup': json['bound_instance_group'] == null ? undefined : json['bound_instance_group'],
'boundInstanceGroups': json['bound_instance_groups'] == null ? undefined : json['bound_instance_groups'],
'boundLabels': json['bound_labels'] == null ? undefined : json['bound_labels'],
'boundProjects': json['bound_projects'] == null ? undefined : json['bound_projects'],
'boundRegion': json['bound_region'] == null ? undefined : json['bound_region'],
'boundRegions': json['bound_regions'] == null ? undefined : json['bound_regions'],
'boundServiceAccounts': json['bound_service_accounts'] == null ? undefined : json['bound_service_accounts'],
'boundZone': json['bound_zone'] == null ? undefined : json['bound_zone'],
'boundZones': json['bound_zones'] == null ? undefined : json['bound_zones'],
'maxJwtExp': json['max_jwt_exp'] == null ? undefined : json['max_jwt_exp'],
'maxTtl': json['max_ttl'] == null ? undefined : json['max_ttl'],
'period': json['period'] == null ? undefined : json['period'],
'policies': json['policies'] == null ? undefined : json['policies'],
'projectId': json['project_id'] == null ? undefined : json['project_id'],
'serviceAccounts': json['service_accounts'] == null ? undefined : json['service_accounts'],
'tokenBoundCidrs': json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'],
'tokenExplicitMaxTtl': json['token_explicit_max_ttl'] == null ? undefined : json['token_explicit_max_ttl'],
'tokenMaxTtl': json['token_max_ttl'] == null ? undefined : json['token_max_ttl'],
'tokenNoDefaultPolicy': json['token_no_default_policy'] == null ? undefined : json['token_no_default_policy'],
'tokenNumUses': json['token_num_uses'] == null ? undefined : json['token_num_uses'],
'tokenPeriod': json['token_period'] == null ? undefined : json['token_period'],
'tokenPolicies': json['token_policies'] == null ? undefined : json['token_policies'],
'tokenTtl': json['token_ttl'] == null ? undefined : json['token_ttl'],
'tokenType': json['token_type'] == null ? undefined : json['token_type'],
'ttl': json['ttl'] == null ? undefined : json['ttl'],
'type': json['type'] == null ? undefined : json['type'],
};
}
function GoogleCloudWriteRoleRequestToJSON(json) {
return GoogleCloudWriteRoleRequestToJSONTyped(json, false);
}
function GoogleCloudWriteRoleRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'add_group_aliases': value['addGroupAliases'],
'allow_gce_inference': value['allowGceInference'],
'bound_instance_group': value['boundInstanceGroup'],
'bound_instance_groups': value['boundInstanceGroups'],
'bound_labels': value['boundLabels'],
'bound_projects': value['boundProjects'],
'bound_region': value['boundRegion'],
'bound_regions': value['boundRegions'],
'bound_service_accounts': value['boundServiceAccounts'],
'bound_zone': value['boundZone'],
'bound_zones': value['boundZones'],
'max_jwt_exp': value['maxJwtExp'],
'max_ttl': value['maxTtl'],
'period': value['period'],
'policies': value['policies'],
'project_id': value['projectId'],
'service_accounts': value['serviceAccounts'],
'token_bound_cidrs': value['tokenBoundCidrs'],
'token_explicit_max_ttl': value['tokenExplicitMaxTtl'],
'token_max_ttl': value['tokenMaxTtl'],
'token_no_default_policy': value['tokenNoDefaultPolicy'],
'token_num_uses': value['tokenNumUses'],
'token_period': value['tokenPeriod'],
'token_policies': value['tokenPolicies'],
'token_ttl': value['tokenTtl'],
'token_type': value['tokenType'],
'ttl': value['ttl'],
'type': value['type'],
};
}