/// <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)); }
/// <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); }