Skip to content

Commit 4573934

Browse files
feat: add build/upload steps to builds api
1 parent a40eca6 commit 4573934

File tree

2 files changed

+27
-7
lines changed

2 files changed

+27
-7
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 16
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-4211d663fa2256cb1448cda8e8143dae51ab4c387a2a52fd8de6d588a69dcfc8.yml
3-
openapi_spec_hash: 73a5f552ba3b047363947cdbda0fd60b
4-
config_hash: b9e5923fc9792ef81d39a59cb6e2812e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-639b02a02d375380cf208b80ec4492d5ad78237c0ead8c240f8720597a890dd5.yml
3+
openapi_spec_hash: 51e363ec545f3bea614396f05701a6d9
4+
config_hash: e067ae06bf3960c94ede3714d871bd25

pkg/cmd/projectsnippet.go

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ var projectsSnippetsCreateRequest = cli.Command{
1919
&cli.StringFlag{
2020
Name: "project-name",
2121
},
22+
&cli.StringFlag{
23+
Name: "language",
24+
Action: getAPIFlagAction[string]("body", "language"),
25+
},
2226
&cli.StringFlag{
2327
Name: "request.method",
2428
Action: getAPIFlagAction[string]("body", "request.method"),
@@ -47,13 +51,29 @@ var projectsSnippetsCreateRequest = cli.Command{
4751
Name: "request.body.filePath",
4852
Action: getAPIFlagAction[string]("body", "request.body.filePath"),
4953
},
54+
&cli.StringFlag{
55+
Name: "request.queryString.name",
56+
Action: getAPIFlagAction[string]("body", "request.queryString.#.name"),
57+
},
58+
&cli.StringFlag{
59+
Name: "request.queryString.value",
60+
Action: getAPIFlagAction[string]("body", "request.queryString.#.value"),
61+
},
5062
&cli.BoolFlag{
51-
Name: "har",
52-
Action: getAPIFlagActionWithValue[bool]("body", "har", nil),
63+
Name: "request.+query_string",
64+
Action: getAPIFlagActionWithValue[bool]("body", "request.queryString.-1", map[string]interface{}{}),
5365
},
5466
&cli.StringFlag{
55-
Name: "language",
56-
Action: getAPIFlagAction[string]("body", "language"),
67+
Name: "request.url",
68+
Action: getAPIFlagAction[string]("body", "request.url"),
69+
},
70+
&cli.StringFlag{
71+
Name: "request.postData.mimeType",
72+
Action: getAPIFlagAction[string]("body", "request.postData.mimeType"),
73+
},
74+
&cli.StringFlag{
75+
Name: "request.postData.text",
76+
Action: getAPIFlagAction[string]("body", "request.postData.text"),
5777
},
5878
&cli.StringFlag{
5979
Name: "version",

0 commit comments

Comments
 (0)