github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/swr/v2/organizations/UpdatePermissions.go (about)

     1  package organizations
     2  
     3  import (
     4  	"github.com/opentelekomcloud/gophertelekomcloud"
     5  	"github.com/opentelekomcloud/gophertelekomcloud/internal/build"
     6  )
     7  
     8  func UpdatePermissions(client *golangsdk.ServiceClient, organization string, opts []Auth) (err error) {
     9  	b, err := build.RequestBody(opts, "")
    10  	if err != nil {
    11  		return
    12  	}
    13  
    14  	// PATCH /v2/manage/namespaces/{namespace}/access
    15  	_, err = client.Patch(client.ServiceURL("manage", "namespaces", organization, "access"), b, nil, &golangsdk.RequestOpts{
    16  		OkCodes: []int{201},
    17  	})
    18  	return
    19  }