Skip to content

Commit

Permalink
fix(Workspace): fix Workspace service API comments(4175)
Browse files Browse the repository at this point in the history
  • Loading branch information
wuzhuanhong authored Feb 6, 2024
1 parent 90cbd5c commit 444fb8b
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/config"
)

// @API Workspace GET /v2/{project_id}/access-policy/{policyId}/objects
// @API Workspace PUT /v2/{project_id}/access-policy/{policyId}/objects
// @API Workspace GET /v2/{project_id}/access-policy/{access_policy_id}/objects
// @API Workspace PUT /v2/{project_id}/access-policy/{access_policy_id}/objects
// @API Workspace DELETE /v2/{project_id}/access-policy
// @API Workspace GET /v2/{project_id}/access-policy
// @API Workspace POST /v2/{project_id}/access-policy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,12 @@ func desktopVolumeSchemaResource() *schema.Resource {

// @API Workspace POST /v2/{project_id}/desktops/rebuild
// @API Workspace POST /v2/{project_id}/desktops/resize
// @API Workspace GET /v2/{project_id}/desktops/{desktopId}
// @API Workspace DELETE /v2/{project_id}/desktops/{desktopId}
// @API Workspace GET /v2/{project_id}/desktops/{desktop_id}
// @API Workspace DELETE /v2/{project_id}/desktops/{desktop_id}
// @API Workspace POST /v2/{project_id}/desktops/{id}/tags/action
// @API Workspace GET /v2/{project_id}/users
// @API Workspace POST /v2/{project_id}/volumes
// @API Workspace GET /v2/{project_id}/desktops/{desktopId}/networks
// @API Workspace PUT /v2/{project_id}/desktops/{desktopId}/networks
// @API Workspace GET /v2/{project_id}/desktops/{desktop_id}/networks
// @API Workspace PUT /v2/{project_id}/desktops/{desktop_id}/networks
// @API Workspace POST /v2/{project_id}/desktops
// @API Workspace POST /v2/{project_id}/volumes/expand
// @API Workspace GET /v2/{project_id}/workspace-sub-jobs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import (
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/config"
)

// @API Workspace POST /v2/{project_id}/eips/{bindType}
// @API Workspace POST /v2/{project_id}/eips/binding
// @API Workspace POST /v2/{project_id}/eips/unbinding
// @API Workspace GET /v2/{project_id}/eips
func ResourceEipAssociate() *schema.Resource {
return &schema.Resource{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/utils"
)

// @API Workspace DELETE /v2/{project_id}/policy-groups/{groupId}
// @API Workspace GET /v2/{project_id}/policy-groups/{groupId}
// @API Workspace PUT /v2/{project_id}/policy-groups/{groupId}
// @API Workspace DELETE /v2/{project_id}/policy-groups/{policy_group_id}
// @API Workspace GET /v2/{project_id}/policy-groups/{policy_group_id}
// @API Workspace PUT /v2/{project_id}/policy-groups/{policy_group_id}
// @API Workspace POST /v2/{project_id}/policy-groups
func ResourcePolicyGroup() *schema.Resource {
return &schema.Resource{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ func assistAuthSchemaResource() *schema.Resource {
// @API Workspace GET /v2/{project_id}/workspaces
// @API Workspace POST /v2/{project_id}/workspaces
// @API Workspace PUT /v2/{project_id}/workspaces
// @API Workspace GET /v2/{project_id}/workspaces/lock-status
// @API Workspace PUT /v2/{project_id}/workspaces/lock-status
func ResourceService() *schema.Resource {
return &schema.Resource{
CreateContext: resourceServiceCreate,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ import (
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/utils"
)

// @API Workspace POST /v2/{project_id}/terminals/binding-desktops/batch-delete
// @API Workspace POST /v2/{project_id}/terminals/binding-desktops
// @API Workspace GET /v2/{project_id}/terminals/binding-desktops
// @API Workspace GET /v2/{project_id}/terminals/binding-desktops/config
// @API Workspace POST /v2/{project_id}/terminals/binding-desktops/config
func ResourceTerminalBinding() *schema.Resource {
return &schema.Resource{
CreateContext: resourceTerminalBindingsCreate,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ const (
MilliRFC3339NoT = "2006-01-02T15:04:05.000Z"
)

// @API Workspace DELETE /v2/{project_id}/users/{userId}
// @API Workspace GET /v2/{project_id}/users/{userId}
// @API Workspace PUT /v2/{project_id}/users/{userId}
// @API Workspace DELETE /v2/{project_id}/users/{user_id}
// @API Workspace GET /v2/{project_id}/users/{user_id}
// @API Workspace PUT /v2/{project_id}/users/{user_id}
// @API Workspace POST /v2/{project_id}/users
func ResourceUser() *schema.Resource {
return &schema.Resource{
Expand Down

0 comments on commit 444fb8b

Please sign in to comment.