Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Account Id To Zone Creation #195

Conversation

phily245
Copy link
Contributor

@phily245 phily245 commented Oct 4, 2021

According to the docs, this is a required parameter.

Closes #189

According to the docs, this is a required parameter
The linter correctly pointed out that we had too many public methods on
this class
@@ -30,7 +30,7 @@ public function __construct(Adapter $adapter)
* @param string $organizationID
* @return \stdClass
*/
public function addZone(string $name, bool $jumpStart = false, string $organizationID = ''): \stdClass
public function addZone(string $name, bool $jumpStart = false, string $organizationID = '', string $accountId = ''): \stdClass
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here, organizationID is the same as accountID; the terminology has just changed internally to better represent the entity. i'm happy to support a rename here instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the heads up! I've pushed some changes and left the organization->id setting in the body for backwards compatibility

This was a misunderstanding by me, these are actually the same thing
I missed updating this in my previous commit
I didn't remove the extra parameter I added earlier due too a
terminology change
It seems accounts have superceeded this
@phily245
Copy link
Contributor Author

@jacobbednarz thanks for all the feedback! I think I've addressed everything

@jacobbednarz jacobbednarz merged commit 12ac2bb into cloudflare:master Oct 13, 2021
@jacobbednarz
Copy link
Member

awesome stuff! thanks!

@phily245 phily245 deleted the 189-Allow-Passing-Of-An-Account-ID-To-Zone-Creation branch October 13, 2021 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow Passing Of An Account ID To Zone Creation
2 participants