public async Task <EntityShortRepresentation> UpdateCloudFoundryCredentialsAsync(string id, CloudFoundryCredentials body, CancellationToken cancellationToken = default) { var response = await GetCloudFoundryCredentialsUrl() .AppendPathSegment(id) .PutJsonAsync(body, cancellationToken) .ReceiveJsonWithErrorChecking <EntityShortRepresentation>() .ConfigureAwait(false); return(response); }
public async Task <EntityShortRepresentation> AddCloudFoundryCredentialsAsync(CloudFoundryCredentials body, CancellationToken cancellationToken = default) { var response = await GetCloudFoundryCredentialsUrl() .PostJsonAsync(body, cancellationToken) .ReceiveJsonWithErrorChecking <EntityShortRepresentation>() .ConfigureAwait(false); return(response); }