Skip to content

Commit

Permalink
feature. rename cloud-account from cloud-setting
Browse files Browse the repository at this point in the history
  • Loading branch information
ktkfree committed Apr 17, 2023
1 parent 48616d3 commit eff33e6
Show file tree
Hide file tree
Showing 18 changed files with 452 additions and 470 deletions.
104 changes: 52 additions & 52 deletions api/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -578,24 +578,24 @@ const docTemplate = `{
}
}
},
"/cloud-settings": {
"/cloud-accounts": {
"get": {
"security": [
{
"JWT": []
}
],
"description": "Get CloudSettings",
"description": "Get CloudAccounts",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"CloudSettings"
"CloudAccounts"
],
"summary": "Get CloudSettings",
"summary": "Get CloudAccounts",
"parameters": [
{
"type": "string",
Expand All @@ -608,7 +608,7 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/domain.GetCloudSettingsResponse"
"$ref": "#/definitions/domain.GetCloudAccountsResponse"
}
}
}
Expand All @@ -619,17 +619,17 @@ const docTemplate = `{
"JWT": []
}
],
"description": "Create CloudSetting",
"description": "Create CloudAccount",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"CloudSettings"
"CloudAccounts"
],
"summary": "Create CloudSetting",
"summary": "Create CloudAccount",
"parameters": [
{
"type": "string",
Expand All @@ -644,38 +644,38 @@ const docTemplate = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/domain.CreateCloudSettingRequest"
"$ref": "#/definitions/domain.CreateCloudAccountRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/domain.CreateCloudSettingResponse"
"$ref": "#/definitions/domain.CreateCloudAccountResponse"
}
}
}
}
},
"/cloud-settings/name/{name}/existence": {
"/cloud-accounts/name/{name}/existence": {
"get": {
"security": [
{
"JWT": []
}
],
"description": "Check name for cloudSetting",
"description": "Check name for cloudAccount",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"CloudSettings"
"CloudAccounts"
],
"summary": "Check name for cloudSetting",
"summary": "Check name for cloudAccount",
"parameters": [
{
"type": "string",
Expand All @@ -692,29 +692,29 @@ const docTemplate = `{
}
}
},
"/cloud-settings/{cloudSettingId}": {
"/cloud-accounts/{cloudAccountId}": {
"get": {
"security": [
{
"JWT": []
}
],
"description": "Get CloudSetting",
"description": "Get CloudAccount",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"CloudSettings"
"CloudAccounts"
],
"summary": "Get CloudSetting",
"summary": "Get CloudAccount",
"parameters": [
{
"type": "string",
"description": "cloudSettingId",
"name": "cloudSettingId",
"description": "cloudAccountId",
"name": "cloudAccountId",
"in": "path",
"required": true
}
Expand All @@ -723,7 +723,7 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/domain.GetCloudSettingResponse"
"$ref": "#/definitions/domain.GetCloudAccountResponse"
}
}
}
Expand All @@ -734,25 +734,25 @@ const docTemplate = `{
"JWT": []
}
],
"description": "Update CloudSetting",
"description": "Update CloudAccount",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"CloudSettings"
"CloudAccounts"
],
"summary": "Update CloudSetting",
"summary": "Update CloudAccount",
"parameters": [
{
"description": "Update cloud setting request",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/domain.UpdateCloudSettingRequest"
"$ref": "#/definitions/domain.UpdateCloudAccountRequest"
}
}
],
Expand All @@ -768,31 +768,31 @@ const docTemplate = `{
"JWT": []
}
],
"description": "Delete CloudSetting",
"description": "Delete CloudAccount",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"CloudSettings"
"CloudAccounts"
],
"summary": "Delete CloudSetting",
"summary": "Delete CloudAccount",
"parameters": [
{
"description": "Delete cloud setting request",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/domain.DeleteCloudSettingRequest"
"$ref": "#/definitions/domain.DeleteCloudAccountRequest"
}
},
{
"type": "string",
"description": "cloudSettingId",
"name": "cloudSettingId",
"description": "cloudAccountId",
"name": "cloudAccountId",
"in": "path",
"required": true
}
Expand Down Expand Up @@ -2277,7 +2277,7 @@ const docTemplate = `{
}
}
},
"domain.CloudSetting": {
"domain.CloudAccount": {
"type": "object",
"properties": {
"cloudService": {
Expand Down Expand Up @@ -2321,7 +2321,7 @@ const docTemplate = `{
}
}
},
"domain.CloudSettingResponse": {
"domain.CloudAccountResponse": {
"type": "object",
"properties": {
"cloudService": {
Expand Down Expand Up @@ -2362,10 +2362,10 @@ const docTemplate = `{
"domain.Cluster": {
"type": "object",
"properties": {
"cloudSetting": {
"$ref": "#/definitions/domain.CloudSetting"
"cloudAccount": {
"$ref": "#/definitions/domain.CloudAccount"
},
"cloudSettingId": {
"cloudAccountId": {
"type": "string"
},
"conf": {
Expand Down Expand Up @@ -2470,8 +2470,8 @@ const docTemplate = `{
"domain.ClusterResponse": {
"type": "object",
"properties": {
"cloudSetting": {
"$ref": "#/definitions/domain.CloudSettingResponse"
"cloudAccount": {
"$ref": "#/definitions/domain.CloudAccountResponse"
},
"conf": {
"$ref": "#/definitions/domain.ClusterConfResponse"
Expand Down Expand Up @@ -2633,7 +2633,7 @@ const docTemplate = `{
}
}
},
"domain.CreateCloudSettingRequest": {
"domain.CreateCloudAccountRequest": {
"type": "object",
"required": [
"accessKeyId",
Expand Down Expand Up @@ -2675,7 +2675,7 @@ const docTemplate = `{
}
}
},
"domain.CreateCloudSettingResponse": {
"domain.CreateCloudAccountResponse": {
"type": "object",
"properties": {
"id": {
Expand All @@ -2686,7 +2686,7 @@ const docTemplate = `{
"domain.CreateClusterRequest": {
"type": "object",
"properties": {
"cloudSettingId": {
"cloudAccountId": {
"type": "string"
},
"description": {
Expand Down Expand Up @@ -2747,7 +2747,7 @@ const docTemplate = `{
"domain.CreateStackRequest": {
"type": "object",
"properties": {
"cloudSettingId": {
"cloudAccountId": {
"type": "string"
},
"cpNodeCnt": {
Expand Down Expand Up @@ -2924,7 +2924,7 @@ const docTemplate = `{
}
}
},
"domain.DeleteCloudSettingRequest": {
"domain.DeleteCloudAccountRequest": {
"type": "object",
"required": [
"accessKeyId",
Expand Down Expand Up @@ -2985,21 +2985,21 @@ const docTemplate = `{
}
}
},
"domain.GetCloudSettingResponse": {
"domain.GetCloudAccountResponse": {
"type": "object",
"properties": {
"cloudSetting": {
"$ref": "#/definitions/domain.CloudSettingResponse"
"cloudAccount": {
"$ref": "#/definitions/domain.CloudAccountResponse"
}
}
},
"domain.GetCloudSettingsResponse": {
"domain.GetCloudAccountsResponse": {
"type": "object",
"properties": {
"cloudSettings": {
"cloudAccounts": {
"type": "array",
"items": {
"$ref": "#/definitions/domain.CloudSettingResponse"
"$ref": "#/definitions/domain.CloudAccountResponse"
}
}
}
Expand Down Expand Up @@ -3350,8 +3350,8 @@ const docTemplate = `{
"domain.StackResponse": {
"type": "object",
"properties": {
"cloudSetting": {
"$ref": "#/definitions/domain.CloudSettingResponse"
"cloudAccount": {
"$ref": "#/definitions/domain.CloudAccountResponse"
},
"createdAt": {
"type": "string"
Expand Down Expand Up @@ -3682,7 +3682,7 @@ const docTemplate = `{
}
}
},
"domain.UpdateCloudSettingRequest": {
"domain.UpdateCloudAccountRequest": {
"type": "object",
"properties": {
"description": {
Expand Down
Loading

0 comments on commit eff33e6

Please sign in to comment.