/* 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 SystemWriteSyncDestinationsGhNameRequest interface. */ export function instanceOfSystemWriteSyncDestinationsGhNameRequest(value) { return true; } export function SystemWriteSyncDestinationsGhNameRequestFromJSON(json) { return SystemWriteSyncDestinationsGhNameRequestFromJSONTyped(json, false); } export function SystemWriteSyncDestinationsGhNameRequestFromJSONTyped(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 SystemWriteSyncDestinationsGhNameRequestToJSON(json) { return SystemWriteSyncDestinationsGhNameRequestToJSONTyped(json, false); } export function SystemWriteSyncDestinationsGhNameRequestToJSONTyped(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'], }; }