DigitalOceanPHP / Client

DigitalOcean API v2 client for PHP
MIT License
709 stars 205 forks source link

Add support for Project Resources API #303

Closed spicybeefnoodle closed 1 year ago

spicybeefnoodle commented 2 years ago

https://docs.digitalocean.com/reference/api/api-reference/#tag/Project-Resources

When you create a new resource (for instance, a droplet), there is no option to assign it to a specific project at the same time. It simply attaches itself to the default project, which is not handy when you have multiple projects going. You have to do it afterwards using the Project Resources API.

"The DigitalOcean API does not currently support assigning resources to a specific project when the resource is created. Currently, this require a second API call." source: https://github.com/digitalocean/doctl/issues/630#issuecomment-620227791

I didn't see that implemented in the SDK so it might be a handy one to have.

mohameedsherif commented 2 years ago

why not exists in last version?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because there has been no recent activity. It will be closed after 30 days if no further activity occurs. Thank you for your contributions.