diff --git a/src/apis/abusiveexperiencereport/v1.ts b/src/apis/abusiveexperiencereport/v1.ts
index 6157ab3a558..656e44d7ce2 100644
--- a/src/apis/abusiveexperiencereport/v1.ts
+++ b/src/apis/abusiveexperiencereport/v1.ts
@@ -124,27 +124,27 @@ export namespace abusiveexperiencereport_v1 {
*/
export interface Schema$SiteSummaryResponse {
/**
- * The status of the site reviewed for the abusive experiences.
+ * The site's Abusive Experience Report status.
*/
abusiveStatus?: string;
/**
- * The date on which enforcement begins.
+ * 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;
/**
- * The abusive experience enforcement status of the site.
+ * The site's [enforcement status](https://support.google.com/webtools/answer/7538608).
*/
filterStatus?: string;
/**
- * The last time that the site changed status.
+ * The time at which the site's status last changed.
*/
lastChangeTime?: string;
/**
- * A link that leads to a full abusive experience report.
+ * 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;
/**
- * The name of the site reviewed.
+ * The name of the reviewed site, e.g. `google.com`.
*/
reviewedSite?: string;
/**
@@ -157,7 +157,7 @@ export namespace abusiveexperiencereport_v1 {
*/
export interface Schema$ViolatingSitesResponse {
/**
- * A list of summaries of violating sites.
+ * The list of violating sites.
*/
violatingSites?: Schema$SiteSummaryResponse[];
}
@@ -170,12 +170,12 @@ export namespace abusiveexperiencereport_v1 {
/**
* abusiveexperiencereport.sites.get
- * @desc Gets a summary of the abusive experience rating of a site.
+ * @desc Gets a site's Abusive Experience Report summary.
* @alias abusiveexperiencereport.sites.get
* @memberOf! ()
*
* @param {object} params Parameters for request
- * @param {string} params.name The required site name. This is the site property whose abusive experiences have been reviewed, and it must be URL-encoded. For example, sites/https%3A%2F%2Fwww.google.com. The server will return an error of BAD_REQUEST if this field is not filled in. Note that if the site property is not yet verified in Search Console, the reportUrl field returned by the API will lead to the verification page, prompting the user to go through that process before they can gain access to the Abusive Experience Report.
+ * @param {string} params.name Required. The name of the site whose summary to get, e.g. `sites/http%3A%2F%2Fwww.google.com%2F`. Format: `sites/{site}`
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
@@ -247,7 +247,7 @@ export namespace abusiveexperiencereport_v1 {
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
- * The required site name. This is the site property whose abusive experiences have been reviewed, and it must be URL-encoded. For example, sites/https%3A%2F%2Fwww.google.com. The server will return an error of BAD_REQUEST if this field is not filled in. Note that if the site property is not yet verified in Search Console, the reportUrl field returned by the API will lead to the verification page, prompting the user to go through that process before they can gain access to the Abusive Experience Report.
+ * Required. The name of the site whose summary to get, e.g. `sites/http%3A%2F%2Fwww.google.com%2F`. Format: `sites/{site}`
*/
name?: string;
}
@@ -260,7 +260,7 @@ export namespace abusiveexperiencereport_v1 {
/**
* abusiveexperiencereport.violatingSites.list
- * @desc Lists sites with Abusive Experience Report statuses of "Failing".
+ * @desc Lists sites that are failing in the Abusive Experience Report.
* @alias abusiveexperiencereport.violatingSites.list
* @memberOf! ()
*
diff --git a/src/apis/accessapproval/v1beta1.ts b/src/apis/accessapproval/v1beta1.ts
index 0a10a413e9b..1136dc5ef1e 100644
--- a/src/apis/accessapproval/v1beta1.ts
+++ b/src/apis/accessapproval/v1beta1.ts
@@ -125,6 +125,10 @@ export namespace accessapproval_v1beta1 {
* Settings on a Project/Folder/Organization related to Access Approval.
*/
export interface Schema$AccessApprovalSettings {
+ /**
+ * A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. If name refers to an organization, enrollment can be done for individual services. If name refers to a folder or project, enrollment can only be done on an all or nothing basis. If a cloud_product is repeated in this list, the first entry will be honored and all following entries will be discarded.
+ */
+ enrolledServices?: Schema$EnrolledService[];
/**
* 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>
*/
@@ -233,6 +237,19 @@ export namespace accessapproval_v1beta1 {
*/
dismissTime?: string;
}
+ /**
+ * Represents the enrollment of a cloud resource into a specific service.
+ */
+ export interface Schema$EnrolledService {
+ /**
+ * 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;
+ /**
+ * The enrollment level of the service.
+ */
+ enrollmentLevel?: string;
+ }
/**
* Response to listing of ApprovalRequest objects.
*/
@@ -344,12 +361,13 @@ export namespace accessapproval_v1beta1 {
/**
* accessapproval.folders.updateAccessApprovalSettings
- * @desc Updates the settings associated with a project, folder, or organization. Completely replaces the existing settings.
+ * @desc Updates the settings associated with a project, folder, or organization. Settings to update are determined by the value of field_mask.
* @alias accessapproval.folders.updateAccessApprovalSettings
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name The resource name of the settings. Format is one of:
- "projects/{project_id}/accessApprovalSettings"
- "folders/{folder_id}/accessApprovalSettings"
- "organizations/{organization_id}/accessApprovalSettings"
+ * @param {string=} params.updateMask The update mask applies to the settings. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If this field is left unset, only the notification_emails field will be updated.
* @param {().AccessApprovalSettings} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
@@ -443,6 +461,10 @@ export namespace accessapproval_v1beta1 {
* The resource name of the settings. Format is one of: - "projects/{project_id}/accessApprovalSettings"
- "folders/{folder_id}/accessApprovalSettings"
- "organizations/{organization_id}/accessApprovalSettings"
*/
name?: string;
+ /**
+ * The update mask applies to the settings. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If this field is left unset, only the notification_emails field will be updated.
+ */
+ updateMask?: string;
/**
* Request body metadata
@@ -927,12 +949,13 @@ export namespace accessapproval_v1beta1 {
/**
* accessapproval.organizations.updateAccessApprovalSettings
- * @desc Updates the settings associated with a project, folder, or organization. Completely replaces the existing settings.
+ * @desc Updates the settings associated with a project, folder, or organization. Settings to update are determined by the value of field_mask.
* @alias accessapproval.organizations.updateAccessApprovalSettings
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name The resource name of the settings. Format is one of: - "projects/{project_id}/accessApprovalSettings"
- "folders/{folder_id}/accessApprovalSettings"
- "organizations/{organization_id}/accessApprovalSettings"
+ * @param {string=} params.updateMask The update mask applies to the settings. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If this field is left unset, only the notification_emails field will be updated.
* @param {().AccessApprovalSettings} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
@@ -1026,6 +1049,10 @@ export namespace accessapproval_v1beta1 {
* The resource name of the settings. Format is one of: - "projects/{project_id}/accessApprovalSettings"
- "folders/{folder_id}/accessApprovalSettings"
- "organizations/{organization_id}/accessApprovalSettings"
*/
name?: string;
+ /**
+ * The update mask applies to the settings. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If this field is left unset, only the notification_emails field will be updated.
+ */
+ updateMask?: string;
/**
* Request body metadata
@@ -1510,12 +1537,13 @@ export namespace accessapproval_v1beta1 {
/**
* accessapproval.projects.updateAccessApprovalSettings
- * @desc Updates the settings associated with a project, folder, or organization. Completely replaces the existing settings.
+ * @desc Updates the settings associated with a project, folder, or organization. Settings to update are determined by the value of field_mask.
* @alias accessapproval.projects.updateAccessApprovalSettings
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name The resource name of the settings. Format is one of: - "projects/{project_id}/accessApprovalSettings"
- "folders/{folder_id}/accessApprovalSettings"
- "organizations/{organization_id}/accessApprovalSettings"
+ * @param {string=} params.updateMask The update mask applies to the settings. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If this field is left unset, only the notification_emails field will be updated.
* @param {().AccessApprovalSettings} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
@@ -1609,6 +1637,10 @@ export namespace accessapproval_v1beta1 {
* The resource name of the settings. Format is one of: - "projects/{project_id}/accessApprovalSettings"
- "folders/{folder_id}/accessApprovalSettings"
- "organizations/{organization_id}/accessApprovalSettings"
*/
name?: string;
+ /**
+ * The update mask applies to the settings. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If this field is left unset, only the notification_emails field will be updated.
+ */
+ updateMask?: string;
/**
* Request body metadata
diff --git a/src/apis/adexperiencereport/v1.ts b/src/apis/adexperiencereport/v1.ts
index 5ef1ced9a48..867b4af51e6 100644
--- a/src/apis/adexperiencereport/v1.ts
+++ b/src/apis/adexperiencereport/v1.ts
@@ -120,35 +120,35 @@ export namespace adexperiencereport_v1 {
}
/**
- * Summary of the ad experience rating of a site for a specific platform.
+ * A site's Ad Experience Report summary on a single platform.
*/
export interface Schema$PlatformSummary {
/**
- * The status of the site reviewed for the Better Ads Standards.
+ * The site's Ad Experience Report status on this platform.
*/
betterAdsStatus?: string;
/**
- * The date on which ad filtering begins.
+ * The time at which [enforcement](https://support.google.com/webtools/answer/7308033) against the site began or will begin on this platform. Not set when the filter_status is OFF.
*/
enforcementTime?: string;
/**
- * The ad filtering status of the site.
+ * The site's [enforcement status](https://support.google.com/webtools/answer/7308033) on this platform.
*/
filterStatus?: string;
/**
- * The last time that the site changed status.
+ * The time at which the site's status last changed on this platform.
*/
lastChangeTime?: string;
/**
- * The assigned regions for the site and platform.
+ * The site's regions on this platform. No longer populated, because there is no longer any semantic difference between sites in different regions.
*/
region?: string[];
/**
- * A link that leads to a full ad experience report.
+ * A link to the full Ad Experience Report for the site on this platform.. 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;
/**
- * Whether the site is currently under review.
+ * Whether the site is currently under review on this platform.
*/
underReview?: boolean;
}
@@ -157,15 +157,15 @@ export namespace adexperiencereport_v1 {
*/
export interface Schema$SiteSummaryResponse {
/**
- * Summary for the desktop review of the site.
+ * The site's Ad Experience Report summary on desktop.
*/
desktopSummary?: Schema$PlatformSummary;
/**
- * Summary for the mobile review of the site.
+ * The site's Ad Experience Report summary on mobile.
*/
mobileSummary?: Schema$PlatformSummary;
/**
- * The name of the site reviewed.
+ * The name of the reviewed site, e.g. `google.com`.
*/
reviewedSite?: string;
}
@@ -174,7 +174,7 @@ export namespace adexperiencereport_v1 {
*/
export interface Schema$ViolatingSitesResponse {
/**
- * A list of summaries of violating sites.
+ * The list of violating sites.
*/
violatingSites?: Schema$SiteSummaryResponse[];
}
@@ -187,12 +187,12 @@ export namespace adexperiencereport_v1 {
/**
* adexperiencereport.sites.get
- * @desc Gets a summary of the ad experience rating of a site.
+ * @desc Gets a site's Ad Experience Report summary.
* @alias adexperiencereport.sites.get
* @memberOf! ()
*
* @param {object} params Parameters for request
- * @param {string} params.name The required site name. It should be the site property whose ad experiences may have been reviewed, and it should be URL-encoded. For example, sites/https%3A%2F%2Fwww.google.com. The server will return an error of BAD_REQUEST if this field is not filled in. Note that if the site property is not yet verified in Search Console, the reportUrl field returned by the API will lead to the verification page, prompting the user to go through that process before they can gain access to the Ad Experience Report.
+ * @param {string} params.name Required. The name of the site whose summary to get, e.g. `sites/http%3A%2F%2Fwww.google.com%2F`. Format: `sites/{site}`
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
@@ -264,7 +264,7 @@ export namespace adexperiencereport_v1 {
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
- * The required site name. It should be the site property whose ad experiences may have been reviewed, and it should be URL-encoded. For example, sites/https%3A%2F%2Fwww.google.com. The server will return an error of BAD_REQUEST if this field is not filled in. Note that if the site property is not yet verified in Search Console, the reportUrl field returned by the API will lead to the verification page, prompting the user to go through that process before they can gain access to the Ad Experience Report.
+ * Required. The name of the site whose summary to get, e.g. `sites/http%3A%2F%2Fwww.google.com%2F`. Format: `sites/{site}`
*/
name?: string;
}
@@ -277,7 +277,7 @@ export namespace adexperiencereport_v1 {
/**
* adexperiencereport.violatingSites.list
- * @desc Lists sites with Ad Experience Report statuses of "Failing" or "Warning".
+ * @desc Lists sites that are failing in the Ad Experience Report on at least one platform.
* @alias adexperiencereport.violatingSites.list
* @memberOf! ()
*
diff --git a/src/apis/admin/directory_v1.ts b/src/apis/admin/directory_v1.ts
index 9e3de9e8745..1b332af023f 100644
--- a/src/apis/admin/directory_v1.ts
+++ b/src/apis/admin/directory_v1.ts
@@ -519,6 +519,10 @@ export namespace admin_directory_v1 {
* User of the device
*/
annotatedUser?: string;
+ /**
+ * (Read-only) The timestamp after which the device will stop receiving Chrome updates or support
+ */
+ autoUpdateExpiration?: string;
/**
* Chromebook boot mode (Read-only)
*/
@@ -554,6 +558,10 @@ export namespace admin_directory_v1 {
volumeId?: string;
}>;
}>;
+ /**
+ * (Read-only) Built-in MAC address for the docking station that the device connected to. Factory sets Media access control address (MAC address) assigned for use by a dock. Currently this is only supported on the Dell Arcada / Sarien devices and the Dell WD19 / WD19TB Docking Station. It is reserved specifically for MAC pass through device policy. The format is twelve (12) hexadecimal digits without any delimiter (uppercase letters). This is only relevant for Dell devices.
+ */
+ dockMacAddress?: string;
/**
* ETag of the resource.
*/
@@ -562,6 +570,10 @@ export namespace admin_directory_v1 {
* Chromebook Mac Address on ethernet network interface (Read-only)
*/
ethernetMacAddress?: string;
+ /**
+ * (Read-only) MAC address used by the Chromebook’s internal ethernet port, and for onboard network (ethernet) interface. The format is twelve (12) hexadecimal digits without any delimiter (uppercase letters). This is only relevant for Dell devices.
+ */
+ ethernetMacAddress0?: string;
/**
* Chromebook firmware version (Read-only)
*/
@@ -582,6 +594,10 @@ export namespace admin_directory_v1 {
* Chromebook Mac Address on wifi network interface (Read-only)
*/
macAddress?: string;
+ /**
+ * (Read-only) The date the device was manufactured in yyyy-mm-dd format.
+ */
+ manufactureDate?: string;
/**
* Mobile Equipment identifier for the 3G mobile card in the Chromebook (Read-only)
*/
@@ -1010,7 +1026,7 @@ export namespace admin_directory_v1 {
*/
etag?: string;
/**
- * Unique identifier of customer member (Read-only) Unique identifier of group (Read-only) Unique identifier of member (Read-only)
+ * The unique ID of the group member. A member id can be used as a member request URI's memberKey. Unique identifier of group (Read-only) Unique identifier of member (Read-only)
*/
id?: string;
/**
@@ -1403,7 +1419,7 @@ export namespace admin_directory_v1 {
*/
privilegeName?: string;
/**
- * The obfuscated ID of the service this privilege is for.
+ * The obfuscated ID of the service this privilege is for. This value is returned with Privileges.list().
*/
serviceId?: string;
/**
@@ -1832,6 +1848,14 @@ export namespace admin_directory_v1 {
* username of User
*/
primaryEmail?: string;
+ /**
+ * Recovery email of the user.
+ */
+ recoveryEmail?: string;
+ /**
+ * Recovery phone of the user. The phone number must be in the E.164 format, starting with the plus sign (+). Example: +16506661212.
+ */
+ recoveryPhone?: string;
relations?: any;
sshPublicKeys?: any;
/**
@@ -2121,7 +2145,7 @@ export namespace admin_directory_v1 {
*/
domain?: string;
/**
- * The full-time equivalent percent within the organization (100000 = 100%).
+ * The full-time equivalent millipercent within the organization (100000 = 100%).
*/
fullTimeEquivalent?: number;
/**
@@ -2895,7 +2919,7 @@ export namespace admin_directory_v1 {
*
* @param {object} params Parameters for request
* @param {string} params.customerId Immutable ID of the G Suite account
- * @param {integer=} params.maxResults Maximum number of results to return. Default is 100
+ * @param {integer=} params.maxResults Maximum number of results to return. Max allowed value is 200.
* @param {string=} params.orderBy Column to use for sorting results
* @param {string=} params.orgUnitPath Full path of the organizational unit or its ID
* @param {string=} params.pageToken Token to specify next page in the list
@@ -3250,7 +3274,7 @@ export namespace admin_directory_v1 {
*/
customerId?: string;
/**
- * Maximum number of results to return. Default is 100
+ * Maximum number of results to return. Max allowed value is 200.
*/
maxResults?: number;
/**
@@ -4562,12 +4586,12 @@ export namespace admin_directory_v1 {
* @param {object=} params Parameters for request
* @param {string=} params.customer Immutable ID of the G Suite account. In case of multi-domain, to fetch all groups for a customer, fill this field instead of domain.
* @param {string=} params.domain Name of the domain. Fill this field to get groups from only this domain. To return all groups in a multi-domain fill customer field instead.
- * @param {integer=} params.maxResults Maximum number of results to return. Default is 200
+ * @param {integer=} params.maxResults Maximum number of results to return. Max allowed value is 200.
* @param {string=} params.orderBy Column to use for sorting results
* @param {string=} params.pageToken Token to specify next page in the list
* @param {string=} params.query Query string search. Should be of the form "". Complete documentation is at https://developers.google.com/admin-sdk/directory/v1/guides/search-groups
* @param {string=} params.sortOrder Whether to return results in ascending or descending order. Only of use when orderBy is also used
- * @param {string=} params.userKey Email or immutable Id of the user if only those groups are to be listed, the given user is a member of. If Id, it should match with id of user object
+ * @param {string=} params.userKey Email or immutable ID of the user if only those groups are to be listed, the given user is a member of. If it's an ID, it should match with the ID of the user object.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
@@ -4824,7 +4848,7 @@ export namespace admin_directory_v1 {
*/
domain?: string;
/**
- * Maximum number of results to return. Default is 200
+ * Maximum number of results to return. Max allowed value is 200.
*/
maxResults?: number;
/**
@@ -4844,7 +4868,7 @@ export namespace admin_directory_v1 {
*/
sortOrder?: string;
/**
- * Email or immutable Id of the user if only those groups are to be listed, the given user is a member of. If Id, it should match with id of user object
+ * Email or immutable ID of the user if only those groups are to be listed, the given user is a member of. If it's an ID, it should match with the ID of the user object.
*/
userKey?: string;
}
@@ -5454,7 +5478,7 @@ export namespace admin_directory_v1 {
* @param {object} params Parameters for request
* @param {string} params.groupKey Email or immutable ID of the group
* @param {boolean=} params.includeDerivedMembership Whether to list indirect memberships. Default: false.
- * @param {integer=} params.maxResults Maximum number of results to return. Default is 200
+ * @param {integer=} params.maxResults Maximum number of results to return. Max allowed value is 200.
* @param {string=} params.pageToken Token to specify next page in the list
* @param {string=} params.roles Comma separated role values to filter list results on.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5743,7 +5767,7 @@ export namespace admin_directory_v1 {
*/
includeDerivedMembership?: boolean;
/**
- * Maximum number of results to return. Default is 200
+ * Maximum number of results to return. Max allowed value is 200.
*/
maxResults?: number;
/**
@@ -6033,7 +6057,7 @@ export namespace admin_directory_v1 {
*
* @param {object} params Parameters for request
* @param {string} params.customerId Immutable ID of the G Suite account
- * @param {integer=} params.maxResults Maximum number of results to return. Default is 100
+ * @param {integer=} params.maxResults Maximum number of results to return. Max allowed value is 100.
* @param {string=} params.orderBy Column to use for sorting results
* @param {string=} params.pageToken Token to specify next page in the list
* @param {string=} params.projection Restrict information returned to a set of selected fields.
@@ -6175,7 +6199,7 @@ export namespace admin_directory_v1 {
*/
customerId?: string;
/**
- * Maximum number of results to return. Default is 100
+ * Maximum number of results to return. Max allowed value is 100.
*/
maxResults?: number;
/**
@@ -11278,12 +11302,12 @@ export namespace admin_directory_v1 {
* @param {string=} params.customFieldMask Comma-separated list of schema names. All fields from these schemas are fetched. This should only be set when projection=custom.
* @param {string=} params.domain Name of the domain. Fill this field to get users from only this domain. To return all users in a multi-domain fill customer field instead.
* @param {string=} params.event Event on which subscription is intended (if subscribing)
- * @param {integer=} params.maxResults Maximum number of results to return. Default is 100. Max allowed is 500
+ * @param {integer=} params.maxResults Maximum number of results to return.
* @param {string=} params.orderBy Column to use for sorting results
* @param {string=} params.pageToken Token to specify next page in the list
* @param {string=} params.projection What subset of fields to fetch for this user.
* @param {string=} params.query Query string search. Should be of the form "". Complete documentation is at https://developers.google.com/admin-sdk/directory/v1/guides/search-users
- * @param {string=} params.showDeleted If set to true retrieves the list of deleted users. Default is false
+ * @param {string=} params.showDeleted If set to true, retrieves the list of deleted users. (Default: false)
* @param {string=} params.sortOrder Whether to return results in ascending or descending order.
* @param {string=} params.viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the user.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -11646,12 +11670,12 @@ export namespace admin_directory_v1 {
* @param {string=} params.customFieldMask Comma-separated list of schema names. All fields from these schemas are fetched. This should only be set when projection=custom.
* @param {string=} params.domain Name of the domain. Fill this field to get users from only this domain. To return all users in a multi-domain fill customer field instead.
* @param {string=} params.event Event on which subscription is intended (if subscribing)
- * @param {integer=} params.maxResults Maximum number of results to return. Default is 100. Max allowed is 500
+ * @param {integer=} params.maxResults Maximum number of results to return.
* @param {string=} params.orderBy Column to use for sorting results
* @param {string=} params.pageToken Token to specify next page in the list
* @param {string=} params.projection What subset of fields to fetch for this user.
* @param {string=} params.query Query string search. Should be of the form "". Complete documentation is at https://developers.google.com/admin-sdk/directory/v1/guides/search-users
- * @param {string=} params.showDeleted If set to true retrieves the list of deleted users. Default is false
+ * @param {string=} params.showDeleted If set to true, retrieves the list of deleted users. (Default: false)
* @param {string=} params.sortOrder Whether to return results in ascending or descending order.
* @param {string=} params.viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the user.
* @param {().Channel} params.resource Request body data
@@ -11787,7 +11811,7 @@ export namespace admin_directory_v1 {
*/
event?: string;
/**
- * Maximum number of results to return. Default is 100. Max allowed is 500
+ * Maximum number of results to return.
*/
maxResults?: number;
/**
@@ -11807,7 +11831,7 @@ export namespace admin_directory_v1 {
*/
query?: string;
/**
- * If set to true retrieves the list of deleted users. Default is false
+ * If set to true, retrieves the list of deleted users. (Default: false)
*/
showDeleted?: string;
/**
@@ -11906,7 +11930,7 @@ export namespace admin_directory_v1 {
*/
event?: string;
/**
- * Maximum number of results to return. Default is 100. Max allowed is 500
+ * Maximum number of results to return.
*/
maxResults?: number;
/**
@@ -11926,7 +11950,7 @@ export namespace admin_directory_v1 {
*/
query?: string;
/**
- * If set to true retrieves the list of deleted users. Default is false
+ * If set to true, retrieves the list of deleted users. (Default: false)
*/
showDeleted?: string;
/**
diff --git a/src/apis/alertcenter/v1beta1.ts b/src/apis/alertcenter/v1beta1.ts
index 6018e4daf28..b68e744696c 100644
--- a/src/apis/alertcenter/v1beta1.ts
+++ b/src/apis/alertcenter/v1beta1.ts
@@ -213,12 +213,20 @@ export namespace alertcenter_v1beta1 {
* Optional. The time the event that caused this alert ceased being active. If provided, the end time must not be earlier than the start time. If not provided, it indicates an ongoing alert.
*/
endTime?: string;
+ /**
+ * Optional. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of an alert from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform alert updates in order to avoid race conditions: An `etag` is returned in the response which contains alerts, and systems are expected to put that etag in the request to update alert to ensure that their change will be applied to the same version of the alert. If no `etag` is provided in the call to update alert, then the existing alert is overwritten blindly.
+ */
+ etag?: string;
+ /**
+ * Output only. The metadata associated with this alert.
+ */
+ metadata?: Schema$AlertMetadata;
/**
* Output only. An optional [Security Investigation Tool](https://support.google.com/a/answer/7575955) query for this alert.
*/
securityInvestigationToolLink?: string;
/**
- * Required. A unique identifier for the system that reported the alert. This is output only after alert is created. Supported sources are any of the following: * Google Operations * Mobile device management * Gmail phishing * Domain wide takeout * Government attack warning * Google identity
+ * Required. A unique identifier for the system that reported the alert. This is output only after alert is created. Supported sources are any of the following: * Google Operations * Mobile device management * Gmail phishing * Domain wide takeout * State sponsored attack * Google identity
*/
source?: string;
/**
@@ -263,6 +271,39 @@ export namespace alertcenter_v1beta1 {
*/
type?: string;
}
+ /**
+ * An alert metadata.
+ */
+ export interface Schema$AlertMetadata {
+ /**
+ * Output only. The alert identifier.
+ */
+ alertId?: string;
+ /**
+ * The email address of the user assigned to the alert.
+ */
+ assignee?: string;
+ /**
+ * Output only. The unique identifier of the Google account of the customer.
+ */
+ customerId?: string;
+ /**
+ * Optional. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of an alert metadata from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform metatdata updates in order to avoid race conditions: An `etag` is returned in the response which contains alert metadata, and systems are expected to put that etag in the request to update alert metadata to ensure that their change will be applied to the same version of the alert metadata. If no `etag` is provided in the call to update alert metadata, then the existing alert metadata is overwritten blindly.
+ */
+ etag?: string;
+ /**
+ * The severity value of the alert. Alert Center will set this field at alert creation time, default's to an empty string when it could not be determined. The supported values for update actions on this field are the following: * HIGH * MEDIUM * LOW
+ */
+ severity?: string;
+ /**
+ * The current status of the alert. The supported values are the following: * NOT_STARTED * IN_PROGRESS * CLOSED
+ */
+ status?: string;
+ /**
+ * Output only. The time this metadata was last updated.
+ */
+ updateTime?: string;
+ }
/**
* Attachment with application-specific information about an alert.
*/
@@ -293,6 +334,58 @@ export namespace alertcenter_v1beta1 {
*/
sourceIp?: string;
}
+ /**
+ * A request to perform batch delete on alerts.
+ */
+ export interface Schema$BatchDeleteAlertsRequest {
+ /**
+ * Required. list of alert ids.
+ */
+ alertId?: string[];
+ /**
+ * Optional. The unique identifier of the G Suite organization account of the customer the alerts are associated with.
+ */
+ customerId?: string;
+ }
+ /**
+ * Response to batch delete operation on alerts.
+ */
+ export interface Schema$BatchDeleteAlertsResponse {
+ /**
+ * The status details for each failed alert_id.
+ */
+ failedAlertStatus?: {[key: string]: Schema$Status};
+ /**
+ * The successful list of alert ids.
+ */
+ successAlertIds?: string[];
+ }
+ /**
+ * A request to perform batch undelete on alerts.
+ */
+ export interface Schema$BatchUndeleteAlertsRequest {
+ /**
+ * Required. list of alert ids.
+ */
+ alertId?: string[];
+ /**
+ * Optional. The unique identifier of the G Suite organization account of the customer the alerts are associated with.
+ */
+ customerId?: string;
+ }
+ /**
+ * Response to batch undelete operation on alerts.
+ */
+ export interface Schema$BatchUndeleteAlertsResponse {
+ /**
+ * The status details for each failed alert_id.
+ */
+ failedAlertStatus?: {[key: string]: Schema$Status};
+ /**
+ * The successful list of alert ids.
+ */
+ successAlertIds?: string[];
+ }
/**
* A reference to a Cloud Pubsub topic. To register for notifications, the owner of the topic must grant `alerts-api-push-notifications@system.gserviceaccount.com` the `projects.topics.publish` permission.
*/
@@ -575,6 +668,23 @@ export namespace alertcenter_v1beta1 {
*/
email?: string;
}
+ /**
+ * The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
+ */
+ export interface Schema$Status {
+ /**
+ * The status code, which should be an enum value of google.rpc.Code.
+ */
+ code?: number;
+ /**
+ * A list of messages that carry the error details. There is a common set of message types for APIs to use.
+ */
+ details?: Array<{[key: string]: any}>;
+ /**
+ * A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
+ */
+ message?: string;
+ }
/**
* A mobile suspicious activity alert. Derived from audit logs.
*/
@@ -647,6 +757,168 @@ export namespace alertcenter_v1beta1 {
this.feedback = new Resource$Alerts$Feedback(this.context);
}
+ /**
+ * alertcenter.alerts.batchDelete
+ * @desc Performs batch delete operation on alerts.
+ * @alias alertcenter.alerts.batchDelete
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {().BatchDeleteAlertsRequest} params.resource Request body data
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ batchDelete(
+ params?: Params$Resource$Alerts$Batchdelete,
+ options?: MethodOptions
+ ): GaxiosPromise;
+ batchDelete(
+ params: Params$Resource$Alerts$Batchdelete,
+ options:
+ | MethodOptions
+ | BodyResponseCallback,
+ callback: BodyResponseCallback
+ ): void;
+ batchDelete(
+ params: Params$Resource$Alerts$Batchdelete,
+ callback: BodyResponseCallback
+ ): void;
+ batchDelete(
+ callback: BodyResponseCallback
+ ): void;
+ batchDelete(
+ paramsOrCallback?:
+ | Params$Resource$Alerts$Batchdelete
+ | BodyResponseCallback,
+ optionsOrCallback?:
+ | MethodOptions
+ | BodyResponseCallback,
+ callback?: BodyResponseCallback
+ ): void | GaxiosPromise {
+ let params = (paramsOrCallback ||
+ {}) as Params$Resource$Alerts$Batchdelete;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Alerts$Batchdelete;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/alerts:batchDelete').replace(
+ /([^:]\/)\/+/g,
+ '$1'
+ ),
+ method: 'POST',
+ },
+ options
+ ),
+ params,
+ requiredParams: [],
+ pathParams: [],
+ context: this.context,
+ };
+ if (callback) {
+ createAPIRequest(
+ parameters,
+ callback
+ );
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+ /**
+ * alertcenter.alerts.batchUndelete
+ * @desc Performs batch undelete operation on alerts.
+ * @alias alertcenter.alerts.batchUndelete
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {().BatchUndeleteAlertsRequest} params.resource Request body data
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ batchUndelete(
+ params?: Params$Resource$Alerts$Batchundelete,
+ options?: MethodOptions
+ ): GaxiosPromise;
+ batchUndelete(
+ params: Params$Resource$Alerts$Batchundelete,
+ options:
+ | MethodOptions
+ | BodyResponseCallback,
+ callback: BodyResponseCallback
+ ): void;
+ batchUndelete(
+ params: Params$Resource$Alerts$Batchundelete,
+ callback: BodyResponseCallback
+ ): void;
+ batchUndelete(
+ callback: BodyResponseCallback
+ ): void;
+ batchUndelete(
+ paramsOrCallback?:
+ | Params$Resource$Alerts$Batchundelete
+ | BodyResponseCallback,
+ optionsOrCallback?:
+ | MethodOptions
+ | BodyResponseCallback,
+ callback?: BodyResponseCallback
+ ): void | GaxiosPromise {
+ let params = (paramsOrCallback ||
+ {}) as Params$Resource$Alerts$Batchundelete;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Alerts$Batchundelete;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/alerts:batchUndelete').replace(
+ /([^:]\/)\/+/g,
+ '$1'
+ ),
+ method: 'POST',
+ },
+ options
+ ),
+ params,
+ requiredParams: [],
+ pathParams: [],
+ context: this.context,
+ };
+ if (callback) {
+ createAPIRequest(
+ parameters,
+ callback
+ );
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
/**
* alertcenter.alerts.delete
* @desc Marks the specified alert for deletion. An alert that has been marked for deletion is removed from Alert Center after 30 days. Marking an alert for deletion has no effect on an alert which has already been marked for deletion. Attempting to mark a nonexistent alert for deletion results in a `NOT_FOUND` error.
@@ -791,6 +1063,81 @@ export namespace alertcenter_v1beta1 {
}
}
+ /**
+ * alertcenter.alerts.getMetadata
+ * @desc Returns the metadata of an alert. Attempting to get metadata for a non-existent alert returns `NOT_FOUND` error.
+ * @alias alertcenter.alerts.getMetadata
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.alertId Required. The identifier of the alert this metadata belongs to.
+ * @param {string=} params.customerId Optional. The unique identifier of the G Suite organization account of the customer the alert metadata is associated with. Inferred from the caller identity if not provided.
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ getMetadata(
+ params?: Params$Resource$Alerts$Getmetadata,
+ options?: MethodOptions
+ ): GaxiosPromise;
+ getMetadata(
+ params: Params$Resource$Alerts$Getmetadata,
+ options: MethodOptions | BodyResponseCallback,
+ callback: BodyResponseCallback
+ ): void;
+ getMetadata(
+ params: Params$Resource$Alerts$Getmetadata,
+ callback: BodyResponseCallback
+ ): void;
+ getMetadata(callback: BodyResponseCallback): void;
+ getMetadata(
+ paramsOrCallback?:
+ | Params$Resource$Alerts$Getmetadata
+ | BodyResponseCallback,
+ optionsOrCallback?:
+ | MethodOptions
+ | BodyResponseCallback,
+ callback?: BodyResponseCallback
+ ): void | GaxiosPromise {
+ let params = (paramsOrCallback ||
+ {}) as Params$Resource$Alerts$Getmetadata;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Alerts$Getmetadata;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/alerts/{alertId}/metadata').replace(
+ /([^:]\/)\/+/g,
+ '$1'
+ ),
+ method: 'GET',
+ },
+ options
+ ),
+ params,
+ requiredParams: ['alertId'],
+ pathParams: ['alertId'],
+ context: this.context,
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
/**
* alertcenter.alerts.list
* @desc Lists the alerts.
@@ -938,6 +1285,30 @@ export namespace alertcenter_v1beta1 {
}
}
+ export interface Params$Resource$Alerts$Batchdelete
+ extends StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
+
+ /**
+ * Request body metadata
+ */
+ requestBody?: Schema$BatchDeleteAlertsRequest;
+ }
+ export interface Params$Resource$Alerts$Batchundelete
+ extends StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
+
+ /**
+ * Request body metadata
+ */
+ requestBody?: Schema$BatchUndeleteAlertsRequest;
+ }
export interface Params$Resource$Alerts$Delete extends StandardParameters {
/**
* Auth client or API Key for the request
@@ -968,6 +1339,22 @@ export namespace alertcenter_v1beta1 {
*/
customerId?: string;
}
+ export interface Params$Resource$Alerts$Getmetadata
+ extends StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
+
+ /**
+ * Required. The identifier of the alert this metadata belongs to.
+ */
+ alertId?: string;
+ /**
+ * Optional. The unique identifier of the G Suite organization account of the customer the alert metadata is associated with. Inferred from the caller identity if not provided.
+ */
+ customerId?: string;
+ }
export interface Params$Resource$Alerts$List extends StandardParameters {
/**
* Auth client or API Key for the request
@@ -1020,7 +1407,7 @@ export namespace alertcenter_v1beta1 {
/**
* alertcenter.alerts.feedback.create
- * @desc Creates new feedback for an alert. Attempting to create a feedback for a non-existent alert returns `NOT_FOUND` error.
+ * @desc Creates new feedback for an alert. Attempting to create a feedback for a non-existent alert returns `NOT_FOUND` error. Attempting to create a feedback for an alert that is marked for deletion returns `FAILED_PRECONDITION' error.
* @alias alertcenter.alerts.feedback.create
* @memberOf! ()
*
diff --git a/src/apis/analytics/v3.ts b/src/apis/analytics/v3.ts
index a8d7cc597d1..d94e62075fc 100644
--- a/src/apis/analytics/v3.ts
+++ b/src/apis/analytics/v3.ts
@@ -2285,6 +2285,10 @@ export namespace analytics_v3 {
* Value is "analytics#userDeletionRequest".
*/
kind?: string;
+ /**
+ * Property ID
+ */
+ propertyId?: string;
/**
* Web property ID of the form UA-XXXXX-YY.
*/
diff --git a/src/apis/analyticsreporting/v4.ts b/src/apis/analyticsreporting/v4.ts
index d7e38d37e40..a020f2458ee 100644
--- a/src/apis/analyticsreporting/v4.ts
+++ b/src/apis/analyticsreporting/v4.ts
@@ -124,7 +124,7 @@ export namespace analyticsreporting_v4 {
*/
export interface Schema$Activity {
/**
- * Timestamp of the activity.
+ * Timestamp of the activity. If activities for a visit cross midnight and occur in two separate dates, then two sessions (one per date) share the session identifier.
*/
activityTime?: string;
/**
@@ -210,7 +210,7 @@ export namespace analyticsreporting_v4 {
*/
cohorts?: Schema$Cohort[];
/**
- * Enable Life Time Value (LTV). LTV measures lifetime value for users acquired through different channels. Please see: [Cohort Analysis](https://support.google.com/analytics/answer/6074676) and [Lifetime Value](https://support.google.com/analytics/answer/6182550) If the value of lifetimeValue is false: - The metric values are similar to the values in the web interface cohort report. - The cohort definition date ranges must be aligned to the calendar week and month. i.e. while requesting `ga:cohortNthWeek` the `startDate` in the cohort definition should be a Sunday and the `endDate` should be the following Saturday, and for `ga:cohortNthMonth`, the `startDate` should be the 1st of the month and `endDate` should be the last day of the month. When the lifetimeValue is true: - The metric values will correspond to the values in the web interface LifeTime value report. - The Lifetime Value report shows you how user value (Revenue) and engagement (Appviews, Goal Completions, Sessions, and Session Duration) grow during the 90 days after a user is acquired. - The metrics are calculated as a cumulative average per user per the time increment. - The cohort definition date ranges need not be aligned to the calendar week and month boundaries. - The `viewId` must be an [app view ID](https://support.google.com/analytics/answer/2649553#WebVersusAppViews)
+ * Enable Life Time Value (LTV). LTV measures lifetime value for users acquired through different channels. Please see: [Cohort Analysis](https://support.google.com/analytics/answer/6074676) and [Lifetime Value](https://support.google.com/analytics/answer/6182550) If the value of lifetimeValue is false: - The metric values are similar to the values in the web interface cohort report. - The cohort definition date ranges must be aligned to the calendar week and month. i.e. while requesting `ga:cohortNthWeek` the `startDate` in the cohort definition should be a Sunday and the `endDate` should be the following Saturday, and for `ga:cohortNthMonth`, the `startDate` should be the 1st of the month and `endDate` should be the last day of the month. When the lifetimeValue is true: - The metric values will correspond to the values in the web interface LifeTime value report. - The Lifetime Value report shows you how user value (Revenue) and engagement (Appviews, Goal Completions, Sessions, and Session Duration) grow during the 90 days after a user is acquired. - The metrics are calculated as a cumulative average per user per the time increment. - The cohort definition date ranges need not be aligned to the calendar week and month boundaries. - The `viewId` must be an [app view ID](https://support.google.com/analytics/answer/2649553#WebVersusAppViews)
*/
lifetimeValue?: boolean;
}
@@ -732,7 +732,7 @@ export namespace analyticsreporting_v4 {
*/
dimensionFilterClauses?: Schema$DimensionFilterClause[];
/**
- * The dimensions requested. Requests can have a total of 7 dimensions.
+ * The dimensions requested. Requests can have a total of 9 dimensions.
*/
dimensions?: Schema$Dimension[];
/**
diff --git a/src/apis/androidenterprise/v1.ts b/src/apis/androidenterprise/v1.ts
index e3b1778179d..627d479f29b 100644
--- a/src/apis/androidenterprise/v1.ts
+++ b/src/apis/androidenterprise/v1.ts
@@ -172,7 +172,7 @@ export namespace androidenterprise_v1 {
*/
managedConfigurations?: Schema$AdministratorWebTokenSpecManagedConfigurations;
/**
- * The URI of the parent frame hosting the iframe. To prevent XSS, the iframe may not be hosted at other URIs. This URI must be https.
+ * The URI of the parent frame hosting the iframe. To prevent XSS, the iframe may not be hosted at other URIs. This URI must be https. Use whitespaces to separate multiple parent URIs.
*/
parent?: string;
/**
diff --git a/src/apis/androidmanagement/v1.ts b/src/apis/androidmanagement/v1.ts
index d7024615083..1eaac62fc85 100644
--- a/src/apis/androidmanagement/v1.ts
+++ b/src/apis/androidmanagement/v1.ts
@@ -213,7 +213,7 @@ export namespace androidmanagement_v1 {
*/
installType?: string;
/**
- * Whether the app is allowed to lock itself in full-screen mode.
+ * Whether the app is allowed to lock itself in full-screen mode. DEPRECATED. Use InstallType KIOSK or kioskCustomLauncherEnabled to to configure a dedicated device.
*/
lockTaskAllowed?: boolean;
/**
@@ -483,6 +483,10 @@ export namespace androidmanagement_v1 {
* If the same physical device has been enrolled multiple times, this field contains its previous device names. The serial number is used as the unique identifier to determine if the same physical device has enrolled previously. The names are in chronological order.
*/
previousDeviceNames?: string[];
+ /**
+ * Device's security posture value that reflects how secure the device is.
+ */
+ securityPosture?: Schema$SecurityPosture;
/**
* Detailed information about the device software. This information is only available if softwareInfoEnabled is true in the device's policy.
*/
@@ -1110,7 +1114,7 @@ export namespace androidmanagement_v1 {
policy?: string;
}
/**
- * A default activity for handling intents that match a particular intent filter.
+ * A default activity for handling intents that match a particular intent filter. Note: To set up a kiosk, use InstallType to KIOSK rather than use persistent preferred activities.
*/
export interface Schema$PersistentPreferredActivity {
/**
@@ -1255,7 +1259,7 @@ export namespace androidmanagement_v1 {
*/
keyguardDisabledFeatures?: string[];
/**
- * Whether the kiosk custom launcher is enabled. This replaces the home screen with a launcher that locks down the device to the apps installed via the applications setting. The apps appear on a single page in alphabetical order. It is recommended to also use status_bar_disabled to block access to device settings.
+ * Whether the kiosk custom launcher is enabled. This replaces the home screen with a launcher that locks down the device to the apps installed via the applications setting. Apps appear on a single page in alphabetical order. The status bar is disabled when this is set.
*/
kioskCustomLauncherEnabled?: boolean;
/**
@@ -1387,7 +1391,7 @@ export namespace androidmanagement_v1 {
*/
smsDisabled?: boolean;
/**
- * Whether the status bar is disabled. This disables notifications, quick settings, and other screen overlays that allow escape from full-screen mode.
+ * Whether the status bar is disabled. This disables notifications, quick settings, and other screen overlays that allow escape from full-screen mode. DEPRECATED. To disable the status bar on a kiosk device, use InstallType KIOSK or kioskCustomLauncherEnabled.
*/
statusBarDisabled?: boolean;
/**
@@ -1456,6 +1460,19 @@ export namespace androidmanagement_v1 {
*/
wipeAction?: Schema$WipeAction;
}
+ /**
+ * Detail that provides further information if the device is not in the most secure state.
+ */
+ export interface Schema$PostureDetail {
+ /**
+ * Corresponding pieces of advice to mitigate the security risk.
+ */
+ advice?: Schema$UserFacingMessage[];
+ /**
+ * The risk that makes the device not in the most secure state.
+ */
+ securityRisk?: string;
+ }
/**
* A power management event.
*/
@@ -1494,6 +1511,19 @@ export namespace androidmanagement_v1 {
*/
port?: number;
}
+ /**
+ * . Device's security posture value that reflects how secure the device is.
+ */
+ export interface Schema$SecurityPosture {
+ /**
+ * Device's security posture value.
+ */
+ devicePosture?: string;
+ /**
+ * Details that provide further information if the device is not in the most secure state.
+ */
+ postureDetails?: Schema$PostureDetail[];
+ }
/**
* An action executed during setup.
*/
@@ -1643,6 +1673,10 @@ export namespace androidmanagement_v1 {
* Whether software info reporting is enabled.
*/
softwareInfoEnabled?: boolean;
+ /**
+ * Whether system properties reporting is enabled.
+ */
+ systemPropertiesEnabled?: boolean;
}
/**
* Configuration for managing system updates
diff --git a/src/apis/androidpublisher/v2.ts b/src/apis/androidpublisher/v2.ts
index 55cb028ea96..c5fd5c7ff2a 100644
--- a/src/apis/androidpublisher/v2.ts
+++ b/src/apis/androidpublisher/v2.ts
@@ -398,6 +398,10 @@ export namespace androidpublisher_v2 {
* A sha1 hash of the image that was uploaded.
*/
sha1?: string;
+ /**
+ * A sha256 hash of the image that was uploaded.
+ */
+ sha256?: string;
/**
* A URL that will serve a preview of the image.
*/
@@ -860,7 +864,7 @@ export namespace androidpublisher_v2 {
*/
purchaseTimeMillis?: string;
/**
- * The token that was generated when a purchase was made. This uniquely identifies a purchase.
+ * The token which uniquely identifies a one-time purchase or subscription. To uniquely identify subscription renewals use order_id (available starting from version 3 of the API).
*/
purchaseToken?: string;
/**
@@ -6468,11 +6472,11 @@ export namespace androidpublisher_v2 {
* @memberOf! ()
*
* @param {object} params Parameters for request
- * @param {string=} params.endTime The time, in milliseconds since the Epoch, of the newest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.
+ * @param {string=} params.endTime The time, in milliseconds since the Epoch, of the newest voided purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.
* @param {integer=} params.maxResults
* @param {string} params.packageName The package name of the application for which voided purchases need to be returned (for example, 'com.some.thing').
* @param {integer=} params.startIndex
- * @param {string=} params.startTime The time, in milliseconds since the Epoch, of the oldest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.
+ * @param {string=} params.startTime The time, in milliseconds since the Epoch, of the oldest voided purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.
* @param {string=} params.token
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
@@ -6556,7 +6560,7 @@ export namespace androidpublisher_v2 {
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
- * The time, in milliseconds since the Epoch, of the newest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.
+ * The time, in milliseconds since the Epoch, of the newest voided purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.
*/
endTime?: string;
/**
@@ -6572,7 +6576,7 @@ export namespace androidpublisher_v2 {
*/
startIndex?: number;
/**
- * The time, in milliseconds since the Epoch, of the oldest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.
+ * The time, in milliseconds since the Epoch, of the oldest voided purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.
*/
startTime?: string;
/**
diff --git a/src/apis/androidpublisher/v3.ts b/src/apis/androidpublisher/v3.ts
index 356a74241c7..b730322bd9a 100644
--- a/src/apis/androidpublisher/v3.ts
+++ b/src/apis/androidpublisher/v3.ts
@@ -389,6 +389,10 @@ export namespace androidpublisher_v3 {
* A sha1 hash of the image that was uploaded.
*/
sha1?: string;
+ /**
+ * A sha256 hash of the image that was uploaded.
+ */
+ sha256?: string;
/**
* A URL that will serve a preview of the image.
*/
@@ -944,14 +948,26 @@ export namespace androidpublisher_v3 {
* This kind represents a voided purchase object in the androidpublisher service.
*/
kind?: string;
+ /**
+ * The order id which uniquely identifies a one-time purchase, subscription purchase, or subscription renewal.
+ */
+ orderId?: string;
/**
* The time at which the purchase was made, in milliseconds since the epoch (Jan 1, 1970).
*/
purchaseTimeMillis?: string;
/**
- * The token that was generated when a purchase was made. This uniquely identifies a purchase.
+ * The token which uniquely identifies a one-time purchase or subscription. To uniquely identify subscription renewals use order_id (available starting from version 3 of the API).
*/
purchaseToken?: string;
+ /**
+ * The reason why the purchase was voided, possible values are: - Other - Remorse - Not_received - Defective - Accidental_purchase - Fraud - Friendly_fraud - Chargeback
+ */
+ voidedReason?: number;
+ /**
+ * The initiator of voided purchase, possible values are: - User - Developer - Google
+ */
+ voidedSource?: number;
/**
* The time at which the purchase was canceled/refunded/charged-back, in milliseconds since the epoch (Jan 1, 1970).
*/
@@ -6379,12 +6395,13 @@ export namespace androidpublisher_v3 {
* @memberOf! ()
*
* @param {object} params Parameters for request
- * @param {string=} params.endTime The time, in milliseconds since the Epoch, of the newest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.
+ * @param {string=} params.endTime The time, in milliseconds since the Epoch, of the newest voided purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.
* @param {integer=} params.maxResults
* @param {string} params.packageName The package name of the application for which voided purchases need to be returned (for example, 'com.some.thing').
* @param {integer=} params.startIndex
- * @param {string=} params.startTime The time, in milliseconds since the Epoch, of the oldest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.
+ * @param {string=} params.startTime The time, in milliseconds since the Epoch, of the oldest voided purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.
* @param {string=} params.token
+ * @param {integer=} params.type The type of voided purchases that you want to see in the response. Possible values are: - 0: Only voided in-app product purchases will be returned in the response. This is the default value. - 1: Both voided in-app purchases and voided subscription purchases will be returned in the response. Note: Before requesting to receive voided subscription purchases, you must switch to use orderId in the response which uniquely identifies one-time purchases and subscriptions. Otherwise, you will receive multiple subscription orders with the same PurchaseToken, because subscription renewal orders share the same PurchaseToken.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
@@ -6467,7 +6484,7 @@ export namespace androidpublisher_v3 {
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
- * The time, in milliseconds since the Epoch, of the newest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.
+ * The time, in milliseconds since the Epoch, of the newest voided purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.
*/
endTime?: string;
/**
@@ -6483,13 +6500,17 @@ export namespace androidpublisher_v3 {
*/
startIndex?: number;
/**
- * The time, in milliseconds since the Epoch, of the oldest voided in-app product purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.
+ * The time, in milliseconds since the Epoch, of the oldest voided purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.
*/
startTime?: string;
/**
*
*/
token?: string;
+ /**
+ * The type of voided purchases that you want to see in the response. Possible values are: - 0: Only voided in-app product purchases will be returned in the response. This is the default value. - 1: Both voided in-app purchases and voided subscription purchases will be returned in the response. Note: Before requesting to receive voided subscription purchases, you must switch to use orderId in the response which uniquely identifies one-time purchases and subscriptions. Otherwise, you will receive multiple subscription orders with the same PurchaseToken, because subscription renewal orders share the same PurchaseToken.
+ */
+ type?: number;
}
export class Resource$Reviews {
diff --git a/src/apis/appstate/v1.ts b/src/apis/appstate/v1.ts
deleted file mode 100644
index 453499a00d8..00000000000
--- a/src/apis/appstate/v1.ts
+++ /dev/null
@@ -1,614 +0,0 @@
-/**
- * Copyright 2019 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import {
- OAuth2Client,
- JWT,
- Compute,
- UserRefreshClient,
-} from 'google-auth-library';
-import {
- GoogleConfigurable,
- createAPIRequest,
- MethodOptions,
- GlobalOptions,
- BodyResponseCallback,
- APIRequestContext,
-} from 'googleapis-common';
-import {GaxiosPromise} from 'gaxios';
-
-// tslint:disable: no-any
-// tslint:disable: class-name
-// tslint:disable: variable-name
-// tslint:disable: jsdoc-format
-// tslint:disable: no-namespace
-
-export namespace appstate_v1 {
- export interface Options extends GlobalOptions {
- version: 'v1';
- }
-
- interface StandardParameters {
- /**
- * Data format for the response.
- */
- alt?: string;
- /**
- * Selector specifying which fields to include in a partial response.
- */
- fields?: string;
- /**
- * API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- */
- key?: string;
- /**
- * OAuth 2.0 token for the current user.
- */
- oauth_token?: string;
- /**
- * Returns response with indentations and line breaks.
- */
- prettyPrint?: boolean;
- /**
- * An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
- */
- quotaUser?: string;
- /**
- * Deprecated. Please use quotaUser instead.
- */
- userIp?: string;
- }
-
- /**
- * Google App State API
- *
- * The Google App State API.
- *
- * @example
- * const {google} = require('googleapis');
- * const appstate = google.appstate('v1');
- *
- * @namespace appstate
- * @type {Function}
- * @version v1
- * @variation v1
- * @param {object=} options Options for Appstate
- */
- export class Appstate {
- context: APIRequestContext;
- states: Resource$States;
-
- constructor(options: GlobalOptions, google?: GoogleConfigurable) {
- this.context = {
- _options: options || {},
- google,
- };
-
- this.states = new Resource$States(this.context);
- }
- }
-
- /**
- * This is a JSON template for an app state resource.
- */
- export interface Schema$GetResponse {
- /**
- * The current app state version.
- */
- currentStateVersion?: string;
- /**
- * The requested data.
- */
- data?: string;
- /**
- * Uniquely identifies the type of this resource. Value is always the fixed string appstate#getResponse.
- */
- kind?: string;
- /**
- * The key for the data.
- */
- stateKey?: number;
- }
- /**
- * This is a JSON template to convert a list-response for app state.
- */
- export interface Schema$ListResponse {
- /**
- * The app state data.
- */
- items?: Schema$GetResponse[];
- /**
- * Uniquely identifies the type of this resource. Value is always the fixed string appstate#listResponse.
- */
- kind?: string;
- /**
- * The maximum number of keys allowed for this user.
- */
- maximumKeyCount?: number;
- }
- /**
- * This is a JSON template for a requests which update app state
- */
- export interface Schema$UpdateRequest {
- /**
- * The new app state data that your application is trying to update with.
- */
- data?: string;
- /**
- * Uniquely identifies the type of this resource. Value is always the fixed string appstate#updateRequest.
- */
- kind?: string;
- }
- /**
- * This is a JSON template for an app state write result.
- */
- export interface Schema$WriteResult {
- /**
- * The version of the data for this key on the server.
- */
- currentStateVersion?: string;
- /**
- * Uniquely identifies the type of this resource. Value is always the fixed string appstate#writeResult.
- */
- kind?: string;
- /**
- * The written key.
- */
- stateKey?: number;
- }
-
- export class Resource$States {
- context: APIRequestContext;
- constructor(context: APIRequestContext) {
- this.context = context;
- }
-
- /**
- * appstate.states.clear
- * @desc Clears (sets to empty) the data for the passed key if and only if the passed version matches the currently stored version. This method results in a conflict error on version mismatch.
- * @alias appstate.states.clear
- * @memberOf! ()
- *
- * @param {object} params Parameters for request
- * @param {string=} params.currentDataVersion The version of the data to be cleared. Version strings are returned by the server.
- * @param {integer} params.stateKey The key for the data to be retrieved.
- * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
- * @param {callback} callback The callback that handles the response.
- * @return {object} Request object
- */
- clear(
- params?: Params$Resource$States$Clear,
- options?: MethodOptions
- ): GaxiosPromise;
- clear(
- params: Params$Resource$States$Clear,
- options: MethodOptions | BodyResponseCallback,
- callback: BodyResponseCallback
- ): void;
- clear(
- params: Params$Resource$States$Clear,
- callback: BodyResponseCallback
- ): void;
- clear(callback: BodyResponseCallback): void;
- clear(
- paramsOrCallback?:
- | Params$Resource$States$Clear
- | BodyResponseCallback,
- optionsOrCallback?:
- | MethodOptions
- | BodyResponseCallback,
- callback?: BodyResponseCallback
- ): void | GaxiosPromise {
- let params = (paramsOrCallback || {}) as Params$Resource$States$Clear;
- let options = (optionsOrCallback || {}) as MethodOptions;
-
- if (typeof paramsOrCallback === 'function') {
- callback = paramsOrCallback;
- params = {} as Params$Resource$States$Clear;
- options = {};
- }
-
- if (typeof optionsOrCallback === 'function') {
- callback = optionsOrCallback;
- options = {};
- }
-
- const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
- const parameters = {
- options: Object.assign(
- {
- url: (rootUrl + '/appstate/v1/states/{stateKey}/clear').replace(
- /([^:]\/)\/+/g,
- '$1'
- ),
- method: 'POST',
- },
- options
- ),
- params,
- requiredParams: ['stateKey'],
- pathParams: ['stateKey'],
- context: this.context,
- };
- if (callback) {
- createAPIRequest(parameters, callback);
- } else {
- return createAPIRequest(parameters);
- }
- }
-
- /**
- * appstate.states.delete
- * @desc Deletes a key and the data associated with it. The key is removed and no longer counts against the key quota. Note that since this method is not safe in the face of concurrent modifications, it should only be used for development and testing purposes. Invoking this method in shipping code can result in data loss and data corruption.
- * @alias appstate.states.delete
- * @memberOf! ()
- *
- * @param {object} params Parameters for request
- * @param {integer} params.stateKey The key for the data to be retrieved.
- * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
- * @param {callback} callback The callback that handles the response.
- * @return {object} Request object
- */
- delete(
- params?: Params$Resource$States$Delete,
- options?: MethodOptions
- ): GaxiosPromise;
- delete(
- params: Params$Resource$States$Delete,
- options: MethodOptions | BodyResponseCallback,
- callback: BodyResponseCallback
- ): void;
- delete(
- params: Params$Resource$States$Delete,
- callback: BodyResponseCallback
- ): void;
- delete(callback: BodyResponseCallback): void;
- delete(
- paramsOrCallback?:
- | Params$Resource$States$Delete
- | BodyResponseCallback,
- optionsOrCallback?: MethodOptions | BodyResponseCallback,
- callback?: BodyResponseCallback
- ): void | GaxiosPromise {
- let params = (paramsOrCallback || {}) as Params$Resource$States$Delete;
- let options = (optionsOrCallback || {}) as MethodOptions;
-
- if (typeof paramsOrCallback === 'function') {
- callback = paramsOrCallback;
- params = {} as Params$Resource$States$Delete;
- options = {};
- }
-
- if (typeof optionsOrCallback === 'function') {
- callback = optionsOrCallback;
- options = {};
- }
-
- const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
- const parameters = {
- options: Object.assign(
- {
- url: (rootUrl + '/appstate/v1/states/{stateKey}').replace(
- /([^:]\/)\/+/g,
- '$1'
- ),
- method: 'DELETE',
- },
- options
- ),
- params,
- requiredParams: ['stateKey'],
- pathParams: ['stateKey'],
- context: this.context,
- };
- if (callback) {
- createAPIRequest(parameters, callback);
- } else {
- return createAPIRequest(parameters);
- }
- }
-
- /**
- * appstate.states.get
- * @desc Retrieves the data corresponding to the passed key. If the key does not exist on the server, an HTTP 404 will be returned.
- * @alias appstate.states.get
- * @memberOf! ()
- *
- * @param {object} params Parameters for request
- * @param {integer} params.stateKey The key for the data to be retrieved.
- * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
- * @param {callback} callback The callback that handles the response.
- * @return {object} Request object
- */
- get(
- params?: Params$Resource$States$Get,
- options?: MethodOptions
- ): GaxiosPromise;
- get(
- params: Params$Resource$States$Get,
- options: MethodOptions | BodyResponseCallback,
- callback: BodyResponseCallback
- ): void;
- get(
- params: Params$Resource$States$Get,
- callback: BodyResponseCallback
- ): void;
- get(callback: BodyResponseCallback): void;
- get(
- paramsOrCallback?:
- | Params$Resource$States$Get
- | BodyResponseCallback,
- optionsOrCallback?:
- | MethodOptions
- | BodyResponseCallback,
- callback?: BodyResponseCallback
- ): void | GaxiosPromise {
- let params = (paramsOrCallback || {}) as Params$Resource$States$Get;
- let options = (optionsOrCallback || {}) as MethodOptions;
-
- if (typeof paramsOrCallback === 'function') {
- callback = paramsOrCallback;
- params = {} as Params$Resource$States$Get;
- options = {};
- }
-
- if (typeof optionsOrCallback === 'function') {
- callback = optionsOrCallback;
- options = {};
- }
-
- const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
- const parameters = {
- options: Object.assign(
- {
- url: (rootUrl + '/appstate/v1/states/{stateKey}').replace(
- /([^:]\/)\/+/g,
- '$1'
- ),
- method: 'GET',
- },
- options
- ),
- params,
- requiredParams: ['stateKey'],
- pathParams: ['stateKey'],
- context: this.context,
- };
- if (callback) {
- createAPIRequest(parameters, callback);
- } else {
- return createAPIRequest(parameters);
- }
- }
-
- /**
- * appstate.states.list
- * @desc Lists all the states keys, and optionally the state data.
- * @alias appstate.states.list
- * @memberOf! ()
- *
- * @param {object=} params Parameters for request
- * @param {boolean=} params.includeData Whether to include the full data in addition to the version number
- * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
- * @param {callback} callback The callback that handles the response.
- * @return {object} Request object
- */
- list(
- params?: Params$Resource$States$List,
- options?: MethodOptions
- ): GaxiosPromise;
- list(
- params: Params$Resource$States$List,
- options: MethodOptions | BodyResponseCallback,
- callback: BodyResponseCallback
- ): void;
- list(
- params: Params$Resource$States$List,
- callback: BodyResponseCallback
- ): void;
- list(callback: BodyResponseCallback): void;
- list(
- paramsOrCallback?:
- | Params$Resource$States$List
- | BodyResponseCallback,
- optionsOrCallback?:
- | MethodOptions
- | BodyResponseCallback,
- callback?: BodyResponseCallback
- ): void | GaxiosPromise {
- let params = (paramsOrCallback || {}) as Params$Resource$States$List;
- let options = (optionsOrCallback || {}) as MethodOptions;
-
- if (typeof paramsOrCallback === 'function') {
- callback = paramsOrCallback;
- params = {} as Params$Resource$States$List;
- options = {};
- }
-
- if (typeof optionsOrCallback === 'function') {
- callback = optionsOrCallback;
- options = {};
- }
-
- const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
- const parameters = {
- options: Object.assign(
- {
- url: (rootUrl + '/appstate/v1/states').replace(
- /([^:]\/)\/+/g,
- '$1'
- ),
- method: 'GET',
- },
- options
- ),
- params,
- requiredParams: [],
- pathParams: [],
- context: this.context,
- };
- if (callback) {
- createAPIRequest(parameters, callback);
- } else {
- return createAPIRequest(parameters);
- }
- }
-
- /**
- * appstate.states.update
- * @desc Update the data associated with the input key if and only if the passed version matches the currently stored version. This method is safe in the face of concurrent writes. Maximum per-key size is 128KB.
- * @alias appstate.states.update
- * @memberOf! ()
- *
- * @param {object} params Parameters for request
- * @param {string=} params.currentStateVersion The version of the app state your application is attempting to update. If this does not match the current version, this method will return a conflict error. If there is no data stored on the server for this key, the update will succeed irrespective of the value of this parameter.
- * @param {integer} params.stateKey The key for the data to be retrieved.
- * @param {().UpdateRequest} params.resource Request body data
- * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
- * @param {callback} callback The callback that handles the response.
- * @return {object} Request object
- */
- update(
- params?: Params$Resource$States$Update,
- options?: MethodOptions
- ): GaxiosPromise;
- update(
- params: Params$Resource$States$Update,
- options: MethodOptions | BodyResponseCallback,
- callback: BodyResponseCallback
- ): void;
- update(
- params: Params$Resource$States$Update,
- callback: BodyResponseCallback
- ): void;
- update(callback: BodyResponseCallback): void;
- update(
- paramsOrCallback?:
- | Params$Resource$States$Update
- | BodyResponseCallback,
- optionsOrCallback?:
- | MethodOptions
- | BodyResponseCallback,
- callback?: BodyResponseCallback
- ): void | GaxiosPromise {
- let params = (paramsOrCallback || {}) as Params$Resource$States$Update;
- let options = (optionsOrCallback || {}) as MethodOptions;
-
- if (typeof paramsOrCallback === 'function') {
- callback = paramsOrCallback;
- params = {} as Params$Resource$States$Update;
- options = {};
- }
-
- if (typeof optionsOrCallback === 'function') {
- callback = optionsOrCallback;
- options = {};
- }
-
- const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
- const parameters = {
- options: Object.assign(
- {
- url: (rootUrl + '/appstate/v1/states/{stateKey}').replace(
- /([^:]\/)\/+/g,
- '$1'
- ),
- method: 'PUT',
- },
- options
- ),
- params,
- requiredParams: ['stateKey'],
- pathParams: ['stateKey'],
- context: this.context,
- };
- if (callback) {
- createAPIRequest(parameters, callback);
- } else {
- return createAPIRequest(parameters);
- }
- }
- }
-
- export interface Params$Resource$States$Clear extends StandardParameters {
- /**
- * Auth client or API Key for the request
- */
- auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
-
- /**
- * The version of the data to be cleared. Version strings are returned by the server.
- */
- currentDataVersion?: string;
- /**
- * The key for the data to be retrieved.
- */
- stateKey?: number;
- }
- export interface Params$Resource$States$Delete extends StandardParameters {
- /**
- * Auth client or API Key for the request
- */
- auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
-
- /**
- * The key for the data to be retrieved.
- */
- stateKey?: number;
- }
- export interface Params$Resource$States$Get extends StandardParameters {
- /**
- * Auth client or API Key for the request
- */
- auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
-
- /**
- * The key for the data to be retrieved.
- */
- stateKey?: number;
- }
- export interface Params$Resource$States$List extends StandardParameters {
- /**
- * Auth client or API Key for the request
- */
- auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
-
- /**
- * Whether to include the full data in addition to the version number
- */
- includeData?: boolean;
- }
- export interface Params$Resource$States$Update extends StandardParameters {
- /**
- * Auth client or API Key for the request
- */
- auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
-
- /**
- * The version of the app state your application is attempting to update. If this does not match the current version, this method will return a conflict error. If there is no data stored on the server for this key, the update will succeed irrespective of the value of this parameter.
- */
- currentStateVersion?: string;
- /**
- * The key for the data to be retrieved.
- */
- stateKey?: number;
-
- /**
- * Request body metadata
- */
- requestBody?: Schema$UpdateRequest;
- }
-}
diff --git a/src/apis/bigquery/v2.ts b/src/apis/bigquery/v2.ts
index a0fd7a90a38..f2fe7486fac 100644
--- a/src/apis/bigquery/v2.ts
+++ b/src/apis/bigquery/v2.ts
@@ -342,12 +342,51 @@ export namespace bigquery_v2 {
learnRate?: number;
minRelProgress?: number;
l2Reg?: number;
- learnRateStrategy?: string;
warmStart?: boolean;
+ learnRateStrategy?: string;
lineSearchInitLearnRate?: number;
earlyStop?: boolean;
};
}
+ /**
+ * Representative value of a categorical feature.
+ */
+ export interface Schema$CategoricalValue {
+ /**
+ * Counts of all categories for the categorical feature. If there are more than ten categories, we return top ten (by count) and return one more CategoryCount with category "_OTHER_" and count as aggregate counts of remaining categories.
+ */
+ categoryCounts?: Schema$CategoryCount[];
+ }
+ /**
+ * Represents the count of a single category within the cluster.
+ */
+ export interface Schema$CategoryCount {
+ /**
+ * The name of category.
+ */
+ category?: string;
+ /**
+ * The count of training samples matching the category within the cluster.
+ */
+ count?: string;
+ }
+ /**
+ * Message containing the information about one cluster.
+ */
+ export interface Schema$Cluster {
+ /**
+ * Centroid id.
+ */
+ centroidId?: string;
+ /**
+ * Count of training data rows that were assigned to this cluster.
+ */
+ count?: string;
+ /**
+ * Values of highly variant features for this cluster.
+ */
+ featureValues?: Schema$FeatureValue[];
+ }
/**
* Information about a single cluster for clustering model.
*/
@@ -375,6 +414,10 @@ export namespace bigquery_v2 {
* Evaluation metrics for clustering models.
*/
export interface Schema$ClusteringMetrics {
+ /**
+ * [Beta] Information for all clusters.
+ */
+ clusters?: Schema$Cluster[];
/**
* Davies-Bouldin index.
*/
@@ -428,13 +471,13 @@ export namespace bigquery_v2 {
* [Optional] An array of objects that define dataset access for one or more entities. You can set this property when inserting or updating a dataset in order to control who is allowed to access the data. If unspecified at dataset creation time, BigQuery adds default dataset access for the following entities: access.specialGroup: projectReaders; access.role: READER; access.specialGroup: projectWriters; access.role: WRITER; access.specialGroup: projectOwners; access.role: OWNER; access.userByEmail: [dataset creator email]; access.role: OWNER;
*/
access?: Array<{
- role?: string;
- view?: Schema$TableReference;
- groupByEmail?: string;
userByEmail?: string;
domain?: string;
iamMember?: string;
specialGroup?: string;
+ role?: string;
+ view?: Schema$TableReference;
+ groupByEmail?: string;
}>;
/**
* [Output-only] The time when this dataset was created, in milliseconds since the epoch.
@@ -495,12 +538,12 @@ export namespace bigquery_v2 {
* An array of the dataset resources in the project. Each resource contains basic information. For full information about a particular dataset resource, use the Datasets: get method. This property is omitted when there are no datasets in the project.
*/
datasets?: Array<{
+ labels?: {[key: string]: string};
+ datasetReference?: Schema$DatasetReference;
id?: string;
location?: string;
friendlyName?: string;
kind?: string;
- labels?: {[key: string]: string};
- datasetReference?: Schema$DatasetReference;
}>;
/**
* A hash value of the results page. You can use this property to determine if the page has changed since the last request.
@@ -585,7 +628,7 @@ export namespace bigquery_v2 {
*/
binaryClassificationMetrics?: Schema$BinaryClassificationMetrics;
/**
- * [Beta] Populated for clustering models.
+ * Populated for clustering models.
*/
clusteringMetrics?: Schema$ClusteringMetrics;
/**
@@ -593,7 +636,7 @@ export namespace bigquery_v2 {
*/
multiClassClassificationMetrics?: Schema$MultiClassClassificationMetrics;
/**
- * Populated for regression models.
+ * Populated for regression models and explicit feedback type matrix factorization models.
*/
regressionMetrics?: Schema$RegressionMetrics;
}
@@ -775,6 +818,23 @@ export namespace bigquery_v2 {
*/
sourceUris?: string[];
}
+ /**
+ * Representative value of a single feature within the cluster.
+ */
+ export interface Schema$FeatureValue {
+ /**
+ * The categorical feature value.
+ */
+ categoricalValue?: Schema$CategoricalValue;
+ /**
+ * The feature column name.
+ */
+ featureColumn?: string;
+ /**
+ * The numerical feature value. This is the centroid value for this feature.
+ */
+ numericalValue?: number;
+ }
export interface Schema$GetQueryResultsResponse {
/**
* Whether the query result was fetched from the query cache.
@@ -837,7 +897,7 @@ export namespace bigquery_v2 {
}
export interface Schema$GoogleSheetsOptions {
/**
- * [Beta] [Optional] Range of a sheet to query from. Only used when non-empty. Typical format: sheet_name!top_left_cell_id:bottom_right_cell_id For example: sheet1!A1:B20
+ * [Optional] Range of a sheet to query from. Only used when non-empty. Typical format: sheet_name!top_left_cell_id:bottom_right_cell_id For example: sheet1!A1:B20
*/
range?: string;
/**
@@ -860,7 +920,7 @@ export namespace bigquery_v2 {
*/
export interface Schema$IterationResult {
/**
- * [Beta] Information about top clusters for clustering models.
+ * Information about top clusters for clustering models.
*/
clusterInfos?: Schema$ClusterInfo[];
/**
@@ -992,9 +1052,17 @@ export namespace bigquery_v2 {
*/
printHeader?: boolean;
/**
- * [Required] A reference to the table being exported.
+ * A reference to the model being exported.
+ */
+ sourceModel?: Schema$ModelReference;
+ /**
+ * A reference to the table being exported.
*/
sourceTable?: Schema$TableReference;
+ /**
+ * [Optional] If destinationFormat is set to "AVRO", this flag indicates whether to enable extracting applicable column types (such as TIMESTAMP) to their corresponding AVRO logical types (timestamp-micros), instead of only using their raw types (avro-long).
+ */
+ useAvroLogicalTypes?: boolean;
}
export interface Schema$JobConfigurationLoad {
/**
@@ -1235,15 +1303,15 @@ export namespace bigquery_v2 {
* List of jobs that were requested.
*/
jobs?: Array<{
+ jobReference?: Schema$JobReference;
+ status?: Schema$JobStatus;
+ state?: string;
statistics?: Schema$JobStatistics;
id?: string;
configuration?: Schema$JobConfiguration;
user_email?: string;
errorResult?: Schema$ErrorProto;
kind?: string;
- jobReference?: Schema$JobReference;
- status?: Schema$JobStatus;
- state?: string;
}>;
/**
* The resource type of the response.
@@ -1371,6 +1439,10 @@ export namespace bigquery_v2 {
* [Output-only] Describes execution plan for the query.
*/
queryPlan?: Schema$ExplainQueryStage[];
+ /**
+ * [Output-only] Referenced routines (persistent user-defined functions and stored procedures) for the job.
+ */
+ referencedRoutines?: Schema$RoutineReference[];
/**
* [Output-only] Referenced tables for the job. Queries that reference more than 50 tables will not have a complete list.
*/
@@ -1378,7 +1450,7 @@ export namespace bigquery_v2 {
/**
* [Output-only] Job resource usage breakdown by reservation.
*/
- reservationUsage?: Array<{slotMs?: string; name?: string}>;
+ reservationUsage?: Array<{name?: string; slotMs?: string}>;
/**
* [Output-only] The schema of the results. Present only for successful dry run of non-legacy SQL queries.
*/
@@ -1515,6 +1587,10 @@ export namespace bigquery_v2 {
* [Optional] A user-friendly description of this model.
*/
description?: string;
+ /**
+ * Custom encryption configuration (e.g., Cloud KMS keys). This shows the encryption configuration of the model data while stored in BigQuery storage.
+ */
+ encryptionConfiguration?: Schema$EncryptionConfiguration;
/**
* Output only. A hash of this resource.
*/
@@ -1564,15 +1640,12 @@ export namespace bigquery_v2 {
/**
* [Output-only, Beta] Model options used for the first training run. These options are immutable for subsequent training runs. Default values are used for any options not specified in the input query.
*/
- modelOptions?: {lossType?: string; modelType?: string; labels?: string[]};
+ modelOptions?: {modelType?: string; labels?: string[]; lossType?: string};
/**
* [Output-only, Beta] Information about ml training runs, each training run comprises of multiple iterations and there may be multiple training runs for the model if warm start is used or if a user decides to continue a previously cancelled query.
*/
trainingRuns?: Schema$BqmlTrainingRun[];
}
- /**
- * Id path of a model.
- */
export interface Schema$ModelReference {
/**
* [Required] The ID of the dataset containing this model.
@@ -1809,7 +1882,7 @@ export namespace bigquery_v2 {
range?: {interval?: string; start?: string; end?: string};
}
/**
- * Evaluation metrics for regression models.
+ * Evaluation metrics for regression and explicit feedback type matrix factorization models.
*/
export interface Schema$RegressionMetrics {
/**
@@ -2166,17 +2239,17 @@ export namespace bigquery_v2 {
* Tables in the requested dataset.
*/
tables?: Array<{
+ view?: {useLegacySql?: boolean};
+ creationTime?: string;
+ labels?: {[key: string]: string};
clustering?: Schema$Clustering;
type?: string;
- expirationTime?: string;
id?: string;
+ expirationTime?: string;
tableReference?: Schema$TableReference;
timePartitioning?: Schema$TimePartitioning;
friendlyName?: string;
kind?: string;
- view?: {useLegacySql?: boolean};
- creationTime?: string;
- labels?: {[key: string]: string};
}>;
/**
* The total number of tables in the dataset.
@@ -2238,7 +2311,7 @@ export namespace bigquery_v2 {
*/
dataSplitMethod?: string;
/**
- * [Beta] Distance type for clustering models.
+ * Distance type for clustering models.
*/
distanceType?: string;
/**
@@ -2253,6 +2326,14 @@ export namespace bigquery_v2 {
* Name of input label columns in training data.
*/
inputLabelColumns?: string[];
+ /**
+ * The column used to provide the initial centroids for kmeans algorithm when kmeans_initialization_method is CUSTOM.
+ */
+ kmeansInitializationColumn?: string;
+ /**
+ * The method used to initialize the centroids for kmeans algorithm.
+ */
+ kmeansInitializationMethod?: string;
/**
* L1 regularization coefficient.
*/
@@ -2290,7 +2371,7 @@ export namespace bigquery_v2 {
*/
modelUri?: string;
/**
- * [Beta] Number of clusters for clustering models.
+ * Number of clusters for clustering models.
*/
numClusters?: string;
/**
@@ -3820,6 +3901,7 @@ export namespace bigquery_v2 {
* @param {integer=} params.maxResults Maximum number of results to return
* @param {string=} params.minCreationTime Min value for job creation time, in milliseconds since the POSIX epoch. If set, only jobs created after or at this timestamp are returned
* @param {string=} params.pageToken Page token, returned by a previous call, to request the next page of results
+ * @param {string=} params.parentJobId If set, retrieves only jobs whose parent is this job. Otherwise, retrieves only jobs which have no parent
* @param {string} params.projectId Project ID of the jobs to list
* @param {string=} params.projection Restrict information returned to a set of selected fields
* @param {string=} params.stateFilter Filter for job state
@@ -4141,6 +4223,10 @@ export namespace bigquery_v2 {
* Page token, returned by a previous call, to request the next page of results
*/
pageToken?: string;
+ /**
+ * If set, retrieves only jobs whose parent is this job. Otherwise, retrieves only jobs which have no parent
+ */
+ parentJobId?: string;
/**
* Project ID of the jobs to list
*/
diff --git a/src/apis/bigqueryreservation/README.md b/src/apis/bigqueryreservation/README.md
new file mode 100644
index 00000000000..221ed35fdfd
--- /dev/null
+++ b/src/apis/bigqueryreservation/README.md
@@ -0,0 +1,47 @@
+
+
+# bigqueryreservation
+
+> A service to modify your BigQuery flat-rate reservations.
+
+## Installation
+
+```sh
+$ npm install googleapis
+```
+
+## Usage
+All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client).
+
+## Building a browser bundle
+
+This library can be used in a browser. To prepare a single file bundle, clone the
+[repository](https://github.com/googleapis/google-api-nodejs-client) and run
+
+```sh
+$ cd src/apis/bigqueryreservation
+$ npm install
+$ npm run webpack
+```
+
+The generated bundle will be written to `dist/bigqueryreservation.min.js`. Use it from your HTML file:
+
+```html
+
+
+```
+
+## License
+This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE).
+
+## Contributing
+We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md).
+
+## Questions/problems?
+* Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client).
+* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues).
+
+
+*Crafted with ❤️ by the Google Node.js team*
diff --git a/src/apis/bigqueryreservation/index.ts b/src/apis/bigqueryreservation/index.ts
new file mode 100644
index 00000000000..fcb6af9752b
--- /dev/null
+++ b/src/apis/bigqueryreservation/index.ts
@@ -0,0 +1,53 @@
+// Copyright 2019 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/*! THIS FILE IS AUTO-GENERATED */
+
+import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common';
+import {bigqueryreservation_v1} from './v1';
+import {bigqueryreservation_v1alpha2} from './v1alpha2';
+
+export const VERSIONS = {
+ v1: bigqueryreservation_v1.Bigqueryreservation,
+ v1alpha2: bigqueryreservation_v1alpha2.Bigqueryreservation,
+};
+
+export function bigqueryreservation(
+ version: 'v1'
+): bigqueryreservation_v1.Bigqueryreservation;
+export function bigqueryreservation(
+ options: bigqueryreservation_v1.Options
+): bigqueryreservation_v1.Bigqueryreservation;
+export function bigqueryreservation(
+ version: 'v1alpha2'
+): bigqueryreservation_v1alpha2.Bigqueryreservation;
+export function bigqueryreservation(
+ options: bigqueryreservation_v1alpha2.Options
+): bigqueryreservation_v1alpha2.Bigqueryreservation;
+export function bigqueryreservation<
+ T =
+ | bigqueryreservation_v1.Bigqueryreservation
+ | bigqueryreservation_v1alpha2.Bigqueryreservation
+>(
+ this: GoogleConfigurable,
+ versionOrOptions:
+ | 'v1'
+ | bigqueryreservation_v1.Options
+ | 'v1alpha2'
+ | bigqueryreservation_v1alpha2.Options
+) {
+ return getAPI('bigqueryreservation', versionOrOptions, VERSIONS, this);
+}
+
+const auth = new AuthPlus();
+export {auth};
diff --git a/src/apis/bigqueryreservation/package.json b/src/apis/bigqueryreservation/package.json
new file mode 100644
index 00000000000..5b6ea9931c9
--- /dev/null
+++ b/src/apis/bigqueryreservation/package.json
@@ -0,0 +1,43 @@
+{
+ "name": "@google/bigqueryreservation",
+ "version": "0.1.0",
+ "description": "bigqueryreservation",
+ "main": "build/index.js",
+ "types": "build/index.d.ts",
+ "keywords": [
+ "google"
+ ],
+ "author": "Google LLC",
+ "license": "Apache-2.0",
+ "homepage": "https://github.com/googleapis/google-api-nodejs-client",
+ "bugs": {
+ "url": "https://github.com/googleapis/google-api-nodejs-client/issues"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/googleapis/google-api-nodejs-client.git"
+ },
+ "engines": {
+ "node": ">=8.0.0"
+ },
+ "scripts": {
+ "fix": "gts fix",
+ "lint": "gts check",
+ "compile": "tsc -p .",
+ "prepare": "npm run compile",
+ "docs": "typedoc --out docs/",
+ "webpack": "webpack"
+ },
+ "dependencies": {
+ "googleapis-common": "^3.0.0"
+ },
+ "devDependencies": {
+ "gts": "^1.0.0",
+ "null-loader": "^3.0.0",
+ "ts-loader": "^6.0.4",
+ "typedoc": "^0.15.0",
+ "typescript": "~3.6.0",
+ "webpack": "^4.35.3",
+ "webpack-cli": "^3.3.5"
+ }
+}
diff --git a/src/apis/appstate/tsconfig.json b/src/apis/bigqueryreservation/tsconfig.json
similarity index 100%
rename from src/apis/appstate/tsconfig.json
rename to src/apis/bigqueryreservation/tsconfig.json
diff --git a/src/apis/bigqueryreservation/v1.ts b/src/apis/bigqueryreservation/v1.ts
new file mode 100644
index 00000000000..a02afdaf6cc
--- /dev/null
+++ b/src/apis/bigqueryreservation/v1.ts
@@ -0,0 +1,386 @@
+/**
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import {
+ OAuth2Client,
+ JWT,
+ Compute,
+ UserRefreshClient,
+} from 'google-auth-library';
+import {
+ GoogleConfigurable,
+ createAPIRequest,
+ MethodOptions,
+ GlobalOptions,
+ BodyResponseCallback,
+ APIRequestContext,
+} from 'googleapis-common';
+import {GaxiosPromise} from 'gaxios';
+
+// tslint:disable: no-any
+// tslint:disable: class-name
+// tslint:disable: variable-name
+// tslint:disable: jsdoc-format
+// tslint:disable: no-namespace
+
+export namespace bigqueryreservation_v1 {
+ export interface Options extends GlobalOptions {
+ version: 'v1';
+ }
+
+ interface StandardParameters {
+ /**
+ * V1 error format.
+ */
+ '$.xgafv'?: string;
+ /**
+ * OAuth access token.
+ */
+ access_token?: string;
+ /**
+ * Data format for response.
+ */
+ alt?: string;
+ /**
+ * JSONP
+ */
+ callback?: string;
+ /**
+ * Selector specifying which fields to include in a partial response.
+ */
+ fields?: string;
+ /**
+ * API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
+ */
+ key?: string;
+ /**
+ * OAuth 2.0 token for the current user.
+ */
+ oauth_token?: string;
+ /**
+ * Returns response with indentations and line breaks.
+ */
+ prettyPrint?: boolean;
+ /**
+ * Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
+ */
+ quotaUser?: string;
+ /**
+ * Legacy upload protocol for media (e.g. "media", "multipart").
+ */
+ uploadType?: string;
+ /**
+ * Upload protocol for media (e.g. "raw", "multipart").
+ */
+ upload_protocol?: string;
+ }
+
+ /**
+ * BigQuery Reservation API
+ *
+ * A service to modify your BigQuery flat-rate reservations.
+ *
+ * @example
+ * const {google} = require('googleapis');
+ * const bigqueryreservation = google.bigqueryreservation('v1');
+ *
+ * @namespace bigqueryreservation
+ * @type {Function}
+ * @version v1
+ * @variation v1
+ * @param {object=} options Options for Bigqueryreservation
+ */
+ export class Bigqueryreservation {
+ context: APIRequestContext;
+ operations: Resource$Operations;
+
+ constructor(options: GlobalOptions, google?: GoogleConfigurable) {
+ this.context = {
+ _options: options || {},
+ google,
+ };
+
+ this.operations = new Resource$Operations(this.context);
+ }
+ }
+
+ /**
+ * The metadata for operation returned from ReservationService.CreateSlotPool.
+ */
+ export interface Schema$CreateSlotPoolMetadata {
+ /**
+ * Resource name of the slot pool that is being created. E.g., projects/myproject/locations/us-central1/reservations/foo/slotPools/123
+ */
+ slotPool?: string;
+ }
+ /**
+ * A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
+ */
+ export interface Schema$Empty {}
+ /**
+ * The response message for Operations.ListOperations.
+ */
+ export interface Schema$ListOperationsResponse {
+ /**
+ * The standard List next-page token.
+ */
+ nextPageToken?: string;
+ /**
+ * A list of operations that matches the specified filter in the request.
+ */
+ operations?: Schema$Operation[];
+ }
+ /**
+ * BigQuery-specific metadata about a location. This will be set on google.cloud.location.Location.metadata in Cloud Location API responses.
+ */
+ export interface Schema$LocationMetadata {
+ /**
+ * The legacy BigQuery location ID, e.g. “EU” for the “europe” location. This is for any API consumers that need the legacy “US” and “EU” locations.
+ */
+ legacyLocationId?: string;
+ }
+ /**
+ * This resource represents a long-running operation that is the result of a network API call.
+ */
+ export interface Schema$Operation {
+ /**
+ * If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
+ */
+ done?: boolean;
+ /**
+ * The error result of the operation in case of failure or cancellation.
+ */
+ error?: Schema$Status;
+ /**
+ * Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
+ */
+ metadata?: {[key: string]: any};
+ /**
+ * The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
+ */
+ name?: string;
+ /**
+ * The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
+ */
+ response?: {[key: string]: any};
+ }
+ /**
+ * The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
+ */
+ export interface Schema$Status {
+ /**
+ * The status code, which should be an enum value of google.rpc.Code.
+ */
+ code?: number;
+ /**
+ * A list of messages that carry the error details. There is a common set of message types for APIs to use.
+ */
+ details?: Array<{[key: string]: any}>;
+ /**
+ * A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
+ */
+ message?: string;
+ }
+
+ export class Resource$Operations {
+ context: APIRequestContext;
+ constructor(context: APIRequestContext) {
+ this.context = context;
+ }
+
+ /**
+ * bigqueryreservation.operations.delete
+ * @desc Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
+ * @alias bigqueryreservation.operations.delete
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name The name of the operation resource to be deleted.
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ delete(
+ params?: Params$Resource$Operations$Delete,
+ options?: MethodOptions
+ ): GaxiosPromise;
+ delete(
+ params: Params$Resource$Operations$Delete,
+ options: MethodOptions | BodyResponseCallback,
+ callback: BodyResponseCallback
+ ): void;
+ delete(
+ params: Params$Resource$Operations$Delete,
+ callback: BodyResponseCallback
+ ): void;
+ delete(callback: BodyResponseCallback): void;
+ delete(
+ paramsOrCallback?:
+ | Params$Resource$Operations$Delete
+ | BodyResponseCallback,
+ optionsOrCallback?: MethodOptions | BodyResponseCallback,
+ callback?: BodyResponseCallback
+ ): void | GaxiosPromise {
+ let params = (paramsOrCallback ||
+ {}) as Params$Resource$Operations$Delete;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Operations$Delete;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://bigqueryreservation.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'DELETE',
+ },
+ options
+ ),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.context,
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+ /**
+ * bigqueryreservation.operations.list
+ * @desc Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/x/operations`. To override the binding, API services can add a binding such as `"/v1/{name=users/x}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
+ * @alias bigqueryreservation.operations.list
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string=} params.filter The standard list filter.
+ * @param {string} params.name The name of the operation's parent resource.
+ * @param {integer=} params.pageSize The standard list page size.
+ * @param {string=} params.pageToken The standard list page token.
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ list(
+ params?: Params$Resource$Operations$List,
+ options?: MethodOptions
+ ): GaxiosPromise;
+ list(
+ params: Params$Resource$Operations$List,
+ options:
+ | MethodOptions
+ | BodyResponseCallback,
+ callback: BodyResponseCallback
+ ): void;
+ list(
+ params: Params$Resource$Operations$List,
+ callback: BodyResponseCallback
+ ): void;
+ list(callback: BodyResponseCallback): void;
+ list(
+ paramsOrCallback?:
+ | Params$Resource$Operations$List
+ | BodyResponseCallback,
+ optionsOrCallback?:
+ | MethodOptions
+ | BodyResponseCallback,
+ callback?: BodyResponseCallback
+ ): void | GaxiosPromise {
+ let params = (paramsOrCallback || {}) as Params$Resource$Operations$List;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Operations$List;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://bigqueryreservation.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'GET',
+ },
+ options
+ ),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.context,
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+ }
+
+ export interface Params$Resource$Operations$Delete
+ extends StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
+
+ /**
+ * The name of the operation resource to be deleted.
+ */
+ name?: string;
+ }
+ export interface Params$Resource$Operations$List extends StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
+
+ /**
+ * The standard list filter.
+ */
+ filter?: string;
+ /**
+ * The name of the operation's parent resource.
+ */
+ name?: string;
+ /**
+ * The standard list page size.
+ */
+ pageSize?: number;
+ /**
+ * The standard list page token.
+ */
+ pageToken?: string;
+ }
+}
diff --git a/src/apis/bigqueryreservation/v1alpha2.ts b/src/apis/bigqueryreservation/v1alpha2.ts
new file mode 100644
index 00000000000..f5824ce85cf
--- /dev/null
+++ b/src/apis/bigqueryreservation/v1alpha2.ts
@@ -0,0 +1,1977 @@
+/**
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import {
+ OAuth2Client,
+ JWT,
+ Compute,
+ UserRefreshClient,
+} from 'google-auth-library';
+import {
+ GoogleConfigurable,
+ createAPIRequest,
+ MethodOptions,
+ GlobalOptions,
+ BodyResponseCallback,
+ APIRequestContext,
+} from 'googleapis-common';
+import {GaxiosPromise} from 'gaxios';
+
+// tslint:disable: no-any
+// tslint:disable: class-name
+// tslint:disable: variable-name
+// tslint:disable: jsdoc-format
+// tslint:disable: no-namespace
+
+export namespace bigqueryreservation_v1alpha2 {
+ export interface Options extends GlobalOptions {
+ version: 'v1alpha2';
+ }
+
+ interface StandardParameters {
+ /**
+ * V1 error format.
+ */
+ '$.xgafv'?: string;
+ /**
+ * OAuth access token.
+ */
+ access_token?: string;
+ /**
+ * Data format for response.
+ */
+ alt?: string;
+ /**
+ * JSONP
+ */
+ callback?: string;
+ /**
+ * Selector specifying which fields to include in a partial response.
+ */
+ fields?: string;
+ /**
+ * API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
+ */
+ key?: string;
+ /**
+ * OAuth 2.0 token for the current user.
+ */
+ oauth_token?: string;
+ /**
+ * Returns response with indentations and line breaks.
+ */
+ prettyPrint?: boolean;
+ /**
+ * Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
+ */
+ quotaUser?: string;
+ /**
+ * Legacy upload protocol for media (e.g. "media", "multipart").
+ */
+ uploadType?: string;
+ /**
+ * Upload protocol for media (e.g. "raw", "multipart").
+ */
+ upload_protocol?: string;
+ }
+
+ /**
+ * BigQuery Reservation API
+ *
+ * A service to modify your BigQuery flat-rate reservations.
+ *
+ * @example
+ * const {google} = require('googleapis');
+ * const bigqueryreservation = google.bigqueryreservation('v1alpha2');
+ *
+ * @namespace bigqueryreservation
+ * @type {Function}
+ * @version v1alpha2
+ * @variation v1alpha2
+ * @param {object=} options Options for Bigqueryreservation
+ */
+ export class Bigqueryreservation {
+ context: APIRequestContext;
+ projects: Resource$Projects;
+
+ constructor(options: GlobalOptions, google?: GoogleConfigurable) {
+ this.context = {
+ _options: options || {},
+ google,
+ };
+
+ this.projects = new Resource$Projects(this.context);
+ }
+ }
+
+ /**
+ * The metadata for operation returned from ReservationService.CreateSlotPool.
+ */
+ export interface Schema$CreateSlotPoolMetadata {
+ /**
+ * Resource name of the slot pool that is being created. E.g., projects/myproject/locations/us-central1/reservations/foo/slotPools/123
+ */
+ slotPool?: string;
+ }
+ /**
+ * A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
+ */
+ export interface Schema$Empty {}
+ /**
+ * The response message for Locations.ListLocations.
+ */
+ export interface Schema$ListLocationsResponse {
+ /**
+ * A list of locations that matches the specified filter in the request.
+ */
+ locations?: Schema$Location[];
+ /**
+ * The standard List next-page token.
+ */
+ nextPageToken?: string;
+ }
+ /**
+ * The response for ReservationService.ListReservationGrants.
+ */
+ export interface Schema$ListReservationGrantsResponse {
+ /**
+ * Token to retrieve the next page of results, or empty if there are no more results in the list.
+ */
+ nextPageToken?: string;
+ /**
+ * List of reservation grants visible to the user.
+ */
+ reservationGrants?: Schema$ReservationGrant[];
+ }
+ /**
+ * The response for ReservationService.ListReservations.
+ */
+ export interface Schema$ListReservationsResponse {
+ /**
+ * Token to retrieve the next page of results, or empty if there are no more results in the list.
+ */
+ nextPageToken?: string;
+ /**
+ * List of reservations visible to the user.
+ */
+ reservations?: Schema$Reservation[];
+ }
+ /**
+ * The response for ReservationService.ListSlotPools.
+ */
+ export interface Schema$ListSlotPoolsResponse {
+ /**
+ * Token to retrieve the next page of results, or empty if there are no more results in the list.
+ */
+ nextPageToken?: string;
+ /**
+ * List of slot pools visible to the user.
+ */
+ slotPools?: Schema$SlotPool[];
+ }
+ /**
+ * A resource that represents Google Cloud Platform location.
+ */
+ export interface Schema$Location {
+ /**
+ * The friendly name for this location, typically a nearby city name. For example, "Tokyo".
+ */
+ displayName?: string;
+ /**
+ * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}
+ */
+ labels?: {[key: string]: string};
+ /**
+ * The canonical id for this location. For example: `"us-east1"`.
+ */
+ locationId?: string;
+ /**
+ * Service-specific metadata. For example the available capacity at the given location.
+ */
+ metadata?: {[key: string]: any};
+ /**
+ * Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"`
+ */
+ name?: string;
+ }
+ /**
+ * BigQuery-specific metadata about a location. This will be set on google.cloud.location.Location.metadata in Cloud Location API responses.
+ */
+ export interface Schema$LocationMetadata {
+ /**
+ * The legacy BigQuery location ID, e.g. “EU” for the “europe” location. This is for any API consumers that need the legacy “US” and “EU” locations.
+ */
+ legacyLocationId?: string;
+ }
+ /**
+ * This resource represents a long-running operation that is the result of a network API call.
+ */
+ export interface Schema$Operation {
+ /**
+ * If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
+ */
+ done?: boolean;
+ /**
+ * The error result of the operation in case of failure or cancellation.
+ */
+ error?: Schema$Status;
+ /**
+ * Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
+ */
+ metadata?: {[key: string]: any};
+ /**
+ * The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
+ */
+ name?: string;
+ /**
+ * The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
+ */
+ response?: {[key: string]: any};
+ }
+ /**
+ * A reservation is a mechanism used to guarantee slots to users.
+ */
+ export interface Schema$Reservation {
+ /**
+ * The resource name of the reservation, e.g., "projects/x/locations/x/reservations/dev/team/product". Reservation names (e.g., "dev/team/product") exceeding a depth of six will fail with `google.rpc.Code.INVALID_ARGUMENT`.
+ */
+ name?: string;
+ /**
+ * Maximum slots available to this reservation and its children. A slot is a unit of computational power in BigQuery, and serves as the unit of parallelism. In a scan of a multi-partitioned table, a single slot operates on a single partition of the table. If the new reservation's slot capacity exceed the parent's slot capacity or if total slot capacity of the new reservation and its siblings exceeds the parent's slot capacity, the request will fail with `google.rpc.Code.RESOURCE_EXHAUSTED`.
+ */
+ slotCapacity?: string;
+ /**
+ * If true, any query using this reservation will also be submitted to the parent reservation. This allows the query to share the additional slot capacity of the parent with other queries in the parent reservation. If the parent also has this field set to true, then this process will continue until it encounters a reservation for which this is false. If false, a query using this reservation will execute with the maximum slot capacity as specified above. If not specified, default value is true. Ignored for top-level reservation.
+ */
+ useParentReservation?: boolean;
+ }
+ /**
+ * A ReservationGrant allows a project to submit jobs of a certain type using slots from the specified reservation.
+ */
+ export interface Schema$ReservationGrant {
+ /**
+ * The resource which will use the reservation. E.g. projects/myproject, folders/123, organizations/456.
+ */
+ grantee?: string;
+ /**
+ * Which type of jobs will use the reservation.
+ */
+ jobType?: string;
+ /**
+ * Output only. Name of the resource. E.g.: projects/myproject/locations/eu/reservationGrants/123.
+ */
+ name?: string;
+ /**
+ * Resource name of the reservation. E.g., projects/myproject/locations/eu/reservations/my_reservation. This reservation must be in the same location as the grant. This reservation should belong to the same parent project.
+ */
+ reservation?: string;
+ }
+ /**
+ * The response for ReservationService.SearchReservationGrants.
+ */
+ export interface Schema$SearchReservationGrantsResponse {
+ /**
+ * Token to retrieve the next page of results, or empty if there are no more results in the list.
+ */
+ nextPageToken?: string;
+ /**
+ * List of reservation grants visible to the user.
+ */
+ reservationGrants?: Schema$ReservationGrant[];
+ }
+ /**
+ * Slot pool is a way to purchase slots with some minimum committed period of usage. Slot pool is immutable and cannot be deleted until the end of the commitment period. After the end of the commitment period, slots are still available but can be freely removed any time. A slot pool resource exists as a child resource of a top-level reservation. Sum of all the ACTIVE pools slot_count is always equal to the reservation slot_capacity.
+ */
+ export interface Schema$SlotPool {
+ /**
+ * Output only. The end of the commitment period. Slot pool cannot be removed before commitment_end_time. It is applicable only for ACTIVE slot pools and is computed as a combination of the plan and the time when the slot pool became ACTIVE.
+ */
+ commitmentEndTime?: string;
+ /**
+ * Output only. The resource name of the slot pool, e.g., projects/myproject/locations/us-central1/reservations/myreservation/slotPools/123
+ */
+ name?: string;
+ /**
+ * Slot pool commitment plan.
+ */
+ plan?: string;
+ /**
+ * Number of slots in this pool.
+ */
+ slotCount?: string;
+ /**
+ * Output only.
+ */
+ state?: string;
+ }
+ /**
+ * The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
+ */
+ export interface Schema$Status {
+ /**
+ * The status code, which should be an enum value of google.rpc.Code.
+ */
+ code?: number;
+ /**
+ * A list of messages that carry the error details. There is a common set of message types for APIs to use.
+ */
+ details?: Array<{[key: string]: any}>;
+ /**
+ * A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
+ */
+ message?: string;
+ }
+
+ export class Resource$Projects {
+ context: APIRequestContext;
+ locations: Resource$Projects$Locations;
+ constructor(context: APIRequestContext) {
+ this.context = context;
+ this.locations = new Resource$Projects$Locations(this.context);
+ }
+ }
+
+ export class Resource$Projects$Locations {
+ context: APIRequestContext;
+ operations: Resource$Projects$Locations$Operations;
+ reservationGrants: Resource$Projects$Locations$Reservationgrants;
+ reservations: Resource$Projects$Locations$Reservations;
+ constructor(context: APIRequestContext) {
+ this.context = context;
+ this.operations = new Resource$Projects$Locations$Operations(
+ this.context
+ );
+ this.reservationGrants = new Resource$Projects$Locations$Reservationgrants(
+ this.context
+ );
+ this.reservations = new Resource$Projects$Locations$Reservations(
+ this.context
+ );
+ }
+
+ /**
+ * bigqueryreservation.projects.locations.get
+ * @desc Gets information about a location.
+ * @alias bigqueryreservation.projects.locations.get
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name Resource name for the location.
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ get(
+ params?: Params$Resource$Projects$Locations$Get,
+ options?: MethodOptions
+ ): GaxiosPromise;
+ get(
+ params: Params$Resource$Projects$Locations$Get,
+ options: MethodOptions | BodyResponseCallback,
+ callback: BodyResponseCallback
+ ): void;
+ get(
+ params: Params$Resource$Projects$Locations$Get,
+ callback: BodyResponseCallback
+ ): void;
+ get(callback: BodyResponseCallback): void;
+ get(
+ paramsOrCallback?:
+ | Params$Resource$Projects$Locations$Get
+ | BodyResponseCallback,
+ optionsOrCallback?: MethodOptions | BodyResponseCallback,
+ callback?: BodyResponseCallback
+ ): void | GaxiosPromise {
+ let params = (paramsOrCallback ||
+ {}) as Params$Resource$Projects$Locations$Get;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Projects$Locations$Get;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://bigqueryreservation.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'GET',
+ },
+ options
+ ),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.context,
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+ /**
+ * bigqueryreservation.projects.locations.list
+ * @desc Lists information about the supported locations for this service.
+ * @alias bigqueryreservation.projects.locations.list
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string=} params.filter The standard list filter.
+ * @param {string} params.name The resource that owns the locations collection, if applicable.
+ * @param {integer=} params.pageSize The standard list page size.
+ * @param {string=} params.pageToken The standard list page token.
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ list(
+ params?: Params$Resource$Projects$Locations$List,
+ options?: MethodOptions
+ ): GaxiosPromise;
+ list(
+ params: Params$Resource$Projects$Locations$List,
+ options:
+ | MethodOptions
+ | BodyResponseCallback,
+ callback: BodyResponseCallback
+ ): void;
+ list(
+ params: Params$Resource$Projects$Locations$List,
+ callback: BodyResponseCallback
+ ): void;
+ list(callback: BodyResponseCallback): void;
+ list(
+ paramsOrCallback?:
+ | Params$Resource$Projects$Locations$List
+ | BodyResponseCallback,
+ optionsOrCallback?:
+ | MethodOptions
+ | BodyResponseCallback,
+ callback?: BodyResponseCallback
+ ): void | GaxiosPromise {
+ let params = (paramsOrCallback ||
+ {}) as Params$Resource$Projects$Locations$List;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Projects$Locations$List;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://bigqueryreservation.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1alpha2/{+name}/locations').replace(
+ /([^:]\/)\/+/g,
+ '$1'
+ ),
+ method: 'GET',
+ },
+ options
+ ),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.context,
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+ /**
+ * bigqueryreservation.projects.locations.searchReservationGrants
+ * @desc Look up grants for a specified resource for a particular region. If the request is about a project: 1) Grants created on the project will be returned if they exist. 2) Otherwise grants created on the closest ancestor will be returned. 3) Grants for different JobTypes will all be returned. Same logic applies if the request is about a folder. If the request is about an organization, then grants created on the organization will be returned (organization doesn't have ancestors). Comparing to ListReservationGrants, there are two behavior differences: 1) permission on the grantee will be verified in this API. 2) Hierarchy lookup (project->folder->organization) happens in this API.
+ * @alias bigqueryreservation.projects.locations.searchReservationGrants
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {integer=} params.pageSize The maximum number of items to return.
+ * @param {string=} params.pageToken The next_page_token value returned from a previous List request, if any.
+ * @param {string} params.parent The parent resource name (containing project and location), which owns the grants. e.g.: "projects/myproject/locations/us-central1".
+ * @param {string=} params.query Please specify resource name as grantee in the query. e.g., "grantee=projects/myproject" "grantee=folders/123" "grantee=organizations/456"
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ searchReservationGrants(
+ params?: Params$Resource$Projects$Locations$Searchreservationgrants,
+ options?: MethodOptions
+ ): GaxiosPromise;
+ searchReservationGrants(
+ params: Params$Resource$Projects$Locations$Searchreservationgrants,
+ options:
+ | MethodOptions
+ | BodyResponseCallback,
+ callback: BodyResponseCallback
+ ): void;
+ searchReservationGrants(
+ params: Params$Resource$Projects$Locations$Searchreservationgrants,
+ callback: BodyResponseCallback
+ ): void;
+ searchReservationGrants(
+ callback: BodyResponseCallback
+ ): void;
+ searchReservationGrants(
+ paramsOrCallback?:
+ | Params$Resource$Projects$Locations$Searchreservationgrants
+ | BodyResponseCallback,
+ optionsOrCallback?:
+ | MethodOptions
+ | BodyResponseCallback,
+ callback?: BodyResponseCallback
+ ): void | GaxiosPromise {
+ let params = (paramsOrCallback ||
+ {}) as Params$Resource$Projects$Locations$Searchreservationgrants;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Projects$Locations$Searchreservationgrants;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://bigqueryreservation.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (
+ rootUrl + '/v1alpha2/{+parent}:SearchReservationGrants'
+ ).replace(/([^:]\/)\/+/g, '$1'),
+ method: 'GET',
+ },
+ options
+ ),
+ params,
+ requiredParams: ['parent'],
+ pathParams: ['parent'],
+ context: this.context,
+ };
+ if (callback) {
+ createAPIRequest(
+ parameters,
+ callback
+ );
+ } else {
+ return createAPIRequest(
+ parameters
+ );
+ }
+ }
+ }
+
+ export interface Params$Resource$Projects$Locations$Get
+ extends StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
+
+ /**
+ * Resource name for the location.
+ */
+ name?: string;
+ }
+ export interface Params$Resource$Projects$Locations$List
+ extends StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
+
+ /**
+ * The standard list filter.
+ */
+ filter?: string;
+ /**
+ * The resource that owns the locations collection, if applicable.
+ */
+ name?: string;
+ /**
+ * The standard list page size.
+ */
+ pageSize?: number;
+ /**
+ * The standard list page token.
+ */
+ pageToken?: string;
+ }
+ export interface Params$Resource$Projects$Locations$Searchreservationgrants
+ extends StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
+
+ /**
+ * The maximum number of items to return.
+ */
+ pageSize?: number;
+ /**
+ * The next_page_token value returned from a previous List request, if any.
+ */
+ pageToken?: string;
+ /**
+ * The parent resource name (containing project and location), which owns the grants. e.g.: "projects/myproject/locations/us-central1".
+ */
+ parent?: string;
+ /**
+ * Please specify resource name as grantee in the query. e.g., "grantee=projects/myproject" "grantee=folders/123" "grantee=organizations/456"
+ */
+ query?: string;
+ }
+
+ export class Resource$Projects$Locations$Operations {
+ context: APIRequestContext;
+ constructor(context: APIRequestContext) {
+ this.context = context;
+ }
+
+ /**
+ * bigqueryreservation.projects.locations.operations.cancel
+ * @desc Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
+ * @alias bigqueryreservation.projects.locations.operations.cancel
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name The name of the operation resource to be cancelled.
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ cancel(
+ params?: Params$Resource$Projects$Locations$Operations$Cancel,
+ options?: MethodOptions
+ ): GaxiosPromise;
+ cancel(
+ params: Params$Resource$Projects$Locations$Operations$Cancel,
+ options: MethodOptions | BodyResponseCallback,
+ callback: BodyResponseCallback
+ ): void;
+ cancel(
+ params: Params$Resource$Projects$Locations$Operations$Cancel,
+ callback: BodyResponseCallback
+ ): void;
+ cancel(callback: BodyResponseCallback): void;
+ cancel(
+ paramsOrCallback?:
+ | Params$Resource$Projects$Locations$Operations$Cancel
+ | BodyResponseCallback,
+ optionsOrCallback?: MethodOptions | BodyResponseCallback,
+ callback?: BodyResponseCallback
+ ): void | GaxiosPromise {
+ let params = (paramsOrCallback ||
+ {}) as Params$Resource$Projects$Locations$Operations$Cancel;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Projects$Locations$Operations$Cancel;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://bigqueryreservation.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1alpha2/{+name}:cancel').replace(
+ /([^:]\/)\/+/g,
+ '$1'
+ ),
+ method: 'POST',
+ },
+ options
+ ),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.context,
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+ /**
+ * bigqueryreservation.projects.locations.operations.get
+ * @desc Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
+ * @alias bigqueryreservation.projects.locations.operations.get
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name The name of the operation resource.
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ get(
+ params?: Params$Resource$Projects$Locations$Operations$Get,
+ options?: MethodOptions
+ ): GaxiosPromise;
+ get(
+ params: Params$Resource$Projects$Locations$Operations$Get,
+ options: MethodOptions | BodyResponseCallback,
+ callback: BodyResponseCallback
+ ): void;
+ get(
+ params: Params$Resource$Projects$Locations$Operations$Get,
+ callback: BodyResponseCallback
+ ): void;
+ get(callback: BodyResponseCallback): void;
+ get(
+ paramsOrCallback?:
+ | Params$Resource$Projects$Locations$Operations$Get
+ | BodyResponseCallback,
+ optionsOrCallback?:
+ | MethodOptions
+ | BodyResponseCallback,
+ callback?: BodyResponseCallback
+ ): void | GaxiosPromise {
+ let params = (paramsOrCallback ||
+ {}) as Params$Resource$Projects$Locations$Operations$Get;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Projects$Locations$Operations$Get;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://bigqueryreservation.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'GET',
+ },
+ options
+ ),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.context,
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+ }
+
+ export interface Params$Resource$Projects$Locations$Operations$Cancel
+ extends StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
+
+ /**
+ * The name of the operation resource to be cancelled.
+ */
+ name?: string;
+ }
+ export interface Params$Resource$Projects$Locations$Operations$Get
+ extends StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
+
+ /**
+ * The name of the operation resource.
+ */
+ name?: string;
+ }
+
+ export class Resource$Projects$Locations$Reservationgrants {
+ context: APIRequestContext;
+ constructor(context: APIRequestContext) {
+ this.context = context;
+ }
+
+ /**
+ * bigqueryreservation.projects.locations.reservationGrants.create
+ * @desc Returns `google.rpc.Code.PERMISSION_DENIED` if user does not have 'bigquery.admin' permissions on the project using the reservation and the project that owns this reservation. Returns `google.rpc.Code.INVALID_ARGUMENT` when location of the grant does not match location of the reservation.
+ * @alias bigqueryreservation.projects.locations.reservationGrants.create
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.parent The parent resource name of the reservation grant E.g.: projects/myproject/location/eu.
+ * @param {().ReservationGrant} params.resource Request body data
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ create(
+ params?: Params$Resource$Projects$Locations$Reservationgrants$Create,
+ options?: MethodOptions
+ ): GaxiosPromise;
+ create(
+ params: Params$Resource$Projects$Locations$Reservationgrants$Create,
+ options: MethodOptions | BodyResponseCallback,
+ callback: BodyResponseCallback
+ ): void;
+ create(
+ params: Params$Resource$Projects$Locations$Reservationgrants$Create,
+ callback: BodyResponseCallback
+ ): void;
+ create(callback: BodyResponseCallback): void;
+ create(
+ paramsOrCallback?:
+ | Params$Resource$Projects$Locations$Reservationgrants$Create
+ | BodyResponseCallback,
+ optionsOrCallback?:
+ | MethodOptions
+ | BodyResponseCallback,
+ callback?: BodyResponseCallback
+ ): void | GaxiosPromise {
+ let params = (paramsOrCallback ||
+ {}) as Params$Resource$Projects$Locations$Reservationgrants$Create;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Projects$Locations$Reservationgrants$Create;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://bigqueryreservation.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1alpha2/{+parent}/reservationGrants').replace(
+ /([^:]\/)\/+/g,
+ '$1'
+ ),
+ method: 'POST',
+ },
+ options
+ ),
+ params,
+ requiredParams: ['parent'],
+ pathParams: ['parent'],
+ context: this.context,
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+ /**
+ * bigqueryreservation.projects.locations.reservationGrants.delete
+ * @desc Deletes a reservation grant. No expansion will happen. E.g: organizationA contains project1 and project2. Reservation res1 exists. CreateReservationGrant was invoked previously and following grants were created explicitly: Then deletion of won't affect . After deletion of , queries from project1 will still use res1, while queries from project2 will use on-demand mode.
+ * @alias bigqueryreservation.projects.locations.reservationGrants.delete
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name Name of the resource, e.g.: projects/myproject/locations/eu/reservationGrants/123
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ delete(
+ params?: Params$Resource$Projects$Locations$Reservationgrants$Delete,
+ options?: MethodOptions
+ ): GaxiosPromise;
+ delete(
+ params: Params$Resource$Projects$Locations$Reservationgrants$Delete,
+ options: MethodOptions | BodyResponseCallback,
+ callback: BodyResponseCallback
+ ): void;
+ delete(
+ params: Params$Resource$Projects$Locations$Reservationgrants$Delete,
+ callback: BodyResponseCallback
+ ): void;
+ delete(callback: BodyResponseCallback): void;
+ delete(
+ paramsOrCallback?:
+ | Params$Resource$Projects$Locations$Reservationgrants$Delete
+ | BodyResponseCallback,
+ optionsOrCallback?: MethodOptions | BodyResponseCallback,
+ callback?: BodyResponseCallback
+ ): void | GaxiosPromise {
+ let params = (paramsOrCallback ||
+ {}) as Params$Resource$Projects$Locations$Reservationgrants$Delete;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Projects$Locations$Reservationgrants$Delete;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://bigqueryreservation.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'DELETE',
+ },
+ options
+ ),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.context,
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+ /**
+ * bigqueryreservation.projects.locations.reservationGrants.list
+ * @desc Lists reservation grants. Only explicitly created grants will be returned. E.g: organizationA contains project1 and project2. Reservation res1 exists. CreateReservationGrant was invoked previously and following grants were created explicitly: Then this API will just return the above two grants for reservation res1, and no expansion/merge will happen.
+ * @alias bigqueryreservation.projects.locations.reservationGrants.list
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {integer=} params.pageSize The maximum number of items to return.
+ * @param {string=} params.pageToken The next_page_token value returned from a previous List request, if any.
+ * @param {string} params.parent The parent resource name e.g.: projects/myproject/location/eu.
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ list(
+ params?: Params$Resource$Projects$Locations$Reservationgrants$List,
+ options?: MethodOptions
+ ): GaxiosPromise;
+ list(
+ params: Params$Resource$Projects$Locations$Reservationgrants$List,
+ options:
+ | MethodOptions
+ | BodyResponseCallback,
+ callback: BodyResponseCallback
+ ): void;
+ list(
+ params: Params$Resource$Projects$Locations$Reservationgrants$List,
+ callback: BodyResponseCallback
+ ): void;
+ list(
+ callback: BodyResponseCallback
+ ): void;
+ list(
+ paramsOrCallback?:
+ | Params$Resource$Projects$Locations$Reservationgrants$List
+ | BodyResponseCallback,
+ optionsOrCallback?:
+ | MethodOptions
+ | BodyResponseCallback,
+ callback?: BodyResponseCallback
+ ): void | GaxiosPromise {
+ let params = (paramsOrCallback ||
+ {}) as Params$Resource$Projects$Locations$Reservationgrants$List;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Projects$Locations$Reservationgrants$List;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://bigqueryreservation.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1alpha2/{+parent}/reservationGrants').replace(
+ /([^:]\/)\/+/g,
+ '$1'
+ ),
+ method: 'GET',
+ },
+ options
+ ),
+ params,
+ requiredParams: ['parent'],
+ pathParams: ['parent'],
+ context: this.context,
+ };
+ if (callback) {
+ createAPIRequest(
+ parameters,
+ callback
+ );
+ } else {
+ return createAPIRequest(
+ parameters
+ );
+ }
+ }
+ }
+
+ export interface Params$Resource$Projects$Locations$Reservationgrants$Create
+ extends StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
+
+ /**
+ * The parent resource name of the reservation grant E.g.: projects/myproject/location/eu.
+ */
+ parent?: string;
+
+ /**
+ * Request body metadata
+ */
+ requestBody?: Schema$ReservationGrant;
+ }
+ export interface Params$Resource$Projects$Locations$Reservationgrants$Delete
+ extends StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
+
+ /**
+ * Name of the resource, e.g.: projects/myproject/locations/eu/reservationGrants/123
+ */
+ name?: string;
+ }
+ export interface Params$Resource$Projects$Locations$Reservationgrants$List
+ extends StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
+
+ /**
+ * The maximum number of items to return.
+ */
+ pageSize?: number;
+ /**
+ * The next_page_token value returned from a previous List request, if any.
+ */
+ pageToken?: string;
+ /**
+ * The parent resource name e.g.: projects/myproject/location/eu.
+ */
+ parent?: string;
+ }
+
+ export class Resource$Projects$Locations$Reservations {
+ context: APIRequestContext;
+ slotPools: Resource$Projects$Locations$Reservations$Slotpools;
+ constructor(context: APIRequestContext) {
+ this.context = context;
+ this.slotPools = new Resource$Projects$Locations$Reservations$Slotpools(
+ this.context
+ );
+ }
+
+ /**
+ * bigqueryreservation.projects.locations.reservations.create
+ * @desc Creates a new reservation resource. Multiple reservations are created if the ancestor reservations do not exist.
+ * @alias bigqueryreservation.projects.locations.reservations.create
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.parent Project, location, and (optionally) reservation name. E.g., projects/myproject/locations/us-central1/reservations/parent
+ * @param {string=} params.reservationId The reservation ID relative to the parent, e.g., "dev". This field must only contain alphanumeric characters.
+ * @param {().Reservation} params.resource Request body data
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ create(
+ params?: Params$Resource$Projects$Locations$Reservations$Create,
+ options?: MethodOptions
+ ): GaxiosPromise;
+ create(
+ params: Params$Resource$Projects$Locations$Reservations$Create,
+ options: MethodOptions | BodyResponseCallback,
+ callback: BodyResponseCallback
+ ): void;
+ create(
+ params: Params$Resource$Projects$Locations$Reservations$Create,
+ callback: BodyResponseCallback
+ ): void;
+ create(callback: BodyResponseCallback): void;
+ create(
+ paramsOrCallback?:
+ | Params$Resource$Projects$Locations$Reservations$Create
+ | BodyResponseCallback,
+ optionsOrCallback?:
+ | MethodOptions
+ | BodyResponseCallback,
+ callback?: BodyResponseCallback
+ ): void | GaxiosPromise {
+ let params = (paramsOrCallback ||
+ {}) as Params$Resource$Projects$Locations$Reservations$Create;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Projects$Locations$Reservations$Create;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://bigqueryreservation.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1alpha2/{+parent}/reservations').replace(
+ /([^:]\/)\/+/g,
+ '$1'
+ ),
+ method: 'POST',
+ },
+ options
+ ),
+ params,
+ requiredParams: ['parent'],
+ pathParams: ['parent'],
+ context: this.context,
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+ /**
+ * bigqueryreservation.projects.locations.reservations.createReservation
+ * @desc Creates a new reservation resource. Multiple reservations are created if the ancestor reservations do not exist.
+ * @alias bigqueryreservation.projects.locations.reservations.createReservation
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.parent Project, location, and (optionally) reservation name. E.g., projects/myproject/locations/us-central1/reservations/parent
+ * @param {string=} params.reservationId The reservation ID relative to the parent, e.g., "dev". This field must only contain alphanumeric characters.
+ * @param {().Reservation} params.resource Request body data
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ createReservation(
+ params?: Params$Resource$Projects$Locations$Reservations$Createreservation,
+ options?: MethodOptions
+ ): GaxiosPromise;
+ createReservation(
+ params: Params$Resource$Projects$Locations$Reservations$Createreservation,
+ options: MethodOptions | BodyResponseCallback,
+ callback: BodyResponseCallback
+ ): void;
+ createReservation(
+ params: Params$Resource$Projects$Locations$Reservations$Createreservation,
+ callback: BodyResponseCallback
+ ): void;
+ createReservation(callback: BodyResponseCallback): void;
+ createReservation(
+ paramsOrCallback?:
+ | Params$Resource$Projects$Locations$Reservations$Createreservation
+ | BodyResponseCallback,
+ optionsOrCallback?:
+ | MethodOptions
+ | BodyResponseCallback,
+ callback?: BodyResponseCallback
+ ): void | GaxiosPromise {
+ let params = (paramsOrCallback ||
+ {}) as Params$Resource$Projects$Locations$Reservations$Createreservation;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Projects$Locations$Reservations$Createreservation;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://bigqueryreservation.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1alpha2/{+parent}').replace(
+ /([^:]\/)\/+/g,
+ '$1'
+ ),
+ method: 'POST',
+ },
+ options
+ ),
+ params,
+ requiredParams: ['parent'],
+ pathParams: ['parent'],
+ context: this.context,
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+ /**
+ * bigqueryreservation.projects.locations.reservations.delete
+ * @desc Deletes a reservation. Returns `google.rpc.Code.FAILED_PRECONDITION` in the following cases: 1. When reservation has child reservations. This check can be bypassed by setting DeleteReservationRequest.force flag to true. 2. When top-level reservation with slot pools is being deleted.
+ * @alias bigqueryreservation.projects.locations.reservations.delete
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {boolean=} params.force If true, deletes all the child reservations of the given reservation. Otherwise, attempting to delete a reservation that has child reservations will fail with error code `google.rpc.Code.FAILED_PRECONDITION`.
+ * @param {string} params.name Resource name of the reservation to retrieve. E.g., projects/myproject/locations/us-central1/reservations/my_reservation
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ delete(
+ params?: Params$Resource$Projects$Locations$Reservations$Delete,
+ options?: MethodOptions
+ ): GaxiosPromise;
+ delete(
+ params: Params$Resource$Projects$Locations$Reservations$Delete,
+ options: MethodOptions | BodyResponseCallback,
+ callback: BodyResponseCallback
+ ): void;
+ delete(
+ params: Params$Resource$Projects$Locations$Reservations$Delete,
+ callback: BodyResponseCallback
+ ): void;
+ delete(callback: BodyResponseCallback): void;
+ delete(
+ paramsOrCallback?:
+ | Params$Resource$Projects$Locations$Reservations$Delete
+ | BodyResponseCallback,
+ optionsOrCallback?: MethodOptions | BodyResponseCallback,
+ callback?: BodyResponseCallback
+ ): void | GaxiosPromise {
+ let params = (paramsOrCallback ||
+ {}) as Params$Resource$Projects$Locations$Reservations$Delete;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Projects$Locations$Reservations$Delete;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://bigqueryreservation.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'DELETE',
+ },
+ options
+ ),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.context,
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+ /**
+ * bigqueryreservation.projects.locations.reservations.get
+ * @desc Returns information about the reservation.
+ * @alias bigqueryreservation.projects.locations.reservations.get
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name Resource name of the reservation to retrieve. E.g., projects/myproject/locations/us-central1/reservations/path/to/reserv
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ get(
+ params?: Params$Resource$Projects$Locations$Reservations$Get,
+ options?: MethodOptions
+ ): GaxiosPromise;
+ get(
+ params: Params$Resource$Projects$Locations$Reservations$Get,
+ options: MethodOptions | BodyResponseCallback,
+ callback: BodyResponseCallback