This commit is contained in:
aafetisov committed 2026-10-16 15:40:34 +03:00
1 parent 70edc100d5
commit 5825bdfa9e
65 files changed
+1061 -302

No files matched your search

+2
View File
@@ -26,6 +26,8 @@ type wrapperCreateTemplateRequest struct {
}
// CreateTemplate create template from compute instance
//
// Deprecated: will be removed in SDK v17.0
func (c Compute) CreateTemplate(ctx context.Context, req CreateTemplateRequest) (string, error) {
err := validators.ValidateRequest(req)
if err != nil {
@@ -56,6 +56,8 @@ type wrapperCreateTemplateFromBlankRequest struct {
// CreateTemplateFromBlank creates template from boot disk of current compute in sync mode.
// It returns id of created compute and error.
//
// Deprecated: will be removed in SDK v17.0
func (c Compute) CreateTemplateFromBlank(ctx context.Context, req CreateTemplateFromBlankRequest) (uint64, error) {
err := validators.ValidateRequest(req)
if err != nil {
@@ -84,6 +86,8 @@ func (c Compute) CreateTemplateFromBlank(ctx context.Context, req CreateTemplate
// CreateTemplateFromBlankAsync creates template from boot disk of current compute in async mode.
// It returns guid of task and error.
//
// Deprecated: will be removed in SDK v17.0
func (c Compute) CreateTemplateFromBlankAsync(ctx context.Context, req CreateTemplateFromBlankRequest) (string, error) {
err := validators.ValidateRequest(req)
if err != nil {
+2 -2
View File
@@ -31,7 +31,7 @@ type wrapperDiskQOSRequest struct {
// DiskQOS change QoS of the disk
//
// Deprecated: will be removed in SDK v1.17
// Deprecated: will be removed in SDK v17.0
func (c Compute) DiskQOS(ctx context.Context, req DiskQOSRequest) (bool, error) {
err := validators.ValidateRequest(req)
if err != nil {
@@ -60,7 +60,7 @@ func (c Compute) DiskQOS(ctx context.Context, req DiskQOSRequest) (bool, error)
// DiskQOSAsync changes QoS of the disk with AsyncMode
//
// Deprecated: will be removed in SDK v1.17
// Deprecated: will be removed in SDK v17.0
func (c Compute) DiskQOSAsync(ctx context.Context, req DiskQOSRequest) (string, error) {
err := validators.ValidateRequest(req)
if err != nil {
+1 -1
View File
@@ -29,7 +29,7 @@ type UserGrantRequest struct {
// UserGrant grants user access to the compute
//
// Deprecated: will be removed in SDK v1.17
// Deprecated: will be removed in SDK v17.0
func (c Compute) UserGrant(ctx context.Context, req UserGrantRequest) (bool, error) {
err := validators.ValidateRequest(req)
if err != nil {
+1 -1
View File
@@ -17,7 +17,7 @@ type UserListRequest struct {
// UserList gets users list for compute
//
// Deprecated: will be removed in SDK v1.17
// Deprecated: will be removed in SDK v17.0
func (c Compute) UserList(ctx context.Context, req UserListRequest) (*ListUsers, error) {
err := validators.ValidateRequest(req)
if err != nil {
+1 -1
View File
@@ -21,7 +21,7 @@ type UserRevokeRequest struct {
// UserRevoke revokes user access to the compute
//
// Deprecated: will be removed in SDK v1.17
// Deprecated: will be removed in SDK v17.0
func (c Compute) UserRevoke(ctx context.Context, req UserRevokeRequest) (bool, error) {
err := validators.ValidateRequest(req)
if err != nil {
+1 -1
View File
@@ -29,7 +29,7 @@ type UserUpdateRequest struct {
// UserUpdate updates user access to the compute
//
// Deprecated: will be removed in SDK v1.17
// Deprecated: will be removed in SDK v17.0
func (c Compute) UserUpdate(ctx context.Context, req UserUpdateRequest) (bool, error) {
err := validators.ValidateRequest(req)
if err != nil {