Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: accept null values in request bodies #1824

Merged
merged 1 commit into from Sep 17, 2019
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/apis/abusiveexperiencereport/v1.ts
Expand Up @@ -126,31 +126,31 @@ export namespace abusiveexperiencereport_v1 {
/**
* The site's Abusive Experience Report status.
*/
abusiveStatus?: string;
abusiveStatus?: string | null;
/**
* The time at which [enforcement](https://support.google.com/webtools/answer/7538608) against the site began or will begin. Not set when the filter_status is OFF.
*/
enforcementTime?: string;
enforcementTime?: string | null;
/**
* The site's [enforcement status](https://support.google.com/webtools/answer/7538608).
*/
filterStatus?: string;
filterStatus?: string | null;
/**
* The time at which the site's status last changed.
*/
lastChangeTime?: string;
lastChangeTime?: string | null;
/**
* A link to the full Abusive Experience Report for the site. Not set in ViolatingSitesResponse. Note that you must complete the [Search Console verification process](https://support.google.com/webmasters/answer/9008080) for the site before you can access the full report.
*/
reportUrl?: string;
reportUrl?: string | null;
/**
* The name of the reviewed site, e.g. `google.com`.
*/
reviewedSite?: string;
reviewedSite?: string | null;
/**
* Whether the site is currently under review.
*/
underReview?: boolean;
underReview?: boolean | null;
}
/**
* Response message for ListViolatingSites.
Expand Down
16 changes: 8 additions & 8 deletions src/apis/acceleratedmobilepageurl/v1.ts
Expand Up @@ -124,15 +124,15 @@ export namespace acceleratedmobilepageurl_v1 {
/**
* The AMP URL pointing to the publisher's web server.
*/
ampUrl?: string;
ampUrl?: string | null;
/**
* The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to the cached document in the Google AMP Cache.
*/
cdnAmpUrl?: string;
cdnAmpUrl?: string | null;
/**
* The original non-AMP URL.
*/
originalUrl?: string;
originalUrl?: string | null;
}
/**
* AMP URL Error resource for a requested URL that couldn't be found.
Expand All @@ -141,15 +141,15 @@ export namespace acceleratedmobilepageurl_v1 {
/**
* The error code of an API call.
*/
errorCode?: string;
errorCode?: string | null;
/**
* An optional descriptive error message.
*/
errorMessage?: string;
errorMessage?: string | null;
/**
* The original non-AMP URL.
*/
originalUrl?: string;
originalUrl?: string | null;
}
/**
* AMP URL request for a batch of URLs.
Expand All @@ -158,11 +158,11 @@ export namespace acceleratedmobilepageurl_v1 {
/**
* The lookup_strategy being requested.
*/
lookupStrategy?: string;
lookupStrategy?: string | null;
/**
* List of URLs to look up for the paired AMP URLs. The URLs are case-sensitive. Up to 50 URLs per lookup (see [Usage Limits](/amp/cache/reference/limits)).
*/
urls?: string[];
urls?: string[] | null;
}
/**
* Batch AMP URL response.
Expand Down
36 changes: 18 additions & 18 deletions src/apis/accessapproval/v1beta1.ts
Expand Up @@ -132,11 +132,11 @@ export namespace accessapproval_v1beta1 {
/**
* The resource name of the settings. Format is one of: <ol> <li>"projects/{project_id}/accessApprovalSettings"</li> <li>"folders/{folder_id}/accessApprovalSettings"</li> <li>"organizations/{organization_id}/accessApprovalSettings"</li> <ol>
*/
name?: string;
name?: string | null;
/**
* A list of email addresses to which notifications relating to approval requests should be sent. Notifications relating to a resource will be sent to all emails in the settings of ancestor resources of that resource.
*/
notificationEmails?: string[];
notificationEmails?: string[] | null;
}
/**
* Home office and physical location of the principal.
Expand All @@ -145,21 +145,21 @@ export namespace accessapproval_v1beta1 {
/**
* The "home office" location of the principal. A two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some limited situations Google systems may refer refer to a region code instead of a country code. Possible Region Codes: <ol> <li>ASI: Asia</li> <li>EUR: Europe</li> <li>OCE: Oceania</li> <li>AFR: Africa</li> <li>NAM: North America</li> <li>SAM: South America</li> <li>ANT: Antarctica</li> <li>ANY: Any location</li> </ol>
*/
principalOfficeCountry?: string;
principalOfficeCountry?: string | null;
/**
* Physical location of the principal at the time of the access. A two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some limited situations Google systems may refer refer to a region code instead of a country code. Possible Region Codes: <ol> <li>ASI: Asia</li> <li>EUR: Europe</li> <li>OCE: Oceania</li> <li>AFR: Africa</li> <li>NAM: North America</li> <li>SAM: South America</li> <li>ANT: Antarctica</li> <li>ANY: Any location</li> </ol>
*/
principalPhysicalLocationCountry?: string;
principalPhysicalLocationCountry?: string | null;
}
export interface Schema$AccessReason {
/**
* More detail about certain reason types. See comments for each type above.
*/
detail?: string;
detail?: string | null;
/**
* Type of access justification.
*/
type?: string;
type?: string | null;
}
/**
* A request for the customer to approve access to a resource.
Expand All @@ -176,11 +176,11 @@ export namespace accessapproval_v1beta1 {
/**
* The resource name of the request. Format is "{projects|folders|organizations}/{id}/approvalRequests/{approval_request_id}".
*/
name?: string;
name?: string | null;
/**
* The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.
*/
requestedExpiration?: string;
requestedExpiration?: string | null;
/**
* The locations for which approval is being requested.
*/
Expand All @@ -192,15 +192,15 @@ export namespace accessapproval_v1beta1 {
/**
* The resource for which approval is being requested. The format of the resource name is defined at https://cloud.google.com/apis/design/resource_names. The resource name here may either be a "full" resource name (e.g. "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative" resource name (e.g. "shelves/shelf1/books/book2") as described in the resource name specification.
*/
requestedResourceName?: string;
requestedResourceName?: string | null;
/**
* Properties related to the resource represented by requested_resource_name.
*/
requestedResourceProperties?: Schema$ResourceProperties;
/**
* The time at which approval was requested.
*/
requestTime?: string;
requestTime?: string | null;
}
/**
* Request to approve an ApprovalRequest.
Expand All @@ -209,7 +209,7 @@ export namespace accessapproval_v1beta1 {
/**
* The expiration time of this approval.
*/
expireTime?: string;
expireTime?: string | null;
}
/**
* A decision that has been made to approve access to a resource.
Expand All @@ -218,11 +218,11 @@ export namespace accessapproval_v1beta1 {
/**
* The time at which approval was granted.
*/
approveTime?: string;
approveTime?: string | null;
/**
* The time at which the approval expires.
*/
expireTime?: string;
expireTime?: string | null;
}
/**
* Request to dismiss an approval request.
Expand All @@ -235,7 +235,7 @@ export namespace accessapproval_v1beta1 {
/**
* The time at which the approval request was dismissed.
*/
dismissTime?: string;
dismissTime?: string | null;
}
/**
* Represents the enrollment of a cloud resource into a specific service.
Expand All @@ -244,11 +244,11 @@ export namespace accessapproval_v1beta1 {
/**
* The product for which Access Approval will be enrolled. Allowed values are listed below (case-sensitive): <ol> <li>all</li> <li>appengine.googleapis.com</li> <li>bigquery.googleapis.com</li> <li>bigtable.googleapis.com</li> <li>cloudkms.googleapis.com</li> <li>compute.googleapis.com</li> <li>dataflow.googleapis.com</li> <li>iam.googleapis.com</li> <li>pubsub.googleapis.com</li> <li>storage.googleapis.com</li> <ol>
*/
cloudProduct?: string;
cloudProduct?: string | null;
/**
* The enrollment level of the service.
*/
enrollmentLevel?: string;
enrollmentLevel?: string | null;
}
/**
* Response to listing of ApprovalRequest objects.
Expand All @@ -261,7 +261,7 @@ export namespace accessapproval_v1beta1 {
/**
* Token to retrieve the next page of results, or empty if there are no more.
*/
nextPageToken?: string;
nextPageToken?: string | null;
}
/**
* The properties associated with the resource of the request.
Expand All @@ -270,7 +270,7 @@ export namespace accessapproval_v1beta1 {
/**
* Whether an approval will exclude the descendants of the resource being requested.
*/
excludesDescendants?: boolean;
excludesDescendants?: boolean | null;
}

export class Resource$Folders {
Expand Down