Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5e356ce
auto release by sdk team
yufeiminds Sep 17, 2019
f518105
auto release by sdk team
yufeiminds Sep 17, 2019
94f2782
auto release by sdk team
yufeiminds Sep 17, 2019
762fdd6
add model folder
yufeiminds Sep 23, 2019
bdd5712
add model folder
yufeiminds Sep 23, 2019
5a146a2
Merge pull request #4 from yufeiminds/faeture/auto-release
ucloud-bot Sep 23, 2019
7f234ab
update template
yufeiminds Sep 23, 2019
7801ab2
Merge branch 'auto-release' of https://github.com/ucloud-bot/ucloud-s…
ucloud-bot Sep 23, 2019
ac431d1
auto release by sdk team
ucloud-bot Sep 23, 2019
25a5c95
auto release by sdk team
ucloud-bot Sep 23, 2019
7155f9c
Merge branch 'auto-release' of https://github.com/ucloud-bot/ucloud-s…
ucloud-bot Sep 23, 2019
0a00914
auto release by sdk team
ucloud-bot Sep 23, 2019
647a0c3
Merge branch 'auto-release' of https://github.com/ucloud-bot/ucloud-s…
ucloud-bot Sep 23, 2019
0201bf8
auto release by sdk team
ucloud-bot Sep 23, 2019
7434343
Merge branch 'auto-release' of https://github.com/ucloud-bot/ucloud-s…
ucloud-bot Sep 23, 2019
7dda131
auto release by sdk team
ucloud-bot Sep 24, 2019
2335950
Merge branch 'auto-release' of https://github.com/ucloud-bot/ucloud-s…
ucloud-bot Sep 24, 2019
8568a6c
auto release by sdk team
ucloud-bot Sep 24, 2019
4995f6e
Merge branch 'auto-release' of https://github.com/ucloud-bot/ucloud-s…
ucloud-bot Sep 24, 2019
1385927
auto release by sdk team
ucloud-bot Sep 24, 2019
1fdf4fd
Merge branch 'auto-release' of https://github.com/ucloud-bot/ucloud-s…
ucloud-bot Sep 24, 2019
d174290
auto release by sdk team
ucloud-bot Sep 24, 2019
ca859ec
Merge branch 'auto-release' of https://github.com/ucloud-bot/ucloud-s…
ucloud-bot Sep 24, 2019
eb0520d
auto release by sdk team
ucloud-bot Sep 24, 2019
21f0437
Merge branch 'auto-release' of https://github.com/ucloud-bot/ucloud-s…
ucloud-bot Sep 24, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
300 changes: 300 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,300 @@
SDK Auto Release

FEATURE:

