Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

fix: make request optional in all cases #56

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/v1/applications_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ export class ApplicationsClient {
// -- Service calls --
// -------------------
getApplication(
request: protos.google.appengine.v1.IGetApplicationRequest,
request?: protos.google.appengine.v1.IGetApplicationRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -386,7 +386,7 @@ export class ApplicationsClient {
* const [response] = await client.getApplication(request);
*/
getApplication(
request: protos.google.appengine.v1.IGetApplicationRequest,
request?: protos.google.appengine.v1.IGetApplicationRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -426,7 +426,7 @@ export class ApplicationsClient {
}

createApplication(
request: protos.google.appengine.v1.ICreateApplicationRequest,
request?: protos.google.appengine.v1.ICreateApplicationRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -488,7 +488,7 @@ export class ApplicationsClient {
* const [response] = await operation.promise();
*/
createApplication(
request: protos.google.appengine.v1.ICreateApplicationRequest,
request?: protos.google.appengine.v1.ICreateApplicationRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -567,7 +567,7 @@ export class ApplicationsClient {
>;
}
updateApplication(
request: protos.google.appengine.v1.IUpdateApplicationRequest,
request?: protos.google.appengine.v1.IUpdateApplicationRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -631,7 +631,7 @@ export class ApplicationsClient {
* const [response] = await operation.promise();
*/
updateApplication(
request: protos.google.appengine.v1.IUpdateApplicationRequest,
request?: protos.google.appengine.v1.IUpdateApplicationRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -716,7 +716,7 @@ export class ApplicationsClient {
>;
}
repairApplication(
request: protos.google.appengine.v1.IRepairApplicationRequest,
request?: protos.google.appengine.v1.IRepairApplicationRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -781,7 +781,7 @@ export class ApplicationsClient {
* const [response] = await operation.promise();
*/
repairApplication(
request: protos.google.appengine.v1.IRepairApplicationRequest,
request?: protos.google.appengine.v1.IRepairApplicationRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down
20 changes: 10 additions & 10 deletions src/v1/authorized_certificates_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ export class AuthorizedCertificatesClient {
// -- Service calls --
// -------------------
getAuthorizedCertificate(
request: protos.google.appengine.v1.IGetAuthorizedCertificateRequest,
request?: protos.google.appengine.v1.IGetAuthorizedCertificateRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -360,7 +360,7 @@ export class AuthorizedCertificatesClient {
* const [response] = await client.getAuthorizedCertificate(request);
*/
getAuthorizedCertificate(
request: protos.google.appengine.v1.IGetAuthorizedCertificateRequest,
request?: protos.google.appengine.v1.IGetAuthorizedCertificateRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -407,7 +407,7 @@ export class AuthorizedCertificatesClient {
);
}
createAuthorizedCertificate(
request: protos.google.appengine.v1.ICreateAuthorizedCertificateRequest,
request?: protos.google.appengine.v1.ICreateAuthorizedCertificateRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -460,7 +460,7 @@ export class AuthorizedCertificatesClient {
* const [response] = await client.createAuthorizedCertificate(request);
*/
createAuthorizedCertificate(
request: protos.google.appengine.v1.ICreateAuthorizedCertificateRequest,
request?: protos.google.appengine.v1.ICreateAuthorizedCertificateRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -510,7 +510,7 @@ export class AuthorizedCertificatesClient {
);
}
updateAuthorizedCertificate(
request: protos.google.appengine.v1.IUpdateAuthorizedCertificateRequest,
request?: protos.google.appengine.v1.IUpdateAuthorizedCertificateRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -572,7 +572,7 @@ export class AuthorizedCertificatesClient {
* const [response] = await client.updateAuthorizedCertificate(request);
*/
updateAuthorizedCertificate(
request: protos.google.appengine.v1.IUpdateAuthorizedCertificateRequest,
request?: protos.google.appengine.v1.IUpdateAuthorizedCertificateRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -622,7 +622,7 @@ export class AuthorizedCertificatesClient {
);
}
deleteAuthorizedCertificate(
request: protos.google.appengine.v1.IDeleteAuthorizedCertificateRequest,
request?: protos.google.appengine.v1.IDeleteAuthorizedCertificateRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -674,7 +674,7 @@ export class AuthorizedCertificatesClient {
* const [response] = await client.deleteAuthorizedCertificate(request);
*/
deleteAuthorizedCertificate(
request: protos.google.appengine.v1.IDeleteAuthorizedCertificateRequest,
request?: protos.google.appengine.v1.IDeleteAuthorizedCertificateRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -725,7 +725,7 @@ export class AuthorizedCertificatesClient {
}

listAuthorizedCertificates(
request: protos.google.appengine.v1.IListAuthorizedCertificatesRequest,
request?: protos.google.appengine.v1.IListAuthorizedCertificatesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -782,7 +782,7 @@ export class AuthorizedCertificatesClient {
* for more details and examples.
*/
listAuthorizedCertificates(
request: protos.google.appengine.v1.IListAuthorizedCertificatesRequest,
request?: protos.google.appengine.v1.IListAuthorizedCertificatesRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
4 changes: 2 additions & 2 deletions src/v1/authorized_domains_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export class AuthorizedDomainsClient {
// -------------------

listAuthorizedDomains(
request: protos.google.appengine.v1.IListAuthorizedDomainsRequest,
request?: protos.google.appengine.v1.IListAuthorizedDomainsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -359,7 +359,7 @@ export class AuthorizedDomainsClient {
* for more details and examples.
*/
listAuthorizedDomains(
request: protos.google.appengine.v1.IListAuthorizedDomainsRequest,
request?: protos.google.appengine.v1.IListAuthorizedDomainsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
20 changes: 10 additions & 10 deletions src/v1/domain_mappings_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ export class DomainMappingsClient {
// -- Service calls --
// -------------------
getDomainMapping(
request: protos.google.appengine.v1.IGetDomainMappingRequest,
request?: protos.google.appengine.v1.IGetDomainMappingRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -406,7 +406,7 @@ export class DomainMappingsClient {
* const [response] = await client.getDomainMapping(request);
*/
getDomainMapping(
request: protos.google.appengine.v1.IGetDomainMappingRequest,
request?: protos.google.appengine.v1.IGetDomainMappingRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -448,7 +448,7 @@ export class DomainMappingsClient {
}

createDomainMapping(
request: protos.google.appengine.v1.ICreateDomainMappingRequest,
request?: protos.google.appengine.v1.ICreateDomainMappingRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -511,7 +511,7 @@ export class DomainMappingsClient {
* const [response] = await operation.promise();
*/
createDomainMapping(
request: protos.google.appengine.v1.ICreateDomainMappingRequest,
request?: protos.google.appengine.v1.ICreateDomainMappingRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -596,7 +596,7 @@ export class DomainMappingsClient {
>;
}
updateDomainMapping(
request: protos.google.appengine.v1.IUpdateDomainMappingRequest,
request?: protos.google.appengine.v1.IUpdateDomainMappingRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -661,7 +661,7 @@ export class DomainMappingsClient {
* const [response] = await operation.promise();
*/
updateDomainMapping(
request: protos.google.appengine.v1.IUpdateDomainMappingRequest,
request?: protos.google.appengine.v1.IUpdateDomainMappingRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -746,7 +746,7 @@ export class DomainMappingsClient {
>;
}
deleteDomainMapping(
request: protos.google.appengine.v1.IDeleteDomainMappingRequest,
request?: protos.google.appengine.v1.IDeleteDomainMappingRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -805,7 +805,7 @@ export class DomainMappingsClient {
* const [response] = await operation.promise();
*/
deleteDomainMapping(
request: protos.google.appengine.v1.IDeleteDomainMappingRequest,
request?: protos.google.appengine.v1.IDeleteDomainMappingRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -890,7 +890,7 @@ export class DomainMappingsClient {
>;
}
listDomainMappings(
request: protos.google.appengine.v1.IListDomainMappingsRequest,
request?: protos.google.appengine.v1.IListDomainMappingsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -941,7 +941,7 @@ export class DomainMappingsClient {
* for more details and examples.
*/
listDomainMappings(
request: protos.google.appengine.v1.IListDomainMappingsRequest,
request?: protos.google.appengine.v1.IListDomainMappingsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
24 changes: 12 additions & 12 deletions src/v1/firewall_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export class FirewallClient {
// -- Service calls --
// -------------------
batchUpdateIngressRules(
request: protos.google.appengine.v1.IBatchUpdateIngressRulesRequest,
request?: protos.google.appengine.v1.IBatchUpdateIngressRulesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -372,7 +372,7 @@ export class FirewallClient {
* const [response] = await client.batchUpdateIngressRules(request);
*/
batchUpdateIngressRules(
request: protos.google.appengine.v1.IBatchUpdateIngressRulesRequest,
request?: protos.google.appengine.v1.IBatchUpdateIngressRulesRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -419,7 +419,7 @@ export class FirewallClient {
);
}
createIngressRule(
request: protos.google.appengine.v1.ICreateIngressRuleRequest,
request?: protos.google.appengine.v1.ICreateIngressRuleRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -475,7 +475,7 @@ export class FirewallClient {
* const [response] = await client.createIngressRule(request);
*/
createIngressRule(
request: protos.google.appengine.v1.ICreateIngressRuleRequest,
request?: protos.google.appengine.v1.ICreateIngressRuleRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -516,7 +516,7 @@ export class FirewallClient {
return this.innerApiCalls.createIngressRule(request, options, callback);
}
getIngressRule(
request: protos.google.appengine.v1.IGetIngressRuleRequest,
request?: protos.google.appengine.v1.IGetIngressRuleRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -561,7 +561,7 @@ export class FirewallClient {
* const [response] = await client.getIngressRule(request);
*/
getIngressRule(
request: protos.google.appengine.v1.IGetIngressRuleRequest,
request?: protos.google.appengine.v1.IGetIngressRuleRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -600,7 +600,7 @@ export class FirewallClient {
return this.innerApiCalls.getIngressRule(request, options, callback);
}
updateIngressRule(
request: protos.google.appengine.v1.IUpdateIngressRuleRequest,
request?: protos.google.appengine.v1.IUpdateIngressRuleRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -649,7 +649,7 @@ export class FirewallClient {
* const [response] = await client.updateIngressRule(request);
*/
updateIngressRule(
request: protos.google.appengine.v1.IUpdateIngressRuleRequest,
request?: protos.google.appengine.v1.IUpdateIngressRuleRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -690,7 +690,7 @@ export class FirewallClient {
return this.innerApiCalls.updateIngressRule(request, options, callback);
}
deleteIngressRule(
request: protos.google.appengine.v1.IDeleteIngressRuleRequest,
request?: protos.google.appengine.v1.IDeleteIngressRuleRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -735,7 +735,7 @@ export class FirewallClient {
* const [response] = await client.deleteIngressRule(request);
*/
deleteIngressRule(
request: protos.google.appengine.v1.IDeleteIngressRuleRequest,
request?: protos.google.appengine.v1.IDeleteIngressRuleRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -777,7 +777,7 @@ export class FirewallClient {
}

listIngressRules(
request: protos.google.appengine.v1.IListIngressRulesRequest,
request?: protos.google.appengine.v1.IListIngressRulesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -833,7 +833,7 @@ export class FirewallClient {
* for more details and examples.
*/
listIngressRules(
request: protos.google.appengine.v1.IListIngressRulesRequest,
request?: protos.google.appengine.v1.IListIngressRulesRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
Loading