/// <summary>
        /// Create Shared-Secret Keys Create one or more Shared-Secret Keys
        /// </summary>
        /// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="createSharedSecretKeysRequest"></param>
        /// <returns>Task of ApiResponse (KmsV2KeysSymPost201Response)</returns>
        public async System.Threading.Tasks.Task <ApiResponse <KmsV2KeysSymPost201Response> > CreateV2SharedSecretKeysAsyncWithHttpInfo(CreateSharedSecretKeysRequest createSharedSecretKeysRequest)
        {
            // verify the required parameter 'createSharedSecretKeysRequest' is set
            if (createSharedSecretKeysRequest == null)
            {
                throw new ApiException(400, "Missing required parameter 'createSharedSecretKeysRequest' when calling SymmetricKeyManagementApi->CreateV2SharedSecretKeys");
            }

            var    localVarPath         = $"/kms/v2/keys-sym";
            var    localVarPathParams   = new Dictionary <string, string>();
            var    localVarQueryParams  = new Dictionary <string, string>();
            var    localVarHeaderParams = new Dictionary <string, string>(Configuration.DefaultHeader);
            var    localVarFormParams   = new Dictionary <string, string>();
            var    localVarFileParams   = new Dictionary <string, FileParameter>();
            object localVarPostBody     = null;

            // to determine the Content-Type header
            string[] localVarHttpContentTypes = new string[] {
                "application/json;charset=utf-8"
            };
            string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);

            // to determine the Accept header
            string[] localVarHttpHeaderAccepts = new string[] {
                "application/hal+json;charset=utf-8"
            };
            string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);

            if (localVarHttpHeaderAccept != null)
            {
                localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
            }

            if (createSharedSecretKeysRequest != null && createSharedSecretKeysRequest.GetType() != typeof(byte[]))
            {
                localVarPostBody = Configuration.ApiClient.Serialize(createSharedSecretKeysRequest); // http body (model) parameter
            }
            else
            {
                localVarPostBody = createSharedSecretKeysRequest; // byte array
            }

            if (false)
            {
            }
            else
            {
            }


            // make the HTTP request
            IRestResponse localVarResponse = (IRestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath,
                                                                                                       Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
                                                                                                       localVarPathParams, localVarHttpContentType);

            int localVarStatusCode = (int)localVarResponse.StatusCode;

            if (ExceptionFactory != null)
            {
                Exception exception = ExceptionFactory("CreateV2SharedSecretKeys", localVarResponse);
                if (exception != null)
                {
                    throw exception;
                }
            }

            return(new ApiResponse <KmsV2KeysSymPost201Response>(localVarStatusCode,
                                                                 localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
                                                                 (KmsV2KeysSymPost201Response)Configuration.ApiClient.Deserialize(localVarResponse, typeof(KmsV2KeysSymPost201Response)))); // Return statement
        }
        /// <summary>
        /// Create Shared-Secret Keys Create one or more Shared-Secret Keys
        /// </summary>
        /// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="createSharedSecretKeysRequest"></param>
        /// <returns>Task of KmsV2KeysSymPost201Response</returns>
        public async System.Threading.Tasks.Task <KmsV2KeysSymPost201Response> CreateV2SharedSecretKeysAsync(CreateSharedSecretKeysRequest createSharedSecretKeysRequest)
        {
            ApiResponse <KmsV2KeysSymPost201Response> localVarResponse = await CreateV2SharedSecretKeysAsyncWithHttpInfo(createSharedSecretKeysRequest);

            return(localVarResponse.Data);
        }
        /// <summary>
        /// Create Shared-Secret Keys Create one or more Shared-Secret Keys
        /// </summary>
        /// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="createSharedSecretKeysRequest"></param>
        /// <returns>Task of InlineResponse201</returns>
        public async System.Threading.Tasks.Task <InlineResponse201> CreateV2SharedSecretKeysAsync(CreateSharedSecretKeysRequest createSharedSecretKeysRequest)
        {
            ApiResponse <InlineResponse201> localVarResponse = await CreateV2SharedSecretKeysAsyncWithHttpInfo(createSharedSecretKeysRequest);

            return(localVarResponse.Data);
        }
        /// <summary>
        /// Create Shared-Secret Keys Create one or more Shared-Secret Keys
        /// </summary>
        /// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="createSharedSecretKeysRequest"></param>
        /// <returns>KmsV2KeysSymPost201Response</returns>
        public KmsV2KeysSymPost201Response CreateV2SharedSecretKeys(CreateSharedSecretKeysRequest createSharedSecretKeysRequest)
        {
            ApiResponse <KmsV2KeysSymPost201Response> localVarResponse = CreateV2SharedSecretKeysWithHttpInfo(createSharedSecretKeysRequest);

            return(localVarResponse.Data);
        }
        /// <summary>
        /// Create Shared-Secret Keys Create one or more Shared-Secret Keys
        /// </summary>
        /// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="createSharedSecretKeysRequest"></param>
        /// <returns>InlineResponse201</returns>
        public InlineResponse201 CreateV2SharedSecretKeys(CreateSharedSecretKeysRequest createSharedSecretKeysRequest)
        {
            ApiResponse <InlineResponse201> localVarResponse = CreateV2SharedSecretKeysWithHttpInfo(createSharedSecretKeysRequest);

            return(localVarResponse.Data);
        }