We have a command which builds new components from proto files and calculates their parameters based on the protos provided:
./dev/google-cloud component:new
However, when a component has the namespace Google\Ads, custom parameters must be provided in order to configure the appropriate composer package name and github repository:
- The composer package name should use
googleapis as the vendor instead of google, e.g. googleads/[project-name] instead of google/[project-name]
- The github repo should be
googleapis/php-ads-[project-name]
The same is true for CommonProtos libraries - if no GAPIC clients exist, we append CommonProtos to the component name, and -common-protos to the package and repo names.
See go/cloud-sdk-php-new-component-heuristics
We have a command which builds new components from proto files and calculates their parameters based on the protos provided:
However, when a component has the namespace
Google\Ads, custom parameters must be provided in order to configure the appropriate composer package name and github repository:googleapisas the vendor instead ofgoogle, e.g.googleads/[project-name]instead ofgoogle/[project-name]googleapis/php-ads-[project-name]The same is true for
CommonProtoslibraries - if no GAPIC clients exist, we appendCommonProtosto the component name, and-common-protosto the package and repo names.See go/cloud-sdk-php-new-component-heuristics