- Affect
- Add `DescribeUDPN`
- Add `CreateURedisGroup`
- Add `UpdateFirewall`
- Add `DescribeUDBParamGroup`
- Add `ModifyGlobalSSHRemark`
- Update
- Add `GetUHostUpgradePrice`
- Add `DescribeUDiskUpgradePrice`
- Add `DeleteUSMSSignature`
- Affect
- Affect
- Add `ReleaseBackend`
- Add `CreateUSMSSignature`
- Affect
- Add `CreateVServer`
- Add `DescribeUMemUpgradePrice`
- Add `UpdateUDBInstanceBackupStrategy`
- Add `StartUDBInstance`
- Add `CreateVPCIntercom`
- Add `CloneUDiskSnapshot`
- Add `SetEIPPayMode`
- Add `DescribeUMemSpace`
- Affect
- Add `DescribeURedisBackupURL`
- Update
- Affect
- Add `RenameUDisk`
- Add `DeleteUDiskSnapshot`
- Affect
- Add `ModifyUMemSpaceName`
- Add `GetUDPNLineList`
- Add `EditUDBBackupBlacklist`
- Add `QueryUSMSSignature`
- Add `DescribePHost`
- Update
- Affect
- Update
- Add `DescribeBandwidthPackage`
- Add `DescribeGlobalSSHInstance`
- Add `CheckRecoverUDBInstance`
- Add `BindSSL`
- Add `DescribeUDBInstanceBinlogBackupState`
- Add `CreateUDBParamGroup`
- Add `DetachUDisk`
- Add `CreateUDBSlave`
- Add `ResizeURedisGroup`
- Add `GetUSMSSendReceipt`
- Add `CreateSFWorkflowFromTemplate`
- Update
- Affect
- Add `DescribeSubnetResource`
- Add `GetSFWorkflowTemplate`
- Add `CreateUDBReplicationInstance`
- Add `ResetUHostInstancePassword`
- Affect
- Add `DeleteFirewall`
- Add `FetchUDBInstanceEarliestRecoverTime`
- Add `UpdateUDBInstanceSlaveBackupSwitch`
- Add `DescribeUHostInstance`
- Affect
- Add `RestoreUDisk`
- Add `TerminateCustomImage`
- Update
- Add `UpdateSubnetAttribute`
- Add `DeleteUDisk`
- Add `SetUDiskUDataArkMode`
- Add `UpdateUSMSTemplate`
- Add `ReleaseVIP`
- Affect
- Add `DescribeVPCIntercom`
- Update
- Add `TerminatePHost`
- Add `UpdateUDBParamGroup`
- Add `RebootPHost`
- Add `UpdateEIPAttribute`
- Add `CreateFirewall`
- Add `DescribeBandwidthUsage`
- Affect
- Add `BackupUDBInstanceBinlog`
- Add `ModifyEIPBandwidth`
- Add `DescribeUMemcacheUpgradePrice`
- Add `DescribeUMemcachePrice`
- Add `CreateProject`
- Add `SendUSMSMessage`
- Add `UploadUDBParamGroup`
- Add `CreateGlobalSSHInstance`
- Update
- Update
- Add `CreatePolicy`
- Add `DescribeUDBInstanceBackupURL`
- Add `UnBindEIP`
- Update
- Affect
- Add `BindEIP`
- Add `AllocateEIP`
- Add `ModifyUHostInstanceRemark`
- Add `ReleaseShareBandwidth`
- Add `BackupUDBInstanceErrorLog`
- Update
- Affect
- Update
- Add `UnbindSSL`
- Affect
- Add `GetPHostPrice`
- Add `StartUHostInstance`
- Add `CreateSSL`
- Add `PoweroffUHostInstance`
- Affect
- Add `PromoteUDBInstanceToHA`
- Add `ModifyPHostInfo`
- Add `RestartUDBInstance`
- Add `CreateUDBInstance`
- Add `CreateUDBInstanceByRecovery`
- Update
- Add `ModifyUHostInstanceName`
- Add `ResizeShareBandwidth`
- Add `UpdateUSMSSignature`
- Add `ReinstallPHost`
- Affect
- Update
- Affect
- Add `DescribeUDBInstancePrice`
- Add `GetEIPUpgradePrice`
- Add `TerminateUHostInstance`
- Add `BackupUDBInstance`
- Add `GetUserInfo`
- Add `UpdateULBAttribute`
- Add `DescribeUDisk`
- Add `CreateUSMSTemplate`
- Add `CreateBandwidthPackage`
- Affect
- Add `CreateULB`
- Add `DescribeShareBandwidth`
- Add `DescribeUDBLogBackupURL`
- Add `ModifyEIPWeight`
- Update
- Add `UpdatePolicy`
- Add `UpdateBackendAttribute`
- Add `DescribeULB`
- Add `AllocateShareBandwidth`
- Add `DescribeUMemcacheGroup`
- Affect
- Add `DescribeUDBInstanceBinlog`
- Add `PromoteUDBSlave`
- Add `CloneUDisk`
- Add `DescribeURedisBackup`
- Update
- Add `DescribeEIP`
- Add `DisassociateEIPWithShareBandwidth`
- Add `DescribeUDBInstanceBackupState`
- Update
- Add `DescribePHostImage`
- Add `DeleteUMemcacheGroup`
- Add `GetUMemSpaceState`
- Add `AssociateEIPWithShareBandwidth`
- Affect
- Add `DeleteULB`
- Add `ModifyUDBInstancePassword`
- Update
- Update
- Add `DeleteSubnet`
- Add `ResizeAttachedDisk`
- Add `DescribeUDBInstance`
- Update
- Affect
- Add `StopUDBInstance`
- Add `GrantFirewall`
- Update
- Affect
- Update
- Add `CreateVPC`
- Update
- Update
- Add `DescribeVServer`
- Add `RestartUMemcacheGroup`
- Add `ModifyGlobalSSHPort`
- Add `DeleteBandwidthPackage`
- Add `DeletePolicy`
- Affect
- Update
- Add `UpgradeToArkUHostInstance`
- Add `ModifyUHostInstanceTag`
- Add `DescribeVPC`
- Add `GetEIPPayMode`
- Add `DescribeImage`
- Add `DescribeUHostTags`
- Add `ModifyURedisGroupName`
- Add `DeleteUDBLogPackage`
- Update
- Update
- Add `GetEIPPrice`
- Add `DeleteUSMSTemplate`
- Add `GetUDPNUpgradePrice`
- Update
- Add `CreateUMemSpace`
- Affect
- Affect
- Affect
- Add `UpdateVServerAttribute`
- Add `GetUHostInstanceVncInfo`
- Add `AttachUDisk`
- Update
- Add `DescribeUDBBackupBlacklist`
- Add `ResizeUMemSpace`
- Add `CreateCustomImage`
- Add `DeleteGlobalSSHInstance`
- Add `DeleteUDBBackup`
- Affect
- Add `GetUHostInstancePrice`
- Update
- Affect
- Affect
- Update
- Add `ResizeUHostInstance`
- Add `AddVPCNetwork`
- Add `DescribePHostTags`
- Add `DescribeUDBBinlogBackupURL`
- Add `TerminateProject`
- Add `DeleteUDBParamGroup`
- Update
- Add `ResizeUDredisSpace`
- Add `DescribeUDBInstanceState`
- Add `SwitchUDBInstanceToHA`
- Update
- Add `DescribeUDBType`
- Add `RebootUHostInstance`
- Add `ClearUDBLog`
- Add `CreatePHost`
- Add `DescribeFirewallResource`
- Add `StartPHost`
- Add `AllocateVIP`
- Add `QueryUSMSTemplate`
- Add `AllocateBackend`
- Add `ReleaseEIP`
- Add `DescribeURedisPrice`
- Update
- Add `DescribeUDiskSnapshot`
- Add `DeleteSSL`
- Add `ReinstallUHostInstance`
- Add `CreateUDBRouteInstance`
- Add `CreateUDisk`
- Affect
- Affect
- Add `DescribeUDBLogPackage`
- Add `CreateSubnet`
- Add `DeleteVPCIntercom`
- Add `CopyCustomImage`
- Add `PoweroffPHost`
- Affect
- Add `DeleteUMemSpace`
- Add `CreateUDiskSnapshot`
- Add `CreateUHostInstance`
- Affect
- Update
- Add `UpdateFirewallAttribute`
- Add `ImportCustomImage`
- Add `DeleteVServer`
- Add `GetUDPNPrice`
- Add `ResizeUDisk`
- Update
- Add `DescribeUDBBackup`
- Add `DescribeURedisUpgradePrice`
- Add `GetProjectList`
- Add `DescribeUDBInstanceUpgradePrice`
- Update
- Add `AllocateBackendBatch`
- Add `DeleteURedisGroup`
- Update
- Affect
- Add `CheckUDBInstanceToHAAllowance`
- Add `DescribeFirewall`
- Add `DescribeURedisGroup`
- Add `AllocateUDPN`
- Add `DescribeSSL`
- Add `DeleteVPC`
- Update
- Affect
- Add `UpdateVPCNetwork`
- Add `DescribeUDiskPrice`
- Add `DeleteUDBInstance`
- Add `DescribeVIP`
- Affect
- Add `CreateUMemcacheGroup`
- Update
- Add `StopUHostInstance`
- Add `DescribeUMemPrice`
- Add `ModifyUDPNBandwidth`
- Add `ModifyUDBInstanceName`
- Add `DescribeSubnet`
- Add `ReleaseUDPN`
- Add `ResizeUDBInstance`
- Add `DescribeGlobalSSHArea`

