/// <summary>
 /// Gets the request builder for ApplicationAddPassword.
 /// </summary>
 /// <returns>The <see cref="IApplicationAddPasswordRequestBuilder"/>.</returns>
 public IApplicationAddPasswordRequestBuilder AddPassword(
     PasswordCredential passwordCredential = null)
 {
     return(new ApplicationAddPasswordRequestBuilder(
                this.AppendSegmentToRequestUrl("microsoft.graph.addPassword"),
                this.Client,
                passwordCredential));
 }
 /// <summary>
 /// Gets the request builder for ServicePrincipalAddPassword.
 /// </summary>
 /// <returns>The <see cref="IServicePrincipalAddPasswordRequestBuilder"/>.</returns>
 public IServicePrincipalAddPasswordRequestBuilder AddPassword(
     PasswordCredential passwordCredential = null)
 {
     return(new ServicePrincipalAddPasswordRequestBuilder(
                this.AppendSegmentToRequestUrl("microsoft.graph.addPassword"),
                this.Client,
                passwordCredential));
 }
Пример #3
0
 /// <summary>
 /// Gets the request builder for ApplicationAddKey.
 /// </summary>
 /// <returns>The <see cref="IApplicationAddKeyRequestBuilder"/>.</returns>
 public IApplicationAddKeyRequestBuilder AddKey(
     KeyCredential keyCredential,
     string proof,
     PasswordCredential passwordCredential = null)
 {
     return(new ApplicationAddKeyRequestBuilder(
                this.AppendSegmentToRequestUrl("microsoft.graph.addKey"),
                this.Client,
                keyCredential,
                proof,
                passwordCredential));
 }
Пример #4
0
 /// <summary>
 /// Constructs a new <see cref="ServicePrincipalAddKeyRequestBuilder"/>.
 /// </summary>
 /// <param name="requestUrl">The URL for the request.</param>
 /// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param>
 /// <param name="keyCredential">A keyCredential parameter for the OData method call.</param>
 /// <param name="proof">A proof parameter for the OData method call.</param>
 /// <param name="passwordCredential">A passwordCredential parameter for the OData method call.</param>
 public ServicePrincipalAddKeyRequestBuilder(
     string requestUrl,
     IBaseClient client,
     KeyCredential keyCredential,
     string proof,
     PasswordCredential passwordCredential)
     : base(requestUrl, client)
 {
     this.SetParameter("keyCredential", keyCredential, false);
     this.SetParameter("proof", proof, false);
     this.SetParameter("passwordCredential", passwordCredential, true);
 }