Skip to content

Commit 03c7442

Browse files
authored
fix: Generate CloudQuery Go API Client from spec.json (#181)
This PR was created by a scheduled workflow to generate the CloudQuery Go API Client from `spec.json`
1 parent a6ad886 commit 03c7442

File tree

2 files changed

+257
-21
lines changed

2 files changed

+257
-21
lines changed

models.gen.go

Lines changed: 240 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec.json

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8696,29 +8696,30 @@
86968696
"required" : [ "role_arn" ]
86978697
},
86988698
"ConnectorAuthRequestOAuth" : {
8699-
"additionalProperties" : false,
8699+
"additionalProperties" : { },
87008700
"description" : "OAuth connector authentication request to start the authentication process",
87018701
"properties" : {
87028702
"plugin_team" : {
87038703
"description" : "Team that owns the plugin we are authenticating the connector for",
8704-
"example" : "cloudquery",
8705-
"type" : "string"
8704+
"example" : "cloudquery"
87068705
},
87078706
"plugin_kind" : {
87088707
"description" : "Kind of the plugin",
8709-
"example" : "source",
8710-
"type" : "string"
8708+
"example" : "source"
87118709
},
87128710
"plugin_name" : {
87138711
"description" : "Name of the plugin",
8714-
"example" : "googleanalytics",
8715-
"type" : "string"
8712+
"example" : "googleanalytics"
87168713
},
87178714
"base_url" : {
87188715
"description" : "Base of the URL the callback url will be constructed from",
87198716
"example" : "https://cloud.cloudquery.io/oauth",
8720-
"type" : "string",
87218717
"x-go-name" : "BaseURL"
8718+
},
8719+
"spec" : {
8720+
"additionalProperties" : false,
8721+
"format" : "Plugin parameters, specific to each plugin",
8722+
"type" : "object"
87228723
}
87238724
},
87248725
"required" : [ "base_url", "plugin_kind", "plugin_name", "plugin_team" ]
@@ -8736,22 +8737,24 @@
87368737
"required" : [ "redirect_url" ]
87378738
},
87388739
"ConnectorAuthFinishRequestOAuth" : {
8739-
"additionalProperties" : false,
8740+
"additionalProperties" : { },
87408741
"description" : "OAuth connector authentication request, filled in after the user has authenticated through OAuth",
87418742
"properties" : {
87428743
"auth_code" : {
8743-
"description" : "Auth code received from the OAuth provider",
8744-
"type" : "string"
8744+
"description" : "Auth code received from the OAuth provider"
87458745
},
87468746
"base_url" : {
87478747
"description" : "Base of the URL the callback url was constructed from",
87488748
"example" : "https://cloud.cloudquery.io/oauth",
8749-
"type" : "string",
87508749
"x-go-name" : "BaseURL"
87518750
},
87528751
"state" : {
8753-
"description" : "State value received from the OAuth provider",
8754-
"type" : "string"
8752+
"description" : "State value received from the OAuth provider"
8753+
},
8754+
"spec" : {
8755+
"additionalProperties" : false,
8756+
"format" : "Plugin parameters, specific to each plugin",
8757+
"type" : "object"
87558758
}
87568759
},
87578760
"required" : [ "auth_code", "base_url" ]

0 commit comments

Comments
 (0)