ENHANCEMENT:

6 changes: 6 additions & 0 deletions docs/services.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ UPHost
.. autoclass:: ucloud.services.uphost.client.UPHostClient
:members:

USMS
----

.. autoclass:: ucloud.services.usms.client.USMSClient
:members:

VPC
---

Expand Down
1 change: 1 addition & 0 deletions model/artifact.json

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions model/changelog.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
SDK 自动发布

{{- define "name" }}
{{- if (eq .ChangeLevel "api") }}`{{ .Api }}`
{{- else if (eq .ChangeLevel "model") }}model `{{ .Model }}` at `{{ .Api }}`
{{- else if (eq .ChangeLevel "field") }}field `{{ .Field }}` at `{{ .Api }}`
{{- end }}
{{- end }}

FEATURE:
{{ range $changelog := . }}
{{- if and (ne .ChangeLevel "field") }}
- {{ .ChangeType | title }} {{ template "name" . -}}
{{- end -}}
{{ end }}

ENHANCEMENT:
{{ range $changelog := . }}
{{- if (eq .ChangeLevel "field") }}
- {{ if .IsCritical }}(**BREAK CHANGE**) {{ end }}{{ .ChangeType | title }} {{ template "name" . -}}
{{- end -}}
{{ end }}
17 changes: 17 additions & 0 deletions model/gen-apis.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

