diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 9afcc34..2f1689a 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,5 +1,4 @@ .gitignore -.openapi-generator-ignore .travis.yml README.md api/openapi.yaml @@ -847,22 +846,4 @@ model_vpc_port_service.go model_vpc_service.go model_worker_preset_out_api.go response.go -test/api_account_test.go -test/api_api_keys_test.go -test/api_apps_test.go -test/api_balancers_test.go -test/api_databases_test.go -test/api_dedicated_servers_test.go -test/api_domains_test.go -test/api_firewall_test.go -test/api_floating_ip_test.go -test/api_images_test.go -test/api_kubernetes_test.go -test/api_locations_test.go -test/api_mail_test.go -test/api_projects_test.go -test/api_s3_test.go -test/api_servers_test.go -test/api_ssh_test.go -test/api_vpc_test.go utils.go diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index f766758..4122521 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.0.0-beta \ No newline at end of file +7.0.0 \ No newline at end of file diff --git a/README.md b/README.md index 3b15f3a..672dcc2 100644 --- a/README.md +++ b/README.md @@ -167,7 +167,7 @@ go get golang.org/x/net/context Put the package under your project folder and add the following in import: ```golang -import openapi "github.com/GIT_USER_ID/GIT_REPO_ID" +import openapi "github.com/timeweb-cloud/sdk-go" ``` To use a proxy, set the environment variable `HTTP_PROXY`: diff --git a/client.go b/client.go index 5ce70af..1bccdc0 100644 --- a/client.go +++ b/client.go @@ -493,6 +493,7 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err return } _, err = f.Seek(0, io.SeekStart) + err = os.Remove(f.Name()) return } if f, ok := v.(**os.File); ok { @@ -505,6 +506,7 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err return } _, err = (*f).Seek(0, io.SeekStart) + err = os.Remove((*f).Name()) return } if xmlCheck.MatchString(contentType) { @@ -581,7 +583,11 @@ func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err e } else if jsonCheck.MatchString(contentType) { err = json.NewEncoder(bodyBuf).Encode(body) } else if xmlCheck.MatchString(contentType) { - err = xml.NewEncoder(bodyBuf).Encode(body) + var bs []byte + bs, err = xml.Marshal(body) + if err == nil { + bodyBuf.Write(bs) + } } if err != nil { diff --git a/docs/APIKeysAPI.md b/docs/APIKeysAPI.md index 2f3340f..a7d9cd3 100644 --- a/docs/APIKeysAPI.md +++ b/docs/APIKeysAPI.md @@ -29,7 +29,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -95,7 +95,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -163,7 +163,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -224,7 +224,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -296,7 +296,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { diff --git a/docs/AccountAPI.md b/docs/AccountAPI.md index b110d6e..c382122 100644 --- a/docs/AccountAPI.md +++ b/docs/AccountAPI.md @@ -36,7 +36,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -102,7 +102,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -168,7 +168,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -234,7 +234,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -300,7 +300,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -361,7 +361,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -422,7 +422,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -483,7 +483,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -544,7 +544,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -605,7 +605,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -669,7 +669,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -733,7 +733,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { diff --git a/docs/AppsAPI.md b/docs/AppsAPI.md index ac48d78..dd922d3 100644 --- a/docs/AppsAPI.md +++ b/docs/AppsAPI.md @@ -45,7 +45,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -111,7 +111,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -177,7 +177,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -249,7 +249,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -317,7 +317,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -385,7 +385,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -458,7 +458,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -528,7 +528,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -602,7 +602,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -672,7 +672,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -746,7 +746,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -807,7 +807,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -877,7 +877,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -950,7 +950,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1028,7 +1028,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1103,7 +1103,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1173,7 +1173,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1243,7 +1243,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1304,7 +1304,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1374,7 +1374,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1446,7 +1446,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { diff --git a/docs/BalancersAPI.md b/docs/BalancersAPI.md index 66c0694..278f1eb 100644 --- a/docs/BalancersAPI.md +++ b/docs/BalancersAPI.md @@ -37,7 +37,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -107,7 +107,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -173,7 +173,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -245,7 +245,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -319,7 +319,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -390,7 +390,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -460,7 +460,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -530,7 +530,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -600,7 +600,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -670,7 +670,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -738,7 +738,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -799,7 +799,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -871,7 +871,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { diff --git a/docs/DatabasesAPI.md b/docs/DatabasesAPI.md index db983fd..ab549a0 100644 --- a/docs/DatabasesAPI.md +++ b/docs/DatabasesAPI.md @@ -53,7 +53,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -119,7 +119,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -189,7 +189,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -255,7 +255,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -327,7 +327,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -399,7 +399,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -473,7 +473,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -544,7 +544,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -618,7 +618,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -689,7 +689,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -760,7 +760,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -830,7 +830,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -900,7 +900,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -973,7 +973,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1047,7 +1047,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1117,7 +1117,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1178,7 +1178,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1246,7 +1246,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1319,7 +1319,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1389,7 +1389,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1462,7 +1462,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1532,7 +1532,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1600,7 +1600,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1661,7 +1661,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1732,7 +1732,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1804,7 +1804,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1876,7 +1876,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1948,7 +1948,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -2020,7 +2020,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { diff --git a/docs/DedicatedServersAPI.md b/docs/DedicatedServersAPI.md index dafb685..7c969ea 100644 --- a/docs/DedicatedServersAPI.md +++ b/docs/DedicatedServersAPI.md @@ -31,7 +31,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -97,7 +97,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -165,7 +165,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -235,7 +235,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -305,7 +305,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -366,7 +366,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -432,7 +432,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { diff --git a/docs/DomainsAPI.md b/docs/DomainsAPI.md index 68fd415..bc9c0eb 100644 --- a/docs/DomainsAPI.md +++ b/docs/DomainsAPI.md @@ -45,7 +45,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -113,7 +113,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -186,7 +186,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -256,7 +256,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -328,7 +328,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -394,7 +394,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -462,7 +462,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -533,7 +533,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -604,7 +604,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -674,7 +674,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -748,7 +748,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -822,7 +822,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -892,7 +892,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -962,7 +962,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1028,7 +1028,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1104,7 +1104,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1174,7 +1174,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1242,7 +1242,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1314,7 +1314,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1389,7 +1389,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1461,7 +1461,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { diff --git a/docs/FirewallAPI.md b/docs/FirewallAPI.md index 88df648..d8e5201 100644 --- a/docs/FirewallAPI.md +++ b/docs/FirewallAPI.md @@ -38,7 +38,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -113,7 +113,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -181,7 +181,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -253,7 +253,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -321,7 +321,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -392,7 +392,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -465,7 +465,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -535,7 +535,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -609,7 +609,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -682,7 +682,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -756,7 +756,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -824,7 +824,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -901,7 +901,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -973,7 +973,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { diff --git a/docs/FloatingIPAPI.md b/docs/FloatingIPAPI.md index e2ccba9..f3f6269 100644 --- a/docs/FloatingIPAPI.md +++ b/docs/FloatingIPAPI.md @@ -31,7 +31,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -101,7 +101,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -167,7 +167,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -235,7 +235,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -305,7 +305,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -366,7 +366,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -434,7 +434,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { diff --git a/docs/ImagesAPI.md b/docs/ImagesAPI.md index cca6cc2..daa73b4 100644 --- a/docs/ImagesAPI.md +++ b/docs/ImagesAPI.md @@ -34,7 +34,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -100,7 +100,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -172,7 +172,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -240,7 +240,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -311,7 +311,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -381,7 +381,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -454,7 +454,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -528,7 +528,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -596,7 +596,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -668,7 +668,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { diff --git a/docs/KubernetesAPI.md b/docs/KubernetesAPI.md index a105e1a..539f8cc 100644 --- a/docs/KubernetesAPI.md +++ b/docs/KubernetesAPI.md @@ -43,7 +43,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -109,7 +109,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -181,7 +181,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -255,7 +255,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -326,7 +326,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -397,7 +397,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -467,7 +467,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -537,7 +537,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -610,7 +610,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -680,7 +680,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -750,7 +750,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -827,7 +827,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -897,7 +897,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -965,7 +965,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1026,7 +1026,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1087,7 +1087,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1148,7 +1148,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1223,7 +1223,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1296,7 +1296,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { diff --git a/docs/LocationsAPI.md b/docs/LocationsAPI.md index 0e1469d..3777531 100644 --- a/docs/LocationsAPI.md +++ b/docs/LocationsAPI.md @@ -25,7 +25,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { diff --git a/docs/MailAPI.md b/docs/MailAPI.md index 4b87d9c..9588be7 100644 --- a/docs/MailAPI.md +++ b/docs/MailAPI.md @@ -34,7 +34,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -106,7 +106,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -177,7 +177,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -247,7 +247,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -323,7 +323,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -384,7 +384,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -457,7 +457,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -527,7 +527,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -599,7 +599,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -665,7 +665,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { diff --git a/docs/ProjectsAPI.md b/docs/ProjectsAPI.md index a05407d..6f80bb7 100644 --- a/docs/ProjectsAPI.md +++ b/docs/ProjectsAPI.md @@ -49,7 +49,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -121,7 +121,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -193,7 +193,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -265,7 +265,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -337,7 +337,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -409,7 +409,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -481,7 +481,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -547,7 +547,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -615,7 +615,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -676,7 +676,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -737,7 +737,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -798,7 +798,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -859,7 +859,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -920,7 +920,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -981,7 +981,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1051,7 +1051,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1121,7 +1121,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1191,7 +1191,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1261,7 +1261,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1331,7 +1331,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1401,7 +1401,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1471,7 +1471,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1541,7 +1541,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1602,7 +1602,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1674,7 +1674,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { diff --git a/docs/S3API.md b/docs/S3API.md index 7b49b40..5ddf64c 100644 --- a/docs/S3API.md +++ b/docs/S3API.md @@ -43,7 +43,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -107,7 +107,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -179,7 +179,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -249,7 +249,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -319,7 +319,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -385,7 +385,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -459,7 +459,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -531,7 +531,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -603,7 +603,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -677,7 +677,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -747,7 +747,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -817,7 +817,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -878,7 +878,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -939,7 +939,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1000,7 +1000,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1070,7 +1070,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1134,7 +1134,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1206,7 +1206,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1278,7 +1278,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { diff --git a/docs/SSHAPI.md b/docs/SSHAPI.md index 287bffc..d7d9f23 100644 --- a/docs/SSHAPI.md +++ b/docs/SSHAPI.md @@ -31,7 +31,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -101,7 +101,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -167,7 +167,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -235,7 +235,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -306,7 +306,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -376,7 +376,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -437,7 +437,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { diff --git a/docs/ServersAPI.md b/docs/ServersAPI.md index 5bdb505..97e325e 100644 --- a/docs/ServersAPI.md +++ b/docs/ServersAPI.md @@ -62,7 +62,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -134,7 +134,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -204,7 +204,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -270,7 +270,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -342,7 +342,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -417,7 +417,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -491,7 +491,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -562,7 +562,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -636,7 +636,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -706,7 +706,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -767,7 +767,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -828,7 +828,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -898,7 +898,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -971,7 +971,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1044,7 +1044,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1120,7 +1120,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1193,7 +1193,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1263,7 +1263,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1333,7 +1333,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1409,7 +1409,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1483,7 +1483,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1551,7 +1551,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1612,7 +1612,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1673,7 +1673,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1741,7 +1741,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1809,7 +1809,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1885,7 +1885,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -1955,7 +1955,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -2023,7 +2023,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -2091,7 +2091,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -2159,7 +2159,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -2227,7 +2227,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -2299,7 +2299,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -2374,7 +2374,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -2449,7 +2449,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -2527,7 +2527,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -2599,7 +2599,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -2669,7 +2669,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { diff --git a/docs/VPCAPI.md b/docs/VPCAPI.md index 07820be..0fe765c 100644 --- a/docs/VPCAPI.md +++ b/docs/VPCAPI.md @@ -31,7 +31,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -97,7 +97,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -167,7 +167,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -237,7 +237,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -307,7 +307,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -377,7 +377,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { @@ -438,7 +438,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func main() { diff --git a/git_push.sh b/git_push.sh index f53a75d..7110ec4 100644 --- a/git_push.sh +++ b/git_push.sh @@ -14,12 +14,12 @@ if [ "$git_host" = "" ]; then fi if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" + git_user_id="timeweb-cloud" echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" fi if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" + git_repo_id="sdk-go" echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" fi diff --git a/go.mod b/go.mod index 7fca7ee..7a808f8 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,11 @@ -module github.com/GIT_USER_ID/GIT_REPO_ID +module github.com/timeweb-cloud/sdk-go go 1.18 +require github.com/stretchr/testify v1.9.0 + require ( + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index c966c8d..60ce688 100644 --- a/go.sum +++ b/go.sum @@ -1,11 +1,10 @@ -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/model_availability_zone.go b/model_availability_zone.go index fca5208..d541420 100644 --- a/model_availability_zone.go +++ b/model_availability_zone.go @@ -21,14 +21,14 @@ type AvailabilityZone string // List of availability-zone const ( - SPB_1 AvailabilityZone = "spb-1" - SPB_2 AvailabilityZone = "spb-2" - SPB_3 AvailabilityZone = "spb-3" - SPB_4 AvailabilityZone = "spb-4" - NSK_1 AvailabilityZone = "nsk-1" - AMS_1 AvailabilityZone = "ams-1" - GDN_1 AvailabilityZone = "gdn-1" - ALA_1 AvailabilityZone = "ala-1" + AVAILABILITYZONE_SPB_1 AvailabilityZone = "spb-1" + AVAILABILITYZONE_SPB_2 AvailabilityZone = "spb-2" + AVAILABILITYZONE_SPB_3 AvailabilityZone = "spb-3" + AVAILABILITYZONE_SPB_4 AvailabilityZone = "spb-4" + AVAILABILITYZONE_NSK_1 AvailabilityZone = "nsk-1" + AVAILABILITYZONE_AMS_1 AvailabilityZone = "ams-1" + AVAILABILITYZONE_GDN_1 AvailabilityZone = "gdn-1" + AVAILABILITYZONE_ALA_1 AvailabilityZone = "ala-1" ) // All allowed values of AvailabilityZone enum diff --git a/model_db_type.go b/model_db_type.go index ba15992..d119473 100644 --- a/model_db_type.go +++ b/model_db_type.go @@ -21,21 +21,21 @@ type DbType string // List of db-type const ( - MYSQL DbType = "mysql" - MYSQL5 DbType = "mysql5" - POSTGRES DbType = "postgres" - POSTGRES14 DbType = "postgres14" - POSTGRES15 DbType = "postgres15" - POSTGRES16 DbType = "postgres16" - REDIS DbType = "redis" - MONGODB4 DbType = "mongodb4" - MONGODB DbType = "mongodb" - MONGODB6 DbType = "mongodb6" - MONGODB7 DbType = "mongodb7" - OPENSEARCH DbType = "opensearch" - KAFKA DbType = "kafka" - RABBITMQ DbType = "rabbitmq" - CLICKHOUSE DbType = "clickhouse" + DBTYPE_MYSQL DbType = "mysql" + DBTYPE_MYSQL5 DbType = "mysql5" + DBTYPE_POSTGRES DbType = "postgres" + DBTYPE_POSTGRES14 DbType = "postgres14" + DBTYPE_POSTGRES15 DbType = "postgres15" + DBTYPE_POSTGRES16 DbType = "postgres16" + DBTYPE_REDIS DbType = "redis" + DBTYPE_MONGODB4 DbType = "mongodb4" + DBTYPE_MONGODB DbType = "mongodb" + DBTYPE_MONGODB6 DbType = "mongodb6" + DBTYPE_MONGODB7 DbType = "mongodb7" + DBTYPE_OPENSEARCH DbType = "opensearch" + DBTYPE_KAFKA DbType = "kafka" + DBTYPE_RABBITMQ DbType = "rabbitmq" + DBTYPE_CLICKHOUSE DbType = "clickhouse" ) // All allowed values of DbType enum diff --git a/model_deploy_status.go b/model_deploy_status.go index 9ce4ae8..4c8c753 100644 --- a/model_deploy_status.go +++ b/model_deploy_status.go @@ -21,20 +21,20 @@ type DeployStatus string // List of deploy-status const ( - CREATED DeployStatus = "created" - STARTED DeployStatus = "started" - PREPARING_ENVIRONMENT DeployStatus = "preparing_environment" - CLONING_CODE DeployStatus = "cloning_code" - INSTALLING_DEPENDENCIES DeployStatus = "installing_dependencies" - BUILDING_CODE DeployStatus = "building_code" - CHECKING_SSL_CERTS DeployStatus = "checking_ssl_certs" - CLEANING_UP DeployStatus = "cleaning_up" - RUNNING_CONTAINER DeployStatus = "running_container" - STOPPING DeployStatus = "stopping" - STOPPED DeployStatus = "stopped" - FAILURE DeployStatus = "failure" - SUCCESS DeployStatus = "success" - ACCESS_ERROR DeployStatus = "access_error" + DEPLOYSTATUS_CREATED DeployStatus = "created" + DEPLOYSTATUS_STARTED DeployStatus = "started" + DEPLOYSTATUS_PREPARING_ENVIRONMENT DeployStatus = "preparing_environment" + DEPLOYSTATUS_CLONING_CODE DeployStatus = "cloning_code" + DEPLOYSTATUS_INSTALLING_DEPENDENCIES DeployStatus = "installing_dependencies" + DEPLOYSTATUS_BUILDING_CODE DeployStatus = "building_code" + DEPLOYSTATUS_CHECKING_SSL_CERTS DeployStatus = "checking_ssl_certs" + DEPLOYSTATUS_CLEANING_UP DeployStatus = "cleaning_up" + DEPLOYSTATUS_RUNNING_CONTAINER DeployStatus = "running_container" + DEPLOYSTATUS_STOPPING DeployStatus = "stopping" + DEPLOYSTATUS_STOPPED DeployStatus = "stopped" + DEPLOYSTATUS_FAILURE DeployStatus = "failure" + DEPLOYSTATUS_SUCCESS DeployStatus = "success" + DEPLOYSTATUS_ACCESS_ERROR DeployStatus = "access_error" ) // All allowed values of DeployStatus enum diff --git a/model_domain_payment_period.go b/model_domain_payment_period.go index 686109a..7fd2b8d 100644 --- a/model_domain_payment_period.go +++ b/model_domain_payment_period.go @@ -21,16 +21,16 @@ type DomainPaymentPeriod string // List of domain-payment-period const ( - P1_Y DomainPaymentPeriod = "P1Y" - P2_Y DomainPaymentPeriod = "P2Y" - P3_Y DomainPaymentPeriod = "P3Y" - P4_Y DomainPaymentPeriod = "P4Y" - P5_Y DomainPaymentPeriod = "P5Y" - P6_Y DomainPaymentPeriod = "P6Y" - P7_Y DomainPaymentPeriod = "P7Y" - P8_Y DomainPaymentPeriod = "P8Y" - P9_Y DomainPaymentPeriod = "P9Y" - P10_Y DomainPaymentPeriod = "P10Y" + DOMAINPAYMENTPERIOD_P1_Y DomainPaymentPeriod = "P1Y" + DOMAINPAYMENTPERIOD_P2_Y DomainPaymentPeriod = "P2Y" + DOMAINPAYMENTPERIOD_P3_Y DomainPaymentPeriod = "P3Y" + DOMAINPAYMENTPERIOD_P4_Y DomainPaymentPeriod = "P4Y" + DOMAINPAYMENTPERIOD_P5_Y DomainPaymentPeriod = "P5Y" + DOMAINPAYMENTPERIOD_P6_Y DomainPaymentPeriod = "P6Y" + DOMAINPAYMENTPERIOD_P7_Y DomainPaymentPeriod = "P7Y" + DOMAINPAYMENTPERIOD_P8_Y DomainPaymentPeriod = "P8Y" + DOMAINPAYMENTPERIOD_P9_Y DomainPaymentPeriod = "P9Y" + DOMAINPAYMENTPERIOD_P10_Y DomainPaymentPeriod = "P10Y" ) // All allowed values of DomainPaymentPeriod enum diff --git a/model_domain_prime_type.go b/model_domain_prime_type.go index ad8de63..671a49d 100644 --- a/model_domain_prime_type.go +++ b/model_domain_prime_type.go @@ -21,10 +21,10 @@ type DomainPrimeType string // List of domain-prime-type const ( - EXTRA DomainPrimeType = "extra" - PREMIUM DomainPrimeType = "premium" - OPTIMAL DomainPrimeType = "optimal" - MAXIMAL DomainPrimeType = "maximal" + DOMAINPRIMETYPE_EXTRA DomainPrimeType = "extra" + DOMAINPRIMETYPE_PREMIUM DomainPrimeType = "premium" + DOMAINPRIMETYPE_OPTIMAL DomainPrimeType = "optimal" + DOMAINPRIMETYPE_MAXIMAL DomainPrimeType = "maximal" ) // All allowed values of DomainPrimeType enum diff --git a/model_firewall_rule_direction.go b/model_firewall_rule_direction.go index 4622c2c..b79432d 100644 --- a/model_firewall_rule_direction.go +++ b/model_firewall_rule_direction.go @@ -21,8 +21,8 @@ type FirewallRuleDirection string // List of FirewallRuleDirection const ( - INGRESS FirewallRuleDirection = "ingress" - EGRESS FirewallRuleDirection = "egress" + FIREWALLRULEDIRECTION_INGRESS FirewallRuleDirection = "ingress" + FIREWALLRULEDIRECTION_EGRESS FirewallRuleDirection = "egress" ) // All allowed values of FirewallRuleDirection enum diff --git a/model_firewall_rule_protocol.go b/model_firewall_rule_protocol.go index 56396db..9121b2d 100644 --- a/model_firewall_rule_protocol.go +++ b/model_firewall_rule_protocol.go @@ -21,9 +21,9 @@ type FirewallRuleProtocol string // List of FirewallRuleProtocol const ( - TCP FirewallRuleProtocol = "tcp" - UDP FirewallRuleProtocol = "udp" - ICMP FirewallRuleProtocol = "icmp" + FIREWALLRULEPROTOCOL_TCP FirewallRuleProtocol = "tcp" + FIREWALLRULEPROTOCOL_UDP FirewallRuleProtocol = "udp" + FIREWALLRULEPROTOCOL_ICMP FirewallRuleProtocol = "icmp" ) // All allowed values of FirewallRuleProtocol enum diff --git a/model_frameworks.go b/model_frameworks.go index 574c88f..1d86288 100644 --- a/model_frameworks.go +++ b/model_frameworks.go @@ -21,23 +21,23 @@ type Frameworks string // List of frameworks const ( - DJANGO Frameworks = "django" - EXPRESS Frameworks = "express" - PHOENIX Frameworks = "phoenix" - SPRING Frameworks = "Spring" - LARAVEL Frameworks = "laravel" - BEEGO Frameworks = "beego" - FASTAPI Frameworks = "fastapi" - ASP_NET_CORE Frameworks = "ASP.NET Core" - HAPI Frameworks = "hapi" - CELERY Frameworks = "celery" - FLASK Frameworks = "flask" - GIN Frameworks = "gin" - DOCKER Frameworks = "docker" - FASTIFY Frameworks = "fastify" - NEST Frameworks = "nest" - SYMFONY Frameworks = "symfony" - YII Frameworks = "yii" + FRAMEWORKS_DJANGO Frameworks = "django" + FRAMEWORKS_EXPRESS Frameworks = "express" + FRAMEWORKS_PHOENIX Frameworks = "phoenix" + FRAMEWORKS_SPRING Frameworks = "Spring" + FRAMEWORKS_LARAVEL Frameworks = "laravel" + FRAMEWORKS_BEEGO Frameworks = "beego" + FRAMEWORKS_FASTAPI Frameworks = "fastapi" + FRAMEWORKS_ASP_NET_CORE Frameworks = "ASP.NET Core" + FRAMEWORKS_HAPI Frameworks = "hapi" + FRAMEWORKS_CELERY Frameworks = "celery" + FRAMEWORKS_FLASK Frameworks = "flask" + FRAMEWORKS_GIN Frameworks = "gin" + FRAMEWORKS_DOCKER Frameworks = "docker" + FRAMEWORKS_FASTIFY Frameworks = "fastify" + FRAMEWORKS_NEST Frameworks = "nest" + FRAMEWORKS_SYMFONY Frameworks = "symfony" + FRAMEWORKS_YII Frameworks = "yii" ) // All allowed values of Frameworks enum diff --git a/model_image_status.go b/model_image_status.go index 76393dc..7844389 100644 --- a/model_image_status.go +++ b/model_image_status.go @@ -21,10 +21,10 @@ type ImageStatus string // List of ImageStatus const ( - NEW ImageStatus = "new" - CREATED ImageStatus = "created" - FAILED ImageStatus = "failed" - DELETED ImageStatus = "deleted" + IMAGESTATUS_NEW ImageStatus = "new" + IMAGESTATUS_CREATED ImageStatus = "created" + IMAGESTATUS_FAILED ImageStatus = "failed" + IMAGESTATUS_DELETED ImageStatus = "deleted" ) // All allowed values of ImageStatus enum diff --git a/model_location.go b/model_location.go index ec3c56c..7f5b59b 100644 --- a/model_location.go +++ b/model_location.go @@ -21,12 +21,12 @@ type Location string // List of location const ( - RU_1 Location = "ru-1" - RU_2 Location = "ru-2" - RU_3 Location = "ru-3" - PL_1 Location = "pl-1" - KZ_1 Location = "kz-1" - NL_1 Location = "nl-1" + LOCATION_RU_1 Location = "ru-1" + LOCATION_RU_2 Location = "ru-2" + LOCATION_RU_3 Location = "ru-3" + LOCATION_PL_1 Location = "pl-1" + LOCATION_KZ_1 Location = "kz-1" + LOCATION_NL_1 Location = "nl-1" ) // All allowed values of Location enum diff --git a/model_notification_setting_channel.go b/model_notification_setting_channel.go index e4cd0de..625c929 100644 --- a/model_notification_setting_channel.go +++ b/model_notification_setting_channel.go @@ -21,10 +21,10 @@ type NotificationSettingChannel string // List of notification-setting-channel const ( - ON NotificationSettingChannel = "on" - OFF NotificationSettingChannel = "off" - DISABLED_ON NotificationSettingChannel = "disabled_on" - DISABLED_OFF NotificationSettingChannel = "disabled_off" + NOTIFICATIONSETTINGCHANNEL_ON NotificationSettingChannel = "on" + NOTIFICATIONSETTINGCHANNEL_OFF NotificationSettingChannel = "off" + NOTIFICATIONSETTINGCHANNEL_DISABLED_ON NotificationSettingChannel = "disabled_on" + NOTIFICATIONSETTINGCHANNEL_DISABLED_OFF NotificationSettingChannel = "disabled_off" ) // All allowed values of NotificationSettingChannel enum diff --git a/model_notification_setting_type.go b/model_notification_setting_type.go index 3bcb2a4..808dd65 100644 --- a/model_notification_setting_type.go +++ b/model_notification_setting_type.go @@ -21,24 +21,24 @@ type NotificationSettingType string // List of notification-setting-type const ( - BALANCER_DELETION_CONFIRMATION NotificationSettingType = "balancer_deletion_confirmation" - DB_DELETION_CONFIRMATION NotificationSettingType = "db_deletion_confirmation" - S3_DELETION_CONFIRMATION NotificationSettingType = "s3_deletion_confirmation" - K8S_DELETION_CONFIRMATION NotificationSettingType = "k8s_deletion_confirmation" - SERVER_DELETION_CONFIRMATION NotificationSettingType = "server_deletion_confirmation" - SERVER_DISK_ALMOST_FILLING_UP NotificationSettingType = "server_disk_almost_filling_up" - SERVER_BACKUP_CREATED NotificationSettingType = "server_backup_created" - SERVER_BACKUP_CREATION_ERROR NotificationSettingType = "server_backup_creation_error" - SERVER_INSTALL NotificationSettingType = "server_install" - SERVER_REINSTALL NotificationSettingType = "server_reinstall" - SERVER_RESET_PASSWORD_SUCCESS NotificationSettingType = "server_reset_password_success" - SERVER_RESET_PASSWORD_ERROR NotificationSettingType = "server_reset_password_error" - SERVER_CLONING NotificationSettingType = "server_cloning" - LOW_BALANCE_INFO NotificationSettingType = "low_balance_info" - ACCOUNT_BLOCKED NotificationSettingType = "account_blocked" - MONEY_TRANSFER NotificationSettingType = "money_transfer" - AUTO_PAYMENT_SUCCESS NotificationSettingType = "auto_payment_success" - AUTO_PAYMENT_ERROR NotificationSettingType = "auto_payment_error" + NOTIFICATIONSETTINGTYPE_BALANCER_DELETION_CONFIRMATION NotificationSettingType = "balancer_deletion_confirmation" + NOTIFICATIONSETTINGTYPE_DB_DELETION_CONFIRMATION NotificationSettingType = "db_deletion_confirmation" + NOTIFICATIONSETTINGTYPE_S3_DELETION_CONFIRMATION NotificationSettingType = "s3_deletion_confirmation" + NOTIFICATIONSETTINGTYPE_K8S_DELETION_CONFIRMATION NotificationSettingType = "k8s_deletion_confirmation" + NOTIFICATIONSETTINGTYPE_SERVER_DELETION_CONFIRMATION NotificationSettingType = "server_deletion_confirmation" + NOTIFICATIONSETTINGTYPE_SERVER_DISK_ALMOST_FILLING_UP NotificationSettingType = "server_disk_almost_filling_up" + NOTIFICATIONSETTINGTYPE_SERVER_BACKUP_CREATED NotificationSettingType = "server_backup_created" + NOTIFICATIONSETTINGTYPE_SERVER_BACKUP_CREATION_ERROR NotificationSettingType = "server_backup_creation_error" + NOTIFICATIONSETTINGTYPE_SERVER_INSTALL NotificationSettingType = "server_install" + NOTIFICATIONSETTINGTYPE_SERVER_REINSTALL NotificationSettingType = "server_reinstall" + NOTIFICATIONSETTINGTYPE_SERVER_RESET_PASSWORD_SUCCESS NotificationSettingType = "server_reset_password_success" + NOTIFICATIONSETTINGTYPE_SERVER_RESET_PASSWORD_ERROR NotificationSettingType = "server_reset_password_error" + NOTIFICATIONSETTINGTYPE_SERVER_CLONING NotificationSettingType = "server_cloning" + NOTIFICATIONSETTINGTYPE_LOW_BALANCE_INFO NotificationSettingType = "low_balance_info" + NOTIFICATIONSETTINGTYPE_ACCOUNT_BLOCKED NotificationSettingType = "account_blocked" + NOTIFICATIONSETTINGTYPE_MONEY_TRANSFER NotificationSettingType = "money_transfer" + NOTIFICATIONSETTINGTYPE_AUTO_PAYMENT_SUCCESS NotificationSettingType = "auto_payment_success" + NOTIFICATIONSETTINGTYPE_AUTO_PAYMENT_ERROR NotificationSettingType = "auto_payment_error" ) // All allowed values of NotificationSettingType enum diff --git a/model_os.go b/model_os.go index a5cb048..897a29e 100644 --- a/model_os.go +++ b/model_os.go @@ -21,17 +21,17 @@ type OS string // List of OS const ( - CENTOS OS = "centos" - ALMALINUX OS = "almalinux" - DEBIAN OS = "debian" - BITRIX OS = "bitrix" - UBUNTU OS = "ubuntu" - BRAINYCP OS = "brainycp" - ARCHLINUX OS = "archlinux" - ASTRALINUX OS = "astralinux" - WINDOWS OS = "windows" - CUSTOM_OS OS = "custom_os" - OTHER OS = "other" + OS_CENTOS OS = "centos" + OS_ALMALINUX OS = "almalinux" + OS_DEBIAN OS = "debian" + OS_BITRIX OS = "bitrix" + OS_UBUNTU OS = "ubuntu" + OS_BRAINYCP OS = "brainycp" + OS_ARCHLINUX OS = "archlinux" + OS_ASTRALINUX OS = "astralinux" + OS_WINDOWS OS = "windows" + OS_CUSTOM_OS OS = "custom_os" + OS_OTHER OS = "other" ) // All allowed values of OS enum diff --git a/model_policy.go b/model_policy.go index b8fdc18..def32a3 100644 --- a/model_policy.go +++ b/model_policy.go @@ -21,8 +21,8 @@ type Policy string // List of Policy const ( - ACCEPT Policy = "ACCEPT" - DROP Policy = "DROP" + POLICY_ACCEPT Policy = "ACCEPT" + POLICY_DROP Policy = "DROP" ) // All allowed values of Policy enum diff --git a/model_providers.go b/model_providers.go index fb28b8c..500ea88 100644 --- a/model_providers.go +++ b/model_providers.go @@ -21,10 +21,10 @@ type Providers string // List of providers const ( - GITHUB Providers = "github" - GITLAB Providers = "gitlab" - BITBUCKET Providers = "bitbucket" - GIT Providers = "git" + PROVIDERS_GITHUB Providers = "github" + PROVIDERS_GITLAB Providers = "gitlab" + PROVIDERS_BITBUCKET Providers = "bitbucket" + PROVIDERS_GIT Providers = "git" ) // All allowed values of Providers enum diff --git a/model_resource_type.go b/model_resource_type.go index 12bf5bd..51b0588 100644 --- a/model_resource_type.go +++ b/model_resource_type.go @@ -21,7 +21,7 @@ type ResourceType string // List of ResourceType const ( - SERVER ResourceType = "server" + RESOURCETYPE_SERVER ResourceType = "server" ) // All allowed values of ResourceType enum diff --git a/model_setting_condition.go b/model_setting_condition.go index cd95018..ad06645 100644 --- a/model_setting_condition.go +++ b/model_setting_condition.go @@ -21,9 +21,9 @@ type SettingCondition string // List of setting-condition const ( - ON SettingCondition = "on" - OFF SettingCondition = "off" - DISABLED_ON SettingCondition = "disabled_on" + SETTINGCONDITION_ON SettingCondition = "on" + SETTINGCONDITION_OFF SettingCondition = "off" + SETTINGCONDITION_DISABLED_ON SettingCondition = "disabled_on" ) // All allowed values of SettingCondition enum diff --git a/model_url_status.go b/model_url_status.go index 978a9bd..146ca46 100644 --- a/model_url_status.go +++ b/model_url_status.go @@ -21,10 +21,10 @@ type UrlStatus string // List of UrlStatus const ( - PROCESS UrlStatus = "process" - FAILED UrlStatus = "failed" - FINISHED UrlStatus = "finished" - ALREADY_EXISTS UrlStatus = "already_exists" + URLSTATUS_PROCESS UrlStatus = "process" + URLSTATUS_FAILED UrlStatus = "failed" + URLSTATUS_FINISHED UrlStatus = "finished" + URLSTATUS_ALREADY_EXISTS UrlStatus = "already_exists" ) // All allowed values of UrlStatus enum diff --git a/model_url_type.go b/model_url_type.go index 36ddaea..486e9b7 100644 --- a/model_url_type.go +++ b/model_url_type.go @@ -21,9 +21,9 @@ type URLType string // List of URLType const ( - TIMEWEB URLType = "timeweb" - GOOGLE_DRIVE URLType = "google_drive" - YANDEX URLType = "yandex" + URLTYPE_TIMEWEB URLType = "timeweb" + URLTYPE_GOOGLE_DRIVE URLType = "google_drive" + URLTYPE_YANDEX URLType = "yandex" ) // All allowed values of URLType enum diff --git a/test/api_account_test.go b/test/api_account_test.go index 33f9bd0..1af11ef 100644 --- a/test/api_account_test.go +++ b/test/api_account_test.go @@ -11,10 +11,11 @@ package openapi import ( "context" + "testing" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func Test_openapi_AccountAPIService(t *testing.T) { @@ -24,7 +25,7 @@ func Test_openapi_AccountAPIService(t *testing.T) { t.Run("Test AccountAPIService AddCountriesToAllowedList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.AccountAPI.AddCountriesToAllowedList(context.Background()).Execute() @@ -36,7 +37,7 @@ func Test_openapi_AccountAPIService(t *testing.T) { t.Run("Test AccountAPIService AddIPsToAllowedList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.AccountAPI.AddIPsToAllowedList(context.Background()).Execute() @@ -48,7 +49,7 @@ func Test_openapi_AccountAPIService(t *testing.T) { t.Run("Test AccountAPIService DeleteCountriesFromAllowedList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.AccountAPI.DeleteCountriesFromAllowedList(context.Background()).Execute() @@ -60,7 +61,7 @@ func Test_openapi_AccountAPIService(t *testing.T) { t.Run("Test AccountAPIService DeleteIPsFromAllowedList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.AccountAPI.DeleteIPsFromAllowedList(context.Background()).Execute() @@ -72,7 +73,7 @@ func Test_openapi_AccountAPIService(t *testing.T) { t.Run("Test AccountAPIService GetAccountStatus", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.AccountAPI.GetAccountStatus(context.Background()).Execute() @@ -84,7 +85,7 @@ func Test_openapi_AccountAPIService(t *testing.T) { t.Run("Test AccountAPIService GetAuthAccessSettings", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.AccountAPI.GetAuthAccessSettings(context.Background()).Execute() @@ -96,7 +97,7 @@ func Test_openapi_AccountAPIService(t *testing.T) { t.Run("Test AccountAPIService GetCountries", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.AccountAPI.GetCountries(context.Background()).Execute() @@ -108,7 +109,7 @@ func Test_openapi_AccountAPIService(t *testing.T) { t.Run("Test AccountAPIService GetFinances", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.AccountAPI.GetFinances(context.Background()).Execute() @@ -120,7 +121,7 @@ func Test_openapi_AccountAPIService(t *testing.T) { t.Run("Test AccountAPIService GetNotificationSettings", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.AccountAPI.GetNotificationSettings(context.Background()).Execute() @@ -132,7 +133,7 @@ func Test_openapi_AccountAPIService(t *testing.T) { t.Run("Test AccountAPIService UpdateAuthRestrictionsByCountries", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test httpRes, err := apiClient.AccountAPI.UpdateAuthRestrictionsByCountries(context.Background()).Execute() @@ -143,7 +144,7 @@ func Test_openapi_AccountAPIService(t *testing.T) { t.Run("Test AccountAPIService UpdateAuthRestrictionsByIP", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test httpRes, err := apiClient.AccountAPI.UpdateAuthRestrictionsByIP(context.Background()).Execute() @@ -154,7 +155,7 @@ func Test_openapi_AccountAPIService(t *testing.T) { t.Run("Test AccountAPIService UpdateNotificationSettings", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.AccountAPI.UpdateNotificationSettings(context.Background()).Execute() diff --git a/test/api_api_keys_test.go b/test/api_api_keys_test.go index 149d43a..33803e0 100644 --- a/test/api_api_keys_test.go +++ b/test/api_api_keys_test.go @@ -11,10 +11,11 @@ package openapi import ( "context" + "testing" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func Test_openapi_APIKeysAPIService(t *testing.T) { @@ -24,7 +25,7 @@ func Test_openapi_APIKeysAPIService(t *testing.T) { t.Run("Test APIKeysAPIService CreateToken", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.APIKeysAPI.CreateToken(context.Background()).Execute() @@ -36,7 +37,7 @@ func Test_openapi_APIKeysAPIService(t *testing.T) { t.Run("Test APIKeysAPIService DeleteToken", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var tokenId string @@ -49,7 +50,7 @@ func Test_openapi_APIKeysAPIService(t *testing.T) { t.Run("Test APIKeysAPIService GetTokens", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.APIKeysAPI.GetTokens(context.Background()).Execute() @@ -61,7 +62,7 @@ func Test_openapi_APIKeysAPIService(t *testing.T) { t.Run("Test APIKeysAPIService ReissueToken", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var tokenId string @@ -75,7 +76,7 @@ func Test_openapi_APIKeysAPIService(t *testing.T) { t.Run("Test APIKeysAPIService UpdateToken", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var tokenId string diff --git a/test/api_apps_test.go b/test/api_apps_test.go index 2a4a009..58ad009 100644 --- a/test/api_apps_test.go +++ b/test/api_apps_test.go @@ -11,10 +11,11 @@ package openapi import ( "context" + "testing" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func Test_openapi_AppsAPIService(t *testing.T) { @@ -24,7 +25,7 @@ func Test_openapi_AppsAPIService(t *testing.T) { t.Run("Test AppsAPIService AddProvider", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.AppsAPI.AddProvider(context.Background()).Execute() @@ -36,7 +37,7 @@ func Test_openapi_AppsAPIService(t *testing.T) { t.Run("Test AppsAPIService CreateApp", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.AppsAPI.CreateApp(context.Background()).Execute() @@ -48,7 +49,7 @@ func Test_openapi_AppsAPIService(t *testing.T) { t.Run("Test AppsAPIService CreateDeploy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var appId string @@ -62,7 +63,7 @@ func Test_openapi_AppsAPIService(t *testing.T) { t.Run("Test AppsAPIService DeleteApp", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var appId string @@ -75,7 +76,7 @@ func Test_openapi_AppsAPIService(t *testing.T) { t.Run("Test AppsAPIService DeleteProvider", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var providerId string @@ -88,7 +89,7 @@ func Test_openapi_AppsAPIService(t *testing.T) { t.Run("Test AppsAPIService DeployAction", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var appId string var deployId string @@ -103,7 +104,7 @@ func Test_openapi_AppsAPIService(t *testing.T) { t.Run("Test AppsAPIService GetApp", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var appId string @@ -117,7 +118,7 @@ func Test_openapi_AppsAPIService(t *testing.T) { t.Run("Test AppsAPIService GetAppDeploys", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var appId string @@ -131,7 +132,7 @@ func Test_openapi_AppsAPIService(t *testing.T) { t.Run("Test AppsAPIService GetAppLogs", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var appId string @@ -145,7 +146,7 @@ func Test_openapi_AppsAPIService(t *testing.T) { t.Run("Test AppsAPIService GetAppStatistics", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var appId string @@ -159,7 +160,7 @@ func Test_openapi_AppsAPIService(t *testing.T) { t.Run("Test AppsAPIService GetApps", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.AppsAPI.GetApps(context.Background()).Execute() @@ -171,7 +172,7 @@ func Test_openapi_AppsAPIService(t *testing.T) { t.Run("Test AppsAPIService GetAppsPresets", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var appId string @@ -185,7 +186,7 @@ func Test_openapi_AppsAPIService(t *testing.T) { t.Run("Test AppsAPIService GetBranches", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var providerId string var repositoryId string @@ -200,7 +201,7 @@ func Test_openapi_AppsAPIService(t *testing.T) { t.Run("Test AppsAPIService GetCommits", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var accountId string var providerId string @@ -216,7 +217,7 @@ func Test_openapi_AppsAPIService(t *testing.T) { t.Run("Test AppsAPIService GetDeployLogs", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var appId string var deployId string @@ -231,7 +232,7 @@ func Test_openapi_AppsAPIService(t *testing.T) { t.Run("Test AppsAPIService GetDeploySettings", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var appId string @@ -245,7 +246,7 @@ func Test_openapi_AppsAPIService(t *testing.T) { t.Run("Test AppsAPIService GetFrameworks", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var appId string @@ -259,7 +260,7 @@ func Test_openapi_AppsAPIService(t *testing.T) { t.Run("Test AppsAPIService GetProviders", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.AppsAPI.GetProviders(context.Background()).Execute() @@ -271,7 +272,7 @@ func Test_openapi_AppsAPIService(t *testing.T) { t.Run("Test AppsAPIService GetRepositories", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var providerId string @@ -285,7 +286,7 @@ func Test_openapi_AppsAPIService(t *testing.T) { t.Run("Test AppsAPIService UpdateAppSettings", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var appId string @@ -299,7 +300,7 @@ func Test_openapi_AppsAPIService(t *testing.T) { t.Run("Test AppsAPIService UpdateAppState", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var appId string var action string diff --git a/test/api_balancers_test.go b/test/api_balancers_test.go index c85e1de..2fe3382 100644 --- a/test/api_balancers_test.go +++ b/test/api_balancers_test.go @@ -11,10 +11,11 @@ package openapi import ( "context" + "testing" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func Test_openapi_BalancersAPIService(t *testing.T) { @@ -24,7 +25,7 @@ func Test_openapi_BalancersAPIService(t *testing.T) { t.Run("Test BalancersAPIService AddIPsToBalancer", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var balancerId int32 @@ -37,7 +38,7 @@ func Test_openapi_BalancersAPIService(t *testing.T) { t.Run("Test BalancersAPIService CreateBalancer", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.BalancersAPI.CreateBalancer(context.Background()).Execute() @@ -49,7 +50,7 @@ func Test_openapi_BalancersAPIService(t *testing.T) { t.Run("Test BalancersAPIService CreateBalancerRule", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var balancerId int32 @@ -63,7 +64,7 @@ func Test_openapi_BalancersAPIService(t *testing.T) { t.Run("Test BalancersAPIService DeleteBalancer", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var balancerId int32 @@ -77,7 +78,7 @@ func Test_openapi_BalancersAPIService(t *testing.T) { t.Run("Test BalancersAPIService DeleteBalancerRule", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var balancerId int32 var ruleId int32 @@ -91,7 +92,7 @@ func Test_openapi_BalancersAPIService(t *testing.T) { t.Run("Test BalancersAPIService DeleteIPsFromBalancer", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var balancerId int32 @@ -104,7 +105,7 @@ func Test_openapi_BalancersAPIService(t *testing.T) { t.Run("Test BalancersAPIService GetBalancer", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var balancerId int32 @@ -118,7 +119,7 @@ func Test_openapi_BalancersAPIService(t *testing.T) { t.Run("Test BalancersAPIService GetBalancerIPs", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var balancerId int32 @@ -132,7 +133,7 @@ func Test_openapi_BalancersAPIService(t *testing.T) { t.Run("Test BalancersAPIService GetBalancerRules", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var balancerId int32 @@ -146,7 +147,7 @@ func Test_openapi_BalancersAPIService(t *testing.T) { t.Run("Test BalancersAPIService GetBalancers", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.BalancersAPI.GetBalancers(context.Background()).Execute() @@ -158,7 +159,7 @@ func Test_openapi_BalancersAPIService(t *testing.T) { t.Run("Test BalancersAPIService GetBalancersPresets", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.BalancersAPI.GetBalancersPresets(context.Background()).Execute() @@ -170,7 +171,7 @@ func Test_openapi_BalancersAPIService(t *testing.T) { t.Run("Test BalancersAPIService UpdateBalancer", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var balancerId int32 @@ -184,7 +185,7 @@ func Test_openapi_BalancersAPIService(t *testing.T) { t.Run("Test BalancersAPIService UpdateBalancerRule", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var balancerId int32 var ruleId int32 diff --git a/test/api_databases_test.go b/test/api_databases_test.go index 079ffc4..d5b808e 100644 --- a/test/api_databases_test.go +++ b/test/api_databases_test.go @@ -11,10 +11,11 @@ package openapi import ( "context" + "testing" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func Test_openapi_DatabasesAPIService(t *testing.T) { @@ -24,7 +25,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService CreateDatabase", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.DatabasesAPI.CreateDatabase(context.Background()).Execute() @@ -36,7 +37,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService CreateDatabaseBackup", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dbId int32 @@ -50,7 +51,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService CreateDatabaseCluster", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.DatabasesAPI.CreateDatabaseCluster(context.Background()).Execute() @@ -62,7 +63,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService CreateDatabaseInstance", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dbClusterId int32 @@ -76,7 +77,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService CreateDatabaseUser", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dbClusterId int32 @@ -90,7 +91,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService DeleteDatabase", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dbId int32 @@ -104,7 +105,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService DeleteDatabaseBackup", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dbId int32 var backupId int32 @@ -118,7 +119,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService DeleteDatabaseCluster", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dbClusterId int32 @@ -132,7 +133,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService DeleteDatabaseInstance", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dbClusterId int32 var instanceId int32 @@ -146,7 +147,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService DeleteDatabaseUser", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dbClusterId int32 var adminId int32 @@ -160,7 +161,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService GetDatabase", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dbId int32 @@ -174,7 +175,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService GetDatabaseAutoBackupsSettings", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dbId int32 @@ -188,7 +189,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService GetDatabaseBackup", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dbId int32 var backupId int32 @@ -203,7 +204,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService GetDatabaseBackups", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dbId int32 @@ -217,7 +218,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService GetDatabaseCluster", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dbClusterId int32 @@ -231,7 +232,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService GetDatabaseClusterTypes", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.DatabasesAPI.GetDatabaseClusterTypes(context.Background()).Execute() @@ -243,7 +244,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService GetDatabaseClusters", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.DatabasesAPI.GetDatabaseClusters(context.Background()).Execute() @@ -255,7 +256,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService GetDatabaseInstance", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dbClusterId int32 var instanceId int32 @@ -270,7 +271,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService GetDatabaseInstances", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dbClusterId int32 @@ -284,7 +285,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService GetDatabaseUser", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dbClusterId int32 var adminId int32 @@ -299,7 +300,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService GetDatabaseUsers", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dbClusterId int32 @@ -313,7 +314,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService GetDatabases", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.DatabasesAPI.GetDatabases(context.Background()).Execute() @@ -325,7 +326,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService GetDatabasesPresets", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.DatabasesAPI.GetDatabasesPresets(context.Background()).Execute() @@ -337,7 +338,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService RestoreDatabaseFromBackup", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dbId int32 var backupId int32 @@ -351,7 +352,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService UpdateDatabase", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dbId int32 @@ -365,7 +366,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService UpdateDatabaseAutoBackupsSettings", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dbId int32 @@ -379,7 +380,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService UpdateDatabaseCluster", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dbClusterId int32 @@ -393,7 +394,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService UpdateDatabaseInstance", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dbClusterId int32 @@ -407,7 +408,7 @@ func Test_openapi_DatabasesAPIService(t *testing.T) { t.Run("Test DatabasesAPIService UpdateDatabaseUser", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dbClusterId int32 var adminId int32 diff --git a/test/api_dedicated_servers_test.go b/test/api_dedicated_servers_test.go index 0f7ff33..6ee1a84 100644 --- a/test/api_dedicated_servers_test.go +++ b/test/api_dedicated_servers_test.go @@ -11,10 +11,11 @@ package openapi import ( "context" + "testing" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func Test_openapi_DedicatedServersAPIService(t *testing.T) { @@ -24,7 +25,7 @@ func Test_openapi_DedicatedServersAPIService(t *testing.T) { t.Run("Test DedicatedServersAPIService CreateDedicatedServer", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.DedicatedServersAPI.CreateDedicatedServer(context.Background()).Execute() @@ -36,7 +37,7 @@ func Test_openapi_DedicatedServersAPIService(t *testing.T) { t.Run("Test DedicatedServersAPIService DeleteDedicatedServer", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dedicatedId int32 @@ -49,7 +50,7 @@ func Test_openapi_DedicatedServersAPIService(t *testing.T) { t.Run("Test DedicatedServersAPIService GetDedicatedServer", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dedicatedId int32 @@ -63,7 +64,7 @@ func Test_openapi_DedicatedServersAPIService(t *testing.T) { t.Run("Test DedicatedServersAPIService GetDedicatedServerPresetAdditionalServices", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var presetId int32 @@ -77,7 +78,7 @@ func Test_openapi_DedicatedServersAPIService(t *testing.T) { t.Run("Test DedicatedServersAPIService GetDedicatedServers", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.DedicatedServersAPI.GetDedicatedServers(context.Background()).Execute() @@ -89,7 +90,7 @@ func Test_openapi_DedicatedServersAPIService(t *testing.T) { t.Run("Test DedicatedServersAPIService GetDedicatedServersPresets", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.DedicatedServersAPI.GetDedicatedServersPresets(context.Background()).Execute() @@ -101,7 +102,7 @@ func Test_openapi_DedicatedServersAPIService(t *testing.T) { t.Run("Test DedicatedServersAPIService UpdateDedicatedServer", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var dedicatedId int32 diff --git a/test/api_domains_test.go b/test/api_domains_test.go index e6cef1b..419f11a 100644 --- a/test/api_domains_test.go +++ b/test/api_domains_test.go @@ -11,10 +11,11 @@ package openapi import ( "context" + "testing" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func Test_openapi_DomainsAPIService(t *testing.T) { @@ -24,7 +25,7 @@ func Test_openapi_DomainsAPIService(t *testing.T) { t.Run("Test DomainsAPIService AddDomain", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var fqdn string @@ -37,7 +38,7 @@ func Test_openapi_DomainsAPIService(t *testing.T) { t.Run("Test DomainsAPIService AddSubdomain", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var fqdn string var subdomainFqdn string @@ -52,7 +53,7 @@ func Test_openapi_DomainsAPIService(t *testing.T) { t.Run("Test DomainsAPIService CheckDomain", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var fqdn string @@ -66,7 +67,7 @@ func Test_openapi_DomainsAPIService(t *testing.T) { t.Run("Test DomainsAPIService CreateDomainDNSRecord", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var fqdn string @@ -80,7 +81,7 @@ func Test_openapi_DomainsAPIService(t *testing.T) { t.Run("Test DomainsAPIService CreateDomainRequest", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.DomainsAPI.CreateDomainRequest(context.Background()).Execute() @@ -92,7 +93,7 @@ func Test_openapi_DomainsAPIService(t *testing.T) { t.Run("Test DomainsAPIService DeleteDomain", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var fqdn string @@ -105,7 +106,7 @@ func Test_openapi_DomainsAPIService(t *testing.T) { t.Run("Test DomainsAPIService DeleteDomainDNSRecord", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var fqdn string var recordId int32 @@ -119,7 +120,7 @@ func Test_openapi_DomainsAPIService(t *testing.T) { t.Run("Test DomainsAPIService DeleteSubdomain", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var fqdn string var subdomainFqdn string @@ -133,7 +134,7 @@ func Test_openapi_DomainsAPIService(t *testing.T) { t.Run("Test DomainsAPIService GetDomain", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var fqdn string @@ -147,7 +148,7 @@ func Test_openapi_DomainsAPIService(t *testing.T) { t.Run("Test DomainsAPIService GetDomainDNSRecords", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var fqdn string @@ -161,7 +162,7 @@ func Test_openapi_DomainsAPIService(t *testing.T) { t.Run("Test DomainsAPIService GetDomainDefaultDNSRecords", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var fqdn string @@ -175,7 +176,7 @@ func Test_openapi_DomainsAPIService(t *testing.T) { t.Run("Test DomainsAPIService GetDomainNameServers", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var fqdn string @@ -189,7 +190,7 @@ func Test_openapi_DomainsAPIService(t *testing.T) { t.Run("Test DomainsAPIService GetDomainRequest", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var requestId int32 @@ -203,7 +204,7 @@ func Test_openapi_DomainsAPIService(t *testing.T) { t.Run("Test DomainsAPIService GetDomainRequests", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.DomainsAPI.GetDomainRequests(context.Background()).Execute() @@ -215,7 +216,7 @@ func Test_openapi_DomainsAPIService(t *testing.T) { t.Run("Test DomainsAPIService GetDomains", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.DomainsAPI.GetDomains(context.Background()).Execute() @@ -227,7 +228,7 @@ func Test_openapi_DomainsAPIService(t *testing.T) { t.Run("Test DomainsAPIService GetTLD", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var tldId int32 @@ -241,7 +242,7 @@ func Test_openapi_DomainsAPIService(t *testing.T) { t.Run("Test DomainsAPIService GetTLDs", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.DomainsAPI.GetTLDs(context.Background()).Execute() @@ -253,7 +254,7 @@ func Test_openapi_DomainsAPIService(t *testing.T) { t.Run("Test DomainsAPIService UpdateDomainAutoProlongation", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var fqdn string @@ -267,7 +268,7 @@ func Test_openapi_DomainsAPIService(t *testing.T) { t.Run("Test DomainsAPIService UpdateDomainDNSRecord", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var fqdn string var recordId int32 @@ -282,7 +283,7 @@ func Test_openapi_DomainsAPIService(t *testing.T) { t.Run("Test DomainsAPIService UpdateDomainNameServers", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var fqdn string @@ -296,7 +297,7 @@ func Test_openapi_DomainsAPIService(t *testing.T) { t.Run("Test DomainsAPIService UpdateDomainRequest", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var requestId int32 diff --git a/test/api_firewall_test.go b/test/api_firewall_test.go index 0cecc2c..967a0b1 100644 --- a/test/api_firewall_test.go +++ b/test/api_firewall_test.go @@ -11,10 +11,11 @@ package openapi import ( "context" + "testing" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func Test_openapi_FirewallAPIService(t *testing.T) { @@ -24,7 +25,7 @@ func Test_openapi_FirewallAPIService(t *testing.T) { t.Run("Test FirewallAPIService AddResourceToGroup", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var groupId string var resourceId string @@ -39,7 +40,7 @@ func Test_openapi_FirewallAPIService(t *testing.T) { t.Run("Test FirewallAPIService CreateGroup", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.FirewallAPI.CreateGroup(context.Background()).Execute() @@ -51,7 +52,7 @@ func Test_openapi_FirewallAPIService(t *testing.T) { t.Run("Test FirewallAPIService CreateGroupRule", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var groupId string @@ -65,7 +66,7 @@ func Test_openapi_FirewallAPIService(t *testing.T) { t.Run("Test FirewallAPIService DeleteGroup", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var groupId string @@ -78,7 +79,7 @@ func Test_openapi_FirewallAPIService(t *testing.T) { t.Run("Test FirewallAPIService DeleteGroupRule", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var groupId string var ruleId string @@ -92,7 +93,7 @@ func Test_openapi_FirewallAPIService(t *testing.T) { t.Run("Test FirewallAPIService DeleteResourceFromGroup", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var groupId string var resourceId string @@ -106,7 +107,7 @@ func Test_openapi_FirewallAPIService(t *testing.T) { t.Run("Test FirewallAPIService GetGroup", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var groupId string @@ -120,7 +121,7 @@ func Test_openapi_FirewallAPIService(t *testing.T) { t.Run("Test FirewallAPIService GetGroupResources", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var groupId string @@ -134,7 +135,7 @@ func Test_openapi_FirewallAPIService(t *testing.T) { t.Run("Test FirewallAPIService GetGroupRule", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var ruleId string var groupId string @@ -149,7 +150,7 @@ func Test_openapi_FirewallAPIService(t *testing.T) { t.Run("Test FirewallAPIService GetGroupRules", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var groupId string @@ -163,7 +164,7 @@ func Test_openapi_FirewallAPIService(t *testing.T) { t.Run("Test FirewallAPIService GetGroups", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.FirewallAPI.GetGroups(context.Background()).Execute() @@ -175,7 +176,7 @@ func Test_openapi_FirewallAPIService(t *testing.T) { t.Run("Test FirewallAPIService GetRulesForResource", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var resourceId string var resourceType ResourceType @@ -190,7 +191,7 @@ func Test_openapi_FirewallAPIService(t *testing.T) { t.Run("Test FirewallAPIService UpdateGroup", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var groupId string @@ -204,7 +205,7 @@ func Test_openapi_FirewallAPIService(t *testing.T) { t.Run("Test FirewallAPIService UpdateGroupRule", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var groupId string var ruleId string diff --git a/test/api_floating_ip_test.go b/test/api_floating_ip_test.go index c387c50..d3886b2 100644 --- a/test/api_floating_ip_test.go +++ b/test/api_floating_ip_test.go @@ -11,10 +11,11 @@ package openapi import ( "context" + "testing" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func Test_openapi_FloatingIPAPIService(t *testing.T) { @@ -24,7 +25,7 @@ func Test_openapi_FloatingIPAPIService(t *testing.T) { t.Run("Test FloatingIPAPIService BindFloatingIp", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var floatingIpId string @@ -37,7 +38,7 @@ func Test_openapi_FloatingIPAPIService(t *testing.T) { t.Run("Test FloatingIPAPIService CreateFloatingIp", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.FloatingIPAPI.CreateFloatingIp(context.Background()).Execute() @@ -49,7 +50,7 @@ func Test_openapi_FloatingIPAPIService(t *testing.T) { t.Run("Test FloatingIPAPIService DeleteFloatingIP", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var floatingIpId string @@ -62,7 +63,7 @@ func Test_openapi_FloatingIPAPIService(t *testing.T) { t.Run("Test FloatingIPAPIService GetFloatingIp", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var floatingIpId string @@ -76,7 +77,7 @@ func Test_openapi_FloatingIPAPIService(t *testing.T) { t.Run("Test FloatingIPAPIService GetFloatingIps", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.FloatingIPAPI.GetFloatingIps(context.Background()).Execute() @@ -88,7 +89,7 @@ func Test_openapi_FloatingIPAPIService(t *testing.T) { t.Run("Test FloatingIPAPIService UnbindFloatingIp", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var floatingIpId string @@ -101,7 +102,7 @@ func Test_openapi_FloatingIPAPIService(t *testing.T) { t.Run("Test FloatingIPAPIService UpdateFloatingIP", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var floatingIpId string diff --git a/test/api_images_test.go b/test/api_images_test.go index 36483c5..2a2ef9c 100644 --- a/test/api_images_test.go +++ b/test/api_images_test.go @@ -11,10 +11,11 @@ package openapi import ( "context" + "testing" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func Test_openapi_ImagesAPIService(t *testing.T) { @@ -24,7 +25,7 @@ func Test_openapi_ImagesAPIService(t *testing.T) { t.Run("Test ImagesAPIService CreateImage", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.ImagesAPI.CreateImage(context.Background()).Execute() @@ -36,7 +37,7 @@ func Test_openapi_ImagesAPIService(t *testing.T) { t.Run("Test ImagesAPIService CreateImageDownloadUrl", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var imageId string @@ -50,7 +51,7 @@ func Test_openapi_ImagesAPIService(t *testing.T) { t.Run("Test ImagesAPIService DeleteImage", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var imageId string @@ -63,7 +64,7 @@ func Test_openapi_ImagesAPIService(t *testing.T) { t.Run("Test ImagesAPIService DeleteImageDownloadURL", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var imageId string var imageUrlId string @@ -77,7 +78,7 @@ func Test_openapi_ImagesAPIService(t *testing.T) { t.Run("Test ImagesAPIService GetImage", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var imageId string @@ -91,7 +92,7 @@ func Test_openapi_ImagesAPIService(t *testing.T) { t.Run("Test ImagesAPIService GetImageDownloadURL", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var imageId string var imageUrlId string @@ -106,7 +107,7 @@ func Test_openapi_ImagesAPIService(t *testing.T) { t.Run("Test ImagesAPIService GetImageDownloadURLs", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var imageId string @@ -120,7 +121,7 @@ func Test_openapi_ImagesAPIService(t *testing.T) { t.Run("Test ImagesAPIService GetImages", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.ImagesAPI.GetImages(context.Background()).Execute() @@ -132,7 +133,7 @@ func Test_openapi_ImagesAPIService(t *testing.T) { t.Run("Test ImagesAPIService UpdateImage", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var imageId string @@ -146,7 +147,7 @@ func Test_openapi_ImagesAPIService(t *testing.T) { t.Run("Test ImagesAPIService UploadImage", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var imageId string diff --git a/test/api_kubernetes_test.go b/test/api_kubernetes_test.go index 6a4f4f2..b5532fe 100644 --- a/test/api_kubernetes_test.go +++ b/test/api_kubernetes_test.go @@ -11,10 +11,11 @@ package openapi import ( "context" + "testing" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func Test_openapi_KubernetesAPIService(t *testing.T) { @@ -24,7 +25,7 @@ func Test_openapi_KubernetesAPIService(t *testing.T) { t.Run("Test KubernetesAPIService CreateCluster", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.KubernetesAPI.CreateCluster(context.Background()).Execute() @@ -36,7 +37,7 @@ func Test_openapi_KubernetesAPIService(t *testing.T) { t.Run("Test KubernetesAPIService CreateClusterNodeGroup", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var clusterId int32 @@ -50,7 +51,7 @@ func Test_openapi_KubernetesAPIService(t *testing.T) { t.Run("Test KubernetesAPIService DeleteCluster", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var clusterId int32 @@ -64,7 +65,7 @@ func Test_openapi_KubernetesAPIService(t *testing.T) { t.Run("Test KubernetesAPIService DeleteClusterNode", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var clusterId int32 var nodeId int32 @@ -78,7 +79,7 @@ func Test_openapi_KubernetesAPIService(t *testing.T) { t.Run("Test KubernetesAPIService DeleteClusterNodeGroup", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var clusterId int32 var groupId int32 @@ -92,7 +93,7 @@ func Test_openapi_KubernetesAPIService(t *testing.T) { t.Run("Test KubernetesAPIService GetCluster", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var clusterId int32 @@ -106,7 +107,7 @@ func Test_openapi_KubernetesAPIService(t *testing.T) { t.Run("Test KubernetesAPIService GetClusterKubeconfig", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var clusterId int32 @@ -120,7 +121,7 @@ func Test_openapi_KubernetesAPIService(t *testing.T) { t.Run("Test KubernetesAPIService GetClusterNodeGroup", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var clusterId int32 var groupId int32 @@ -135,7 +136,7 @@ func Test_openapi_KubernetesAPIService(t *testing.T) { t.Run("Test KubernetesAPIService GetClusterNodeGroups", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var clusterId int32 @@ -149,7 +150,7 @@ func Test_openapi_KubernetesAPIService(t *testing.T) { t.Run("Test KubernetesAPIService GetClusterNodes", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var clusterId int32 @@ -163,7 +164,7 @@ func Test_openapi_KubernetesAPIService(t *testing.T) { t.Run("Test KubernetesAPIService GetClusterNodesFromGroup", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var clusterId int32 var groupId int32 @@ -178,7 +179,7 @@ func Test_openapi_KubernetesAPIService(t *testing.T) { t.Run("Test KubernetesAPIService GetClusterResources", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var clusterId int32 @@ -192,7 +193,7 @@ func Test_openapi_KubernetesAPIService(t *testing.T) { t.Run("Test KubernetesAPIService GetClusters", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.KubernetesAPI.GetClusters(context.Background()).Execute() @@ -204,7 +205,7 @@ func Test_openapi_KubernetesAPIService(t *testing.T) { t.Run("Test KubernetesAPIService GetK8SNetworkDrivers", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.KubernetesAPI.GetK8SNetworkDrivers(context.Background()).Execute() @@ -216,7 +217,7 @@ func Test_openapi_KubernetesAPIService(t *testing.T) { t.Run("Test KubernetesAPIService GetK8SVersions", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.KubernetesAPI.GetK8SVersions(context.Background()).Execute() @@ -228,7 +229,7 @@ func Test_openapi_KubernetesAPIService(t *testing.T) { t.Run("Test KubernetesAPIService GetKubernetesPresets", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.KubernetesAPI.GetKubernetesPresets(context.Background()).Execute() @@ -240,7 +241,7 @@ func Test_openapi_KubernetesAPIService(t *testing.T) { t.Run("Test KubernetesAPIService IncreaseCountOfNodesInGroup", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var clusterId int32 var groupId int32 @@ -255,7 +256,7 @@ func Test_openapi_KubernetesAPIService(t *testing.T) { t.Run("Test KubernetesAPIService ReduceCountOfNodesInGroup", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var clusterId int32 var groupId int32 @@ -269,7 +270,7 @@ func Test_openapi_KubernetesAPIService(t *testing.T) { t.Run("Test KubernetesAPIService UpdateCluster", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var clusterId int32 diff --git a/test/api_locations_test.go b/test/api_locations_test.go index 0bb0af8..30e0076 100644 --- a/test/api_locations_test.go +++ b/test/api_locations_test.go @@ -11,10 +11,11 @@ package openapi import ( "context" + "testing" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func Test_openapi_LocationsAPIService(t *testing.T) { @@ -24,7 +25,7 @@ func Test_openapi_LocationsAPIService(t *testing.T) { t.Run("Test LocationsAPIService GetLocations", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.LocationsAPI.GetLocations(context.Background()).Execute() diff --git a/test/api_mail_test.go b/test/api_mail_test.go index dbb8bd6..ac0d109 100644 --- a/test/api_mail_test.go +++ b/test/api_mail_test.go @@ -11,10 +11,11 @@ package openapi import ( "context" + "testing" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func Test_openapi_MailAPIService(t *testing.T) { @@ -24,7 +25,7 @@ func Test_openapi_MailAPIService(t *testing.T) { t.Run("Test MailAPIService CreateDomainMailbox", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var domain string @@ -38,7 +39,7 @@ func Test_openapi_MailAPIService(t *testing.T) { t.Run("Test MailAPIService DeleteMailbox", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var domain string var mailbox string @@ -52,7 +53,7 @@ func Test_openapi_MailAPIService(t *testing.T) { t.Run("Test MailAPIService GetDomainMailInfo", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var domain string @@ -66,7 +67,7 @@ func Test_openapi_MailAPIService(t *testing.T) { t.Run("Test MailAPIService GetDomainMailboxes", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var domain string @@ -80,7 +81,7 @@ func Test_openapi_MailAPIService(t *testing.T) { t.Run("Test MailAPIService GetMailQuota", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.MailAPI.GetMailQuota(context.Background()).Execute() @@ -92,7 +93,7 @@ func Test_openapi_MailAPIService(t *testing.T) { t.Run("Test MailAPIService GetMailbox", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var domain string var mailbox string @@ -107,7 +108,7 @@ func Test_openapi_MailAPIService(t *testing.T) { t.Run("Test MailAPIService GetMailboxes", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.MailAPI.GetMailboxes(context.Background()).Execute() @@ -119,7 +120,7 @@ func Test_openapi_MailAPIService(t *testing.T) { t.Run("Test MailAPIService UpdateDomainMailInfo", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var domain string @@ -133,7 +134,7 @@ func Test_openapi_MailAPIService(t *testing.T) { t.Run("Test MailAPIService UpdateMailQuota", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.MailAPI.UpdateMailQuota(context.Background()).Execute() @@ -145,7 +146,7 @@ func Test_openapi_MailAPIService(t *testing.T) { t.Run("Test MailAPIService UpdateMailbox", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var domain string var mailbox string diff --git a/test/api_projects_test.go b/test/api_projects_test.go index 20428e4..84bc355 100644 --- a/test/api_projects_test.go +++ b/test/api_projects_test.go @@ -11,10 +11,11 @@ package openapi import ( "context" + "testing" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func Test_openapi_ProjectsAPIService(t *testing.T) { @@ -24,7 +25,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService AddBalancerToProject", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var projectId int32 @@ -38,7 +39,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService AddClusterToProject", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var projectId int32 @@ -52,7 +53,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService AddDatabaseToProject", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var projectId int32 @@ -66,7 +67,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService AddDedicatedServerToProject", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var projectId int32 @@ -80,7 +81,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService AddServerToProject", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var projectId int32 @@ -94,7 +95,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService AddStorageToProject", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var projectId int32 @@ -108,7 +109,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService CreateProject", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.ProjectsAPI.CreateProject(context.Background()).Execute() @@ -120,7 +121,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService DeleteProject", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var projectId int32 @@ -133,7 +134,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService GetAccountBalancers", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.ProjectsAPI.GetAccountBalancers(context.Background()).Execute() @@ -145,7 +146,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService GetAccountClusters", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.ProjectsAPI.GetAccountClusters(context.Background()).Execute() @@ -157,7 +158,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService GetAccountDatabases", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.ProjectsAPI.GetAccountDatabases(context.Background()).Execute() @@ -169,7 +170,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService GetAccountDedicatedServers", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.ProjectsAPI.GetAccountDedicatedServers(context.Background()).Execute() @@ -181,7 +182,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService GetAccountServers", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.ProjectsAPI.GetAccountServers(context.Background()).Execute() @@ -193,7 +194,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService GetAccountStorages", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.ProjectsAPI.GetAccountStorages(context.Background()).Execute() @@ -205,7 +206,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService GetAllProjectResources", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var projectId int32 @@ -219,7 +220,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService GetProject", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var projectId int32 @@ -233,7 +234,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService GetProjectBalancers", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var projectId int32 @@ -247,7 +248,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService GetProjectClusters", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var projectId int32 @@ -261,7 +262,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService GetProjectDatabases", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var projectId int32 @@ -275,7 +276,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService GetProjectDedicatedServers", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var projectId int32 @@ -289,7 +290,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService GetProjectServers", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var projectId int32 @@ -303,7 +304,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService GetProjectStorages", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var projectId int32 @@ -317,7 +318,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService GetProjects", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.ProjectsAPI.GetProjects(context.Background()).Execute() @@ -329,7 +330,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService TransferResourceToAnotherProject", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var projectId int32 @@ -343,7 +344,7 @@ func Test_openapi_ProjectsAPIService(t *testing.T) { t.Run("Test ProjectsAPIService UpdateProject", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var projectId int32 diff --git a/test/api_s3_test.go b/test/api_s3_test.go index a4fa484..5b848c8 100644 --- a/test/api_s3_test.go +++ b/test/api_s3_test.go @@ -11,10 +11,11 @@ package openapi import ( "context" + "testing" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func Test_openapi_S3APIService(t *testing.T) { @@ -24,7 +25,7 @@ func Test_openapi_S3APIService(t *testing.T) { t.Run("Test S3APIService AddStorageSubdomainCertificate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test httpRes, err := apiClient.S3API.AddStorageSubdomainCertificate(context.Background()).Execute() @@ -35,7 +36,7 @@ func Test_openapi_S3APIService(t *testing.T) { t.Run("Test S3APIService AddStorageSubdomains", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var bucketId int32 @@ -49,7 +50,7 @@ func Test_openapi_S3APIService(t *testing.T) { t.Run("Test S3APIService CopyStorageFile", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var bucketId int32 @@ -62,7 +63,7 @@ func Test_openapi_S3APIService(t *testing.T) { t.Run("Test S3APIService CreateFolderInStorage", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var bucketId int32 @@ -75,7 +76,7 @@ func Test_openapi_S3APIService(t *testing.T) { t.Run("Test S3APIService CreateStorage", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.S3API.CreateStorage(context.Background()).Execute() @@ -87,7 +88,7 @@ func Test_openapi_S3APIService(t *testing.T) { t.Run("Test S3APIService DeleteStorage", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var bucketId int32 @@ -101,7 +102,7 @@ func Test_openapi_S3APIService(t *testing.T) { t.Run("Test S3APIService DeleteStorageFile", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var bucketId int32 @@ -114,7 +115,7 @@ func Test_openapi_S3APIService(t *testing.T) { t.Run("Test S3APIService DeleteStorageSubdomains", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var bucketId int32 @@ -128,7 +129,7 @@ func Test_openapi_S3APIService(t *testing.T) { t.Run("Test S3APIService GetStorageFilesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var bucketId int32 @@ -142,7 +143,7 @@ func Test_openapi_S3APIService(t *testing.T) { t.Run("Test S3APIService GetStorageSubdomains", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var bucketId int32 @@ -156,7 +157,7 @@ func Test_openapi_S3APIService(t *testing.T) { t.Run("Test S3APIService GetStorageTransferStatus", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var bucketId int32 @@ -170,7 +171,7 @@ func Test_openapi_S3APIService(t *testing.T) { t.Run("Test S3APIService GetStorageUsers", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.S3API.GetStorageUsers(context.Background()).Execute() @@ -182,7 +183,7 @@ func Test_openapi_S3APIService(t *testing.T) { t.Run("Test S3APIService GetStorages", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.S3API.GetStorages(context.Background()).Execute() @@ -194,7 +195,7 @@ func Test_openapi_S3APIService(t *testing.T) { t.Run("Test S3APIService GetStoragesPresets", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.S3API.GetStoragesPresets(context.Background()).Execute() @@ -206,7 +207,7 @@ func Test_openapi_S3APIService(t *testing.T) { t.Run("Test S3APIService RenameStorageFile", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var bucketId int32 @@ -219,7 +220,7 @@ func Test_openapi_S3APIService(t *testing.T) { t.Run("Test S3APIService TransferStorage", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test httpRes, err := apiClient.S3API.TransferStorage(context.Background()).Execute() @@ -230,7 +231,7 @@ func Test_openapi_S3APIService(t *testing.T) { t.Run("Test S3APIService UpdateStorage", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var bucketId int32 @@ -244,7 +245,7 @@ func Test_openapi_S3APIService(t *testing.T) { t.Run("Test S3APIService UpdateStorageUser", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var userId int32 @@ -258,7 +259,7 @@ func Test_openapi_S3APIService(t *testing.T) { t.Run("Test S3APIService UploadFileToStorage", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var bucketId int32 diff --git a/test/api_servers_test.go b/test/api_servers_test.go index f3114fc..bc72af8 100644 --- a/test/api_servers_test.go +++ b/test/api_servers_test.go @@ -11,10 +11,11 @@ package openapi import ( "context" + "testing" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func Test_openapi_ServersAPIService(t *testing.T) { @@ -24,7 +25,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService AddServerIP", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 @@ -38,7 +39,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService CloneServer", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 @@ -52,7 +53,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService CreateServer", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.ServersAPI.CreateServer(context.Background()).Execute() @@ -64,7 +65,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService CreateServerDisk", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 @@ -78,7 +79,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService CreateServerDiskBackup", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 var diskId int32 @@ -93,7 +94,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService DeleteServer", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 @@ -107,7 +108,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService DeleteServerDisk", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 var diskId int32 @@ -121,7 +122,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService DeleteServerDiskBackup", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 var diskId int32 @@ -136,7 +137,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService DeleteServerIP", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 @@ -149,7 +150,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService GetConfigurators", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.ServersAPI.GetConfigurators(context.Background()).Execute() @@ -161,7 +162,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService GetOsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.ServersAPI.GetOsList(context.Background()).Execute() @@ -173,7 +174,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService GetServer", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 @@ -187,7 +188,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService GetServerDisk", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 var diskId int32 @@ -202,7 +203,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService GetServerDiskAutoBackupSettings", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 var diskId int32 @@ -217,7 +218,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService GetServerDiskBackup", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 var diskId int32 @@ -233,7 +234,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService GetServerDiskBackups", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 var diskId int32 @@ -248,7 +249,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService GetServerDisks", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 @@ -262,7 +263,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService GetServerIPs", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 @@ -276,7 +277,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService GetServerLogs", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 @@ -290,7 +291,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService GetServerStatistics", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 @@ -304,7 +305,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService GetServers", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.ServersAPI.GetServers(context.Background()).Execute() @@ -316,7 +317,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService GetServersPresets", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.ServersAPI.GetServersPresets(context.Background()).Execute() @@ -328,7 +329,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService GetSoftware", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.ServersAPI.GetSoftware(context.Background()).Execute() @@ -340,7 +341,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService HardShutdownServer", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 @@ -353,7 +354,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService ImageUnmountAndServerReload", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 @@ -366,7 +367,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService PerformActionOnBackup", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 var diskId int32 @@ -381,7 +382,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService PerformActionOnServer", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 @@ -394,7 +395,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService RebootServer", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 @@ -407,7 +408,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService ResetServerPassword", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 @@ -420,7 +421,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService ShutdownServer", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 @@ -433,7 +434,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService StartServer", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 @@ -446,7 +447,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService UpdateServer", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 @@ -460,7 +461,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService UpdateServerDisk", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 var diskId int32 @@ -475,7 +476,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService UpdateServerDiskAutoBackupSettings", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 var diskId int32 @@ -490,7 +491,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService UpdateServerDiskBackup", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 var diskId int32 @@ -506,7 +507,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService UpdateServerIP", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 @@ -520,7 +521,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService UpdateServerNAT", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 @@ -533,7 +534,7 @@ func Test_openapi_ServersAPIService(t *testing.T) { t.Run("Test ServersAPIService UpdateServerOSBootMode", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 diff --git a/test/api_ssh_test.go b/test/api_ssh_test.go index a2f3de9..dd04294 100644 --- a/test/api_ssh_test.go +++ b/test/api_ssh_test.go @@ -11,10 +11,11 @@ package openapi import ( "context" + "testing" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func Test_openapi_SSHAPIService(t *testing.T) { @@ -24,7 +25,7 @@ func Test_openapi_SSHAPIService(t *testing.T) { t.Run("Test SSHAPIService AddKeyToServer", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 @@ -37,7 +38,7 @@ func Test_openapi_SSHAPIService(t *testing.T) { t.Run("Test SSHAPIService CreateKey", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.SSHAPI.CreateKey(context.Background()).Execute() @@ -49,7 +50,7 @@ func Test_openapi_SSHAPIService(t *testing.T) { t.Run("Test SSHAPIService DeleteKey", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var sshKeyId int32 @@ -62,7 +63,7 @@ func Test_openapi_SSHAPIService(t *testing.T) { t.Run("Test SSHAPIService DeleteKeyFromServer", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var serverId int32 var sshKeyId int32 @@ -76,7 +77,7 @@ func Test_openapi_SSHAPIService(t *testing.T) { t.Run("Test SSHAPIService GetKey", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var sshKeyId int32 @@ -90,7 +91,7 @@ func Test_openapi_SSHAPIService(t *testing.T) { t.Run("Test SSHAPIService GetKeys", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.SSHAPI.GetKeys(context.Background()).Execute() @@ -102,7 +103,7 @@ func Test_openapi_SSHAPIService(t *testing.T) { t.Run("Test SSHAPIService UpdateKey", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var sshKeyId int32 diff --git a/test/api_vpc_test.go b/test/api_vpc_test.go index 085e73f..cd83fc0 100644 --- a/test/api_vpc_test.go +++ b/test/api_vpc_test.go @@ -11,10 +11,11 @@ package openapi import ( "context" + "testing" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "github.com/timeweb-cloud/sdk-go" ) func Test_openapi_VPCAPIService(t *testing.T) { @@ -24,7 +25,7 @@ func Test_openapi_VPCAPIService(t *testing.T) { t.Run("Test VPCAPIService CreateVPC", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.VPCAPI.CreateVPC(context.Background()).Execute() @@ -36,7 +37,7 @@ func Test_openapi_VPCAPIService(t *testing.T) { t.Run("Test VPCAPIService DeleteVPC", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var vpcId string @@ -50,7 +51,7 @@ func Test_openapi_VPCAPIService(t *testing.T) { t.Run("Test VPCAPIService GetVPC", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var vpcId string @@ -64,7 +65,7 @@ func Test_openapi_VPCAPIService(t *testing.T) { t.Run("Test VPCAPIService GetVPCPorts", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var vpcId string @@ -78,7 +79,7 @@ func Test_openapi_VPCAPIService(t *testing.T) { t.Run("Test VPCAPIService GetVPCServices", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var vpcId string @@ -92,7 +93,7 @@ func Test_openapi_VPCAPIService(t *testing.T) { t.Run("Test VPCAPIService GetVPCs", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test resp, httpRes, err := apiClient.VPCAPI.GetVPCs(context.Background()).Execute() @@ -104,7 +105,7 @@ func Test_openapi_VPCAPIService(t *testing.T) { t.Run("Test VPCAPIService UpdateVPCs", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var vpcId string