-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add requests to create and retrieve s3 credentials (#2319)
- Loading branch information
1 parent
09d2913
commit d2120a4
Showing
6 changed files
with
109 additions
and
1 deletion.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
src/Microsoft.SqlTools.ServiceLayer/ObjectManagement/Contracts/CreateCredentialRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
// | ||
|
||
#nullable disable | ||
using Microsoft.SqlTools.Hosting.Protocol.Contracts; | ||
using Microsoft.SqlTools.Utility; | ||
|
||
namespace Microsoft.SqlTools.ServiceLayer.ObjectManagement.Contracts | ||
{ | ||
public class CreateCredentialRequestParams : GeneralRequestDetails | ||
{ | ||
/// <summary> | ||
/// Credential info | ||
/// </summary> | ||
public CredentialInfo CredentialInfo { get; set; } | ||
/// <summary> | ||
/// Connection uri | ||
/// </summary> | ||
public string ConnectionUri { get; set; } | ||
} | ||
|
||
public class CreateCredentialRequestResponse { } | ||
|
||
public class CreateCredentialRequest | ||
{ | ||
public static readonly RequestType<CreateCredentialRequestParams, CreateCredentialRequestResponse> Type = RequestType<CreateCredentialRequestParams, CreateCredentialRequestResponse>.Create("objectManagement/createCredentialRequest"); | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/Microsoft.SqlTools.ServiceLayer/ObjectManagement/Contracts/GetCredentialNamesRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
// | ||
|
||
#nullable disable | ||
using System.Collections.Generic; | ||
using Microsoft.SqlTools.Hosting.Protocol.Contracts; | ||
using Microsoft.SqlTools.Utility; | ||
|
||
namespace Microsoft.SqlTools.ServiceLayer.ObjectManagement.Contracts | ||
{ | ||
public class GetCredentialNamesRequestParams : GeneralRequestDetails | ||
{ | ||
/// <summary> | ||
/// Connection uri to database | ||
/// </summary> | ||
public string ConnectionUri { get; set; } | ||
} | ||
|
||
|
||
public class GetCredentialNamesRequest | ||
{ | ||
public static readonly RequestType<GetCredentialNamesRequestParams, List<string>> Type = RequestType<GetCredentialNamesRequestParams, List<string>>.Create("objectManagement/getCredentialNamesRequest"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters