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

Remove Preview flag from php and python snippets #1852

Merged
merged 1 commit into from
Jan 9, 2024
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public string GenerateCodeSnippet(SnippetModel snippetModel)
var codeGraph = new SnippetCodeGraph(snippetModel);
var payloadSb = new StringBuilder(
"<?php" + Environment.NewLine + Environment.NewLine +
"// THIS SNIPPET IS A PREVIEW VERSION OF THE SDK. NON-PRODUCTION USE ONLY" + Environment.NewLine +
Environment.NewLine +
$"{ClientVarName} = new {ClientVarType}({TokenContextVarName}, {ScopesVarName});{Environment.NewLine + Environment.NewLine}");
if (codeGraph.HasBody())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public string GenerateCodeSnippet(SnippetModel snippetModel)
{
var indentManager = new IndentManager();
var codeGraph = new SnippetCodeGraph(snippetModel);
var snippetBuilder = new StringBuilder($"# THE PYTHON SDK IS IN PREVIEW. FOR NON-PRODUCTION USE ONLY{Environment.NewLine}{Environment.NewLine}" +
var snippetBuilder = new StringBuilder($"{Environment.NewLine}{Environment.NewLine}" +
$"{ClientVarName} = {ClientVarType}({CredentialVarName}, {ScopesVarName}){Environment.NewLine}{Environment.NewLine}");

WriteRequestPayloadAndVariableName(codeGraph, snippetBuilder, indentManager);
Expand Down
Loading