Fixes optional/missing parameters for Google Tasks API. (#36012)

"parent" is a required field on CreateTaskRequests (see the docs, for example the Quickstart guide at https://github.com/googleapis/nodejs-tasks)

Not all of the properties on AppEngineHttpRequest are required, also observable from the quickstart like mentioned above.
This commit is contained in:
Jace McPherson 2019-06-11 17:39:07 -10:00 committed by Ron Buckton
parent 6b4ddd0d5d
commit 7e4f7be66a
2 changed files with 8 additions and 6 deletions

View File

@ -27,9 +27,9 @@ export interface AppEngineHttpQueue {
}
export interface AppEngineHttpRequest {
appEngineRouting: AppEngineRouting;
appEngineRouting?: AppEngineRouting;
body: string;
headers: {
headers?: {
[key: string]: string;
};
httpMethod: string;
@ -57,7 +57,8 @@ export interface Binding {
}
export interface CreateTaskRequest {
responseView: View;
responseView?: View;
parent: string;
task: Partial<Task>;
}

View File

@ -22,9 +22,9 @@ export interface AppEngineHttpQueue {
}
export interface AppEngineHttpRequest {
appEngineRouting: AppEngineRouting;
appEngineRouting?: AppEngineRouting;
body: string;
headers: {
headers?: {
[key: string]: string;
};
httpMethod: string;
@ -52,7 +52,8 @@ export interface Binding {
}
export interface CreateTaskRequest {
responseView: View;
responseView?: View;
parent: string;
task: Partial<Task>;
}