public PutDataPolicySpectraS3Response PutDataPolicySpectraS3(PutDataPolicySpectraS3Request request) { return new PutDataPolicySpectraS3ResponseParser().Parse(request, _netLayer.Invoke(request)); }
/// <summary> /// Creates a Data Policy with the specified checksum type and end-to-end crc requirement /// and makes it the default data policy for spectra user /// </summary> /// <param name="fixtureName"></param> /// <param name="withEndToEndCrcRequired"></param> /// <param name="checksumType"></param> /// <param name="client"></param> /// <returns></returns> public static Guid SetupDataPolicy( string fixtureName, bool withEndToEndCrcRequired, ChecksumType.Type checksumType, IDs3Client client) { PutDataPolicySpectraS3Request dataPolicyRequest = new PutDataPolicySpectraS3Request(fixtureName) .WithEndToEndCrcRequired(withEndToEndCrcRequired); if (checksumType != ChecksumType.Type.NONE) { dataPolicyRequest.WithChecksumType(checksumType); } PutDataPolicySpectraS3Response dataPolicyResponse = client.PutDataPolicySpectraS3(dataPolicyRequest); client.ModifyUserSpectraS3(new ModifyUserSpectraS3Request("spectra") .WithDefaultDataPolicyId(dataPolicyResponse.ResponsePayload.Id)); return dataPolicyResponse.ResponsePayload.Id; }