Skip to content

Commit 5628a40

Browse files
committed
Rename parameters to match implemented interfaces so <inheritdoc/> works properly
1 parent ed9fad5 commit 5628a40

3 files changed

Lines changed: 26 additions & 26 deletions

File tree

src/corelib/Providers/Rackspace/CloudFilesProvider.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ public ContainerCDN GetContainerCDNHeader(string container, string region = null
423423
}
424424

425425
/// <inheritdoc />
426-
public IEnumerable<ContainerCDN> ListCDNContainers(int? limit = null, string marker = null, string markerEnd = null, bool cdnEnabled = false, string region = null, CloudIdentity identity = null)
426+
public IEnumerable<ContainerCDN> ListCDNContainers(int? limit = null, string markerId = null, string markerEnd = null, bool cdnEnabled = false, string region = null, CloudIdentity identity = null)
427427
{
428428
if (limit < 0)
429429
throw new ArgumentOutOfRangeException("limit");
@@ -440,8 +440,8 @@ public IEnumerable<ContainerCDN> ListCDNContainers(int? limit = null, string mar
440440
if (limit != null)
441441
queryStringParameter.Add("limit", limit.ToString());
442442

443-
if (!string.IsNullOrEmpty(marker))
444-
queryStringParameter.Add("marker", marker);
443+
if (!string.IsNullOrEmpty(markerId))
444+
queryStringParameter.Add("marker", markerId);
445445

446446
if (!string.IsNullOrEmpty(markerEnd))
447447
queryStringParameter.Add("end_marker", markerEnd);
@@ -557,17 +557,17 @@ public void UpdateContainerMetadata(string container, Dictionary<string, string>
557557
}
558558

559559
/// <inheritdoc />
560-
public void DeleteContainerMetadata(string container, IEnumerable<string> metadata, string region = null, bool useInternalUrl = false, CloudIdentity identity = null)
560+
public void DeleteContainerMetadata(string container, IEnumerable<string> keys, string region = null, bool useInternalUrl = false, CloudIdentity identity = null)
561561
{
562562
if (container == null)
563563
throw new ArgumentNullException("container");
564-
if (metadata == null)
565-
throw new ArgumentNullException("metadata");
564+
if (keys == null)
565+
throw new ArgumentNullException("keys");
566566
if (string.IsNullOrEmpty(container))
567567
throw new ArgumentException("container cannot be empty");
568568
CheckIdentity(identity);
569569

570-
Dictionary<string, string> headers = metadata.ToDictionary(i => i, i => default(string), StringComparer.OrdinalIgnoreCase);
570+
Dictionary<string, string> headers = keys.ToDictionary(i => i, i => default(string), StringComparer.OrdinalIgnoreCase);
571571
UpdateContainerMetadata(container, headers, region, useInternalUrl, identity);
572572
}
573573

src/corelib/Providers/Rackspace/CloudIdentityProvider.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -595,40 +595,40 @@ public virtual IEnumerable<User> GetUsersByEmail(string email, CloudIdentity ide
595595
}
596596

597597
/// <inheritdoc/>
598-
public virtual User GetUser(string userId, CloudIdentity identity)
598+
public virtual User GetUser(string id, CloudIdentity identity)
599599
{
600-
if (userId == null)
601-
throw new ArgumentNullException("userId");
602-
if (string.IsNullOrEmpty(userId))
603-
throw new ArgumentException("userId cannot be empty");
600+
if (id == null)
601+
throw new ArgumentNullException("id");
602+
if (string.IsNullOrEmpty(id))
603+
throw new ArgumentException("id cannot be empty");
604604
CheckIdentity(identity);
605605

606-
var urlPath = string.Format("v2.0/users/{0}", userId);
606+
var urlPath = string.Format("v2.0/users/{0}", id);
607607

608608
var response = ExecuteRESTRequest<UserResponse>(identity, new Uri(UrlBase, urlPath), HttpMethod.GET);
609609

610610
return response.Data.User;
611611
}
612612

613613
/// <inheritdoc/>
614-
public virtual NewUser AddUser(NewUser newUser, CloudIdentity identity)
614+
public virtual NewUser AddUser(NewUser user, CloudIdentity identity)
615615
{
616-
if (newUser == null)
617-
throw new ArgumentNullException("newUser");
618-
if (string.IsNullOrEmpty(newUser.Username))
619-
throw new ArgumentException("newUser.Username cannot be null or empty");
620-
if (newUser.Id != null)
621-
throw new InvalidOperationException("newUser.Id must be null");
616+
if (user == null)
617+
throw new ArgumentNullException("user");
618+
if (string.IsNullOrEmpty(user.Username))
619+
throw new ArgumentException("user.Username cannot be null or empty");
620+
if (user.Id != null)
621+
throw new InvalidOperationException("user.Id must be null");
622622
CheckIdentity(identity);
623623

624-
var response = ExecuteRESTRequest<NewUserResponse>(identity, new Uri(UrlBase, "/v2.0/users"), HttpMethod.POST, new AddUserRequest(newUser));
624+
var response = ExecuteRESTRequest<NewUserResponse>(identity, new Uri(UrlBase, "/v2.0/users"), HttpMethod.POST, new AddUserRequest(user));
625625

626626
if (response == null || response.Data == null)
627627
return null;
628628

629629
// If the user specifies a password, then the password will not be in the response, so we need to fill it in on the return object.
630630
if (string.IsNullOrEmpty(response.Data.NewUser.Password))
631-
response.Data.NewUser.Password = newUser.Password;
631+
response.Data.NewUser.Password = user.Password;
632632

633633
return response.Data.NewUser;
634634
}

src/corelib/Providers/Rackspace/IDnsService.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ public interface IDnsService
471471
/// Removes one or more domain records from the DNS service.
472472
/// </summary>
473473
/// <param name="domainId">The domain ID. This is obtained from <see cref="DnsDomain.Id">DnsDomain.Id</see>.</param>
474-
/// <param name="recordId">A collection of IDs for the records to remove. These are obtained from <see cref="DnsRecord.Id">DnsRecord.Id</see>.</param>
474+
/// <param name="recordIds">A collection of IDs for the records to remove. These are obtained from <see cref="DnsRecord.Id">DnsRecord.Id</see>.</param>
475475
/// <param name="completionOption">Specifies when the <see cref="Task"/> representing the asynchronous server operation should be considered complete.</param>
476476
/// <param name="cancellationToken">The <see cref="CancellationToken"/> that the task will observe.</param>
477477
/// <param name="progress">An optional callback object to receive progress notifications, if <paramref name="completionOption"/> is <see cref="AsyncCompletionOption.RequestCompleted"/>. If this is <see langword="null"/>, no progress notifications are sent.</param>
@@ -491,16 +491,16 @@ public interface IDnsService
491491
/// <exception cref="ArgumentNullException">
492492
/// If <paramref name="domainId"/> is <see langword="null"/>.
493493
/// <para>-or-</para>
494-
/// <para>If <paramref name="recordId"/> is <see langword="null"/>.</para>
494+
/// <para>If <paramref name="recordIds"/> is <see langword="null"/>.</para>
495495
/// </exception>
496496
/// <exception cref="ArgumentException">
497-
/// If <paramref name="recordId"/> contains any <see langword="null"/> values.
497+
/// If <paramref name="recordIds"/> contains any <see langword="null"/> values.
498498
/// <para>-or-</para>
499499
/// <para>If <paramref name="completionOption"/> is not a valid <see cref="AsyncCompletionOption"/>.</para>
500500
/// </exception>
501501
/// <exception cref="WebException">If the REST request does not return successfully.</exception>
502502
/// <seealso href="http://docs.rackspace.com/cdns/api/v1.0/cdns-devguide/content/Remove_Records-d1e5188.html">Remove Records (Rackspace Cloud DNS Developer Guide - API v1.0)</seealso>
503-
Task<DnsJob> RemoveRecordsAsync(DomainId domainId, IEnumerable<RecordId> recordId, AsyncCompletionOption completionOption, CancellationToken cancellationToken, IProgress<DnsJob> progress);
503+
Task<DnsJob> RemoveRecordsAsync(DomainId domainId, IEnumerable<RecordId> recordIds, AsyncCompletionOption completionOption, CancellationToken cancellationToken, IProgress<DnsJob> progress);
504504

505505
#endregion
506506

0 commit comments

Comments
 (0)