Skip to content

Commit

Permalink
fix(privateca): publish v1beta1 LRO HTTP rules
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 458248734
Source-Link: googleapis/googleapis@e63fcd7
Source-Link: googleapis/googleapis-gen@8dcb37f
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGRjYjM3ZjY1YTU5ZWEyODY3NzM4NmFlNTE4YTFmYWFkYjMzZjEyZCJ9
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
Source-Link: googleapis/googleapis@ae65014
Source-Link: googleapis/googleapis-gen@b09ede4
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjA5ZWRlNDM1Y2NlMTEwNDQ2ZDRhYjlmNjJhMDgxYjU3MWQzN2UzZiJ9
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Benjamin E. Coe <bencoe@google.com>
  • Loading branch information
3 people authored Jul 4, 2022
1 parent 16fceb4 commit af19feb
Showing 1 changed file with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,25 @@ export class CertificateAuthorityServiceClient {
};
if (opts.fallback === 'rest') {
lroOptions.protoJson = protoFilesRoot;
lroOptions.httpRules = [];
lroOptions.httpRules = [
{
selector: 'google.longrunning.Operations.CancelOperation',
post: '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel',
body: '*',
},
{
selector: 'google.longrunning.Operations.DeleteOperation',
delete: '/v1beta1/{name=projects/*/locations/*/operations/*}',
},
{
selector: 'google.longrunning.Operations.GetOperation',
get: '/v1beta1/{name=projects/*/locations/*/operations/*}',
},
{
selector: 'google.longrunning.Operations.ListOperations',
get: '/v1beta1/{name=projects/*/locations/*}/operations',
},
];
}
this.operationsClient = this._gaxModule
.lro(lroOptions)
Expand Down

0 comments on commit af19feb

Please sign in to comment.