Closed sacalito closed 9 months ago
Hi @sacalito , thanks for reporting this issue.
Actually as per the doc, it seems the URLs should be: /v1/{customer=customers/*}/policies
and ChromePolicy seems to be using v1/{+customer}/policies
which seems correct to me.
Are you using any script which is producing errors?
yes try your file and then try my file, you will see the url is missing also /v1/{customer=customers/*}/policies
is specific you need to put customers/"customerid"
Seems you're correct, I had to test the API to see your point /v1/my_customer/policies:resolve
.
My only problem with your suggested change is that this code is usually autogenerated, see it was edited by a bot, so I will check whether this is a larger problem with our code generation tooling.
BTW you can still pass "customers/my_customer"
in the customer string field for relevant methods. Also, CustomersPolicySchemas
might need a change as well.
yes i know i can do "customers/my_customer", but i would like to have all the customers the same for all files,
yes i also edited the other file, if its generated automatically i dont know then
On Sun, Oct 1, 2023 at 11:26 PM Vishwaraj Anand @.***> wrote:
Seems you're correct, I had to test the API to see your point /v1/my_customer/policies:resolve.
My only problem with your suggested change is that this code is usually autogenerated, see it was edited by a bot https://github.com/googleapis/google-api-php-client-services/pull/1564/files#diff-4e92d6493ee3926cfa1990d4f51dae9e95a6c23081a5f97237993acf68efe8f4, so I will check whether this is a larger problem with our code generation tooling.
BTW you can still pass "customers/my_customer" in the customer string field for relevant methods. Also, CustomersPolicySchemas might need a change as well.
— Reply to this email directly, view it on GitHub https://github.com/googleapis/google-api-php-client/issues/2497#issuecomment-1742457307, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO3JLWBJMYB6AVEVL47DELTX5JNCPANCNFSM6AAAAAA4JR54E4 . You are receiving this because you were mentioned.Message ID: @.***>
I cross checked with the Chrome Policy discovery doc which is the source of the API implementation in this library. It appears that the service does expect the users to pass customers/customer_id
rather than pass customer_id
and add customers/
to it. So it appears the service & library are behaving correct.
I am thinking to close this issue, but in case you want to add more inputs, pls feel free to.
in file vendor/google/apiclient-services/src/ChromePolicy.php
missing in path the /customers/
corrected file