# Code is generated by ucloud-model, DO NOT EDIT IT.

ucloud-model sdk apis --lang python3 --type public --template ${U_MODEL_HOME}/providers/python/templates/clients.tpl --output ./ucloud/client.py
ucloud-model sdk apis --lang python3 --type public --template ${U_MODEL_HOME}/providers/python/templates/docs.tpl --output ./docs/services.rst

{{ range $index, $product := (.GetAll | extractUnique "Product") }}
mkdir -p ./ucloud/services/{{ . | lower }}/schemas
touch ./ucloud/services/{{ . | lower }}/__init__.py
touch ./ucloud/services/{{ . | lower }}/schemas/__init__.py
ucloud-model sdk apis --lang python3 --product {{ . }} --type public --template ${U_MODEL_HOME}/providers/python/templates/schema.tpl --output ./ucloud/services/{{ . | lower }}/schemas/apis.py
ucloud-model sdk apis --lang python3 --product {{ . }} --type public --template ${U_MODEL_HOME}/providers/python/templates/model.tpl --output ./ucloud/services/{{ . | lower }}/schemas/models.py
ucloud-model sdk apis --lang python3 --product {{ . }} --type public --template ${U_MODEL_HOME}/providers/python/templates/client.tpl --output ./ucloud/services/{{ . | lower }}/client.py
black ucloud/services/{{ . | lower }}
python -m ucloud.services.{{ . | lower }}.client
{{ end }}
13 changes: 13 additions & 0 deletions model/gen-tests.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

# Code is generated by ucloud-model, DO NOT EDIT IT.

{{ range $index, $test := .GetAll }}
ucloud-model sdk test \
--lang python3 \
--template ${U_MODEL_HOME}/providers/python/templates/testing.tpl \
--output tests/test_services/test_set_{{ $test.ID }}.py \
--name {{ $test.ID }}
{{ end }}

black tests/test_services/*
4 changes: 4 additions & 0 deletions model/regression.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

# Code is generated by ucloud-model, DO NOT EDIT IT.
pytest
Loading