Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Deprecate older connect.proto services (#3903) #1638

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions dart/lib/src/connect_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,49 @@ class ConnectService extends ServiceBase {
// BEGIN Code generated by protoc-gen-trinsic. DO NOT EDIT.
// target: /home/runner/work/sdk/sdk/dart/lib/src/connect_service.dart

@Deprecated('This method is deprecated')
Future<CreateSessionResponse> createSession(
CreateSessionRequest request) async {
/// Create an IDVSession
/// This method is deprecated
/// Create an IDVSession

return client.createSession(request,
options: await buildMetadata(request: request));
}

@Deprecated('This method is deprecated')
Future<CancelSessionResponse> cancelSession(
CancelSessionRequest request) async {
/// Cancel an IDVSession
/// This method is deprecated
/// Cancel an IDVSession

return client.cancelSession(request,
options: await buildMetadata(request: request));
}

@Deprecated('This method is deprecated')
Future<GetSessionResponse> getSession(GetSessionRequest request) async {
/// Get an IDVSession
/// This method is deprecated
/// Get an IDVSession

return client.getSession(request,
options: await buildMetadata(request: request));
}

@Deprecated('This method is deprecated')
Future<ListSessionsResponse> listSessions(ListSessionsRequest request) async {
/// List IDVSessions created by the calling wallet
/// This method is deprecated
/// List IDVSessions created by the calling wallet

return client.listSessions(request,
options: await buildMetadata(request: request));
}

@Deprecated('This method is deprecated')
Future<HasValidCredentialResponse> hasValidCredential(
HasValidCredentialRequest request) async {
/// Checks if the identity provided in the request has a wallet containing a valid reusable credential
/// This method is deprecated
/// Checks if the identity provided in the request has a wallet containing a valid reusable credential

return client.hasValidCredential(request,
options: await buildMetadata(request: request));
Expand Down
15 changes: 10 additions & 5 deletions docs/_static/proto.json
Original file line number Diff line number Diff line change
Expand Up @@ -5725,7 +5725,8 @@
"output_type": "services.connect.v1.CancelSessionResponse",
"description": "Cancel an IDVSession",
"options": {
"google.api.http": ".google.api.HttpRule"
"google.api.http": ".google.api.HttpRule",
"services.options.sdk_template_option": ".services.options.SdkTemplateOption"
}
},
"services.connect.v1.Connect.CreateSession": {
Expand All @@ -5735,7 +5736,8 @@
"output_type": "services.connect.v1.CreateSessionResponse",
"description": "Create an IDVSession",
"options": {
"google.api.http": ".google.api.HttpRule"
"google.api.http": ".google.api.HttpRule",
"services.options.sdk_template_option": ".services.options.SdkTemplateOption"
}
},
"services.connect.v1.Connect.GetSession": {
Expand All @@ -5745,7 +5747,8 @@
"output_type": "services.connect.v1.GetSessionResponse",
"description": "Get an IDVSession",
"options": {
"google.api.http": ".google.api.HttpRule"
"google.api.http": ".google.api.HttpRule",
"services.options.sdk_template_option": ".services.options.SdkTemplateOption"
}
},
"services.connect.v1.Connect.HasValidCredential": {
Expand All @@ -5755,7 +5758,8 @@
"output_type": "services.connect.v1.HasValidCredentialResponse",
"description": "Checks if the identity provided in the request has a wallet containing a valid reusable credential",
"options": {
"google.api.http": ".google.api.HttpRule"
"google.api.http": ".google.api.HttpRule",
"services.options.sdk_template_option": ".services.options.SdkTemplateOption"
}
},
"services.connect.v1.Connect.ListSessions": {
Expand All @@ -5765,7 +5769,8 @@
"output_type": "services.connect.v1.ListSessionsResponse",
"description": "List IDVSessions created by the calling wallet",
"options": {
"google.api.http": ".google.api.HttpRule"
"google.api.http": ".google.api.HttpRule",
"services.options.sdk_template_option": ".services.options.SdkTemplateOption"
}
},
"services.filemanagement.v1.FileManagement.DeleteFile": {
Expand Down
50 changes: 30 additions & 20 deletions dotnet/Trinsic/ConnectService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,90 +20,100 @@ public ConnectService(TrinsicOptions options)
// target: /home/runner/work/sdk/sdk/dotnet/Trinsic/ConnectService.cs

/// <summary>
/// Create an IDVSession
///This method is deprecated
/// Create an IDVSession
/// </summary>

[Obsolete("This method is deprecated")]
public CreateSessionResponse CreateSession(CreateSessionRequest request) {

return Client.CreateSession(request, BuildMetadata(request));
}

/// <summary>
/// Create an IDVSession
///This method is deprecated
/// Create an IDVSession
/// </summary>

[Obsolete("This method is deprecated")]
public async Task<CreateSessionResponse> CreateSessionAsync(CreateSessionRequest request) {

return await Client.CreateSessionAsync(request, await BuildMetadataAsync(request));
}

/// <summary>
/// Cancel an IDVSession
///This method is deprecated
/// Cancel an IDVSession
/// </summary>

[Obsolete("This method is deprecated")]
public CancelSessionResponse CancelSession(CancelSessionRequest request) {

return Client.CancelSession(request, BuildMetadata(request));
}

/// <summary>
/// Cancel an IDVSession
///This method is deprecated
/// Cancel an IDVSession
/// </summary>

[Obsolete("This method is deprecated")]
public async Task<CancelSessionResponse> CancelSessionAsync(CancelSessionRequest request) {

return await Client.CancelSessionAsync(request, await BuildMetadataAsync(request));
}

/// <summary>
/// Get an IDVSession
///This method is deprecated
/// Get an IDVSession
/// </summary>

[Obsolete("This method is deprecated")]
public GetSessionResponse GetSession(GetSessionRequest request) {

return Client.GetSession(request, BuildMetadata(request));
}

/// <summary>
/// Get an IDVSession
///This method is deprecated
/// Get an IDVSession
/// </summary>

[Obsolete("This method is deprecated")]
public async Task<GetSessionResponse> GetSessionAsync(GetSessionRequest request) {

return await Client.GetSessionAsync(request, await BuildMetadataAsync(request));
}

/// <summary>
/// List IDVSessions created by the calling wallet
///This method is deprecated
/// List IDVSessions created by the calling wallet
/// </summary>

[Obsolete("This method is deprecated")]
public ListSessionsResponse ListSessions(ListSessionsRequest request) {

return Client.ListSessions(request, BuildMetadata(request));
}

/// <summary>
/// List IDVSessions created by the calling wallet
///This method is deprecated
/// List IDVSessions created by the calling wallet
/// </summary>

[Obsolete("This method is deprecated")]
public async Task<ListSessionsResponse> ListSessionsAsync(ListSessionsRequest request) {

return await Client.ListSessionsAsync(request, await BuildMetadataAsync(request));
}

/// <summary>
/// Checks if the identity provided in the request has a wallet containing a valid reusable credential
///This method is deprecated
/// Checks if the identity provided in the request has a wallet containing a valid reusable credential
/// </summary>

[Obsolete("This method is deprecated")]
public HasValidCredentialResponse HasValidCredential(HasValidCredentialRequest request) {

return Client.HasValidCredential(request, BuildMetadata(request));
}

/// <summary>
/// Checks if the identity provided in the request has a wallet containing a valid reusable credential
///This method is deprecated
/// Checks if the identity provided in the request has a wallet containing a valid reusable credential
/// </summary>

[Obsolete("This method is deprecated")]
public async Task<HasValidCredentialResponse> HasValidCredentialAsync(HasValidCredentialRequest request) {

return await Client.HasValidCredentialAsync(request, await BuildMetadataAsync(request));
Expand Down
Loading