mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 14:47:01 +02:00
74 lines
3.8 KiB
JavaScript
74 lines
3.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.21.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 SystemPatchSyncDestinationsGhNameRequest interface.
|
|
*/
|
|
export function instanceOfSystemPatchSyncDestinationsGhNameRequest(value) {
|
|
return true;
|
|
}
|
|
export function SystemPatchSyncDestinationsGhNameRequestFromJSON(json) {
|
|
return SystemPatchSyncDestinationsGhNameRequestFromJSONTyped(json, false);
|
|
}
|
|
export function SystemPatchSyncDestinationsGhNameRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
'accessToken': json['access_token'] == null ? undefined : json['access_token'],
|
|
'allowedIpv4Addresses': json['allowed_ipv4_addresses'] == null ? undefined : json['allowed_ipv4_addresses'],
|
|
'allowedIpv6Addresses': json['allowed_ipv6_addresses'] == null ? undefined : json['allowed_ipv6_addresses'],
|
|
'allowedPorts': json['allowed_ports'] == null ? undefined : json['allowed_ports'],
|
|
'appName': json['app_name'] == null ? undefined : json['app_name'],
|
|
'disableStrictNetworking': json['disable_strict_networking'] == null ? undefined : json['disable_strict_networking'],
|
|
'environmentName': json['environment_name'] == null ? undefined : json['environment_name'],
|
|
'granularity': json['granularity'] == null ? undefined : json['granularity'],
|
|
'installationId': json['installation_id'] == null ? undefined : json['installation_id'],
|
|
'organizationName': json['organization_name'] == null ? undefined : json['organization_name'],
|
|
'organizationVisibility': json['organization_visibility'] == null ? undefined : json['organization_visibility'],
|
|
'purge': json['purge'] == null ? undefined : json['purge'],
|
|
'repositoryName': json['repository_name'] == null ? undefined : json['repository_name'],
|
|
'repositoryOwner': json['repository_owner'] == null ? undefined : json['repository_owner'],
|
|
'secretNameTemplate': json['secret_name_template'] == null ? undefined : json['secret_name_template'],
|
|
'secretsLocation': json['secrets_location'] == null ? undefined : json['secrets_location'],
|
|
'selectedRepositoryNames': json['selected_repository_names'] == null ? undefined : json['selected_repository_names'],
|
|
};
|
|
}
|
|
export function SystemPatchSyncDestinationsGhNameRequestToJSON(json) {
|
|
return SystemPatchSyncDestinationsGhNameRequestToJSONTyped(json, false);
|
|
}
|
|
export function SystemPatchSyncDestinationsGhNameRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'access_token': value['accessToken'],
|
|
'allowed_ipv4_addresses': value['allowedIpv4Addresses'],
|
|
'allowed_ipv6_addresses': value['allowedIpv6Addresses'],
|
|
'allowed_ports': value['allowedPorts'],
|
|
'app_name': value['appName'],
|
|
'disable_strict_networking': value['disableStrictNetworking'],
|
|
'environment_name': value['environmentName'],
|
|
'granularity': value['granularity'],
|
|
'installation_id': value['installationId'],
|
|
'organization_name': value['organizationName'],
|
|
'organization_visibility': value['organizationVisibility'],
|
|
'purge': value['purge'],
|
|
'repository_name': value['repositoryName'],
|
|
'repository_owner': value['repositoryOwner'],
|
|
'secret_name_template': value['secretNameTemplate'],
|
|
'secrets_location': value['secretsLocation'],
|
|
'selected_repository_names': value['selectedRepositoryNames'],
|
|
};
|
|
}
|