diff --git a/src/apis/acceleratedmobilepageurl/v1.ts b/src/apis/acceleratedmobilepageurl/v1.ts index cc7150b48e3..2f49ab0e8da 100644 --- a/src/apis/acceleratedmobilepageurl/v1.ts +++ b/src/apis/acceleratedmobilepageurl/v1.ts @@ -189,7 +189,7 @@ export namespace acceleratedmobilepageurl_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().BatchGetAmpUrlsRequest} params.resource Request body data + * @param {().BatchGetAmpUrlsRequest} params.requestBody 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 diff --git a/src/apis/accessapproval/v1beta1.ts b/src/apis/accessapproval/v1beta1.ts index 32d2a7c15a2..96e9bcc9cb3 100644 --- a/src/apis/accessapproval/v1beta1.ts +++ b/src/apis/accessapproval/v1beta1.ts @@ -446,7 +446,7 @@ export namespace accessapproval_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name The resource name of the settings. Format is one of:
  1. "projects/{project_id}/accessApprovalSettings"
  2. "folders/{folder_id}/accessApprovalSettings"
  3. "organizations/{organization_id}/accessApprovalSettings"
    1. * @param {string=} params.updateMask 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 {().AccessApprovalSettings} params.requestBody 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 @@ -576,7 +576,7 @@ export namespace accessapproval_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the approval request to approve. - * @param {().ApproveApprovalRequestMessage} params.resource Request body data + * @param {().ApproveApprovalRequestMessage} params.requestBody 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 @@ -652,7 +652,7 @@ export namespace accessapproval_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the ApprovalRequest to dismiss. - * @param {().DismissApprovalRequestMessage} params.resource Request body data + * @param {().DismissApprovalRequestMessage} params.requestBody 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 @@ -1118,7 +1118,7 @@ export namespace accessapproval_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name The resource name of the settings. Format is one of:
      1. "projects/{project_id}/accessApprovalSettings"
      2. "folders/{folder_id}/accessApprovalSettings"
      3. "organizations/{organization_id}/accessApprovalSettings"
        1. * @param {string=} params.updateMask 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 {().AccessApprovalSettings} params.requestBody 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 @@ -1248,7 +1248,7 @@ export namespace accessapproval_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the approval request to approve. - * @param {().ApproveApprovalRequestMessage} params.resource Request body data + * @param {().ApproveApprovalRequestMessage} params.requestBody 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 @@ -1324,7 +1324,7 @@ export namespace accessapproval_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the ApprovalRequest to dismiss. - * @param {().DismissApprovalRequestMessage} params.resource Request body data + * @param {().DismissApprovalRequestMessage} params.requestBody 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 @@ -1790,7 +1790,7 @@ export namespace accessapproval_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name The resource name of the settings. Format is one of:
          1. "projects/{project_id}/accessApprovalSettings"
          2. "folders/{folder_id}/accessApprovalSettings"
          3. "organizations/{organization_id}/accessApprovalSettings"
            1. * @param {string=} params.updateMask 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 {().AccessApprovalSettings} params.requestBody 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 @@ -1920,7 +1920,7 @@ export namespace accessapproval_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the approval request to approve. - * @param {().ApproveApprovalRequestMessage} params.resource Request body data + * @param {().ApproveApprovalRequestMessage} params.requestBody 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 @@ -1996,7 +1996,7 @@ export namespace accessapproval_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the ApprovalRequest to dismiss. - * @param {().DismissApprovalRequestMessage} params.resource Request body data + * @param {().DismissApprovalRequestMessage} params.requestBody 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 diff --git a/src/apis/accesscontextmanager/v1.ts b/src/apis/accesscontextmanager/v1.ts index 8e8929ab147..1d3027b5168 100644 --- a/src/apis/accesscontextmanager/v1.ts +++ b/src/apis/accesscontextmanager/v1.ts @@ -433,7 +433,7 @@ export namespace accesscontextmanager_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AccessPolicy} params.resource Request body data + * @param {().AccessPolicy} params.requestBody 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 @@ -732,7 +732,7 @@ export namespace accesscontextmanager_v1 { * @param {object} params Parameters for request * @param {string} params.name Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}` * @param {string=} params.updateMask Required. Mask to control which fields get updated. Must be non-empty. - * @param {().AccessPolicy} params.resource Request body data + * @param {().AccessPolicy} params.requestBody 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 @@ -890,7 +890,7 @@ export namespace accesscontextmanager_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. Resource name for the access policy which owns this Access Level. Format: `accessPolicies/{policy_id}` - * @param {().AccessLevel} params.resource Request body data + * @param {().AccessLevel} params.requestBody 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 @@ -1192,7 +1192,7 @@ export namespace accesscontextmanager_v1 { * @param {object} params Parameters for request * @param {string} params.name Required. Resource name for the Access Level. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{policy_id}/accessLevels/{short_name}` * @param {string=} params.updateMask Required. Mask to control which fields get updated. Must be non-empty. - * @param {().AccessLevel} params.resource Request body data + * @param {().AccessLevel} params.requestBody 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 @@ -1363,7 +1363,7 @@ export namespace accesscontextmanager_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. Resource name for the access policy which owns this Service Perimeter. Format: `accessPolicies/{policy_id}` - * @param {().ServicePerimeter} params.resource Request body data + * @param {().ServicePerimeter} params.requestBody 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 @@ -1670,7 +1670,7 @@ export namespace accesscontextmanager_v1 { * @param {object} params Parameters for request * @param {string} params.name Required. Resource name for the ServicePerimeter. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{policy_id}/servicePerimeters/{short_name}` * @param {string=} params.updateMask Required. Mask to control which fields get updated. Must be non-empty. - * @param {().ServicePerimeter} params.resource Request body data + * @param {().ServicePerimeter} params.requestBody 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 @@ -1833,7 +1833,7 @@ export namespace accesscontextmanager_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the operation resource to be cancelled. - * @param {().CancelOperationRequest} params.resource Request body data + * @param {().CancelOperationRequest} params.requestBody 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 diff --git a/src/apis/accesscontextmanager/v1beta.ts b/src/apis/accesscontextmanager/v1beta.ts index 8e4ff6324ae..c35b4f70e54 100644 --- a/src/apis/accesscontextmanager/v1beta.ts +++ b/src/apis/accesscontextmanager/v1beta.ts @@ -433,7 +433,7 @@ export namespace accesscontextmanager_v1beta { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AccessPolicy} params.resource Request body data + * @param {().AccessPolicy} params.requestBody 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 @@ -738,7 +738,7 @@ export namespace accesscontextmanager_v1beta { * @param {object} params Parameters for request * @param {string} params.name Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}` * @param {string=} params.updateMask Required. Mask to control which fields get updated. Must be non-empty. - * @param {().AccessPolicy} params.resource Request body data + * @param {().AccessPolicy} params.requestBody 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 @@ -896,7 +896,7 @@ export namespace accesscontextmanager_v1beta { * * @param {object} params Parameters for request * @param {string} params.parent Required. Resource name for the access policy which owns this Access Level. Format: `accessPolicies/{policy_id}` - * @param {().AccessLevel} params.resource Request body data + * @param {().AccessLevel} params.requestBody 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 @@ -1198,7 +1198,7 @@ export namespace accesscontextmanager_v1beta { * @param {object} params Parameters for request * @param {string} params.name Required. Resource name for the Access Level. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{policy_id}/accessLevels/{short_name}` * @param {string=} params.updateMask Required. Mask to control which fields get updated. Must be non-empty. - * @param {().AccessLevel} params.resource Request body data + * @param {().AccessLevel} params.requestBody 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 @@ -1369,7 +1369,7 @@ export namespace accesscontextmanager_v1beta { * * @param {object} params Parameters for request * @param {string} params.parent Required. Resource name for the access policy which owns this Service Perimeter. Format: `accessPolicies/{policy_id}` - * @param {().ServicePerimeter} params.resource Request body data + * @param {().ServicePerimeter} params.requestBody 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 @@ -1676,7 +1676,7 @@ export namespace accesscontextmanager_v1beta { * @param {object} params Parameters for request * @param {string} params.name Required. Resource name for the ServicePerimeter. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{policy_id}/servicePerimeters/{short_name}` * @param {string=} params.updateMask Required. Mask to control which fields get updated. Must be non-empty. - * @param {().ServicePerimeter} params.resource Request body data + * @param {().ServicePerimeter} params.requestBody 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 diff --git a/src/apis/adexchangebuyer/v1.2.ts b/src/apis/adexchangebuyer/v1.2.ts index 91e1ef2f603..634eedb5cb6 100644 --- a/src/apis/adexchangebuyer/v1.2.ts +++ b/src/apis/adexchangebuyer/v1.2.ts @@ -430,7 +430,7 @@ export namespace adexchangebuyer_v1_2 { * * @param {object} params Parameters for request * @param {integer} params.id The account id - * @param {().Account} params.resource Request body data + * @param {().Account} params.requestBody 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 @@ -502,7 +502,7 @@ export namespace adexchangebuyer_v1_2 { * * @param {object} params Parameters for request * @param {integer} params.id The account id - * @param {().Account} params.resource Request body data + * @param {().Account} params.requestBody 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 @@ -702,7 +702,7 @@ export namespace adexchangebuyer_v1_2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Creative} params.resource Request body data + * @param {().Creative} params.requestBody 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 diff --git a/src/apis/adexchangebuyer/v1.3.ts b/src/apis/adexchangebuyer/v1.3.ts index 5fe967938ae..6a16bfed02c 100644 --- a/src/apis/adexchangebuyer/v1.3.ts +++ b/src/apis/adexchangebuyer/v1.3.ts @@ -606,6 +606,10 @@ export namespace adexchangebuyer_v1_3 { * Request containing any of these language codes will match. */ languages?: string[] | null; + /** + * The maximum QPS allocated to this pretargeting configuration, used for pretargeting-level QPS limits. By default, this is not set, which indicates that there is no QPS limit at the configuration level (a global or account-level limit may still be imposed). + */ + maximumQps?: string | null; /** * Requests containing any of these mobile carrier ids will match. Values are from mobile-carriers.csv in the downloadable files section. */ @@ -811,7 +815,7 @@ export namespace adexchangebuyer_v1_3 { * * @param {object} params Parameters for request * @param {integer} params.id The account id - * @param {().Account} params.resource Request body data + * @param {().Account} params.requestBody 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 @@ -883,7 +887,7 @@ export namespace adexchangebuyer_v1_3 { * * @param {object} params Parameters for request * @param {integer} params.id The account id - * @param {().Account} params.resource Request body data + * @param {().Account} params.requestBody 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 @@ -1254,7 +1258,7 @@ export namespace adexchangebuyer_v1_3 { * @param {object} params Parameters for request * @param {string} params.accountId The account id associated with the budget being updated. * @param {string} params.billingId The billing id associated with the budget being updated. - * @param {().Budget} params.resource Request body data + * @param {().Budget} params.requestBody 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 @@ -1327,7 +1331,7 @@ export namespace adexchangebuyer_v1_3 { * @param {object} params Parameters for request * @param {string} params.accountId The account id associated with the budget being updated. * @param {string} params.billingId The billing id associated with the budget being updated. - * @param {().Budget} params.resource Request body data + * @param {().Budget} params.requestBody 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 @@ -1533,7 +1537,7 @@ export namespace adexchangebuyer_v1_3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Creative} params.resource Request body data + * @param {().Creative} params.requestBody 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 @@ -2177,7 +2181,7 @@ export namespace adexchangebuyer_v1_3 { * * @param {object} params Parameters for request * @param {string} params.accountId The account id to insert the pretargeting config for. - * @param {().PretargetingConfig} params.resource Request body data + * @param {().PretargetingConfig} params.requestBody 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 @@ -2327,7 +2331,7 @@ export namespace adexchangebuyer_v1_3 { * @param {object} params Parameters for request * @param {string} params.accountId The account id to update the pretargeting config for. * @param {string} params.configId The specific id of the configuration to update. - * @param {().PretargetingConfig} params.resource Request body data + * @param {().PretargetingConfig} params.requestBody 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 @@ -2403,7 +2407,7 @@ export namespace adexchangebuyer_v1_3 { * @param {object} params Parameters for request * @param {string} params.accountId The account id to update the pretargeting config for. * @param {string} params.configId The specific id of the configuration to update. - * @param {().PretargetingConfig} params.resource Request body data + * @param {().PretargetingConfig} params.requestBody 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 diff --git a/src/apis/adexchangebuyer/v1.4.ts b/src/apis/adexchangebuyer/v1.4.ts index 035e399ad5f..ea5e45d7d84 100644 --- a/src/apis/adexchangebuyer/v1.4.ts +++ b/src/apis/adexchangebuyer/v1.4.ts @@ -1082,6 +1082,10 @@ export namespace adexchangebuyer_v1_4 { * Request containing any of these language codes will match. */ languages?: string[] | null; + /** + * The maximum QPS allocated to this pretargeting configuration, used for pretargeting-level QPS limits. By default, this is not set, which indicates that there is no QPS limit at the configuration level (a global or account-level limit may still be imposed). + */ + maximumQps?: string | null; /** * Requests where the predicted viewability is below the specified decile will not match. E.g. if the buyer sets this value to 5, requests from slots where the predicted viewability is below 50% will not match. If the predicted viewability is unknown this field will be ignored. */ @@ -1779,7 +1783,7 @@ export namespace adexchangebuyer_v1_4 { * @param {object} params Parameters for request * @param {boolean=} params.confirmUnsafeAccountChange Confirmation for erasing bidder and cookie matching urls. * @param {integer} params.id The account id - * @param {().Account} params.resource Request body data + * @param {().Account} params.requestBody 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 @@ -1852,7 +1856,7 @@ export namespace adexchangebuyer_v1_4 { * @param {object} params Parameters for request * @param {boolean=} params.confirmUnsafeAccountChange Confirmation for erasing bidder and cookie matching urls. * @param {integer} params.id The account id - * @param {().Account} params.resource Request body data + * @param {().Account} params.requestBody 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 @@ -2231,7 +2235,7 @@ export namespace adexchangebuyer_v1_4 { * @param {object} params Parameters for request * @param {string} params.accountId The account id associated with the budget being updated. * @param {string} params.billingId The billing id associated with the budget being updated. - * @param {().Budget} params.resource Request body data + * @param {().Budget} params.requestBody 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 @@ -2304,7 +2308,7 @@ export namespace adexchangebuyer_v1_4 { * @param {object} params Parameters for request * @param {string} params.accountId The account id associated with the budget being updated. * @param {string} params.billingId The billing id associated with the budget being updated. - * @param {().Budget} params.resource Request body data + * @param {().Budget} params.requestBody 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 @@ -2584,7 +2588,7 @@ export namespace adexchangebuyer_v1_4 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Creative} params.resource Request body data + * @param {().Creative} params.requestBody 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 @@ -3004,7 +3008,7 @@ export namespace adexchangebuyer_v1_4 { * * @param {object} params Parameters for request * @param {string} params.proposalId The proposalId to delete deals from. - * @param {().DeleteOrderDealsRequest} params.resource Request body data + * @param {().DeleteOrderDealsRequest} params.requestBody 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 @@ -3083,7 +3087,7 @@ export namespace adexchangebuyer_v1_4 { * * @param {object} params Parameters for request * @param {string} params.proposalId proposalId for which deals need to be added. - * @param {().AddOrderDealsRequest} params.resource Request body data + * @param {().AddOrderDealsRequest} params.requestBody 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 @@ -3236,7 +3240,7 @@ export namespace adexchangebuyer_v1_4 { * * @param {object} params Parameters for request * @param {string} params.proposalId The proposalId to edit deals on. - * @param {().EditAllOrderDealsRequest} params.resource Request body data + * @param {().EditAllOrderDealsRequest} params.requestBody 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 @@ -3393,7 +3397,7 @@ export namespace adexchangebuyer_v1_4 { * * @param {object} params Parameters for request * @param {string} params.proposalId The proposalId to add notes for. - * @param {().AddOrderNotesRequest} params.resource Request body data + * @param {().AddOrderNotesRequest} params.requestBody 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 @@ -3587,7 +3591,7 @@ export namespace adexchangebuyer_v1_4 { * * @param {object} params Parameters for request * @param {string} params.privateAuctionId The private auction id to be updated. - * @param {().UpdatePrivateAuctionProposalRequest} params.resource Request body data + * @param {().UpdatePrivateAuctionProposalRequest} params.requestBody 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 @@ -3949,7 +3953,7 @@ export namespace adexchangebuyer_v1_4 { * * @param {object} params Parameters for request * @param {string} params.accountId The account id to insert the pretargeting config for. - * @param {().PretargetingConfig} params.resource Request body data + * @param {().PretargetingConfig} params.requestBody 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 @@ -4099,7 +4103,7 @@ export namespace adexchangebuyer_v1_4 { * @param {object} params Parameters for request * @param {string} params.accountId The account id to update the pretargeting config for. * @param {string} params.configId The specific id of the configuration to update. - * @param {().PretargetingConfig} params.resource Request body data + * @param {().PretargetingConfig} params.requestBody 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 @@ -4175,7 +4179,7 @@ export namespace adexchangebuyer_v1_4 { * @param {object} params Parameters for request * @param {string} params.accountId The account id to update the pretargeting config for. * @param {string} params.configId The specific id of the configuration to update. - * @param {().PretargetingConfig} params.resource Request body data + * @param {().PretargetingConfig} params.requestBody 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 @@ -4603,7 +4607,7 @@ export namespace adexchangebuyer_v1_4 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().CreateOrdersRequest} params.resource Request body data + * @param {().CreateOrdersRequest} params.requestBody 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 @@ -4681,7 +4685,7 @@ export namespace adexchangebuyer_v1_4 { * @param {string} params.proposalId The proposal id to update. * @param {string} params.revisionNumber The last known revision number to update. If the head revision in the marketplace database has since changed, an error will be thrown. The caller should then fetch the latest proposal at head revision and retry the update at that revision. * @param {string} params.updateAction The proposed action to take on the proposal. This field is required and it must be set when updating a proposal. - * @param {().Proposal} params.resource Request body data + * @param {().Proposal} params.requestBody 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 @@ -4900,7 +4904,7 @@ export namespace adexchangebuyer_v1_4 { * @param {string} params.proposalId The proposal id to update. * @param {string} params.revisionNumber The last known revision number to update. If the head revision in the marketplace database has since changed, an error will be thrown. The caller should then fetch the latest proposal at head revision and retry the update at that revision. * @param {string} params.updateAction The proposed action to take on the proposal. This field is required and it must be set when updating a proposal. - * @param {().Proposal} params.resource Request body data + * @param {().Proposal} params.requestBody 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 diff --git a/src/apis/adexchangebuyer2/v2beta1.ts b/src/apis/adexchangebuyer2/v2beta1.ts index 106e9c10b03..72cfb09a37a 100644 --- a/src/apis/adexchangebuyer2/v2beta1.ts +++ b/src/apis/adexchangebuyer2/v2beta1.ts @@ -2129,7 +2129,7 @@ export namespace adexchangebuyer2_v2beta1 { * * @param {object} params Parameters for request * @param {string} params.accountId Unique numerical account ID for the buyer of which the client buyer is a customer; the sponsor buyer to create a client for. (required) - * @param {().Client} params.resource Request body data + * @param {().Client} params.requestBody 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 @@ -2356,7 +2356,7 @@ export namespace adexchangebuyer2_v2beta1 { * @param {object} params Parameters for request * @param {string} params.accountId Unique numerical account ID for the buyer of which the client buyer is a customer; the sponsor buyer to update a client for. (required) * @param {string} params.clientAccountId Unique numerical account ID of the client to update. (required) - * @param {().Client} params.resource Request body data + * @param {().Client} params.requestBody 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 @@ -2517,7 +2517,7 @@ export namespace adexchangebuyer2_v2beta1 { * @param {object} params Parameters for request * @param {string} params.accountId Numerical account ID of the client's sponsor buyer. (required) * @param {string} params.clientAccountId Numerical account ID of the client buyer that the user should be associated with. (required) - * @param {().ClientUserInvitation} params.resource Request body data + * @param {().ClientUserInvitation} params.requestBody 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 @@ -2993,7 +2993,7 @@ export namespace adexchangebuyer2_v2beta1 { * @param {string} params.accountId Numerical account ID of the client's sponsor buyer. (required) * @param {string} params.clientAccountId Numerical account ID of the client buyer that the user to be retrieved is associated with. (required) * @param {string} params.userId Numerical identifier of the user to retrieve. (required) - * @param {().ClientUser} params.resource Request body data + * @param {().ClientUser} params.requestBody 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 @@ -3151,7 +3151,7 @@ export namespace adexchangebuyer2_v2beta1 { * @param {object} params Parameters for request * @param {string} params.accountId The account that this creative belongs to. Can be used to filter the response of the creatives.list method. * @param {string=} params.duplicateIdMode Indicates if multiple creatives can share an ID or not. Default is NO_DUPLICATES (one ID per creative). - * @param {().Creative} params.resource Request body data + * @param {().Creative} params.requestBody 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 @@ -3379,7 +3379,7 @@ export namespace adexchangebuyer2_v2beta1 { * @param {object} params Parameters for request * @param {string} params.accountId The account of the creative to stop notifications for. * @param {string} params.creativeId The creative ID of the creative to stop notifications for. Specify "-" to specify stopping account level notifications. - * @param {().StopWatchingCreativeRequest} params.resource Request body data + * @param {().StopWatchingCreativeRequest} params.requestBody 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 @@ -3454,7 +3454,7 @@ export namespace adexchangebuyer2_v2beta1 { * @param {object} params Parameters for request * @param {string} params.accountId The account that this creative belongs to. Can be used to filter the response of the creatives.list method. * @param {string} params.creativeId The buyer-defined creative ID of this creative. Can be used to filter the response of the creatives.list method. - * @param {().Creative} params.resource Request body data + * @param {().Creative} params.requestBody 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 @@ -3528,7 +3528,7 @@ export namespace adexchangebuyer2_v2beta1 { * @param {object} params Parameters for request * @param {string} params.accountId The account of the creative to watch. * @param {string} params.creativeId The creative ID to watch for status changes. Specify "-" to watch all creatives under the above account. If both creative-level and account-level notifications are sent, only a single notification will be sent to the creative-level notification topic. - * @param {().WatchCreativeRequest} params.resource Request body data + * @param {().WatchCreativeRequest} params.requestBody 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 @@ -3735,7 +3735,7 @@ export namespace adexchangebuyer2_v2beta1 { * @param {object} params Parameters for request * @param {string} params.accountId The account the creative belongs to. * @param {string} params.creativeId The ID of the creative associated with the deal. - * @param {().AddDealAssociationRequest} params.resource Request body data + * @param {().AddDealAssociationRequest} params.requestBody 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 @@ -3898,7 +3898,7 @@ export namespace adexchangebuyer2_v2beta1 { * @param {object} params Parameters for request * @param {string} params.accountId The account the creative belongs to. * @param {string} params.creativeId The ID of the creative associated with the deal. - * @param {().RemoveDealAssociationRequest} params.resource Request body data + * @param {().RemoveDealAssociationRequest} params.requestBody 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 @@ -4368,7 +4368,7 @@ export namespace adexchangebuyer2_v2beta1 { * @param {object} params Parameters for request * @param {string} params.accountId Account ID of the buyer. * @param {string} params.proposalId The ID of the proposal to accept. - * @param {().AcceptProposalRequest} params.resource Request body data + * @param {().AcceptProposalRequest} params.requestBody 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 @@ -4443,7 +4443,7 @@ export namespace adexchangebuyer2_v2beta1 { * @param {object} params Parameters for request * @param {string} params.accountId Account ID of the buyer. * @param {string} params.proposalId The ID of the proposal to attach the note to. - * @param {().AddNoteRequest} params.resource Request body data + * @param {().AddNoteRequest} params.requestBody 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 @@ -4518,7 +4518,7 @@ export namespace adexchangebuyer2_v2beta1 { * @param {object} params Parameters for request * @param {string} params.accountId Account ID of the buyer. * @param {string} params.proposalId The ID of the proposal to cancel negotiation for. - * @param {().CancelNegotiationRequest} params.resource Request body data + * @param {().CancelNegotiationRequest} params.requestBody 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 @@ -4593,7 +4593,7 @@ export namespace adexchangebuyer2_v2beta1 { * @param {object} params Parameters for request * @param {string} params.accountId Account ID of the buyer. * @param {string} params.proposalId The ID of the proposal to mark as setup completed. - * @param {().CompleteSetupRequest} params.resource Request body data + * @param {().CompleteSetupRequest} params.requestBody 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 @@ -4667,7 +4667,7 @@ export namespace adexchangebuyer2_v2beta1 { * * @param {object} params Parameters for request * @param {string} params.accountId Account ID of the buyer. - * @param {().Proposal} params.resource Request body data + * @param {().Proposal} params.requestBody 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 @@ -4896,7 +4896,7 @@ export namespace adexchangebuyer2_v2beta1 { * @param {object} params Parameters for request * @param {string} params.accountId Account ID of the buyer. * @param {string} params.proposalId The ID of the proposal to pause. - * @param {().PauseProposalRequest} params.resource Request body data + * @param {().PauseProposalRequest} params.requestBody 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 @@ -4971,7 +4971,7 @@ export namespace adexchangebuyer2_v2beta1 { * @param {object} params Parameters for request * @param {string} params.accountId Account ID of the buyer. * @param {string} params.proposalId The ID of the proposal to resume. - * @param {().ResumeProposalRequest} params.resource Request body data + * @param {().ResumeProposalRequest} params.requestBody 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 @@ -5046,7 +5046,7 @@ export namespace adexchangebuyer2_v2beta1 { * @param {object} params Parameters for request * @param {string} params.accountId Account ID of the buyer. * @param {string} params.proposalId The unique ID of the proposal. - * @param {().Proposal} params.resource Request body data + * @param {().Proposal} params.requestBody 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 @@ -5593,7 +5593,7 @@ export namespace adexchangebuyer2_v2beta1 { * @param {object} params Parameters for request * @param {boolean=} params.isTransient Whether the filter set is transient, or should be persisted indefinitely. By default, filter sets are not transient. If transient, it will be available for at least 1 hour after creation. * @param {string} params.ownerName Name of the owner (bidder or account) of the filter set to be created. For example: - For a bidder-level filter set for bidder 123: `bidders/123` - For an account-level filter set for the buyer account representing bidder 123: `bidders/123/accounts/123` - For an account-level filter set for the child seat buyer account 456 whose bidder is 123: `bidders/123/accounts/456` - * @param {().FilterSet} params.resource Request body data + * @param {().FilterSet} params.requestBody 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 @@ -7162,7 +7162,7 @@ export namespace adexchangebuyer2_v2beta1 { * @param {object} params Parameters for request * @param {boolean=} params.isTransient Whether the filter set is transient, or should be persisted indefinitely. By default, filter sets are not transient. If transient, it will be available for at least 1 hour after creation. * @param {string} params.ownerName Name of the owner (bidder or account) of the filter set to be created. For example: - For a bidder-level filter set for bidder 123: `bidders/123` - For an account-level filter set for the buyer account representing bidder 123: `bidders/123/accounts/123` - For an account-level filter set for the child seat buyer account 456 whose bidder is 123: `bidders/123/accounts/456` - * @param {().FilterSet} params.resource Request body data + * @param {().FilterSet} params.requestBody 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 diff --git a/src/apis/admin/datatransfer_v1.ts b/src/apis/admin/datatransfer_v1.ts index 47feec78052..13707ab3a66 100644 --- a/src/apis/admin/datatransfer_v1.ts +++ b/src/apis/admin/datatransfer_v1.ts @@ -510,7 +510,7 @@ export namespace admin_datatransfer_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().DataTransfer} params.resource Request body data + * @param {().DataTransfer} params.requestBody 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 diff --git a/src/apis/admin/directory_v1.ts b/src/apis/admin/directory_v1.ts index 1b284113c61..c5802a9eec0 100644 --- a/src/apis/admin/directory_v1.ts +++ b/src/apis/admin/directory_v1.ts @@ -2677,7 +2677,7 @@ export namespace admin_directory_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Channel} params.resource Request body data + * @param {().Channel} params.requestBody 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 @@ -2768,7 +2768,7 @@ export namespace admin_directory_v1 { * @param {object} params Parameters for request * @param {string} params.customerId Immutable ID of the G Suite account * @param {string} params.resourceId Immutable ID of Chrome OS Device - * @param {().ChromeOsDeviceAction} params.resource Request body data + * @param {().ChromeOsDeviceAction} params.requestBody 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 @@ -2999,7 +2999,7 @@ export namespace admin_directory_v1 { * @param {object} params Parameters for request * @param {string} params.customerId Immutable ID of the G Suite account * @param {string} params.orgUnitPath Full path of the target organizational unit or its ID - * @param {().ChromeOsMoveDevicesToOu} params.resource Request body data + * @param {().ChromeOsMoveDevicesToOu} params.requestBody 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 @@ -3074,7 +3074,7 @@ export namespace admin_directory_v1 { * @param {string} params.customerId Immutable ID of the G Suite account * @param {string} params.deviceId Immutable ID of Chrome OS Device * @param {string=} params.projection Restrict information returned to a set of selected fields. - * @param {().ChromeOsDevice} params.resource Request body data + * @param {().ChromeOsDevice} params.requestBody 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 @@ -3151,7 +3151,7 @@ export namespace admin_directory_v1 { * @param {string} params.customerId Immutable ID of the G Suite account * @param {string} params.deviceId Immutable ID of Chrome OS Device * @param {string=} params.projection Restrict information returned to a set of selected fields. - * @param {().ChromeOsDevice} params.resource Request body data + * @param {().ChromeOsDevice} params.requestBody 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 @@ -3456,7 +3456,7 @@ export namespace admin_directory_v1 { * * @param {object} params Parameters for request * @param {string} params.customerKey Id of the customer to be updated - * @param {().Customer} params.resource Request body data + * @param {().Customer} params.requestBody 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 @@ -3527,7 +3527,7 @@ export namespace admin_directory_v1 { * * @param {object} params Parameters for request * @param {string} params.customerKey Id of the customer to be updated - * @param {().Customer} params.resource Request body data + * @param {().Customer} params.requestBody 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 @@ -3797,7 +3797,7 @@ export namespace admin_directory_v1 { * * @param {object} params Parameters for request * @param {string} params.customer Immutable ID of the G Suite account. - * @param {().DomainAlias} params.resource Request body data + * @param {().DomainAlias} params.requestBody 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 @@ -4162,7 +4162,7 @@ export namespace admin_directory_v1 { * * @param {object} params Parameters for request * @param {string} params.customer Immutable ID of the G Suite account. - * @param {().Domains} params.resource Request body data + * @param {().Domains} params.requestBody 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 @@ -4511,7 +4511,7 @@ export namespace admin_directory_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Group} params.resource Request body data + * @param {().Group} params.requestBody 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 @@ -4661,7 +4661,7 @@ export namespace admin_directory_v1 { * * @param {object} params Parameters for request * @param {string} params.groupKey Email or immutable ID of the group. If ID, it should match with id of group object - * @param {().Group} params.resource Request body data + * @param {().Group} params.requestBody 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 @@ -4733,7 +4733,7 @@ export namespace admin_directory_v1 { * * @param {object} params Parameters for request * @param {string} params.groupKey Email or immutable ID of the group. If ID, it should match with id of group object - * @param {().Group} params.resource Request body data + * @param {().Group} params.requestBody 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 @@ -4989,7 +4989,7 @@ export namespace admin_directory_v1 { * * @param {object} params Parameters for request * @param {string} params.groupKey Email or immutable ID of the group - * @param {().Alias} params.resource Request body data + * @param {().Alias} params.requestBody 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 @@ -5404,7 +5404,7 @@ export namespace admin_directory_v1 { * * @param {object} params Parameters for request * @param {string} params.groupKey Email or immutable ID of the group - * @param {().Member} params.resource Request body data + * @param {().Member} params.requestBody 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 @@ -5550,7 +5550,7 @@ export namespace admin_directory_v1 { * @param {object} params Parameters for request * @param {string} params.groupKey Email or immutable ID of the group. If ID, it should match with id of group object * @param {string} params.memberKey Email or immutable ID of the user. If ID, it should match with id of member object - * @param {().Member} params.resource Request body data + * @param {().Member} params.requestBody 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 @@ -5623,7 +5623,7 @@ export namespace admin_directory_v1 { * @param {object} params Parameters for request * @param {string} params.groupKey Email or immutable ID of the group. If ID, it should match with id of group object * @param {string} params.memberKey Email or immutable ID of the user. If ID, it should match with id of member object - * @param {().Member} params.resource Request body data + * @param {().Member} params.requestBody 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 @@ -5833,7 +5833,7 @@ export namespace admin_directory_v1 { * @param {object} params Parameters for request * @param {string} params.customerId Immutable ID of the G Suite account * @param {string} params.resourceId Immutable ID of Mobile Device - * @param {().MobileDeviceAction} params.resource Request body data + * @param {().MobileDeviceAction} params.requestBody 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 @@ -6461,7 +6461,7 @@ export namespace admin_directory_v1 { * @param {object} params Parameters for request * @param {string} params.customer The unique ID for the customer's G Suite account. * @param {string} params.notificationId The unique ID of the notification. - * @param {().Notification} params.resource Request body data + * @param {().Notification} params.requestBody 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 @@ -6537,7 +6537,7 @@ export namespace admin_directory_v1 { * @param {object} params Parameters for request * @param {string} params.customer The unique ID for the customer's G Suite account. * @param {string} params.notificationId The unique ID of the notification. - * @param {().Notification} params.resource Request body data + * @param {().Notification} params.requestBody 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 @@ -6862,7 +6862,7 @@ export namespace admin_directory_v1 { * * @param {object} params Parameters for request * @param {string} params.customerId Immutable ID of the G Suite account - * @param {().OrgUnit} params.resource Request body data + * @param {().OrgUnit} params.requestBody 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 @@ -7006,7 +7006,7 @@ export namespace admin_directory_v1 { * @param {object} params Parameters for request * @param {string} params.customerId Immutable ID of the G Suite account * @param {string} params.orgUnitPath Full path of the organizational unit or its ID - * @param {().OrgUnit} params.resource Request body data + * @param {().OrgUnit} params.requestBody 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 @@ -7079,7 +7079,7 @@ export namespace admin_directory_v1 { * @param {object} params Parameters for request * @param {string} params.customerId Immutable ID of the G Suite account * @param {string} params.orgUnitPath Full path of the organizational unit or its ID - * @param {().OrgUnit} params.resource Request body data + * @param {().OrgUnit} params.requestBody 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 @@ -7687,7 +7687,7 @@ export namespace admin_directory_v1 { * @param {object} params Parameters for request * @param {string=} params.coordinatesSource Source from which Building.coordinates are derived. * @param {string} params.customer The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID. - * @param {().Building} params.resource Request body data + * @param {().Building} params.requestBody 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 @@ -7838,7 +7838,7 @@ export namespace admin_directory_v1 { * @param {string} params.buildingId The ID of the building to update. * @param {string=} params.coordinatesSource Source from which Building.coordinates are derived. * @param {string} params.customer The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID. - * @param {().Building} params.resource Request body data + * @param {().Building} params.requestBody 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 @@ -7913,7 +7913,7 @@ export namespace admin_directory_v1 { * @param {string} params.buildingId The ID of the building to update. * @param {string=} params.coordinatesSource Source from which Building.coordinates are derived. * @param {string} params.customer The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID. - * @param {().Building} params.resource Request body data + * @param {().Building} params.requestBody 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 @@ -8265,7 +8265,7 @@ export namespace admin_directory_v1 { * * @param {object} params Parameters for request * @param {string} params.customer The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID. - * @param {().CalendarResource} params.resource Request body data + * @param {().CalendarResource} params.requestBody 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 @@ -8419,7 +8419,7 @@ export namespace admin_directory_v1 { * @param {object} params Parameters for request * @param {string} params.calendarResourceId The unique ID of the calendar resource to update. * @param {string} params.customer The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID. - * @param {().CalendarResource} params.resource Request body data + * @param {().CalendarResource} params.requestBody 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 @@ -8495,7 +8495,7 @@ export namespace admin_directory_v1 { * @param {object} params Parameters for request * @param {string} params.calendarResourceId The unique ID of the calendar resource to update. * @param {string} params.customer The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID. - * @param {().CalendarResource} params.resource Request body data + * @param {().CalendarResource} params.requestBody 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 @@ -8843,7 +8843,7 @@ export namespace admin_directory_v1 { * * @param {object} params Parameters for request * @param {string} params.customer The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID. - * @param {().Feature} params.resource Request body data + * @param {().Feature} params.requestBody 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 @@ -8991,7 +8991,7 @@ export namespace admin_directory_v1 { * @param {object} params Parameters for request * @param {string} params.customer The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID. * @param {string} params.featureKey The unique ID of the feature to update. - * @param {().Feature} params.resource Request body data + * @param {().Feature} params.requestBody 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 @@ -9065,7 +9065,7 @@ export namespace admin_directory_v1 { * @param {object} params Parameters for request * @param {string} params.customer The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID. * @param {string} params.oldName The unique ID of the feature to rename. - * @param {().FeatureRename} params.resource Request body data + * @param {().FeatureRename} params.requestBody 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 @@ -9139,7 +9139,7 @@ export namespace admin_directory_v1 { * @param {object} params Parameters for request * @param {string} params.customer The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID. * @param {string} params.featureKey The unique ID of the feature to update. - * @param {().Feature} params.resource Request body data + * @param {().Feature} params.requestBody 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 @@ -9500,7 +9500,7 @@ export namespace admin_directory_v1 { * * @param {object} params Parameters for request * @param {string} params.customer Immutable ID of the G Suite account. - * @param {().RoleAssignment} params.resource Request body data + * @param {().RoleAssignment} params.requestBody 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 @@ -9880,7 +9880,7 @@ export namespace admin_directory_v1 { * * @param {object} params Parameters for request * @param {string} params.customer Immutable ID of the G Suite account. - * @param {().Role} params.resource Request body data + * @param {().Role} params.requestBody 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 @@ -10024,7 +10024,7 @@ export namespace admin_directory_v1 { * @param {object} params Parameters for request * @param {string} params.customer Immutable ID of the G Suite account. * @param {string} params.roleId Immutable ID of the role. - * @param {().Role} params.resource Request body data + * @param {().Role} params.requestBody 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 @@ -10096,7 +10096,7 @@ export namespace admin_directory_v1 { * @param {object} params Parameters for request * @param {string} params.customer Immutable ID of the G Suite account. * @param {string} params.roleId Immutable ID of the role. - * @param {().Role} params.resource Request body data + * @param {().Role} params.requestBody 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 @@ -10424,7 +10424,7 @@ export namespace admin_directory_v1 { * * @param {object} params Parameters for request * @param {string} params.customerId Immutable ID of the G Suite account - * @param {().Schema} params.resource Request body data + * @param {().Schema} params.requestBody 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 @@ -10566,7 +10566,7 @@ export namespace admin_directory_v1 { * @param {object} params Parameters for request * @param {string} params.customerId Immutable ID of the G Suite account * @param {string} params.schemaKey Name or immutable ID of the schema. - * @param {().Schema} params.resource Request body data + * @param {().Schema} params.requestBody 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 @@ -10639,7 +10639,7 @@ export namespace admin_directory_v1 { * @param {object} params Parameters for request * @param {string} params.customerId Immutable ID of the G Suite account * @param {string} params.schemaKey Name or immutable ID of the schema. - * @param {().Schema} params.resource Request body data + * @param {().Schema} params.requestBody 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 @@ -11225,7 +11225,7 @@ export namespace admin_directory_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().User} params.resource Request body data + * @param {().User} params.requestBody 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 @@ -11379,7 +11379,7 @@ export namespace admin_directory_v1 { * * @param {object} params Parameters for request * @param {string} params.userKey Email or immutable ID of the user as admin - * @param {().UserMakeAdmin} params.resource Request body data + * @param {().UserMakeAdmin} params.requestBody 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 @@ -11450,7 +11450,7 @@ export namespace admin_directory_v1 { * * @param {object} params Parameters for request * @param {string} params.userKey Email or immutable ID of the user. If ID, it should match with id of user object - * @param {().User} params.resource Request body data + * @param {().User} params.requestBody 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 @@ -11522,7 +11522,7 @@ export namespace admin_directory_v1 { * * @param {object} params Parameters for request * @param {string} params.userKey The immutable id of the user - * @param {().UserUndelete} params.resource Request body data + * @param {().UserUndelete} params.requestBody 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 @@ -11593,7 +11593,7 @@ export namespace admin_directory_v1 { * * @param {object} params Parameters for request * @param {string} params.userKey Email or immutable ID of the user. If ID, it should match with id of user object - * @param {().User} params.resource Request body data + * @param {().User} params.requestBody 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 @@ -11676,7 +11676,7 @@ export namespace admin_directory_v1 { * @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 + * @param {().Channel} params.requestBody 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 @@ -12052,7 +12052,7 @@ export namespace admin_directory_v1 { * * @param {object} params Parameters for request * @param {string} params.userKey Email or immutable ID of the user - * @param {().Alias} params.resource Request body data + * @param {().Alias} params.requestBody 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 @@ -12197,7 +12197,7 @@ export namespace admin_directory_v1 { * @param {object} params Parameters for request * @param {string=} params.event Event on which subscription is intended (if subscribing) * @param {string} params.userKey Email or immutable ID of the user - * @param {().Channel} params.resource Request body data + * @param {().Channel} params.requestBody 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 @@ -12490,7 +12490,7 @@ export namespace admin_directory_v1 { * * @param {object} params Parameters for request * @param {string} params.userKey Email or immutable ID of the user - * @param {().UserPhoto} params.resource Request body data + * @param {().UserPhoto} params.requestBody 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 @@ -12564,7 +12564,7 @@ export namespace admin_directory_v1 { * * @param {object} params Parameters for request * @param {string} params.userKey Email or immutable ID of the user - * @param {().UserPhoto} params.resource Request body data + * @param {().UserPhoto} params.requestBody 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 diff --git a/src/apis/admin/reports_v1.ts b/src/apis/admin/reports_v1.ts index a22ab8c1f14..60f430f8d82 100644 --- a/src/apis/admin/reports_v1.ts +++ b/src/apis/admin/reports_v1.ts @@ -436,7 +436,7 @@ export namespace admin_reports_v1 { * @param {string=} params.pageToken The token to specify next page. A report with multiple pages has a nextPageToken property in the response. In your follow-on request getting the next page of the report, enter the nextPageToken value in the pageToken query string. * @param {string=} params.startTime Sets the beginning of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The report returns all activities from startTime until endTime. The startTime must be before the endTime (if specified) and the current time when the request is made, or the API returns an error. * @param {string} params.userKey Represents the profile ID or the user email for which the data should be filtered. Can be all for all information, or userKey for a user's unique G Suite profile ID or their primary email address. - * @param {().Channel} params.resource Request body data + * @param {().Channel} params.requestBody 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 @@ -622,7 +622,7 @@ export namespace admin_reports_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Channel} params.resource Request body data + * @param {().Channel} params.requestBody 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 diff --git a/src/apis/adsensehost/v4.1.ts b/src/apis/adsensehost/v4.1.ts index 05b8d5407f0..8724eff27f3 100644 --- a/src/apis/adsensehost/v4.1.ts +++ b/src/apis/adsensehost/v4.1.ts @@ -1021,7 +1021,7 @@ export namespace adsensehost_v4_1 { * @param {object} params Parameters for request * @param {string} params.accountId Account which will contain the ad unit. * @param {string} params.adClientId Ad client into which to insert the ad unit. - * @param {().AdUnit} params.resource Request body data + * @param {().AdUnit} params.requestBody 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 @@ -1172,7 +1172,7 @@ export namespace adsensehost_v4_1 { * @param {string} params.accountId Account which contains the ad client. * @param {string} params.adClientId Ad client which contains the ad unit. * @param {string} params.adUnitId Ad unit to get. - * @param {().AdUnit} params.resource Request body data + * @param {().AdUnit} params.requestBody 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 @@ -1246,7 +1246,7 @@ export namespace adsensehost_v4_1 { * @param {object} params Parameters for request * @param {string} params.accountId Account which contains the ad client. * @param {string} params.adClientId Ad client which contains the ad unit. - * @param {().AdUnit} params.resource Request body data + * @param {().AdUnit} params.requestBody 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 @@ -2144,7 +2144,7 @@ export namespace adsensehost_v4_1 { * * @param {object} params Parameters for request * @param {string} params.adClientId Ad client to which the new custom channel will be added. - * @param {().CustomChannel} params.resource Request body data + * @param {().CustomChannel} params.requestBody 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 @@ -2296,7 +2296,7 @@ export namespace adsensehost_v4_1 { * @param {object} params Parameters for request * @param {string} params.adClientId Ad client in which the custom channel will be updated. * @param {string} params.customChannelId Custom channel to get. - * @param {().CustomChannel} params.resource Request body data + * @param {().CustomChannel} params.requestBody 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 @@ -2371,7 +2371,7 @@ export namespace adsensehost_v4_1 { * * @param {object} params Parameters for request * @param {string} params.adClientId Ad client in which the custom channel will be updated. - * @param {().CustomChannel} params.resource Request body data + * @param {().CustomChannel} params.requestBody 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 @@ -2766,7 +2766,7 @@ export namespace adsensehost_v4_1 { * * @param {object} params Parameters for request * @param {string} params.adClientId Ad client to which the new URL channel will be added. - * @param {().UrlChannel} params.resource Request body data + * @param {().UrlChannel} params.requestBody 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 diff --git a/src/apis/alertcenter/v1beta1.ts b/src/apis/alertcenter/v1beta1.ts index 6b7ccc23f4d..2fddb1bbb6a 100644 --- a/src/apis/alertcenter/v1beta1.ts +++ b/src/apis/alertcenter/v1beta1.ts @@ -788,7 +788,7 @@ export namespace alertcenter_v1beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().BatchDeleteAlertsRequest} params.resource Request body data + * @param {().BatchDeleteAlertsRequest} params.requestBody 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 @@ -869,7 +869,7 @@ export namespace alertcenter_v1beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().BatchUndeleteAlertsRequest} params.resource Request body data + * @param {().BatchUndeleteAlertsRequest} params.requestBody 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 @@ -1244,7 +1244,7 @@ export namespace alertcenter_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.alertId Required. The identifier of the alert to undelete. - * @param {().UndeleteAlertRequest} params.resource Request body data + * @param {().UndeleteAlertRequest} params.requestBody 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 @@ -1438,7 +1438,7 @@ export namespace alertcenter_v1beta1 { * @param {object} params Parameters for request * @param {string} params.alertId Required. The identifier of the alert this feedback belongs to. * @param {string=} params.customerId Optional. The unique identifier of the G Suite organization account of the customer the alert is associated with. Inferred from the caller identity if not provided. - * @param {().AlertFeedback} params.resource Request body data + * @param {().AlertFeedback} params.requestBody 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 @@ -1714,7 +1714,7 @@ export namespace alertcenter_v1beta1 { * * @param {object} params Parameters for request * @param {string=} params.customerId Optional. The unique identifier of the G Suite organization account of the customer the alert settings are associated with. Inferred from the caller identity if not provided. - * @param {().Settings} params.resource Request body data + * @param {().Settings} params.requestBody 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 diff --git a/src/apis/analytics/v3.ts b/src/apis/analytics/v3.ts index 41e76747968..84af36e9687 100644 --- a/src/apis/analytics/v3.ts +++ b/src/apis/analytics/v3.ts @@ -3260,7 +3260,7 @@ export namespace analytics_v3 { * * @param {object} params Parameters for request * @param {string} params.accountId Account ID to create the user link for. - * @param {().EntityUserLink} params.resource Request body data + * @param {().EntityUserLink} params.requestBody 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 @@ -3412,7 +3412,7 @@ export namespace analytics_v3 { * @param {object} params Parameters for request * @param {string} params.accountId Account ID to update the account-user link for. * @param {string} params.linkId Link ID to update the account-user link for. - * @param {().EntityUserLink} params.resource Request body data + * @param {().EntityUserLink} params.requestBody 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 @@ -3568,7 +3568,7 @@ export namespace analytics_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().HashClientIdRequest} params.resource Request body data + * @param {().HashClientIdRequest} params.requestBody 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 @@ -3852,7 +3852,7 @@ export namespace analytics_v3 { * @param {object} params Parameters for request * @param {string} params.accountId Account ID for the custom dimension to create. * @param {string} params.webPropertyId Web property ID for the custom dimension to create. - * @param {().CustomDimension} params.resource Request body data + * @param {().CustomDimension} params.requestBody 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 @@ -4007,7 +4007,7 @@ export namespace analytics_v3 { * @param {string} params.customDimensionId Custom dimension ID for the custom dimension to update. * @param {boolean=} params.ignoreCustomDataSourceLinks Force the update and ignore any warnings related to the custom dimension being linked to a custom data source / data set. * @param {string} params.webPropertyId Web property ID for the custom dimension to update. - * @param {().CustomDimension} params.resource Request body data + * @param {().CustomDimension} params.requestBody 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 @@ -4085,7 +4085,7 @@ export namespace analytics_v3 { * @param {string} params.customDimensionId Custom dimension ID for the custom dimension to update. * @param {boolean=} params.ignoreCustomDataSourceLinks Force the update and ignore any warnings related to the custom dimension being linked to a custom data source / data set. * @param {string} params.webPropertyId Web property ID for the custom dimension to update. - * @param {().CustomDimension} params.resource Request body data + * @param {().CustomDimension} params.requestBody 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 @@ -4368,7 +4368,7 @@ export namespace analytics_v3 { * @param {object} params Parameters for request * @param {string} params.accountId Account ID for the custom metric to create. * @param {string} params.webPropertyId Web property ID for the custom dimension to create. - * @param {().CustomMetric} params.resource Request body data + * @param {().CustomMetric} params.requestBody 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 @@ -4523,7 +4523,7 @@ export namespace analytics_v3 { * @param {string} params.customMetricId Custom metric ID for the custom metric to update. * @param {boolean=} params.ignoreCustomDataSourceLinks Force the update and ignore any warnings related to the custom metric being linked to a custom data source / data set. * @param {string} params.webPropertyId Web property ID for the custom metric to update. - * @param {().CustomMetric} params.resource Request body data + * @param {().CustomMetric} params.requestBody 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 @@ -4601,7 +4601,7 @@ export namespace analytics_v3 { * @param {string} params.customMetricId Custom metric ID for the custom metric to update. * @param {boolean=} params.ignoreCustomDataSourceLinks Force the update and ignore any warnings related to the custom metric being linked to a custom data source / data set. * @param {string} params.webPropertyId Web property ID for the custom metric to update. - * @param {().CustomMetric} params.resource Request body data + * @param {().CustomMetric} params.requestBody 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 @@ -4971,7 +4971,7 @@ export namespace analytics_v3 { * @param {string} params.accountId Account ID to create the experiment for. * @param {string} params.profileId View (Profile) ID to create the experiment for. * @param {string} params.webPropertyId Web property ID to create the experiment for. - * @param {().Experiment} params.resource Request body data + * @param {().Experiment} params.requestBody 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 @@ -5127,7 +5127,7 @@ export namespace analytics_v3 { * @param {string} params.experimentId Experiment ID of the experiment to update. * @param {string} params.profileId View (Profile) ID of the experiment to update. * @param {string} params.webPropertyId Web property ID of the experiment to update. - * @param {().Experiment} params.resource Request body data + * @param {().Experiment} params.requestBody 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 @@ -5210,7 +5210,7 @@ export namespace analytics_v3 { * @param {string} params.experimentId Experiment ID of the experiment to update. * @param {string} params.profileId View (Profile) ID of the experiment to update. * @param {string} params.webPropertyId Web property ID of the experiment to update. - * @param {().Experiment} params.resource Request body data + * @param {().Experiment} params.requestBody 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 @@ -5603,7 +5603,7 @@ export namespace analytics_v3 { * * @param {object} params Parameters for request * @param {string} params.accountId Account ID to create filter for. - * @param {().Filter} params.resource Request body data + * @param {().Filter} params.requestBody 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 @@ -5749,7 +5749,7 @@ export namespace analytics_v3 { * @param {object} params Parameters for request * @param {string} params.accountId Account ID to which the filter belongs. * @param {string} params.filterId ID of the filter to be updated. - * @param {().Filter} params.resource Request body data + * @param {().Filter} params.requestBody 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 @@ -5823,7 +5823,7 @@ export namespace analytics_v3 { * @param {object} params Parameters for request * @param {string} params.accountId Account ID to which the filter belongs. * @param {string} params.filterId ID of the filter to be updated. - * @param {().Filter} params.resource Request body data + * @param {().Filter} params.requestBody 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 @@ -6092,7 +6092,7 @@ export namespace analytics_v3 { * @param {string} params.accountId Account ID to create the goal for. * @param {string} params.profileId View (Profile) ID to create the goal for. * @param {string} params.webPropertyId Web property ID to create the goal for. - * @param {().Goal} params.resource Request body data + * @param {().Goal} params.requestBody 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 @@ -6244,7 +6244,7 @@ export namespace analytics_v3 { * @param {string} params.goalId Index of the goal to be updated. * @param {string} params.profileId View (Profile) ID to update the goal. * @param {string} params.webPropertyId Web property ID to update the goal. - * @param {().Goal} params.resource Request body data + * @param {().Goal} params.requestBody 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 @@ -6320,7 +6320,7 @@ export namespace analytics_v3 { * @param {string} params.goalId Index of the goal to be updated. * @param {string} params.profileId View (Profile) ID to update the goal. * @param {string} params.webPropertyId Web property ID to update the goal. - * @param {().Goal} params.resource Request body data + * @param {().Goal} params.requestBody 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 @@ -6690,7 +6690,7 @@ export namespace analytics_v3 { * @param {string} params.accountId Account ID to create profile filter link for. * @param {string} params.profileId Profile ID to create filter link for. * @param {string} params.webPropertyId Web property Id to create profile filter link for. - * @param {().ProfileFilterLink} params.resource Request body data + * @param {().ProfileFilterLink} params.requestBody 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 @@ -6846,7 +6846,7 @@ export namespace analytics_v3 { * @param {string} params.linkId ID of the profile filter link to be updated. * @param {string} params.profileId Profile ID to which filter link belongs * @param {string} params.webPropertyId Web property Id to which profile filter link belongs - * @param {().ProfileFilterLink} params.resource Request body data + * @param {().ProfileFilterLink} params.requestBody 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 @@ -6924,7 +6924,7 @@ export namespace analytics_v3 { * @param {string} params.linkId ID of the profile filter link to be updated. * @param {string} params.profileId Profile ID to which filter link belongs * @param {string} params.webPropertyId Web property Id to which profile filter link belongs - * @param {().ProfileFilterLink} params.resource Request body data + * @param {().ProfileFilterLink} params.requestBody 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 @@ -7315,7 +7315,7 @@ export namespace analytics_v3 { * @param {object} params Parameters for request * @param {string} params.accountId Account ID to create the view (profile) for. * @param {string} params.webPropertyId Web property ID to create the view (profile) for. - * @param {().Profile} params.resource Request body data + * @param {().Profile} params.requestBody 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 @@ -7465,7 +7465,7 @@ export namespace analytics_v3 { * @param {string} params.accountId Account ID to which the view (profile) belongs * @param {string} params.profileId ID of the view (profile) to be updated. * @param {string} params.webPropertyId Web property ID to which the view (profile) belongs - * @param {().Profile} params.resource Request body data + * @param {().Profile} params.requestBody 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 @@ -7540,7 +7540,7 @@ export namespace analytics_v3 { * @param {string} params.accountId Account ID to which the view (profile) belongs * @param {string} params.profileId ID of the view (profile) to be updated. * @param {string} params.webPropertyId Web property ID to which the view (profile) belongs - * @param {().Profile} params.resource Request body data + * @param {().Profile} params.requestBody 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 @@ -7833,7 +7833,7 @@ export namespace analytics_v3 { * @param {string} params.accountId Account ID to create the user link for. * @param {string} params.profileId View (Profile) ID to create the user link for. * @param {string} params.webPropertyId Web Property ID to create the user link for. - * @param {().EntityUserLink} params.resource Request body data + * @param {().EntityUserLink} params.requestBody 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 @@ -7989,7 +7989,7 @@ export namespace analytics_v3 { * @param {string} params.linkId Link ID to update the user link for. * @param {string} params.profileId View (Profile ID) to update the user link for. * @param {string} params.webPropertyId Web Property ID to update the user link for. - * @param {().EntityUserLink} params.resource Request body data + * @param {().EntityUserLink} params.requestBody 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 @@ -8329,7 +8329,7 @@ export namespace analytics_v3 { * @param {object} params Parameters for request * @param {string} params.accountId The account ID for which to create the remarketing audience. * @param {string} params.webPropertyId Web property ID for which to create the remarketing audience. - * @param {().RemarketingAudience} params.resource Request body data + * @param {().RemarketingAudience} params.requestBody 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 @@ -8486,7 +8486,7 @@ export namespace analytics_v3 { * @param {string} params.accountId The account ID of the remarketing audience to update. * @param {string} params.remarketingAudienceId The ID of the remarketing audience to update. * @param {string} params.webPropertyId The web property ID of the remarketing audience to update. - * @param {().RemarketingAudience} params.resource Request body data + * @param {().RemarketingAudience} params.requestBody 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 @@ -8563,7 +8563,7 @@ export namespace analytics_v3 { * @param {string} params.accountId The account ID of the remarketing audience to update. * @param {string} params.remarketingAudienceId The ID of the remarketing audience to update. * @param {string} params.webPropertyId The web property ID of the remarketing audience to update. - * @param {().RemarketingAudience} params.resource Request body data + * @param {().RemarketingAudience} params.requestBody 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 @@ -9056,7 +9056,7 @@ export namespace analytics_v3 { * @param {string} params.accountId Account ID to create the unsampled report for. * @param {string} params.profileId View (Profile) ID to create the unsampled report for. * @param {string} params.webPropertyId Web property ID to create the unsampled report for. - * @param {().UnsampledReport} params.resource Request body data + * @param {().UnsampledReport} params.requestBody 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 @@ -9320,7 +9320,7 @@ export namespace analytics_v3 { * @param {string} params.accountId Account Id for the uploads to be deleted. * @param {string} params.customDataSourceId Custom data source Id for the uploads to be deleted. * @param {string} params.webPropertyId Web property Id for the uploads to be deleted. - * @param {().AnalyticsDataimportDeleteUploadDataRequest} params.resource Request body data + * @param {().AnalyticsDataimportDeleteUploadDataRequest} params.requestBody 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 @@ -9830,7 +9830,7 @@ export namespace analytics_v3 { * * @param {object} params Parameters for request * @param {string} params.accountId Account ID to create the web property for. - * @param {().Webproperty} params.resource Request body data + * @param {().Webproperty} params.requestBody 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 @@ -9982,7 +9982,7 @@ export namespace analytics_v3 { * @param {object} params Parameters for request * @param {string} params.accountId Account ID to which the web property belongs * @param {string} params.webPropertyId Web property ID - * @param {().Webproperty} params.resource Request body data + * @param {().Webproperty} params.requestBody 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 @@ -10058,7 +10058,7 @@ export namespace analytics_v3 { * @param {object} params Parameters for request * @param {string} params.accountId Account ID to which the web property belongs * @param {string} params.webPropertyId Web property ID - * @param {().Webproperty} params.resource Request body data + * @param {().Webproperty} params.requestBody 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 @@ -10395,7 +10395,7 @@ export namespace analytics_v3 { * @param {object} params Parameters for request * @param {string} params.accountId ID of the Google Analytics account to create the link for. * @param {string} params.webPropertyId Web property ID to create the link for. - * @param {().EntityAdWordsLink} params.resource Request body data + * @param {().EntityAdWordsLink} params.requestBody 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 @@ -10549,7 +10549,7 @@ export namespace analytics_v3 { * @param {string} params.accountId ID of the account which the given web property belongs to. * @param {string} params.webPropertyAdWordsLinkId Web property-Google Ads link ID. * @param {string} params.webPropertyId Web property ID to retrieve the Google Ads link for. - * @param {().EntityAdWordsLink} params.resource Request body data + * @param {().EntityAdWordsLink} params.requestBody 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 @@ -10630,7 +10630,7 @@ export namespace analytics_v3 { * @param {string} params.accountId ID of the account which the given web property belongs to. * @param {string} params.webPropertyAdWordsLinkId Web property-Google Ads link ID. * @param {string} params.webPropertyId Web property ID to retrieve the Google Ads link for. - * @param {().EntityAdWordsLink} params.resource Request body data + * @param {().EntityAdWordsLink} params.requestBody 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 @@ -10927,7 +10927,7 @@ export namespace analytics_v3 { * @param {object} params Parameters for request * @param {string} params.accountId Account ID to create the user link for. * @param {string} params.webPropertyId Web Property ID to create the user link for. - * @param {().EntityUserLink} params.resource Request body data + * @param {().EntityUserLink} params.requestBody 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 @@ -11081,7 +11081,7 @@ export namespace analytics_v3 { * @param {string} params.accountId Account ID to update the account-user link for. * @param {string} params.linkId Link ID to update the account-user link for. * @param {string} params.webPropertyId Web property ID to update the account-user link for. - * @param {().EntityUserLink} params.resource Request body data + * @param {().EntityUserLink} params.requestBody 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 @@ -11353,7 +11353,7 @@ export namespace analytics_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AccountTicket} params.resource Request body data + * @param {().AccountTicket} params.requestBody 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 @@ -11428,7 +11428,7 @@ export namespace analytics_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AccountTreeRequest} params.resource Request body data + * @param {().AccountTreeRequest} params.requestBody 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 @@ -11546,7 +11546,7 @@ export namespace analytics_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().UserDeletionRequest} params.resource Request body data + * @param {().UserDeletionRequest} params.requestBody 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 diff --git a/src/apis/analyticsreporting/v4.ts b/src/apis/analyticsreporting/v4.ts index 0f44533e590..170cbabd8f1 100644 --- a/src/apis/analyticsreporting/v4.ts +++ b/src/apis/analyticsreporting/v4.ts @@ -1102,7 +1102,7 @@ export namespace analyticsreporting_v4 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().GetReportsRequest} params.resource Request body data + * @param {().GetReportsRequest} params.requestBody 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 @@ -1195,7 +1195,7 @@ export namespace analyticsreporting_v4 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().SearchUserActivityRequest} params.resource Request body data + * @param {().SearchUserActivityRequest} params.requestBody 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 diff --git a/src/apis/androiddeviceprovisioning/v1.ts b/src/apis/androiddeviceprovisioning/v1.ts index c8191511412..b96e94757cf 100644 --- a/src/apis/androiddeviceprovisioning/v1.ts +++ b/src/apis/androiddeviceprovisioning/v1.ts @@ -919,7 +919,7 @@ export namespace androiddeviceprovisioning_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The customer that manages the configuration. An API resource name in the format `customers/[CUSTOMER_ID]`. - * @param {().Configuration} params.resource Request body data + * @param {().Configuration} params.requestBody 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 @@ -1222,7 +1222,7 @@ export namespace androiddeviceprovisioning_v1 { * @param {object} params Parameters for request * @param {string} params.name Output only. The API resource name in the format `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. Assigned by the server. * @param {string=} params.updateMask Required. The field mask applied to the target `Configuration` before updating the fields. To learn more about using field masks, read [FieldMask](/protocol-buffers/docs/reference/google.protobuf#fieldmask) in the Protocol Buffers documentation. - * @param {().Configuration} params.resource Request body data + * @param {().Configuration} params.requestBody 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 @@ -1377,7 +1377,7 @@ export namespace androiddeviceprovisioning_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The customer managing the device. An API resource name in the format `customers/[CUSTOMER_ID]`. - * @param {().CustomerApplyConfigurationRequest} params.resource Request body data + * @param {().CustomerApplyConfigurationRequest} params.requestBody 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 @@ -1605,7 +1605,7 @@ export namespace androiddeviceprovisioning_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The customer managing the device in the format `customers/[CUSTOMER_ID]`. - * @param {().CustomerRemoveConfigurationRequest} params.resource Request body data + * @param {().CustomerRemoveConfigurationRequest} params.requestBody 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 @@ -1678,7 +1678,7 @@ export namespace androiddeviceprovisioning_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The customer managing the device. An API resource name in the format `customers/[CUSTOMER_ID]`. - * @param {().CustomerUnclaimDeviceRequest} params.resource Request body data + * @param {().CustomerUnclaimDeviceRequest} params.requestBody 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 @@ -2040,7 +2040,7 @@ export namespace androiddeviceprovisioning_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The parent resource ID in the format `partners/[PARTNER_ID]` that identifies the reseller. - * @param {().CreateCustomerRequest} params.resource Request body data + * @param {().CreateCustomerRequest} params.requestBody 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 @@ -2238,7 +2238,7 @@ export namespace androiddeviceprovisioning_v1 { * * @param {object} params Parameters for request * @param {string} params.partnerId Required. The ID of the reseller partner. - * @param {().ClaimDeviceRequest} params.resource Request body data + * @param {().ClaimDeviceRequest} params.requestBody 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 @@ -2314,7 +2314,7 @@ export namespace androiddeviceprovisioning_v1 { * * @param {object} params Parameters for request * @param {string} params.partnerId Required. The ID of the reseller partner. - * @param {().ClaimDevicesRequest} params.resource Request body data + * @param {().ClaimDevicesRequest} params.requestBody 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 @@ -2389,7 +2389,7 @@ export namespace androiddeviceprovisioning_v1 { * * @param {object} params Parameters for request * @param {string} params.partnerId Required. The ID of the reseller partner. - * @param {().FindDevicesByDeviceIdentifierRequest} params.resource Request body data + * @param {().FindDevicesByDeviceIdentifierRequest} params.requestBody 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 @@ -2481,7 +2481,7 @@ export namespace androiddeviceprovisioning_v1 { * * @param {object} params Parameters for request * @param {string} params.partnerId Required. The ID of the reseller partner. - * @param {().FindDevicesByOwnerRequest} params.resource Request body data + * @param {().FindDevicesByOwnerRequest} params.requestBody 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 @@ -2634,7 +2634,7 @@ export namespace androiddeviceprovisioning_v1 { * @param {object} params Parameters for request * @param {string} params.deviceId Required. The ID of the device. * @param {string} params.metadataOwnerId Required. The owner of the newly set metadata. Set this to the partner ID. - * @param {().UpdateDeviceMetadataRequest} params.resource Request body data + * @param {().UpdateDeviceMetadataRequest} params.requestBody 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 @@ -2710,7 +2710,7 @@ export namespace androiddeviceprovisioning_v1 { * * @param {object} params Parameters for request * @param {string} params.partnerId Required. The ID of the reseller partner. - * @param {().UnclaimDeviceRequest} params.resource Request body data + * @param {().UnclaimDeviceRequest} params.requestBody 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 @@ -2783,7 +2783,7 @@ export namespace androiddeviceprovisioning_v1 { * * @param {object} params Parameters for request * @param {string} params.partnerId Required. The reseller partner ID. - * @param {().UnclaimDevicesRequest} params.resource Request body data + * @param {().UnclaimDevicesRequest} params.requestBody 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 @@ -2858,7 +2858,7 @@ export namespace androiddeviceprovisioning_v1 { * * @param {object} params Parameters for request * @param {string} params.partnerId Required. The reseller partner ID. - * @param {().UpdateDeviceMetadataInBatchRequest} params.resource Request body data + * @param {().UpdateDeviceMetadataInBatchRequest} params.requestBody 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 diff --git a/src/apis/androidenterprise/v1.ts b/src/apis/androidenterprise/v1.ts index b8fcea8e10f..d2c1973e01d 100644 --- a/src/apis/androidenterprise/v1.ts +++ b/src/apis/androidenterprise/v1.ts @@ -1943,7 +1943,7 @@ export namespace androidenterprise_v1 { * @param {string} params.enterpriseId The ID of the enterprise. * @param {string=} params.updateMask Mask that identifies which fields to update. If not set, all modifiable fields will be modified. When set in a query parameter, this field should be specified as updateMask=,,... * @param {string} params.userId The ID of the user. - * @param {().Device} params.resource Request body data + * @param {().Device} params.requestBody 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 @@ -2017,7 +2017,7 @@ export namespace androidenterprise_v1 { * @param {string} params.deviceId The ID of the device. * @param {string} params.enterpriseId The ID of the enterprise. * @param {string} params.userId The ID of the user. - * @param {().DeviceState} params.resource Request body data + * @param {().DeviceState} params.requestBody 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 @@ -2094,7 +2094,7 @@ export namespace androidenterprise_v1 { * @param {string} params.enterpriseId The ID of the enterprise. * @param {string=} params.updateMask Mask that identifies which fields to update. If not set, all modifiable fields will be modified. When set in a query parameter, this field should be specified as updateMask=,,... * @param {string} params.userId The ID of the user. - * @param {().Device} params.resource Request body data + * @param {().Device} params.requestBody 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 @@ -2473,7 +2473,7 @@ export namespace androidenterprise_v1 { * * @param {object} params Parameters for request * @param {string} params.enterpriseId The ID of the enterprise. - * @param {().AdministratorWebTokenSpec} params.resource Request body data + * @param {().AdministratorWebTokenSpec} params.requestBody 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 @@ -2552,7 +2552,7 @@ export namespace androidenterprise_v1 { * * @param {object} params Parameters for request * @param {string} params.token The token provided by the enterprise to register the EMM. - * @param {().Enterprise} params.resource Request body data + * @param {().Enterprise} params.requestBody 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 @@ -3172,7 +3172,7 @@ export namespace androidenterprise_v1 { * * @param {object} params Parameters for request * @param {string} params.enterpriseId The ID of the enterprise. - * @param {().EnterpriseAccount} params.resource Request body data + * @param {().EnterpriseAccount} params.requestBody 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 @@ -3247,7 +3247,7 @@ export namespace androidenterprise_v1 { * * @param {object} params Parameters for request * @param {string} params.enterpriseId The ID of the enterprise. - * @param {().StoreLayout} params.resource Request body data + * @param {().StoreLayout} params.requestBody 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 @@ -3825,7 +3825,7 @@ export namespace androidenterprise_v1 { * @param {string} params.entitlementId The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm". * @param {boolean=} params.install Set to true to also install the product on all the user's devices where possible. Failure to install on one or more devices will not prevent this operation from returning successfully, as long as the entitlement was successfully assigned to the user. * @param {string} params.userId The ID of the user. - * @param {().Entitlement} params.resource Request body data + * @param {().Entitlement} params.requestBody 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 @@ -3903,7 +3903,7 @@ export namespace androidenterprise_v1 { * @param {string} params.entitlementId The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm". * @param {boolean=} params.install Set to true to also install the product on all the user's devices where possible. Failure to install on one or more devices will not prevent this operation from returning successfully, as long as the entitlement was successfully assigned to the user. * @param {string} params.userId The ID of the user. - * @param {().Entitlement} params.resource Request body data + * @param {().Entitlement} params.requestBody 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 @@ -4627,7 +4627,7 @@ export namespace androidenterprise_v1 { * @param {string} params.enterpriseId The ID of the enterprise. * @param {string} params.installId The ID of the product represented by the install, e.g. "app:com.google.android.gm". * @param {string} params.userId The ID of the user. - * @param {().Install} params.resource Request body data + * @param {().Install} params.requestBody 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 @@ -4702,7 +4702,7 @@ export namespace androidenterprise_v1 { * @param {string} params.enterpriseId The ID of the enterprise. * @param {string} params.installId The ID of the product represented by the install, e.g. "app:com.google.android.gm". * @param {string} params.userId The ID of the user. - * @param {().Install} params.resource Request body data + * @param {().Install} params.requestBody 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 @@ -5179,7 +5179,7 @@ export namespace androidenterprise_v1 { * @param {string} params.enterpriseId The ID of the enterprise. * @param {string} params.managedConfigurationForDeviceId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". * @param {string} params.userId The ID of the user. - * @param {().ManagedConfiguration} params.resource Request body data + * @param {().ManagedConfiguration} params.requestBody 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 @@ -5269,7 +5269,7 @@ export namespace androidenterprise_v1 { * @param {string} params.enterpriseId The ID of the enterprise. * @param {string} params.managedConfigurationForDeviceId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". * @param {string} params.userId The ID of the user. - * @param {().ManagedConfiguration} params.resource Request body data + * @param {().ManagedConfiguration} params.requestBody 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 @@ -5744,7 +5744,7 @@ export namespace androidenterprise_v1 { * @param {string} params.enterpriseId The ID of the enterprise. * @param {string} params.managedConfigurationForUserId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". * @param {string} params.userId The ID of the user. - * @param {().ManagedConfiguration} params.resource Request body data + * @param {().ManagedConfiguration} params.requestBody 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 @@ -5827,7 +5827,7 @@ export namespace androidenterprise_v1 { * @param {string} params.enterpriseId The ID of the enterprise. * @param {string} params.managedConfigurationForUserId The ID of the managed configuration (a product ID), e.g. "app:com.google.android.gm". * @param {string} params.userId The ID of the user. - * @param {().ManagedConfiguration} params.resource Request body data + * @param {().ManagedConfiguration} params.requestBody 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 @@ -6241,7 +6241,7 @@ export namespace androidenterprise_v1 { * @param {object} params Parameters for request * @param {string} params.enterpriseId The ID of the enterprise. * @param {string} params.productId The ID of the product. - * @param {().ProductsApproveRequest} params.resource Request body data + * @param {().ProductsApproveRequest} params.requestBody 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 @@ -7006,7 +7006,7 @@ export namespace androidenterprise_v1 { * * @param {object} params Parameters for request * @param {string} params.enterpriseId The ID of the enterprise. - * @param {().ServiceAccountKey} params.resource Request body data + * @param {().ServiceAccountKey} params.requestBody 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 @@ -7368,7 +7368,7 @@ export namespace androidenterprise_v1 { * @param {object} params Parameters for request * @param {string} params.enterpriseId The ID of the enterprise. * @param {string} params.pageId The ID of the page. - * @param {().StoreCluster} params.resource Request body data + * @param {().StoreCluster} params.requestBody 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 @@ -7529,7 +7529,7 @@ export namespace androidenterprise_v1 { * @param {string} params.clusterId The ID of the cluster. * @param {string} params.enterpriseId The ID of the enterprise. * @param {string} params.pageId The ID of the page. - * @param {().StoreCluster} params.resource Request body data + * @param {().StoreCluster} params.requestBody 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 @@ -7606,7 +7606,7 @@ export namespace androidenterprise_v1 { * @param {string} params.clusterId The ID of the cluster. * @param {string} params.enterpriseId The ID of the enterprise. * @param {string} params.pageId The ID of the page. - * @param {().StoreCluster} params.resource Request body data + * @param {().StoreCluster} params.requestBody 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 @@ -7964,7 +7964,7 @@ export namespace androidenterprise_v1 { * * @param {object} params Parameters for request * @param {string} params.enterpriseId The ID of the enterprise. - * @param {().StorePage} params.resource Request body data + * @param {().StorePage} params.requestBody 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 @@ -8123,7 +8123,7 @@ export namespace androidenterprise_v1 { * @param {object} params Parameters for request * @param {string} params.enterpriseId The ID of the enterprise. * @param {string} params.pageId The ID of the page. - * @param {().StorePage} params.resource Request body data + * @param {().StorePage} params.requestBody 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 @@ -8199,7 +8199,7 @@ export namespace androidenterprise_v1 { * @param {object} params Parameters for request * @param {string} params.enterpriseId The ID of the enterprise. * @param {string} params.pageId The ID of the page. - * @param {().StorePage} params.resource Request body data + * @param {().StorePage} params.requestBody 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 @@ -8758,7 +8758,7 @@ export namespace androidenterprise_v1 { * * @param {object} params Parameters for request * @param {string} params.enterpriseId The ID of the enterprise. - * @param {().User} params.resource Request body data + * @param {().User} params.requestBody 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 @@ -8903,7 +8903,7 @@ export namespace androidenterprise_v1 { * @param {object} params Parameters for request * @param {string} params.enterpriseId The ID of the enterprise. * @param {string} params.userId The ID of the user. - * @param {().User} params.resource Request body data + * @param {().User} params.requestBody 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 @@ -9122,7 +9122,7 @@ export namespace androidenterprise_v1 { * @param {object} params Parameters for request * @param {string} params.enterpriseId The ID of the enterprise. * @param {string} params.userId The ID of the user. - * @param {().ProductSet} params.resource Request body data + * @param {().ProductSet} params.requestBody 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 @@ -9200,7 +9200,7 @@ export namespace androidenterprise_v1 { * @param {object} params Parameters for request * @param {string} params.enterpriseId The ID of the enterprise. * @param {string} params.userId The ID of the user. - * @param {().User} params.resource Request body data + * @param {().User} params.requestBody 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 @@ -9626,7 +9626,7 @@ export namespace androidenterprise_v1 { * * @param {object} params Parameters for request * @param {string} params.enterpriseId The ID of the enterprise. - * @param {().WebApp} params.resource Request body data + * @param {().WebApp} params.requestBody 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 @@ -9772,7 +9772,7 @@ export namespace androidenterprise_v1 { * @param {object} params Parameters for request * @param {string} params.enterpriseId The ID of the enterprise. * @param {string} params.webAppId The ID of the web app. - * @param {().WebApp} params.resource Request body data + * @param {().WebApp} params.requestBody 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 @@ -9845,7 +9845,7 @@ export namespace androidenterprise_v1 { * @param {object} params Parameters for request * @param {string} params.enterpriseId The ID of the enterprise. * @param {string} params.webAppId The ID of the web app. - * @param {().WebApp} params.resource Request body data + * @param {().WebApp} params.requestBody 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 diff --git a/src/apis/androidmanagement/v1.ts b/src/apis/androidmanagement/v1.ts index 202129d9bde..e45da1d0243 100644 --- a/src/apis/androidmanagement/v1.ts +++ b/src/apis/androidmanagement/v1.ts @@ -1338,7 +1338,7 @@ export namespace androidmanagement_v1 { */ passwordPolicies?: Schema$PasswordRequirements[]; /** - * Password requirements. DEPRECATED - Use password_policies + * Password requirements. The field password_requirements.require_password_unlock must not be set. DEPRECATED - Use password_policies. */ passwordRequirements?: Schema$PasswordRequirements; /** @@ -1860,7 +1860,7 @@ export namespace androidmanagement_v1 { * @param {string=} params.enterpriseToken The enterprise token appended to the callback URL. * @param {string=} params.projectId The ID of the Google Cloud Platform project which will own the enterprise. * @param {string=} params.signupUrlName The name of the SignupUrl used to sign up for the enterprise. - * @param {().Enterprise} params.resource Request body data + * @param {().Enterprise} params.requestBody 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 @@ -2005,7 +2005,7 @@ export namespace androidmanagement_v1 { * @param {object} params Parameters for request * @param {string} params.name The name of the enterprise in the form enterprises/{enterpriseId}. * @param {string=} params.updateMask The field mask indicating the fields to update. If not set, all modifiable fields will be modified. - * @param {().Enterprise} params.resource Request body data + * @param {().Enterprise} params.requestBody 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 @@ -2385,7 +2385,7 @@ export namespace androidmanagement_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. - * @param {().Command} params.resource Request body data + * @param {().Command} params.requestBody 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 @@ -2539,7 +2539,7 @@ export namespace androidmanagement_v1 { * @param {object} params Parameters for request * @param {string} params.name The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. * @param {string=} params.updateMask The field mask indicating the fields to update. If not set, all modifiable fields will be modified. - * @param {().Device} params.resource Request body data + * @param {().Device} params.requestBody 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 @@ -3061,7 +3061,7 @@ export namespace androidmanagement_v1 { * * @param {object} params Parameters for request * @param {string} params.parent The name of the enterprise in the form enterprises/{enterpriseId}. - * @param {().EnrollmentToken} params.resource Request body data + * @param {().EnrollmentToken} params.requestBody 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 @@ -3464,7 +3464,7 @@ export namespace androidmanagement_v1 { * @param {object} params Parameters for request * @param {string} params.name The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}. * @param {string=} params.updateMask The field mask indicating the fields to update. If not set, all modifiable fields will be modified. - * @param {().Policy} params.resource Request body data + * @param {().Policy} params.requestBody 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 @@ -3608,7 +3608,7 @@ export namespace androidmanagement_v1 { * * @param {object} params Parameters for request * @param {string} params.parent The name of the enterprise in the form enterprises/{enterpriseId}. - * @param {().WebApp} params.resource Request body data + * @param {().WebApp} params.requestBody 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 @@ -3900,7 +3900,7 @@ export namespace androidmanagement_v1 { * @param {object} params Parameters for request * @param {string} params.name The name of the web app in the form enterprises/{enterpriseId}/webApps/{packageName}. * @param {string=} params.updateMask The field mask indicating the fields to update. If not set, all modifiable fields will be modified. - * @param {().WebApp} params.resource Request body data + * @param {().WebApp} params.requestBody 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 @@ -4061,7 +4061,7 @@ export namespace androidmanagement_v1 { * * @param {object} params Parameters for request * @param {string} params.parent The name of the enterprise in the form enterprises/{enterpriseId}. - * @param {().WebToken} params.resource Request body data + * @param {().WebToken} params.requestBody 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 diff --git a/src/apis/androidpublisher/v2.ts b/src/apis/androidpublisher/v2.ts index ab1bec1d57f..21ddb3d58e4 100644 --- a/src/apis/androidpublisher/v2.ts +++ b/src/apis/androidpublisher/v2.ts @@ -1124,7 +1124,7 @@ export namespace androidpublisher_v2 { * * @param {object} params Parameters for request * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param {().AppEdit} params.resource Request body data + * @param {().AppEdit} params.requestBody 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 @@ -1658,7 +1658,7 @@ export namespace androidpublisher_v2 { * @param {string} params.editId Unique identifier for this edit. * @param {string} params.language The language code (a BCP-47 language tag) of the APK-specific localized listing to read or modify. For example, to select Austrian German, pass "de-AT". * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param {().ApkListing} params.resource Request body data + * @param {().ApkListing} params.requestBody 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 @@ -1736,7 +1736,7 @@ export namespace androidpublisher_v2 { * @param {string} params.editId Unique identifier for this edit. * @param {string} params.language The language code (a BCP-47 language tag) of the APK-specific localized listing to read or modify. For example, to select Austrian German, pass "de-AT". * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param {().ApkListing} params.resource Request body data + * @param {().ApkListing} params.requestBody 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 @@ -1966,7 +1966,7 @@ export namespace androidpublisher_v2 { * @param {object} params Parameters for request * @param {string} params.editId Unique identifier for this edit. * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param {().ApksAddExternallyHostedRequest} params.resource Request body data + * @param {().ApksAddExternallyHostedRequest} params.requestBody 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 @@ -2717,7 +2717,7 @@ export namespace androidpublisher_v2 { * @param {object} params Parameters for request * @param {string} params.editId Unique identifier for this edit. * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param {().AppDetails} params.resource Request body data + * @param {().AppDetails} params.requestBody 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 @@ -2793,7 +2793,7 @@ export namespace androidpublisher_v2 { * @param {object} params Parameters for request * @param {string} params.editId Unique identifier for this edit. * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param {().AppDetails} params.resource Request body data + * @param {().AppDetails} params.requestBody 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 @@ -3024,7 +3024,7 @@ export namespace androidpublisher_v2 { * @param {string} params.editId Unique identifier for this edit. * @param {string} params.expansionFileType * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param {().ExpansionFile} params.resource Request body data + * @param {().ExpansionFile} params.requestBody 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 @@ -3112,7 +3112,7 @@ export namespace androidpublisher_v2 { * @param {string} params.editId Unique identifier for this edit. * @param {string} params.expansionFileType * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param {().ExpansionFile} params.resource Request body data + * @param {().ExpansionFile} params.requestBody 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 @@ -4184,7 +4184,7 @@ export namespace androidpublisher_v2 { * @param {string} params.editId Unique identifier for this edit. * @param {string} params.language The language code (a BCP-47 language tag) of the localized listing to read or modify. For example, to select Austrian German, pass "de-AT". * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param {().Listing} params.resource Request body data + * @param {().Listing} params.requestBody 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 @@ -4259,7 +4259,7 @@ export namespace androidpublisher_v2 { * @param {string} params.editId Unique identifier for this edit. * @param {string} params.language The language code (a BCP-47 language tag) of the localized listing to read or modify. For example, to select Austrian German, pass "de-AT". * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param {().Listing} params.resource Request body data + * @param {().Listing} params.requestBody 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 @@ -4536,7 +4536,7 @@ export namespace androidpublisher_v2 { * @param {string} params.editId Unique identifier for this edit. * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". * @param {string} params.track The track to read or modify. - * @param {().Testers} params.resource Request body data + * @param {().Testers} params.requestBody 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 @@ -4610,7 +4610,7 @@ export namespace androidpublisher_v2 { * @param {string} params.editId Unique identifier for this edit. * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". * @param {string} params.track The track to read or modify. - * @param {().Testers} params.resource Request body data + * @param {().Testers} params.requestBody 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 @@ -4911,7 +4911,7 @@ export namespace androidpublisher_v2 { * @param {string} params.editId Unique identifier for this edit. * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". * @param {string} params.track The track to read or modify. - * @param {().Track} params.resource Request body data + * @param {().Track} params.requestBody 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 @@ -4986,7 +4986,7 @@ export namespace androidpublisher_v2 { * @param {string} params.editId Unique identifier for this edit. * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". * @param {string} params.track The track to read or modify. - * @param {().Track} params.resource Request body data + * @param {().Track} params.requestBody 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 @@ -5301,7 +5301,7 @@ export namespace androidpublisher_v2 { * @param {object} params Parameters for request * @param {boolean=} params.autoConvertMissingPrices If true the prices for all regions targeted by the parent app that don't have a price specified for this in-app product will be auto converted to the target currency based on the default price. Defaults to false. * @param {string} params.packageName Unique identifier for the Android app; for example, "com.spiffygame". - * @param {().InAppProduct} params.resource Request body data + * @param {().InAppProduct} params.requestBody 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 @@ -5462,7 +5462,7 @@ export namespace androidpublisher_v2 { * @param {boolean=} params.autoConvertMissingPrices If true the prices for all regions targeted by the parent app that don't have a price specified for this in-app product will be auto converted to the target currency based on the default price. Defaults to false. * @param {string} params.packageName Unique identifier for the Android app with the in-app product; for example, "com.spiffygame". * @param {string} params.sku Unique identifier for the in-app product. - * @param {().InAppProduct} params.resource Request body data + * @param {().InAppProduct} params.requestBody 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 @@ -5539,7 +5539,7 @@ export namespace androidpublisher_v2 { * @param {boolean=} params.autoConvertMissingPrices If true the prices for all regions targeted by the parent app that don't have a price specified for this in-app product will be auto converted to the target currency based on the default price. Defaults to false. * @param {string} params.packageName Unique identifier for the Android app with the in-app product; for example, "com.spiffygame". * @param {string} params.sku Unique identifier for the in-app product. - * @param {().InAppProduct} params.resource Request body data + * @param {().InAppProduct} params.requestBody 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 @@ -6044,7 +6044,7 @@ export namespace androidpublisher_v2 { * @param {string} params.packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). * @param {string} params.subscriptionId The purchased subscription ID (for example, 'monthly001'). * @param {string} params.token The token provided to the user's device when the subscription was purchased. - * @param {().SubscriptionPurchasesDeferRequest} params.resource Request body data + * @param {().SubscriptionPurchasesDeferRequest} params.requestBody 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 @@ -6744,7 +6744,7 @@ export namespace androidpublisher_v2 { * @param {object} params Parameters for request * @param {string} params.packageName Unique identifier for the Android app for which we want reviews; for example, "com.spiffygame". * @param {string} params.reviewId - * @param {().ReviewsReplyRequest} params.resource Request body data + * @param {().ReviewsReplyRequest} params.requestBody 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 diff --git a/src/apis/androidpublisher/v3.ts b/src/apis/androidpublisher/v3.ts index def9231df55..693194b43ca 100644 --- a/src/apis/androidpublisher/v3.ts +++ b/src/apis/androidpublisher/v3.ts @@ -215,6 +215,10 @@ export namespace androidpublisher_v3 { */ userComment?: Schema$UserComment; } + export interface Schema$Control { + modRanges?: Schema$ModRange[]; + versionCodes?: string[] | null; + } export interface Schema$CountryTargeting { countries?: string[] | null; includeRestOfWorld?: boolean | null; @@ -542,6 +546,15 @@ export namespace androidpublisher_v3 { */ text?: string | null; } + export interface Schema$MendelSampling { + modRanges?: Schema$ModRange[]; + modulus?: string | null; + salt?: number | null; + } + export interface Schema$ModRange { + end?: string | null; + start?: string | null; + } export interface Schema$MonthDay { /** * Day of a month, value in [1, 31] range. Valid range depends on the specified month. @@ -863,6 +876,7 @@ export namespace androidpublisher_v3 { track?: string | null; } export interface Schema$TrackRelease { + controls?: Schema$Control[]; countryTargeting?: Schema$CountryTargeting; /** * The release name, used to identify this release in the Play Console UI. Not required to be unique. This is optional, if not set it will be generated from the version_name in the APKs. @@ -872,6 +886,7 @@ export namespace androidpublisher_v3 { * The description of what is new in the app in this release. */ releaseNotes?: Schema$LocalizedText[]; + sampling?: Schema$MendelSampling; /** * The desired status of this release. */ @@ -1231,7 +1246,7 @@ export namespace androidpublisher_v3 { * * @param {object} params Parameters for request * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param {().AppEdit} params.resource Request body data + * @param {().AppEdit} params.requestBody 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 @@ -1459,7 +1474,7 @@ export namespace androidpublisher_v3 { * @param {object} params Parameters for request * @param {string} params.editId Unique identifier for this edit. * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param {().ApksAddExternallyHostedRequest} params.resource Request body data + * @param {().ApksAddExternallyHostedRequest} params.requestBody 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 @@ -2210,7 +2225,7 @@ export namespace androidpublisher_v3 { * @param {object} params Parameters for request * @param {string} params.editId Unique identifier for this edit. * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param {().AppDetails} params.resource Request body data + * @param {().AppDetails} params.requestBody 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 @@ -2286,7 +2301,7 @@ export namespace androidpublisher_v3 { * @param {object} params Parameters for request * @param {string} params.editId Unique identifier for this edit. * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param {().AppDetails} params.resource Request body data + * @param {().AppDetails} params.requestBody 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 @@ -2517,7 +2532,7 @@ export namespace androidpublisher_v3 { * @param {string} params.editId Unique identifier for this edit. * @param {string} params.expansionFileType * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param {().ExpansionFile} params.resource Request body data + * @param {().ExpansionFile} params.requestBody 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 @@ -2605,7 +2620,7 @@ export namespace androidpublisher_v3 { * @param {string} params.editId Unique identifier for this edit. * @param {string} params.expansionFileType * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param {().ExpansionFile} params.resource Request body data + * @param {().ExpansionFile} params.requestBody 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 @@ -3677,7 +3692,7 @@ export namespace androidpublisher_v3 { * @param {string} params.editId Unique identifier for this edit. * @param {string} params.language The language code (a BCP-47 language tag) of the localized listing to read or modify. For example, to select Austrian German, pass "de-AT". * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param {().Listing} params.resource Request body data + * @param {().Listing} params.requestBody 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 @@ -3752,7 +3767,7 @@ export namespace androidpublisher_v3 { * @param {string} params.editId Unique identifier for this edit. * @param {string} params.language The language code (a BCP-47 language tag) of the localized listing to read or modify. For example, to select Austrian German, pass "de-AT". * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param {().Listing} params.resource Request body data + * @param {().Listing} params.requestBody 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 @@ -4029,7 +4044,7 @@ export namespace androidpublisher_v3 { * @param {string} params.editId Unique identifier for this edit. * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". * @param {string} params.track The track to read or modify. - * @param {().Testers} params.resource Request body data + * @param {().Testers} params.requestBody 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 @@ -4103,7 +4118,7 @@ export namespace androidpublisher_v3 { * @param {string} params.editId Unique identifier for this edit. * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". * @param {string} params.track The track to read or modify. - * @param {().Testers} params.resource Request body data + * @param {().Testers} params.requestBody 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 @@ -4404,7 +4419,7 @@ export namespace androidpublisher_v3 { * @param {string} params.editId Unique identifier for this edit. * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". * @param {string} params.track The track to read or modify. - * @param {().Track} params.resource Request body data + * @param {().Track} params.requestBody 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 @@ -4479,7 +4494,7 @@ export namespace androidpublisher_v3 { * @param {string} params.editId Unique identifier for this edit. * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". * @param {string} params.track The track to read or modify. - * @param {().Track} params.resource Request body data + * @param {().Track} params.requestBody 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 @@ -4794,7 +4809,7 @@ export namespace androidpublisher_v3 { * @param {object} params Parameters for request * @param {boolean=} params.autoConvertMissingPrices If true the prices for all regions targeted by the parent app that don't have a price specified for this in-app product will be auto converted to the target currency based on the default price. Defaults to false. * @param {string} params.packageName Unique identifier for the Android app; for example, "com.spiffygame". - * @param {().InAppProduct} params.resource Request body data + * @param {().InAppProduct} params.requestBody 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 @@ -4955,7 +4970,7 @@ export namespace androidpublisher_v3 { * @param {boolean=} params.autoConvertMissingPrices If true the prices for all regions targeted by the parent app that don't have a price specified for this in-app product will be auto converted to the target currency based on the default price. Defaults to false. * @param {string} params.packageName Unique identifier for the Android app with the in-app product; for example, "com.spiffygame". * @param {string} params.sku Unique identifier for the in-app product. - * @param {().InAppProduct} params.resource Request body data + * @param {().InAppProduct} params.requestBody 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 @@ -5032,7 +5047,7 @@ export namespace androidpublisher_v3 { * @param {boolean=} params.autoConvertMissingPrices If true the prices for all regions targeted by the parent app that don't have a price specified for this in-app product will be auto converted to the target currency based on the default price. Defaults to false. * @param {string} params.packageName Unique identifier for the Android app with the in-app product; for example, "com.spiffygame". * @param {string} params.sku Unique identifier for the in-app product. - * @param {().InAppProduct} params.resource Request body data + * @param {().InAppProduct} params.requestBody 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 @@ -5597,7 +5612,7 @@ export namespace androidpublisher_v3 { * @param {string} params.packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing'). * @param {string} params.productId The inapp product SKU (for example, 'com.some.thing.inapp1'). * @param {string} params.token The token provided to the user's device when the subscription was purchased. - * @param {().ProductPurchasesAcknowledgeRequest} params.resource Request body data + * @param {().ProductPurchasesAcknowledgeRequest} params.requestBody 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 @@ -5801,7 +5816,7 @@ export namespace androidpublisher_v3 { * @param {string} params.packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). * @param {string} params.subscriptionId The purchased subscription ID (for example, 'monthly001'). * @param {string} params.token The token provided to the user's device when the subscription was purchased. - * @param {().SubscriptionPurchasesAcknowledgeRequest} params.resource Request body data + * @param {().SubscriptionPurchasesAcknowledgeRequest} params.requestBody 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 @@ -5950,7 +5965,7 @@ export namespace androidpublisher_v3 { * @param {string} params.packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). * @param {string} params.subscriptionId The purchased subscription ID (for example, 'monthly001'). * @param {string} params.token The token provided to the user's device when the subscription was purchased. - * @param {().SubscriptionPurchasesDeferRequest} params.resource Request body data + * @param {().SubscriptionPurchasesDeferRequest} params.requestBody 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 @@ -6680,7 +6695,7 @@ export namespace androidpublisher_v3 { * @param {object} params Parameters for request * @param {string} params.packageName Unique identifier for the Android app for which we want reviews; for example, "com.spiffygame". * @param {string} params.reviewId - * @param {().ReviewsReplyRequest} params.resource Request body data + * @param {().ReviewsReplyRequest} params.requestBody 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 diff --git a/src/apis/appengine/v1.ts b/src/apis/appengine/v1.ts index 30159b4c4d4..92320182895 100644 --- a/src/apis/appengine/v1.ts +++ b/src/apis/appengine/v1.ts @@ -1606,7 +1606,7 @@ export namespace appengine_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Application} params.resource Request body data + * @param {().Application} params.requestBody 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 @@ -1748,7 +1748,7 @@ export namespace appengine_v1 { * @param {object} params Parameters for request * @param {string} params.appsId Part of `name`. Name of the Application resource to update. Example: apps/myapp. * @param {string=} params.updateMask Standard field mask for the set of fields to be updated. - * @param {().Application} params.resource Request body data + * @param {().Application} params.requestBody 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 @@ -1819,7 +1819,7 @@ export namespace appengine_v1 { * * @param {object} params Parameters for request * @param {string} params.appsId Part of `name`. Name of the application to repair. Example: apps/myapp - * @param {().RepairApplicationRequest} params.resource Request body data + * @param {().RepairApplicationRequest} params.requestBody 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 @@ -1959,7 +1959,7 @@ export namespace appengine_v1 { * * @param {object} params Parameters for request * @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp. - * @param {().AuthorizedCertificate} params.resource Request body data + * @param {().AuthorizedCertificate} params.requestBody 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 @@ -2275,7 +2275,7 @@ export namespace appengine_v1 { * @param {string} params.appsId Part of `name`. Name of the resource to update. Example: apps/myapp/authorizedCertificates/12345. * @param {string} params.authorizedCertificatesId Part of `name`. See documentation of `appsId`. * @param {string=} params.updateMask Standard field mask for the set of fields to be updated. Updates are only supported on the certificate_raw_data and display_name fields. - * @param {().AuthorizedCertificate} params.resource Request body data + * @param {().AuthorizedCertificate} params.requestBody 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 @@ -2576,7 +2576,7 @@ export namespace appengine_v1 { * @param {object} params Parameters for request * @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp. * @param {string=} params.overrideStrategy Whether the domain creation should override any existing mappings for this domain. By default, overrides are rejected. - * @param {().DomainMapping} params.resource Request body data + * @param {().DomainMapping} params.requestBody 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 @@ -2884,7 +2884,7 @@ export namespace appengine_v1 { * @param {string} params.appsId Part of `name`. Name of the resource to update. Example: apps/myapp/domainMappings/example.com. * @param {string} params.domainMappingsId Part of `name`. See documentation of `appsId`. * @param {string=} params.updateMask Standard field mask for the set of fields to be updated. - * @param {().DomainMapping} params.resource Request body data + * @param {().DomainMapping} params.requestBody 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 @@ -3073,7 +3073,7 @@ export namespace appengine_v1 { * * @param {object} params Parameters for request * @param {string} params.appsId Part of `name`. Name of the Firewall collection to set. Example: apps/myapp/firewall/ingressRules. - * @param {().BatchUpdateIngressRulesRequest} params.resource Request body data + * @param {().BatchUpdateIngressRulesRequest} params.requestBody 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 @@ -3156,7 +3156,7 @@ export namespace appengine_v1 { * * @param {object} params Parameters for request * @param {string} params.appsId Part of `parent`. Name of the parent Firewall collection in which to create a new rule. Example: apps/myapp/firewall/ingressRules. - * @param {().FirewallRule} params.resource Request body data + * @param {().FirewallRule} params.requestBody 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 @@ -3460,7 +3460,7 @@ export namespace appengine_v1 { * @param {string} params.appsId Part of `name`. Name of the Firewall resource to update. Example: apps/myapp/firewall/ingressRules/100. * @param {string} params.ingressRulesId Part of `name`. See documentation of `appsId`. * @param {string=} params.updateMask Standard field mask for the set of fields to be updated. - * @param {().FirewallRule} params.resource Request body data + * @param {().FirewallRule} params.requestBody 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 @@ -4289,7 +4289,7 @@ export namespace appengine_v1 { * @param {boolean=} params.migrateTraffic Set to true to gradually shift traffic to one or more versions that you specify. By default, traffic is shifted immediately. For gradual traffic migration, the target versions must be located within instances that are configured for both warmup requests (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#InboundServiceType) and automatic scaling (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#AutomaticScaling). You must specify the shardBy (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services#ShardBy) field in the Service resource. Gradual traffic migration is not supported in the App Engine flexible environment. For examples, see Migrating and Splitting Traffic (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic). * @param {string} params.servicesId Part of `name`. See documentation of `appsId`. * @param {string=} params.updateMask Standard field mask for the set of fields to be updated. - * @param {().Service} params.resource Request body data + * @param {().Service} params.requestBody 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 @@ -4458,7 +4458,7 @@ export namespace appengine_v1 { * @param {object} params Parameters for request * @param {string} params.appsId Part of `parent`. Name of the parent resource to create this version under. Example: apps/myapp/services/default. * @param {string} params.servicesId Part of `parent`. See documentation of `appsId`. - * @param {().Version} params.resource Request body data + * @param {().Version} params.requestBody 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 @@ -4765,7 +4765,7 @@ export namespace appengine_v1 { * @param {string} params.servicesId Part of `name`. See documentation of `appsId`. * @param {string=} params.updateMask Standard field mask for the set of fields to be updated. * @param {string} params.versionsId Part of `name`. See documentation of `appsId`. - * @param {().Version} params.resource Request body data + * @param {().Version} params.requestBody 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 @@ -4973,7 +4973,7 @@ export namespace appengine_v1 { * @param {string} params.instancesId Part of `name`. See documentation of `appsId`. * @param {string} params.servicesId Part of `name`. See documentation of `appsId`. * @param {string} params.versionsId Part of `name`. See documentation of `appsId`. - * @param {().DebugInstanceRequest} params.resource Request body data + * @param {().DebugInstanceRequest} params.requestBody 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 diff --git a/src/apis/appengine/v1alpha.ts b/src/apis/appengine/v1alpha.ts index f5cdfe56431..817018352bc 100644 --- a/src/apis/appengine/v1alpha.ts +++ b/src/apis/appengine/v1alpha.ts @@ -560,7 +560,7 @@ export namespace appengine_v1alpha { * * @param {object} params Parameters for request * @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp. - * @param {().AuthorizedCertificate} params.resource Request body data + * @param {().AuthorizedCertificate} params.requestBody 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 @@ -874,7 +874,7 @@ export namespace appengine_v1alpha { * @param {string} params.appsId Part of `name`. Name of the resource to update. Example: apps/myapp/authorizedCertificates/12345. * @param {string} params.authorizedCertificatesId Part of `name`. See documentation of `appsId`. * @param {string=} params.updateMask Standard field mask for the set of fields to be updated. Updates are only supported on the certificate_raw_data and display_name fields. - * @param {().AuthorizedCertificate} params.resource Request body data + * @param {().AuthorizedCertificate} params.requestBody 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 @@ -1176,7 +1176,7 @@ export namespace appengine_v1alpha { * @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp. * @param {boolean=} params.noManagedCertificate Whether a managed certificate should be provided by App Engine. If true, a certificate ID must be manaually set in the DomainMapping resource to configure SSL for this domain. If false, a managed certificate will be provisioned and a certificate ID will be automatically populated. * @param {string=} params.overrideStrategy Whether the domain creation should override any existing mappings for this domain. By default, overrides are rejected. - * @param {().DomainMapping} params.resource Request body data + * @param {().DomainMapping} params.requestBody 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 @@ -1487,7 +1487,7 @@ export namespace appengine_v1alpha { * @param {string} params.domainMappingsId Part of `name`. See documentation of `appsId`. * @param {boolean=} params.noManagedCertificate Whether a managed certificate should be provided by App Engine. If true, a certificate ID must be manually set in the DomainMapping resource to configure SSL for this domain. If false, a managed certificate will be provisioned and a certificate ID will be automatically populated. Only applicable if ssl_settings.certificate_id is specified in the update mask. * @param {string=} params.updateMask Standard field mask for the set of fields to be updated. - * @param {().DomainMapping} params.resource Request body data + * @param {().DomainMapping} params.requestBody 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 diff --git a/src/apis/appengine/v1beta.ts b/src/apis/appengine/v1beta.ts index 18835940c29..7f3cc2c7795 100644 --- a/src/apis/appengine/v1beta.ts +++ b/src/apis/appengine/v1beta.ts @@ -1666,7 +1666,7 @@ export namespace appengine_v1beta { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Application} params.resource Request body data + * @param {().Application} params.requestBody 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 @@ -1811,7 +1811,7 @@ export namespace appengine_v1beta { * @param {object} params Parameters for request * @param {string} params.appsId Part of `name`. Name of the Application resource to update. Example: apps/myapp. * @param {string=} params.updateMask Standard field mask for the set of fields to be updated. - * @param {().Application} params.resource Request body data + * @param {().Application} params.requestBody 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 @@ -1885,7 +1885,7 @@ export namespace appengine_v1beta { * * @param {object} params Parameters for request * @param {string} params.appsId Part of `name`. Name of the application to repair. Example: apps/myapp - * @param {().RepairApplicationRequest} params.resource Request body data + * @param {().RepairApplicationRequest} params.requestBody 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 @@ -2025,7 +2025,7 @@ export namespace appengine_v1beta { * * @param {object} params Parameters for request * @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp. - * @param {().AuthorizedCertificate} params.resource Request body data + * @param {().AuthorizedCertificate} params.requestBody 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 @@ -2339,7 +2339,7 @@ export namespace appengine_v1beta { * @param {string} params.appsId Part of `name`. Name of the resource to update. Example: apps/myapp/authorizedCertificates/12345. * @param {string} params.authorizedCertificatesId Part of `name`. See documentation of `appsId`. * @param {string=} params.updateMask Standard field mask for the set of fields to be updated. Updates are only supported on the certificate_raw_data and display_name fields. - * @param {().AuthorizedCertificate} params.resource Request body data + * @param {().AuthorizedCertificate} params.requestBody 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 @@ -2640,7 +2640,7 @@ export namespace appengine_v1beta { * @param {object} params Parameters for request * @param {string} params.appsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp. * @param {string=} params.overrideStrategy Whether the domain creation should override any existing mappings for this domain. By default, overrides are rejected. - * @param {().DomainMapping} params.resource Request body data + * @param {().DomainMapping} params.requestBody 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 @@ -2950,7 +2950,7 @@ export namespace appengine_v1beta { * @param {string} params.appsId Part of `name`. Name of the resource to update. Example: apps/myapp/domainMappings/example.com. * @param {string} params.domainMappingsId Part of `name`. See documentation of `appsId`. * @param {string=} params.updateMask Standard field mask for the set of fields to be updated. - * @param {().DomainMapping} params.resource Request body data + * @param {().DomainMapping} params.requestBody 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 @@ -3140,7 +3140,7 @@ export namespace appengine_v1beta { * * @param {object} params Parameters for request * @param {string} params.appsId Part of `name`. Name of the Firewall collection to set. Example: apps/myapp/firewall/ingressRules. - * @param {().BatchUpdateIngressRulesRequest} params.resource Request body data + * @param {().BatchUpdateIngressRulesRequest} params.requestBody 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 @@ -3224,7 +3224,7 @@ export namespace appengine_v1beta { * * @param {object} params Parameters for request * @param {string} params.appsId Part of `parent`. Name of the parent Firewall collection in which to create a new rule. Example: apps/myapp/firewall/ingressRules. - * @param {().FirewallRule} params.resource Request body data + * @param {().FirewallRule} params.requestBody 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 @@ -3526,7 +3526,7 @@ export namespace appengine_v1beta { * @param {string} params.appsId Part of `name`. Name of the Firewall resource to update. Example: apps/myapp/firewall/ingressRules/100. * @param {string} params.ingressRulesId Part of `name`. See documentation of `appsId`. * @param {string=} params.updateMask Standard field mask for the set of fields to be updated. - * @param {().FirewallRule} params.resource Request body data + * @param {().FirewallRule} params.requestBody 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 @@ -4353,7 +4353,7 @@ export namespace appengine_v1beta { * @param {boolean=} params.migrateTraffic Set to true to gradually shift traffic to one or more versions that you specify. By default, traffic is shifted immediately. For gradual traffic migration, the target versions must be located within instances that are configured for both warmup requests (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#InboundServiceType) and automatic scaling (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#AutomaticScaling). You must specify the shardBy (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services#ShardBy) field in the Service resource. Gradual traffic migration is not supported in the App Engine flexible environment. For examples, see Migrating and Splitting Traffic (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic). * @param {string} params.servicesId Part of `name`. See documentation of `appsId`. * @param {string=} params.updateMask Standard field mask for the set of fields to be updated. - * @param {().Service} params.resource Request body data + * @param {().Service} params.requestBody 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 @@ -4521,7 +4521,7 @@ export namespace appengine_v1beta { * @param {object} params Parameters for request * @param {string} params.appsId Part of `parent`. Name of the parent resource to create this version under. Example: apps/myapp/services/default. * @param {string} params.servicesId Part of `parent`. See documentation of `appsId`. - * @param {().Version} params.resource Request body data + * @param {().Version} params.requestBody 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 @@ -4828,7 +4828,7 @@ export namespace appengine_v1beta { * @param {string} params.servicesId Part of `name`. See documentation of `appsId`. * @param {string=} params.updateMask Standard field mask for the set of fields to be updated. * @param {string} params.versionsId Part of `name`. See documentation of `appsId`. - * @param {().Version} params.resource Request body data + * @param {().Version} params.requestBody 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 @@ -5036,7 +5036,7 @@ export namespace appengine_v1beta { * @param {string} params.instancesId Part of `name`. See documentation of `appsId`. * @param {string} params.servicesId Part of `name`. See documentation of `appsId`. * @param {string} params.versionsId Part of `name`. See documentation of `appsId`. - * @param {().DebugInstanceRequest} params.resource Request body data + * @param {().DebugInstanceRequest} params.requestBody 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 diff --git a/src/apis/bigquery/v2.ts b/src/apis/bigquery/v2.ts index 96254adbca2..a723fc91a65 100644 --- a/src/apis/bigquery/v2.ts +++ b/src/apis/bigquery/v2.ts @@ -416,15 +416,15 @@ export namespace bigquery_v2 { * [Output-only, Beta] Training options used by this training run. These options are mutable for subsequent training runs. Default values are explicitly stored for options not specified in the input query of the first training run. For subsequent training runs, any option not explicitly specified in the input query will be copied from the previous training run. */ trainingOptions?: { - l1Reg?: number; - maxIteration?: string; - learnRate?: number; - minRelProgress?: number; l2Reg?: number; - learnRateStrategy?: string; warmStart?: boolean; + learnRateStrategy?: string; lineSearchInitLearnRate?: number; earlyStop?: boolean; + l1Reg?: number; + maxIteration?: string; + learnRate?: number; + minRelProgress?: number; } | null; } /** @@ -550,13 +550,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<{ - iamMember?: string; - specialGroup?: string; role?: string; view?: Schema$TableReference; groupByEmail?: string; userByEmail?: string; domain?: string; + iamMember?: string; + specialGroup?: string; }> | null; /** * [Output-only] The time when this dataset was created, in milliseconds since the epoch. @@ -617,12 +617,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; }> | null; /** * A hash value of the results page. You can use this property to determine if the page has changed since the last request. @@ -647,6 +647,19 @@ export namespace bigquery_v2 { */ projectId?: string | null; } + /** + * Data split result. This contains references to the training and evaluation data tables that were used to train the model. + */ + export interface Schema$DataSplitResult { + /** + * Table reference of the evaluation data after split. + */ + evaluationTable?: Schema$TableReference; + /** + * Table reference of the training data after split. + */ + trainingTable?: Schema$TableReference; + } export interface Schema$DestinationTableProperties { /** * [Optional] The description for the destination table. This will only be used if the destination table is newly created. If the table already exists and a value different than the current description is provided, the job will fail. @@ -1383,15 +1396,15 @@ export namespace bigquery_v2 { * List of jobs that were requested. */ jobs?: Array<{ + user_email?: string; + kind?: string; + errorResult?: Schema$ErrorProto; jobReference?: Schema$JobReference; status?: Schema$JobStatus; state?: string; statistics?: Schema$JobStatistics; id?: string; configuration?: Schema$JobConfiguration; - user_email?: string; - errorResult?: Schema$ErrorProto; - kind?: string; }> | null; /** * The resource type of the response. @@ -1534,7 +1547,7 @@ export namespace bigquery_v2 { /** * [Output-only] Job resource usage breakdown by reservation. */ - reservationUsage?: Array<{slotMs?: string; name?: string}> | null; + reservationUsage?: Array<{name?: string; slotMs?: string}> | null; /** * [Output-only] The schema of the results. Present only for successful dry run of non-legacy SQL queries. */ @@ -1639,7 +1652,7 @@ export namespace bigquery_v2 { */ nextPageToken?: string | null; /** - * Routines in the requested dataset. Only the following fields are populated: etag, project_id, dataset_id, routine_id, routine_type, creation_time, last_modified_time, language. + * Routines in the requested dataset. Unless read_mask is set in the request, only the following fields are populated: etag, project_id, dataset_id, routine_id, routine_type, creation_time, last_modified_time, and language. */ routines?: Schema$Routine[]; } @@ -1653,6 +1666,10 @@ export namespace bigquery_v2 { legacyLocationId?: string | null; } export interface Schema$MaterializedViewDefinition { + /** + * [Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated. The default value is "true". + */ + enableRefresh?: boolean | null; /** * [Output-only] [TrustedTester] The time when this materialized view was last modified, in milliseconds since the epoch. */ @@ -1661,6 +1678,10 @@ export namespace bigquery_v2 { * [Required] A query whose result is persisted. */ query?: string | null; + /** + * [Optional] [TrustedTester] The maximum frequency at which this materialized view will be refreshed. The default value is "1800000" (30 minutes). + */ + refreshIntervalMs?: string | null; } export interface Schema$Model { /** @@ -1725,9 +1746,9 @@ 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?: { + modelType?: string; labels?: string[]; lossType?: string; - modelType?: string; } | null; /** * [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. @@ -1818,9 +1839,9 @@ export namespace bigquery_v2 { * [Optional] The types of the fields of this struct, in order, if this is a struct. */ structTypes?: Array<{ - type?: Schema$QueryParameterType; name?: string; description?: string; + type?: Schema$QueryParameterType; }> | null; /** * [Required] The top level type of this field. @@ -1967,7 +1988,7 @@ export namespace bigquery_v2 { /** * [TrustedTester] [Required] Defines the ranges for range partitioning. */ - range?: {end?: string; interval?: string; start?: string} | null; + range?: {interval?: string; start?: string; end?: string} | null; } /** * Evaluation metrics for regression and explicit feedback type matrix factorization models. @@ -2235,7 +2256,7 @@ export namespace bigquery_v2 { */ rangePartitioning?: Schema$RangePartitioning; /** - * [Beta] [Optional] If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified. + * [Optional] If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified. */ requirePartitionFilter?: boolean | null; /** @@ -2345,6 +2366,7 @@ export namespace bigquery_v2 { * [Required] The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters. */ name?: string | null; + policyTags?: {names?: string[]} | null; /** * [Required] The field data type. Possible values include STRING, BYTES, INTEGER, INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (where RECORD indicates that the field contains a nested schema) or STRUCT (same as RECORD). */ @@ -2367,18 +2389,18 @@ export namespace bigquery_v2 { * Tables in the requested dataset. */ tables?: Array<{ - creationTime?: string; - rangePartitioning?: Schema$RangePartitioning; id?: string; tableReference?: Schema$TableReference; - timePartitioning?: Schema$TimePartitioning; friendlyName?: string; + timePartitioning?: Schema$TimePartitioning; labels?: {[key: string]: string}; - type?: string; clustering?: Schema$Clustering; + type?: string; expirationTime?: string; kind?: string; view?: {useLegacySql?: boolean}; + creationTime?: string; + rangePartitioning?: Schema$RangePartitioning; }> | null; /** * The total number of tables in the dataset. @@ -2516,6 +2538,10 @@ export namespace bigquery_v2 { * Information about a single training query run for the model. */ export interface Schema$TrainingRun { + /** + * Data split result of the training run. Only set when the input data is actually split. + */ + dataSplitResult?: Schema$DataSplitResult; /** * The evaluation metrics over training/eval data that were computed at the end of training. */ @@ -2860,7 +2886,7 @@ export namespace bigquery_v2 { * * @param {object} params Parameters for request * @param {string} params.projectId Project ID of the new dataset - * @param {().Dataset} params.resource Request body data + * @param {().Dataset} params.requestBody 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 @@ -3121,7 +3147,7 @@ export namespace bigquery_v2 { * @param {object} params Parameters for request * @param {string} params.datasetId Dataset ID of the dataset being updated * @param {string} params.projectId Project ID of the dataset being updated - * @param {().Dataset} params.resource Request body data + * @param {().Dataset} params.requestBody 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 @@ -3247,7 +3273,7 @@ export namespace bigquery_v2 { * @param {object} params Parameters for request * @param {string} params.datasetId Dataset ID of the dataset being updated * @param {string} params.projectId Project ID of the dataset being updated - * @param {().Dataset} params.resource Request body data + * @param {().Dataset} params.requestBody 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 @@ -3889,7 +3915,7 @@ export namespace bigquery_v2 { * * @param {object} params Parameters for request * @param {string} params.projectId Project ID of the project that will be billed for the job - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents @@ -4155,7 +4181,7 @@ export namespace bigquery_v2 { * * @param {object} params Parameters for request * @param {string} params.projectId Project ID of the project billed for the query - * @param {().QueryRequest} params.resource Request body data + * @param {().QueryRequest} params.requestBody 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 @@ -4844,7 +4870,7 @@ export namespace bigquery_v2 { * @param {string} params.datasetId Required. Dataset ID of the model to patch. * @param {string} params.modelId Required. Model ID of the model to patch. * @param {string} params.projectId Required. Project ID of the model to patch. - * @param {().Model} params.resource Request body data + * @param {().Model} params.requestBody 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 @@ -5474,7 +5500,6 @@ export namespace bigquery_v2 { * * @param {object} params Parameters for request * @param {string} params.datasetId Required. Dataset ID of the requested routine - * @param {string=} params.fieldMask If set, only the Routine fields in the field mask are returned in the response. If unset, all Routine fields are returned. * @param {string} params.projectId Required. Project ID of the requested routine * @param {string} params.routineId Required. Routine ID of the requested routine * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. @@ -5602,7 +5627,7 @@ export namespace bigquery_v2 { * @param {object} params Parameters for request * @param {string} params.datasetId Required. Dataset ID of the new routine * @param {string} params.projectId Required. Project ID of the new routine - * @param {().Routine} params.resource Request body data + * @param {().Routine} params.requestBody 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 @@ -5873,7 +5898,7 @@ export namespace bigquery_v2 { * @param {string} params.datasetId Required. Dataset ID of the routine to update * @param {string} params.projectId Required. Project ID of the routine to update * @param {string} params.routineId Required. Routine ID of the routine to update - * @param {().Routine} params.resource Request body data + * @param {().Routine} params.requestBody 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 @@ -5967,10 +5992,6 @@ export namespace bigquery_v2 { * Required. Dataset ID of the requested routine */ datasetId?: string; - /** - * If set, only the Routine fields in the field mask are returned in the response. If unset, all Routine fields are returned. - */ - fieldMask?: string; /** * Required. Project ID of the requested routine */ @@ -6120,7 +6141,7 @@ export namespace bigquery_v2 { * @param {string} params.datasetId Dataset ID of the destination table. * @param {string} params.projectId Project ID of the destination table. * @param {string} params.tableId Table ID of the destination table. - * @param {().TableDataInsertAllRequest} params.resource Request body data + * @param {().TableDataInsertAllRequest} params.requestBody 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 @@ -6716,7 +6737,7 @@ export namespace bigquery_v2 { * @param {object} params Parameters for request * @param {string} params.datasetId Dataset ID of the new table * @param {string} params.projectId Project ID of the new table - * @param {().Table} params.resource Request body data + * @param {().Table} params.requestBody 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 @@ -6985,7 +7006,7 @@ export namespace bigquery_v2 { * @param {string} params.datasetId Dataset ID of the table to update * @param {string} params.projectId Project ID of the table to update * @param {string} params.tableId Table ID of the table to update - * @param {().Table} params.resource Request body data + * @param {().Table} params.requestBody 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 @@ -7116,7 +7137,7 @@ export namespace bigquery_v2 { * @param {string} params.datasetId Dataset ID of the table to update * @param {string} params.projectId Project ID of the table to update * @param {string} params.tableId Table ID of the table to update - * @param {().Table} params.resource Request body data + * @param {().Table} params.requestBody 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 diff --git a/src/apis/bigqueryconnection/v1beta1.ts b/src/apis/bigqueryconnection/v1beta1.ts index 5242915debd..85cee015d45 100644 --- a/src/apis/bigqueryconnection/v1beta1.ts +++ b/src/apis/bigqueryconnection/v1beta1.ts @@ -299,11 +299,11 @@ export namespace bigqueryconnection_v1beta1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -374,7 +374,7 @@ export namespace bigqueryconnection_v1beta1 { * @param {object} params Parameters for request * @param {string=} params.connectionId Optional. Connection id that should be assigned to the created connection. * @param {string} params.parent Parent resource name. Must be in the format `projects/{project_id}/locations/{location_id}` - * @param {().Connection} params.resource Request body data + * @param {().Connection} params.requestBody 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 @@ -592,7 +592,7 @@ export namespace bigqueryconnection_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -746,7 +746,7 @@ export namespace bigqueryconnection_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name Name of the connection to update, for example: `projects/{project_id}/locations/{location_id}/connections/{connection_id}` * @param {string=} params.updateMask Update mask for the connection fields to be updated. - * @param {().Connection} params.resource Request body data + * @param {().Connection} params.requestBody 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 @@ -819,7 +819,7 @@ export namespace bigqueryconnection_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -893,7 +893,7 @@ export namespace bigqueryconnection_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -976,7 +976,7 @@ export namespace bigqueryconnection_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the connection, for example: `projects/{project_id}/locations/{location_id}/connections/{connection_id}/credential` - * @param {().ConnectionCredential} params.resource Request body data + * @param {().ConnectionCredential} params.requestBody 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 diff --git a/src/apis/bigquerydatatransfer/v1.ts b/src/apis/bigquerydatatransfer/v1.ts index 166aa2b8c94..cc88e31df1f 100644 --- a/src/apis/bigquerydatatransfer/v1.ts +++ b/src/apis/bigquerydatatransfer/v1.ts @@ -624,7 +624,7 @@ export namespace bigquerydatatransfer_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The data source in the form: `projects/{project_id}/dataSources/{data_source_id}` - * @param {().CheckValidCredsRequest} params.resource Request body data + * @param {().CheckValidCredsRequest} params.requestBody 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 @@ -1114,7 +1114,7 @@ export namespace bigquerydatatransfer_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The data source in the form: `projects/{project_id}/dataSources/{data_source_id}` - * @param {().CheckValidCredsRequest} params.resource Request body data + * @param {().CheckValidCredsRequest} params.requestBody 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 @@ -1407,8 +1407,9 @@ export namespace bigquerydatatransfer_v1 { * @param {object} params Parameters for request * @param {string=} params.authorizationCode Optional OAuth2 authorization code to use with this transfer configuration. This is required if new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri= * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. * redirect_uri is an optional parameter. If not specified, then authorization code is posted to the opener of authorization flow window. Otherwise it will be sent to the redirect uri. A special value of urn:ietf:wg:oauth:2.0:oob means that authorization code should be returned in the title bar of the browser, with the page text prompting the user to copy the code and paste it in the application. * @param {string} params.parent Required. The BigQuery project id where the transfer configuration should be created. Must be in the format projects/{project_id}/locations/{location_id} If specified location and location of the destination bigquery dataset do not match - the request will fail. + * @param {string=} params.serviceAccountName Optional service account name. If this field is set, transfer config will be created with this service account credentials. It requires that requesting user calling this API has permissions to act as this service account. * @param {string=} params.versionInfo Optional version info. If users want to find a very recent access token, that is, immediately after approving access, users have to set the version_info claim in the token request. To obtain the version_info, users must use the "none+gsession" response type. which be return a version_info back in the authorization response which be be put in a JWT claim in the token request. - * @param {().TransferConfig} params.resource Request body data + * @param {().TransferConfig} params.requestBody 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 @@ -1712,9 +1713,10 @@ export namespace bigquerydatatransfer_v1 { * @param {object} params Parameters for request * @param {string=} params.authorizationCode Optional OAuth2 authorization code to use with this transfer configuration. If it is provided, the transfer configuration will be associated with the authorizing user. In order to obtain authorization_code, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri= * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. * redirect_uri is an optional parameter. If not specified, then authorization code is posted to the opener of authorization flow window. Otherwise it will be sent to the redirect uri. A special value of urn:ietf:wg:oauth:2.0:oob means that authorization code should be returned in the title bar of the browser, with the page text prompting the user to copy the code and paste it in the application. * @param {string} params.name The resource name of the transfer config. Transfer config names have the form of `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. The name is automatically generated based on the config_id specified in CreateTransferConfigRequest along with project_id and region. If config_id is not provided, usually a uuid, even though it is not guaranteed or required, will be generated for config_id. + * @param {string=} params.serviceAccountName Optional service account name. If this field is set and "service_account_name" is set in update_mask, transfer config will be updated to use this service account credentials. It requires that requesting user calling this API has permissions to act as this service account. * @param {string=} params.updateMask Required. Required list of fields to be updated in this request. * @param {string=} params.versionInfo Optional version info. If users want to find a very recent access token, that is, immediately after approving access, users have to set the version_info claim in the token request. To obtain the version_info, users must use the "none+gsession" response type. which be return a version_info back in the authorization response which be be put in a JWT claim in the token request. - * @param {().TransferConfig} params.resource Request body data + * @param {().TransferConfig} params.requestBody 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 @@ -1787,7 +1789,7 @@ export namespace bigquerydatatransfer_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. Transfer configuration name in the form: `projects/{project_id}/transferConfigs/{config_id}`. - * @param {().ScheduleTransferRunsRequest} params.resource Request body data + * @param {().ScheduleTransferRunsRequest} params.requestBody 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 @@ -1872,7 +1874,7 @@ export namespace bigquerydatatransfer_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Transfer configuration name in the form: `projects/{project_id}/transferConfigs/{config_id}`. - * @param {().StartManualTransferRunsRequest} params.resource Request body data + * @param {().StartManualTransferRunsRequest} params.requestBody 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 @@ -1965,6 +1967,10 @@ export namespace bigquerydatatransfer_v1 { * Required. The BigQuery project id where the transfer configuration should be created. Must be in the format projects/{project_id}/locations/{location_id} If specified location and location of the destination bigquery dataset do not match - the request will fail. */ parent?: string; + /** + * Optional service account name. If this field is set, transfer config will be created with this service account credentials. It requires that requesting user calling this API has permissions to act as this service account. + */ + serviceAccountName?: string; /** * Optional version info. If users want to find a very recent access token, that is, immediately after approving access, users have to set the version_info claim in the token request. To obtain the version_info, users must use the "none+gsession" response type. which be return a version_info back in the authorization response which be be put in a JWT claim in the token request. */ @@ -2038,6 +2044,10 @@ export namespace bigquerydatatransfer_v1 { * The resource name of the transfer config. Transfer config names have the form of `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. The name is automatically generated based on the config_id specified in CreateTransferConfigRequest along with project_id and region. If config_id is not provided, usually a uuid, even though it is not guaranteed or required, will be generated for config_id. */ name?: string; + /** + * Optional service account name. If this field is set and "service_account_name" is set in update_mask, transfer config will be updated to use this service account credentials. It requires that requesting user calling this API has permissions to act as this service account. + */ + serviceAccountName?: string; /** * Required. Required list of fields to be updated in this request. */ @@ -2500,8 +2510,9 @@ export namespace bigquerydatatransfer_v1 { * @param {object} params Parameters for request * @param {string=} params.authorizationCode Optional OAuth2 authorization code to use with this transfer configuration. This is required if new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri= * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. * redirect_uri is an optional parameter. If not specified, then authorization code is posted to the opener of authorization flow window. Otherwise it will be sent to the redirect uri. A special value of urn:ietf:wg:oauth:2.0:oob means that authorization code should be returned in the title bar of the browser, with the page text prompting the user to copy the code and paste it in the application. * @param {string} params.parent Required. The BigQuery project id where the transfer configuration should be created. Must be in the format projects/{project_id}/locations/{location_id} If specified location and location of the destination bigquery dataset do not match - the request will fail. + * @param {string=} params.serviceAccountName Optional service account name. If this field is set, transfer config will be created with this service account credentials. It requires that requesting user calling this API has permissions to act as this service account. * @param {string=} params.versionInfo Optional version info. If users want to find a very recent access token, that is, immediately after approving access, users have to set the version_info claim in the token request. To obtain the version_info, users must use the "none+gsession" response type. which be return a version_info back in the authorization response which be be put in a JWT claim in the token request. - * @param {().TransferConfig} params.resource Request body data + * @param {().TransferConfig} params.requestBody 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 @@ -2805,9 +2816,10 @@ export namespace bigquerydatatransfer_v1 { * @param {object} params Parameters for request * @param {string=} params.authorizationCode Optional OAuth2 authorization code to use with this transfer configuration. If it is provided, the transfer configuration will be associated with the authorizing user. In order to obtain authorization_code, please make a request to https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri= * client_id should be OAuth client_id of BigQuery DTS API for the given data source returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. * redirect_uri is an optional parameter. If not specified, then authorization code is posted to the opener of authorization flow window. Otherwise it will be sent to the redirect uri. A special value of urn:ietf:wg:oauth:2.0:oob means that authorization code should be returned in the title bar of the browser, with the page text prompting the user to copy the code and paste it in the application. * @param {string} params.name The resource name of the transfer config. Transfer config names have the form of `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. The name is automatically generated based on the config_id specified in CreateTransferConfigRequest along with project_id and region. If config_id is not provided, usually a uuid, even though it is not guaranteed or required, will be generated for config_id. + * @param {string=} params.serviceAccountName Optional service account name. If this field is set and "service_account_name" is set in update_mask, transfer config will be updated to use this service account credentials. It requires that requesting user calling this API has permissions to act as this service account. * @param {string=} params.updateMask Required. Required list of fields to be updated in this request. * @param {string=} params.versionInfo Optional version info. If users want to find a very recent access token, that is, immediately after approving access, users have to set the version_info claim in the token request. To obtain the version_info, users must use the "none+gsession" response type. which be return a version_info back in the authorization response which be be put in a JWT claim in the token request. - * @param {().TransferConfig} params.resource Request body data + * @param {().TransferConfig} params.requestBody 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 @@ -2880,7 +2892,7 @@ export namespace bigquerydatatransfer_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. Transfer configuration name in the form: `projects/{project_id}/transferConfigs/{config_id}`. - * @param {().ScheduleTransferRunsRequest} params.resource Request body data + * @param {().ScheduleTransferRunsRequest} params.requestBody 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 @@ -2965,7 +2977,7 @@ export namespace bigquerydatatransfer_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Transfer configuration name in the form: `projects/{project_id}/transferConfigs/{config_id}`. - * @param {().StartManualTransferRunsRequest} params.resource Request body data + * @param {().StartManualTransferRunsRequest} params.requestBody 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 @@ -3058,6 +3070,10 @@ export namespace bigquerydatatransfer_v1 { * Required. The BigQuery project id where the transfer configuration should be created. Must be in the format projects/{project_id}/locations/{location_id} If specified location and location of the destination bigquery dataset do not match - the request will fail. */ parent?: string; + /** + * Optional service account name. If this field is set, transfer config will be created with this service account credentials. It requires that requesting user calling this API has permissions to act as this service account. + */ + serviceAccountName?: string; /** * Optional version info. If users want to find a very recent access token, that is, immediately after approving access, users have to set the version_info claim in the token request. To obtain the version_info, users must use the "none+gsession" response type. which be return a version_info back in the authorization response which be be put in a JWT claim in the token request. */ @@ -3131,6 +3147,10 @@ export namespace bigquerydatatransfer_v1 { * The resource name of the transfer config. Transfer config names have the form of `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. The name is automatically generated based on the config_id specified in CreateTransferConfigRequest along with project_id and region. If config_id is not provided, usually a uuid, even though it is not guaranteed or required, will be generated for config_id. */ name?: string; + /** + * Optional service account name. If this field is set and "service_account_name" is set in update_mask, transfer config will be updated to use this service account credentials. It requires that requesting user calling this API has permissions to act as this service account. + */ + serviceAccountName?: string; /** * Required. Required list of fields to be updated in this request. */ diff --git a/src/apis/bigqueryreservation/v1.ts b/src/apis/bigqueryreservation/v1.ts index 45a263379b1..4547003cb03 100644 --- a/src/apis/bigqueryreservation/v1.ts +++ b/src/apis/bigqueryreservation/v1.ts @@ -115,15 +115,6 @@ export namespace bigqueryreservation_v1 { } } - /** - * The metadata for operation returned from ReservationService.CreateCapacityCommitment. - */ - export interface Schema$CreateCapacityCommitmentMetadata { - /** - * Resource name of the capacity commitment that is being created. E.g., projects/myproject/locations/US/capacityCommitments/123 - */ - capacityCommitment?: string | null; - } /** * 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 `{}`. */ diff --git a/src/apis/bigqueryreservation/v1alpha2.ts b/src/apis/bigqueryreservation/v1alpha2.ts index ac0472e5889..07cd2848451 100644 --- a/src/apis/bigqueryreservation/v1alpha2.ts +++ b/src/apis/bigqueryreservation/v1alpha2.ts @@ -176,6 +176,31 @@ export namespace bigqueryreservation_v1alpha2 { */ legacyLocationId?: string | null; } + /** + * 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 | null; + /** + * 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} | null; + /** + * 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 | null; + /** + * 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} | null; + } /** * A reservation is a mechanism used to guarantee slots to users. */ @@ -228,13 +253,17 @@ export namespace bigqueryreservation_v1alpha2 { 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. + * 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. Annual commitments will automatically be downgraded to monthly after the commitment ends. 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 | null; + /** + * Output only. For FAILED slot pool, provides the reason of failure. + */ + failureStatus?: Schema$Status; /** * Output only. The resource name of the slot pool, e.g., projects/myproject/locations/us-central1/reservations/myreservation/slotPools/123 */ @@ -252,6 +281,23 @@ export namespace bigqueryreservation_v1alpha2 { */ state?: string | null; } + /** + * 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 | null; + /** + * 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}> | null; + /** + * 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 | null; + } export class Resource$Projects { context: APIRequestContext; @@ -264,10 +310,14 @@ export namespace bigqueryreservation_v1alpha2 { 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 ); @@ -388,6 +438,183 @@ export namespace bigqueryreservation_v1alpha2 { 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) { @@ -402,7 +629,7 @@ export namespace bigqueryreservation_v1alpha2 { * * @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 {().ReservationGrant} params.requestBody 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 @@ -696,7 +923,7 @@ export namespace bigqueryreservation_v1alpha2 { * @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 {().Reservation} params.requestBody 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 @@ -773,7 +1000,7 @@ export namespace bigqueryreservation_v1alpha2 { * @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 {().Reservation} params.requestBody 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 @@ -1073,7 +1300,7 @@ export namespace bigqueryreservation_v1alpha2 { * @param {object} params Parameters for request * @param {string} params.name 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`. * @param {string=} params.updateMask Standard field mask for the set of fields to be updated. - * @param {().Reservation} params.resource Request body data + * @param {().Reservation} params.requestBody 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 diff --git a/src/apis/bigqueryreservation/v1beta1.ts b/src/apis/bigqueryreservation/v1beta1.ts index 5ea5f5bd8f5..c6d10529a66 100644 --- a/src/apis/bigqueryreservation/v1beta1.ts +++ b/src/apis/bigqueryreservation/v1beta1.ts @@ -133,13 +133,34 @@ export namespace bigqueryreservation_v1beta1 { name?: string | null; } /** - * Capacity commitment is a way to purchase compute capacity for BigQuery jobs (in the form of slots) with some minimum committed period of usage. Capacity commitment 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 capacity commitment resource exists as a child resource of the admin project. + * Represents a BI Reservation. + */ + export interface Schema$BiReservation { + /** + * The resource name of the singleton BI reservation. Reservation names have the form `projects/{project_id}/locations/{location_id}/bireservation`. + */ + name?: string | null; + /** + * Size of a reservation, in bytes. + */ + size?: string | null; + /** + * Output only. The last update timestamp of a reservation. + */ + updateTime?: string | null; + } + /** + * Capacity commitment is a way to purchase compute capacity for BigQuery jobs (in the form of slots) with some minimum committed period of usage. Capacity commitment 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. Annual commitments will automatically be downgraded to monthly after the commitment ends. A capacity commitment resource exists as a child resource of the admin project. */ export interface Schema$CapacityCommitment { /** * Output only. The end of the commitment period. Capacity commitment cannot be removed before commitment_end_time. It is applicable only for ACTIVE capacity commitments and is computed as a combination of the plan and the time when the capacity commitment became ACTIVE. */ commitmentEndTime?: string | null; + /** + * Output only. For FAILED commitment plan, provides the reason of failure. + */ + failureStatus?: Schema$Status; /** * Output only. The resource name of the capacity commitment, e.g., projects/myproject/locations/US/capacityCommitments/123 */ @@ -157,15 +178,6 @@ export namespace bigqueryreservation_v1beta1 { */ state?: string | null; } - /** - * The metadata for operation returned from ReservationService.CreateCapacityCommitment. - */ - export interface Schema$CreateCapacityCommitmentMetadata { - /** - * Resource name of the capacity commitment that is being created. E.g., projects/myproject/locations/US/capacityCommitments/123 - */ - capacityCommitment?: string | null; - } /** * 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 `{}`. */ @@ -257,36 +269,20 @@ export namespace bigqueryreservation_v1beta1 { legacyLocationId?: string | null; } /** - * This resource represents a long-running operation that is the result of a network API call. + * The request for ReservationService.MoveAssignment. Note: "bigquery.reservationAssignments.create" permission is required on the destination_id. Note: "bigquery.reservationAssignments.create" and "bigquery.reservationAssignments.delete" permission is required on the related assignee. */ - 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 | null; - /** - * 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} | null; + export interface Schema$MoveAssignmentRequest { /** - * 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 | null; - /** - * 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`. + * The new reservation ID, e.g.: projects/myotherproject/locations/US/reservations/team2-prod */ - response?: {[key: string]: any} | null; + destinationId?: string | null; } /** * A reservation is a mechanism used to guarantee slots to users. */ export interface Schema$Reservation { /** - * If true, any query using this reservation might be able to use the idle slots from other reservations within the same admin project. If false, a query using this reservation will execute with the maximum slot capacity as specified above. If not specified, default value is true. + * If false, any query using this reservation will use idle slots from other reservations within the same admin project. If true, a query using this reservation will execute with the maximum slot capacity as specified above. */ ignoreIdleSlots?: boolean | null; /** @@ -341,16 +337,12 @@ export namespace bigqueryreservation_v1beta1 { export class Resource$Projects$Locations { context: APIRequestContext; capacityCommitments: Resource$Projects$Locations$Capacitycommitments; - operations: Resource$Projects$Locations$Operations; reservations: Resource$Projects$Locations$Reservations; constructor(context: APIRequestContext) { this.context = context; this.capacityCommitments = new Resource$Projects$Locations$Capacitycommitments( this.context ); - this.operations = new Resource$Projects$Locations$Operations( - this.context - ); this.reservations = new Resource$Projects$Locations$Reservations( this.context ); @@ -426,6 +418,80 @@ export namespace bigqueryreservation_v1beta1 { } } + /** + * bigqueryreservation.projects.locations.getBiReservation + * @desc Retrieves a BI reservation. + * @alias bigqueryreservation.projects.locations.getBiReservation + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Name of the requested reservation, for example: `projects/{project_id}/locations/{location_id}/bireservation` + * @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 + */ + getBiReservation( + params?: Params$Resource$Projects$Locations$Getbireservation, + options?: MethodOptions + ): GaxiosPromise; + getBiReservation( + params: Params$Resource$Projects$Locations$Getbireservation, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + getBiReservation( + params: Params$Resource$Projects$Locations$Getbireservation, + callback: BodyResponseCallback + ): void; + getBiReservation( + callback: BodyResponseCallback + ): void; + getBiReservation( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Getbireservation + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Getbireservation; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Getbireservation; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+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. @@ -508,7 +574,7 @@ export namespace bigqueryreservation_v1beta1 { /** * bigqueryreservation.projects.locations.searchAssignments - * @desc Looks up assignments for a specified resource for a particular region. If the request is about a project: 1) Assignments created on the project will be returned if they exist. 2) Otherwise assignments created on the closest ancestor will be returned. 3) Assignments 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 assignments created on the organization will be returned (organization doesn't have ancestors). Comparing to ListAssignments, there are some behavior differences: 1) permission on the assignee will be verified in this API. 2) Hierarchy lookup (project->folder->organization) happens in this API. 3) Parent here is projects/x/locations/x, instead of projects/x/locations/xreservations/x. Wildcard "-" can be used for projects in SearchAssignmentsRequest.parent. Note "-" cannot be used for projects nor locations. + * @desc Looks up assignments for a specified resource for a particular region. If the request is about a project: 1) Assignments created on the project will be returned if they exist. 2) Otherwise assignments created on the closest ancestor will be returned. 3) Assignments 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 assignments created on the organization will be returned (organization doesn't have ancestors). Comparing to ListAssignments, there are some behavior differences: 1) permission on the assignee will be verified in this API. 2) Hierarchy lookup (project->folder->organization) happens in this API. 3) Parent here is projects/x/locations/x, instead of projects/x/locations/xreservations/x. Note "-" cannot be used for projects nor locations. * @alias bigqueryreservation.projects.locations.searchAssignments * @memberOf! () * @@ -590,6 +656,82 @@ export namespace bigqueryreservation_v1beta1 { return createAPIRequest(parameters); } } + + /** + * bigqueryreservation.projects.locations.updateBiReservation + * @desc Updates a BI reservation. Only fields specified in the field_mask are updated. Singleton BI reservation always exists with default size 0. In order to reserve BI capacity it needs to be updated to an amount greater than 0. In order to release BI capacity reservation size must be set to 0. + * @alias bigqueryreservation.projects.locations.updateBiReservation + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The resource name of the singleton BI reservation. Reservation names have the form `projects/{project_id}/locations/{location_id}/bireservation`. + * @param {string=} params.updateMask A list of fields to be updated in this request. + * @param {().BiReservation} params.requestBody 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 + */ + updateBiReservation( + params?: Params$Resource$Projects$Locations$Updatebireservation, + options?: MethodOptions + ): GaxiosPromise; + updateBiReservation( + params: Params$Resource$Projects$Locations$Updatebireservation, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + updateBiReservation( + params: Params$Resource$Projects$Locations$Updatebireservation, + callback: BodyResponseCallback + ): void; + updateBiReservation( + callback: BodyResponseCallback + ): void; + updateBiReservation( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Updatebireservation + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Updatebireservation; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Updatebireservation; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } } export interface Params$Resource$Projects$Locations$Get @@ -604,6 +746,18 @@ export namespace bigqueryreservation_v1beta1 { */ name?: string; } + export interface Params$Resource$Projects$Locations$Getbireservation + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Name of the requested reservation, for example: `projects/{project_id}/locations/{location_id}/bireservation` + */ + name?: string; + } export interface Params$Resource$Projects$Locations$List extends StandardParameters { /** @@ -652,6 +806,27 @@ export namespace bigqueryreservation_v1beta1 { */ query?: string; } + export interface Params$Resource$Projects$Locations$Updatebireservation + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * The resource name of the singleton BI reservation. Reservation names have the form `projects/{project_id}/locations/{location_id}/bireservation`. + */ + name?: string; + /** + * A list of fields to be updated in this request. + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$BiReservation; + } export class Resource$Projects$Locations$Capacitycommitments { context: APIRequestContext; @@ -659,6 +834,82 @@ export namespace bigqueryreservation_v1beta1 { this.context = context; } + /** + * bigqueryreservation.projects.locations.capacityCommitments.create + * @desc Creates a new capacity commitment resource. + * @alias bigqueryreservation.projects.locations.capacityCommitments.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent Resource name of the parent reservation. E.g., projects/myproject/locations/US + * @param {().CapacityCommitment} params.requestBody 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$Capacitycommitments$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Projects$Locations$Capacitycommitments$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Projects$Locations$Capacitycommitments$Create, + callback: BodyResponseCallback + ): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Capacitycommitments$Create + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Capacitycommitments$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Capacitycommitments$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/capacityCommitments').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.capacityCommitments.delete * @desc Deletes a capacity commitment. Attempting to delete capacity commitment before its commitment_end_time will fail with the error code `google.rpc.Code.FAILED_PRECONDITION`. @@ -888,6 +1139,23 @@ export namespace bigqueryreservation_v1beta1 { } } + export interface Params$Resource$Projects$Locations$Capacitycommitments$Create + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Resource name of the parent reservation. E.g., projects/myproject/locations/US + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$CapacityCommitment; + } export interface Params$Resource$Projects$Locations$Capacitycommitments$Delete extends StandardParameters { /** @@ -933,183 +1201,6 @@ export namespace bigqueryreservation_v1beta1 { parent?: 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 + '/v1beta1/{+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 + '/v1beta1/{+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$Reservations { context: APIRequestContext; assignments: Resource$Projects$Locations$Reservations$Assignments; @@ -1128,8 +1219,8 @@ export namespace bigqueryreservation_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Project, location. E.g., projects/myproject/locations/US - * @param {string=} params.reservationId The reservation ID. This field must only contain alphanumeric characters or dash. - * @param {().Reservation} params.resource Request body data + * @param {string=} params.reservationId The reservation ID. This field must only contain lower case alphanumeric characters or dash. + * @param {().Reservation} params.requestBody 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 @@ -1199,7 +1290,7 @@ export namespace bigqueryreservation_v1beta1 { /** * bigqueryreservation.projects.locations.reservations.delete - * @desc Deletes a reservation. Returns `google.rpc.Code.FAILED_PRECONDITION` when reservation has assignments. This check can be bypassed by setting DeleteReservationRequest.force flag to true. + * @desc Deletes a reservation. Returns `google.rpc.Code.FAILED_PRECONDITION` when reservation has assignments. * @alias bigqueryreservation.projects.locations.reservations.delete * @memberOf! () * @@ -1428,7 +1519,7 @@ export namespace bigqueryreservation_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name The resource name of the reservation, e.g., "projects/x/locations/x/reservations/team1-prod". * @param {string=} params.updateMask Standard field mask for the set of fields to be updated. - * @param {().Reservation} params.resource Request body data + * @param {().Reservation} params.requestBody 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 @@ -1506,7 +1597,7 @@ export namespace bigqueryreservation_v1beta1 { */ parent?: string; /** - * The reservation ID. This field must only contain alphanumeric characters or dash. + * The reservation ID. This field must only contain lower case alphanumeric characters or dash. */ reservationId?: string; @@ -1598,8 +1689,8 @@ export namespace bigqueryreservation_v1beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.parent The parent resource name of the assignment E.g.: projects/myproject/location/US/reservations/team1-prod - * @param {().Assignment} params.resource Request body data + * @param {string} params.parent The parent resource name of the assignment E.g.: projects/myproject/locations/US/reservations/team1-prod + * @param {().Assignment} params.requestBody 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 @@ -1746,7 +1837,7 @@ export namespace bigqueryreservation_v1beta1 { * @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/US/reservations/team1-prod Or: projects/myproject/location/US/reservations/- + * @param {string} params.parent The parent resource name e.g.: projects/myproject/locations/US/reservations/team1-prod Or: projects/myproject/locations/US/reservations/- * @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 @@ -1823,8 +1914,8 @@ export namespace bigqueryreservation_v1beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.destinationId The new reservation ID, e.g.: projects/myotherproject/locations/US/reservations/team2-prod * @param {string} params.name The resource name of the assignment, e.g.: projects/myproject/locations/US/reservations/team1-prod/assignments/123 + * @param {().MoveAssignmentRequest} params.requestBody 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 @@ -1901,7 +1992,7 @@ export namespace bigqueryreservation_v1beta1 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * The parent resource name of the assignment E.g.: projects/myproject/location/US/reservations/team1-prod + * The parent resource name of the assignment E.g.: projects/myproject/locations/US/reservations/team1-prod */ parent?: string; @@ -1938,7 +2029,7 @@ export namespace bigqueryreservation_v1beta1 { */ pageToken?: string; /** - * The parent resource name e.g.: projects/myproject/location/US/reservations/team1-prod Or: projects/myproject/location/US/reservations/- + * The parent resource name e.g.: projects/myproject/locations/US/reservations/team1-prod Or: projects/myproject/locations/US/reservations/- */ parent?: string; } @@ -1949,13 +2040,14 @@ export namespace bigqueryreservation_v1beta1 { */ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - /** - * The new reservation ID, e.g.: projects/myotherproject/locations/US/reservations/team2-prod - */ - destinationId?: string; /** * The resource name of the assignment, e.g.: projects/myproject/locations/US/reservations/team1-prod/assignments/123 */ name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$MoveAssignmentRequest; } } diff --git a/src/apis/bigtableadmin/v2.ts b/src/apis/bigtableadmin/v2.ts index 3cf561a2f60..25de7a4eecd 100644 --- a/src/apis/bigtableadmin/v2.ts +++ b/src/apis/bigtableadmin/v2.ts @@ -1236,7 +1236,7 @@ export namespace bigtableadmin_v2 { * * @param {object} params Parameters for request * @param {string} params.parent The unique name of the project in which to create the new instance. Values are of the form `projects/`. - * @param {().CreateInstanceRequest} params.resource Request body data + * @param {().CreateInstanceRequest} params.requestBody 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 @@ -1452,7 +1452,7 @@ export namespace bigtableadmin_v2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -1605,7 +1605,7 @@ export namespace bigtableadmin_v2 { * @param {object} params Parameters for request * @param {string} params.name (`OutputOnly`) The unique name of the instance. Values are of the form `projects//instances/a-z+[a-z0-9]`. * @param {string=} params.updateMask The subset of Instance fields which should be replaced. Must be explicitly set. - * @param {().Instance} params.resource Request body data + * @param {().Instance} params.requestBody 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 @@ -1680,7 +1680,7 @@ export namespace bigtableadmin_v2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -1754,7 +1754,7 @@ export namespace bigtableadmin_v2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -1837,7 +1837,7 @@ export namespace bigtableadmin_v2 { * * @param {object} params Parameters for request * @param {string} params.name (`OutputOnly`) The unique name of the instance. Values are of the form `projects//instances/a-z+[a-z0-9]`. - * @param {().Instance} params.resource Request body data + * @param {().Instance} params.requestBody 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 @@ -2064,7 +2064,7 @@ export namespace bigtableadmin_v2 { * @param {string=} params.appProfileId The ID to be used when referring to the new app profile within its instance, e.g., just `myprofile` rather than `projects/myproject/instances/myinstance/appProfiles/myprofile`. * @param {boolean=} params.ignoreWarnings If true, ignore safety checks when creating the app profile. * @param {string} params.parent The unique name of the instance in which to create the new app profile. Values are of the form `projects//instances/`. - * @param {().AppProfile} params.resource Request body data + * @param {().AppProfile} params.requestBody 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 @@ -2364,7 +2364,7 @@ export namespace bigtableadmin_v2 { * @param {boolean=} params.ignoreWarnings If true, ignore safety checks when updating the app profile. * @param {string} params.name (`OutputOnly`) The unique name of the app profile. Values are of the form `projects//instances//appProfiles/_a-zA-Z0-9*`. * @param {string=} params.updateMask The subset of app profile fields which should be replaced. If unset, all fields will be replaced. - * @param {().AppProfile} params.resource Request body data + * @param {().AppProfile} params.requestBody 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 @@ -2544,7 +2544,7 @@ export namespace bigtableadmin_v2 { * @param {object} params Parameters for request * @param {string=} params.clusterId The ID to be used when referring to the new cluster within its instance, e.g., just `mycluster` rather than `projects/myproject/instances/myinstance/clusters/mycluster`. * @param {string} params.parent The unique name of the instance in which to create the new cluster. Values are of the form `projects//instances/`. - * @param {().Cluster} params.resource Request body data + * @param {().Cluster} params.requestBody 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 @@ -2838,7 +2838,7 @@ export namespace bigtableadmin_v2 { * * @param {object} params Parameters for request * @param {string} params.name (`OutputOnly`) The unique name of the cluster. Values are of the form `projects//instances//clusters/a-z*`. - * @param {().Cluster} params.resource Request body data + * @param {().Cluster} params.requestBody 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 @@ -2997,7 +2997,7 @@ export namespace bigtableadmin_v2 { * * @param {object} params Parameters for request * @param {string} params.name The unique name of the Table for which to check replication consistency. Values are of the form `projects//instances//tables/`. - * @param {().CheckConsistencyRequest} params.resource Request body data + * @param {().CheckConsistencyRequest} params.requestBody 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 @@ -3077,7 +3077,7 @@ export namespace bigtableadmin_v2 { * * @param {object} params Parameters for request * @param {string} params.parent The unique name of the instance in which to create the table. Values are of the form `projects//instances/`. - * @param {().CreateTableRequest} params.resource Request body data + * @param {().CreateTableRequest} params.requestBody 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 @@ -3221,7 +3221,7 @@ export namespace bigtableadmin_v2 { * * @param {object} params Parameters for request * @param {string} params.name The unique name of the table on which to drop a range of rows. Values are of the form `projects//instances//tables/
              `. - * @param {().DropRowRangeRequest} params.resource Request body data + * @param {().DropRowRangeRequest} params.requestBody 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 @@ -3295,7 +3295,7 @@ export namespace bigtableadmin_v2 { * * @param {object} params Parameters for request * @param {string} params.name The unique name of the Table for which to create a consistency token. Values are of the form `projects//instances//tables/
              `. - * @param {().GenerateConsistencyTokenRequest} params.resource Request body data + * @param {().GenerateConsistencyTokenRequest} params.requestBody 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 @@ -3451,7 +3451,7 @@ export namespace bigtableadmin_v2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -3527,7 +3527,7 @@ export namespace bigtableadmin_v2 { * @param {integer=} params.pageSize Maximum number of results per page. A page_size of zero lets the server choose the number of items to return. A page_size which is strictly positive will return at most that many items. A negative page_size will cause an error. Following the first request, subsequent paginated calls are not required to pass a page_size. If a page_size is set in subsequent calls, it must match the page_size given in the first request. * @param {string=} params.pageToken The value of `next_page_token` returned by a previous call. * @param {string} params.parent The unique name of the instance for which tables should be listed. Values are of the form `projects//instances/`. - * @param {string=} params.view The view to be applied to the returned tables' fields. Defaults to `NAME_ONLY` if unspecified; no others are currently supported. + * @param {string=} params.view The view to be applied to the returned tables' fields. Only NAME_ONLY view (default) and REPLICATION_VIEW are supported. * @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 @@ -3603,7 +3603,7 @@ export namespace bigtableadmin_v2 { * * @param {object} params Parameters for request * @param {string} params.name The unique name of the table whose families should be modified. Values are of the form `projects//instances//tables/
              `. - * @param {().ModifyColumnFamiliesRequest} params.resource Request body data + * @param {().ModifyColumnFamiliesRequest} params.requestBody 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 @@ -3677,7 +3677,7 @@ export namespace bigtableadmin_v2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -3751,7 +3751,7 @@ export namespace bigtableadmin_v2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -3960,7 +3960,7 @@ export namespace bigtableadmin_v2 { */ parent?: string; /** - * The view to be applied to the returned tables' fields. Defaults to `NAME_ONLY` if unspecified; no others are currently supported. + * The view to be applied to the returned tables' fields. Only NAME_ONLY view (default) and REPLICATION_VIEW are supported. */ view?: string; } diff --git a/src/apis/billingbudgets/README.md b/src/apis/billingbudgets/README.md new file mode 100644 index 00000000000..6890ad54a69 --- /dev/null +++ b/src/apis/billingbudgets/README.md @@ -0,0 +1,47 @@ +Google Inc. logo + +# billingbudgets + +> The Cloud Billing Budget API stores Cloud Billing budgets, which define a budget plan and the rules to execute as spend is tracked against that plan. + +## 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/billingbudgets +$ npm install +$ npm run webpack +``` + +The generated bundle will be written to `dist/billingbudgets.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/billingbudgets/index.ts b/src/apis/billingbudgets/index.ts new file mode 100644 index 00000000000..01d8a4946da --- /dev/null +++ b/src/apis/billingbudgets/index.ts @@ -0,0 +1,37 @@ +// 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 {billingbudgets_v1beta1} from './v1beta1'; + +export const VERSIONS = { + v1beta1: billingbudgets_v1beta1.Billingbudgets, +}; + +export function billingbudgets( + version: 'v1beta1' +): billingbudgets_v1beta1.Billingbudgets; +export function billingbudgets( + options: billingbudgets_v1beta1.Options +): billingbudgets_v1beta1.Billingbudgets; +export function billingbudgets( + this: GoogleConfigurable, + versionOrOptions: 'v1beta1' | billingbudgets_v1beta1.Options +) { + return getAPI('billingbudgets', versionOrOptions, VERSIONS, this); +} + +const auth = new AuthPlus(); +export {auth}; diff --git a/src/apis/billingbudgets/package.json b/src/apis/billingbudgets/package.json new file mode 100644 index 00000000000..83d84460bc6 --- /dev/null +++ b/src/apis/billingbudgets/package.json @@ -0,0 +1,43 @@ +{ + "name": "@google/billingbudgets", + "version": "0.1.0", + "description": "billingbudgets", + "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.7.0", + "webpack": "^4.35.3", + "webpack-cli": "^3.3.5" + } +} diff --git a/src/apis/sqladmin/tsconfig.json b/src/apis/billingbudgets/tsconfig.json similarity index 100% rename from src/apis/sqladmin/tsconfig.json rename to src/apis/billingbudgets/tsconfig.json diff --git a/src/apis/billingbudgets/v1beta1.ts b/src/apis/billingbudgets/v1beta1.ts new file mode 100644 index 00000000000..d336e7db606 --- /dev/null +++ b/src/apis/billingbudgets/v1beta1.ts @@ -0,0 +1,809 @@ +// 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 billingbudgets_v1beta1 { + export interface Options extends GlobalOptions { + version: 'v1beta1'; + } + + 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; + } + + /** + * Cloud Billing Budget API + * + * The Cloud Billing Budget API stores Cloud Billing budgets, which define a budget plan and the rules to execute as spend is tracked against that plan. + * + * @example + * const {google} = require('googleapis'); + * const billingbudgets = google.billingbudgets('v1beta1'); + * + * @namespace billingbudgets + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Billingbudgets + */ + export class Billingbudgets { + context: APIRequestContext; + billingAccounts: Resource$Billingaccounts; + + constructor(options: GlobalOptions, google?: GoogleConfigurable) { + this.context = { + _options: options || {}, + google, + }; + + this.billingAccounts = new Resource$Billingaccounts(this.context); + } + } + + /** + * AllUpdatesRule defines notifications that are sent on every update to the billing account's spend, regardless of the thresholds defined using threshold rules. + */ + export interface Schema$GoogleCloudBillingBudgetsV1beta1AllUpdatesRule { + /** + * Required. The name of the Cloud Pub/Sub topic where budget related messages will be published, in the form `projects/{project_id}/topics/{topic_id}`. Updates are sent at regular intervals to the topic. The topic needs to be created before the budget is created; see https://cloud.google.com/billing/docs/how-to/budgets#manage-notifications for more details. Caller is expected to have `pubsub.topics.setIamPolicy` permission on the topic when it's set for a budget, otherwise, the API call will fail with PERMISSION_DENIED. See https://cloud.google.com/pubsub/docs/access-control for more details on Pub/Sub roles and permissions. + */ + pubsubTopic?: string | null; + /** + * Required. The schema version of the notification. Only "1.0" is accepted. It represents the JSON schema as defined in https://cloud.google.com/billing/docs/how-to/budgets#notification_format + */ + schemaVersion?: string | null; + } + /** + * A budget is a plan that describes what you expect to spend on Cloud projects, plus the rules to execute as spend is tracked against that plan, (for example, send an alert when 90% of the target spend is met). Currently all plans are monthly budgets so the usage period(s) tracked are implied (calendar months of usage back-to-back). + */ + export interface Schema$GoogleCloudBillingBudgetsV1beta1Budget { + /** + * Optional. Rules to apply to all updates to the actual spend, regardless of the thresholds set in `threshold_rules`. + */ + allUpdatesRule?: Schema$GoogleCloudBillingBudgetsV1beta1AllUpdatesRule; + /** + * Required. Budgeted amount. + */ + amount?: Schema$GoogleCloudBillingBudgetsV1beta1BudgetAmount; + /** + * Optional. Filters that define which resources are used to compute the actual spend against the budget. + */ + budgetFilter?: Schema$GoogleCloudBillingBudgetsV1beta1Filter; + /** + * User data for display name in UI. Validation: <= 60 chars. + */ + displayName?: string | null; + /** + * Optional. Etag to validate that the object is unchanged for a read-modify-write operation. An empty etag will cause an update to overwrite other changes. + */ + etag?: string | null; + /** + * Output only. Resource name of the budget. The resource name implies the scope of a budget. Values are of the form `billingAccounts/{billingAccountId}/budgets/{budgetId}`. + */ + name?: string | null; + /** + * Required. Rules that trigger alerts (notifications of thresholds being crossed) when spend exceeds the specified percentages of the budget. + */ + thresholdRules?: Schema$GoogleCloudBillingBudgetsV1beta1ThresholdRule[]; + } + /** + * The budgeted amount for each usage period. + */ + export interface Schema$GoogleCloudBillingBudgetsV1beta1BudgetAmount { + /** + * Use the last period's actual spend as the budget for the present period. + */ + lastPeriodAmount?: Schema$GoogleCloudBillingBudgetsV1beta1LastPeriodAmount; + /** + * A specified amount to use as the budget. `currency_code` is optional. If specified, it must match the currency of the billing account. The `currency_code` is provided on output. + */ + specifiedAmount?: Schema$GoogleTypeMoney; + } + /** + * Request for CreateBudget + */ + export interface Schema$GoogleCloudBillingBudgetsV1beta1CreateBudgetRequest { + /** + * Required. Budget to create. + */ + budget?: Schema$GoogleCloudBillingBudgetsV1beta1Budget; + } + /** + * A filter for a budget, limiting the scope of the cost to calculate. + */ + export interface Schema$GoogleCloudBillingBudgetsV1beta1Filter { + /** + * Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`. + */ + creditTypesTreatment?: string | null; + /** + * Optional. A set of projects of the form `projects/{project_id}`, specifying that usage from only this set of projects should be included in the budget. If omitted, the report will include all usage for the billing account, regardless of which project the usage occurred on. Only zero or one project can be specified currently. + */ + projects?: string[] | null; + /** + * Optional. A set of services of the form `services/{service_id}`, specifying that usage from only this set of services should be included in the budget. If omitted, the report will include usage for all the services. The service names are available through the Catalog API: https://cloud.google.com/billing/v1/how-tos/catalog-api. + */ + services?: string[] | null; + } + /** + * Describes a budget amount targeted to last period's spend. At this time, the amount is automatically 100% of last period's spend; that is, there are no other options yet. Future configuration will be described here (for example, configuring a percentage of last period's spend). + */ + export interface Schema$GoogleCloudBillingBudgetsV1beta1LastPeriodAmount {} + /** + * Response for ListBudgets + */ + export interface Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse { + /** + * List of the budgets owned by the requested billing account. + */ + budgets?: Schema$GoogleCloudBillingBudgetsV1beta1Budget[]; + /** + * If not empty, indicates that there may be more budgets that match the request; this value should be passed in a new `ListBudgetsRequest`. + */ + nextPageToken?: string | null; + } + /** + * ThresholdRule contains a definition of a threshold which triggers an alert (a notification of a threshold being crossed) to be sent when spend goes above the specified amount. Alerts are automatically e-mailed to users with the Billing Account Administrator role or the Billing Account User role. The thresholds here have no effect on notifications sent to anything configured under `Budget.all_updates_rule`. + */ + export interface Schema$GoogleCloudBillingBudgetsV1beta1ThresholdRule { + /** + * Optional. The type of basis used to determine if spend has passed the threshold. Behavior defaults to CURRENT_SPEND if not set. + */ + spendBasis?: string | null; + /** + * Required. Send an alert when this threshold is exceeded. This is a 1.0-based percentage, so 0.5 = 50%. Validation: non-negative number. + */ + thresholdPercent?: number | null; + } + /** + * Request for UpdateBudget + */ + export interface Schema$GoogleCloudBillingBudgetsV1beta1UpdateBudgetRequest { + /** + * Required. The updated budget object. The budget to update is specified by the budget name in the budget. + */ + budget?: Schema$GoogleCloudBillingBudgetsV1beta1Budget; + /** + * Optional. Indicates which fields in the provided budget to update. Read-only fields (such as `name`) cannot be changed. If this is not provided, then only fields with non-default values from the request are updated. See https://developers.google.com/protocol-buffers/docs/proto3#default for more details about default values. + */ + updateMask?: string | null; + } + /** + * 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$GoogleProtobufEmpty {} + /** + * Represents an amount of money with its currency type. + */ + export interface Schema$GoogleTypeMoney { + /** + * The 3-letter currency code defined in ISO 4217. + */ + currencyCode?: string | null; + /** + * Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + */ + nanos?: number | null; + /** + * The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + */ + units?: string | null; + } + + export class Resource$Billingaccounts { + context: APIRequestContext; + budgets: Resource$Billingaccounts$Budgets; + constructor(context: APIRequestContext) { + this.context = context; + this.budgets = new Resource$Billingaccounts$Budgets(this.context); + } + } + + export class Resource$Billingaccounts$Budgets { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * billingbudgets.billingAccounts.budgets.create + * @desc Creates a new budget. See Quotas and limits for more information on the limits of the number of budgets you can create. + * @alias billingbudgets.billingAccounts.budgets.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent Required. The name of the billing account to create the budget in. Values are of the form `billingAccounts/{billingAccountId}`. + * @param {().GoogleCloudBillingBudgetsV1beta1CreateBudgetRequest} params.requestBody 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$Billingaccounts$Budgets$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Billingaccounts$Budgets$Create, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GoogleCloudBillingBudgetsV1beta1Budget + > + ): void; + create( + params: Params$Resource$Billingaccounts$Budgets$Create, + callback: BodyResponseCallback< + Schema$GoogleCloudBillingBudgetsV1beta1Budget + > + ): void; + create( + callback: BodyResponseCallback< + Schema$GoogleCloudBillingBudgetsV1beta1Budget + > + ): void; + create( + paramsOrCallback?: + | Params$Resource$Billingaccounts$Budgets$Create + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GoogleCloudBillingBudgetsV1beta1Budget + > + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Billingaccounts$Budgets$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Budgets$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://billingbudgets.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/budgets').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * billingbudgets.billingAccounts.budgets.delete + * @desc Deletes a budget. Returns successfully if already deleted. + * @alias billingbudgets.billingAccounts.budgets.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Name of the budget to delete. Values are of the form `billingAccounts/{billingAccountId}/budgets/{budgetId}`. + * @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$Billingaccounts$Budgets$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Billingaccounts$Budgets$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Billingaccounts$Budgets$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Billingaccounts$Budgets$Delete + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Billingaccounts$Budgets$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Budgets$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://billingbudgets.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * billingbudgets.billingAccounts.budgets.get + * @desc Returns a budget. + * @alias billingbudgets.billingAccounts.budgets.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Name of budget to get. Values are of the form `billingAccounts/{billingAccountId}/budgets/{budgetId}`. + * @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$Billingaccounts$Budgets$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Billingaccounts$Budgets$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GoogleCloudBillingBudgetsV1beta1Budget + > + ): void; + get( + params: Params$Resource$Billingaccounts$Budgets$Get, + callback: BodyResponseCallback< + Schema$GoogleCloudBillingBudgetsV1beta1Budget + > + ): void; + get( + callback: BodyResponseCallback< + Schema$GoogleCloudBillingBudgetsV1beta1Budget + > + ): void; + get( + paramsOrCallback?: + | Params$Resource$Billingaccounts$Budgets$Get + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GoogleCloudBillingBudgetsV1beta1Budget + > + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Billingaccounts$Budgets$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Budgets$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://billingbudgets.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * billingbudgets.billingAccounts.budgets.list + * @desc Returns a list of budgets for a billing account. + * @alias billingbudgets.billingAccounts.budgets.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {integer=} params.pageSize Optional. The maximum number of budgets to return per page. The default and maximum value are 100. + * @param {string=} params.pageToken Optional. The value returned by the last `ListBudgetsResponse` which indicates that this is a continuation of a prior `ListBudgets` call, and that the system should return the next page of data. + * @param {string} params.parent Required. Name of billing account to list budgets under. Values are of the form `billingAccounts/{billingAccountId}`. + * @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$Billingaccounts$Budgets$List, + options?: MethodOptions + ): GaxiosPromise< + Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse + >; + list( + params: Params$Resource$Billingaccounts$Budgets$List, + options: + | MethodOptions + | BodyResponseCallback< + Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse + >, + callback: BodyResponseCallback< + Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse + > + ): void; + list( + params: Params$Resource$Billingaccounts$Budgets$List, + callback: BodyResponseCallback< + Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse + > + ): void; + list( + callback: BodyResponseCallback< + Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse + > + ): void; + list( + paramsOrCallback?: + | Params$Resource$Billingaccounts$Budgets$List + | BodyResponseCallback< + Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse + >, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback< + Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse + >, + callback?: BodyResponseCallback< + Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse + > + ): void | GaxiosPromise< + Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse + > { + let params = (paramsOrCallback || + {}) as Params$Resource$Billingaccounts$Budgets$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Budgets$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://billingbudgets.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/budgets').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse + >(parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse + >(parameters); + } + } + + /** + * billingbudgets.billingAccounts.budgets.patch + * @desc Updates a budget and returns the updated budget. + * @alias billingbudgets.billingAccounts.budgets.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Output only. Resource name of the budget. The resource name implies the scope of a budget. Values are of the form `billingAccounts/{billingAccountId}/budgets/{budgetId}`. + * @param {().GoogleCloudBillingBudgetsV1beta1UpdateBudgetRequest} params.requestBody 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 + */ + patch( + params?: Params$Resource$Billingaccounts$Budgets$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Billingaccounts$Budgets$Patch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GoogleCloudBillingBudgetsV1beta1Budget + > + ): void; + patch( + params: Params$Resource$Billingaccounts$Budgets$Patch, + callback: BodyResponseCallback< + Schema$GoogleCloudBillingBudgetsV1beta1Budget + > + ): void; + patch( + callback: BodyResponseCallback< + Schema$GoogleCloudBillingBudgetsV1beta1Budget + > + ): void; + patch( + paramsOrCallback?: + | Params$Resource$Billingaccounts$Budgets$Patch + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GoogleCloudBillingBudgetsV1beta1Budget + > + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Billingaccounts$Budgets$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Budgets$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://billingbudgets.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Billingaccounts$Budgets$Create + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The name of the billing account to create the budget in. Values are of the form `billingAccounts/{billingAccountId}`. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudBillingBudgetsV1beta1CreateBudgetRequest; + } + export interface Params$Resource$Billingaccounts$Budgets$Delete + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Name of the budget to delete. Values are of the form `billingAccounts/{billingAccountId}/budgets/{budgetId}`. + */ + name?: string; + } + export interface Params$Resource$Billingaccounts$Budgets$Get + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Name of budget to get. Values are of the form `billingAccounts/{billingAccountId}/budgets/{budgetId}`. + */ + name?: string; + } + export interface Params$Resource$Billingaccounts$Budgets$List + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Optional. The maximum number of budgets to return per page. The default and maximum value are 100. + */ + pageSize?: number; + /** + * Optional. The value returned by the last `ListBudgetsResponse` which indicates that this is a continuation of a prior `ListBudgets` call, and that the system should return the next page of data. + */ + pageToken?: string; + /** + * Required. Name of billing account to list budgets under. Values are of the form `billingAccounts/{billingAccountId}`. + */ + parent?: string; + } + export interface Params$Resource$Billingaccounts$Budgets$Patch + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Output only. Resource name of the budget. The resource name implies the scope of a budget. Values are of the form `billingAccounts/{billingAccountId}/budgets/{budgetId}`. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudBillingBudgetsV1beta1UpdateBudgetRequest; + } +} diff --git a/src/apis/billingbudgets/webpack.config.js b/src/apis/billingbudgets/webpack.config.js new file mode 100644 index 00000000000..1c66f795fe3 --- /dev/null +++ b/src/apis/billingbudgets/webpack.config.js @@ -0,0 +1,69 @@ +// 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. + +// Use `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + }, + output: { + library: 'Billingbudgets', + filename: 'billingbudgets.min.js', + path: path.resolve(__dirname, 'dist'), + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + module: { + rules: [ + { + test: /node_modules[\\/]google-auth-library[\\/]src[\\/]crypto[\\/]node[\\/]crypto/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]https-proxy-agent[\\/]/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]gcp-metadata[\\/]/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]gtoken[\\/]/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]pkginfo[\\/]/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]semver[\\/]/, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; diff --git a/src/apis/binaryauthorization/v1.ts b/src/apis/binaryauthorization/v1.ts index cba23c4f3d0..b8ce1fe6590 100644 --- a/src/apis/binaryauthorization/v1.ts +++ b/src/apis/binaryauthorization/v1.ts @@ -234,11 +234,11 @@ export namespace binaryauthorization_v1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -434,7 +434,7 @@ export namespace binaryauthorization_v1 { * * @param {object} params Parameters for request * @param {string} params.name Output only. The resource name, in the format `projects/x/policy`. There is at most one policy per project. - * @param {().Policy} params.resource Request body data + * @param {().Policy} params.requestBody 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 @@ -543,7 +543,7 @@ export namespace binaryauthorization_v1 { * @param {object} params Parameters for request * @param {string=} params.attestorId Required. The attestors ID. * @param {string} params.parent Required. The parent of this attestor. - * @param {().Attestor} params.resource Request body data + * @param {().Attestor} params.requestBody 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 @@ -912,7 +912,7 @@ export namespace binaryauthorization_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -988,7 +988,7 @@ export namespace binaryauthorization_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -1071,7 +1071,7 @@ export namespace binaryauthorization_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name, in the format: `projects/x/attestors/x`. This field may not be updated. - * @param {().Attestor} params.resource Request body data + * @param {().Attestor} params.requestBody 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 @@ -1358,7 +1358,7 @@ export namespace binaryauthorization_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -1434,7 +1434,7 @@ export namespace binaryauthorization_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 diff --git a/src/apis/binaryauthorization/v1beta1.ts b/src/apis/binaryauthorization/v1beta1.ts index 7643c631b6a..685e48bbc13 100644 --- a/src/apis/binaryauthorization/v1beta1.ts +++ b/src/apis/binaryauthorization/v1beta1.ts @@ -234,11 +234,11 @@ export namespace binaryauthorization_v1beta1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -434,7 +434,7 @@ export namespace binaryauthorization_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Output only. The resource name, in the format `projects/x/policy`. There is at most one policy per project. - * @param {().Policy} params.resource Request body data + * @param {().Policy} params.requestBody 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 @@ -543,7 +543,7 @@ export namespace binaryauthorization_v1beta1 { * @param {object} params Parameters for request * @param {string=} params.attestorId Required. The attestors ID. * @param {string} params.parent Required. The parent of this attestor. - * @param {().Attestor} params.resource Request body data + * @param {().Attestor} params.requestBody 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 @@ -912,7 +912,7 @@ export namespace binaryauthorization_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -988,7 +988,7 @@ export namespace binaryauthorization_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -1071,7 +1071,7 @@ export namespace binaryauthorization_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name, in the format: `projects/x/attestors/x`. This field may not be updated. - * @param {().Attestor} params.resource Request body data + * @param {().Attestor} params.requestBody 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 @@ -1358,7 +1358,7 @@ export namespace binaryauthorization_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -1434,7 +1434,7 @@ export namespace binaryauthorization_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 diff --git a/src/apis/blogger/v3.ts b/src/apis/blogger/v3.ts index 548048bedb0..a3e16a45e7e 100644 --- a/src/apis/blogger/v3.ts +++ b/src/apis/blogger/v3.ts @@ -1850,7 +1850,7 @@ export namespace blogger_v3 { * @param {object} params Parameters for request * @param {string} params.blogId ID of the blog to add the page to. * @param {boolean=} params.isDraft Whether to create the page as a draft (default: false). - * @param {().Page} params.resource Request body data + * @param {().Page} params.requestBody 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 @@ -2001,7 +2001,7 @@ export namespace blogger_v3 { * @param {string} params.pageId The ID of the Page. * @param {boolean=} params.publish Whether a publish action should be performed when the page is updated (default: false). * @param {boolean=} params.revert Whether a revert action should be performed when the page is updated (default: false). - * @param {().Page} params.resource Request body data + * @param {().Page} params.requestBody 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 @@ -2217,7 +2217,7 @@ export namespace blogger_v3 { * @param {string} params.pageId The ID of the Page. * @param {boolean=} params.publish Whether a publish action should be performed when the page is updated (default: false). * @param {boolean=} params.revert Whether a revert action should be performed when the page is updated (default: false). - * @param {().Page} params.resource Request body data + * @param {().Page} params.requestBody 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 @@ -2787,7 +2787,7 @@ export namespace blogger_v3 { * @param {boolean=} params.fetchBody Whether the body content of the post is included with the result (default: true). * @param {boolean=} params.fetchImages Whether image URL metadata for each post is included in the returned result (default: false). * @param {boolean=} params.isDraft Whether to create the post as a draft (default: false). - * @param {().Post} params.resource Request body data + * @param {().Post} params.requestBody 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 @@ -2946,7 +2946,7 @@ export namespace blogger_v3 { * @param {string} params.postId The ID of the Post. * @param {boolean=} params.publish Whether a publish action should be performed when the post is updated (default: false). * @param {boolean=} params.revert Whether a revert action should be performed when the post is updated (default: false). - * @param {().Post} params.resource Request body data + * @param {().Post} params.requestBody 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 @@ -3240,7 +3240,7 @@ export namespace blogger_v3 { * @param {string} params.postId The ID of the Post. * @param {boolean=} params.publish Whether a publish action should be performed when the post is updated (default: false). * @param {boolean=} params.revert Whether a revert action should be performed when the post is updated (default: false). - * @param {().Post} params.resource Request body data + * @param {().Post} params.requestBody 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 diff --git a/src/apis/books/v1.ts b/src/apis/books/v1.ts index 06eb1b69e3c..484b835ccd7 100644 --- a/src/apis/books/v1.ts +++ b/src/apis/books/v1.ts @@ -811,9 +811,12 @@ export namespace books_v1 { kind?: string | null; series?: Array<{ bannerImageUrl?: string; + eligibleForSubscription?: boolean; imageUrl?: string; + isComplete?: boolean; seriesId?: string; seriesType?: string; + subscriptionId?: string; title?: string; }> | null; } @@ -1604,7 +1607,7 @@ export namespace books_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().BooksCloudloadingResource} params.resource Request body data + * @param {().BooksCloudloadingResource} params.requestBody 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 @@ -3198,7 +3201,7 @@ export namespace books_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Usersettings} params.resource Request body data + * @param {().Usersettings} params.requestBody 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 @@ -3488,7 +3491,7 @@ export namespace books_v1 { * @param {string=} params.country ISO-3166-1 code to override the IP-based location. * @param {boolean=} params.showOnlySummaryInResponse Requests that only the summary of the specified layer be provided in the response. * @param {string=} params.source String to identify the originator of this request. - * @param {().Annotation} params.resource Request body data + * @param {().Annotation} params.requestBody 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 @@ -3722,7 +3725,7 @@ export namespace books_v1 { * @param {object} params Parameters for request * @param {string} params.annotationId The ID for the annotation to update. * @param {string=} params.source String to identify the originator of this request. - * @param {().Annotation} params.resource Request body data + * @param {().Annotation} params.requestBody 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 diff --git a/src/apis/calendar/v3.ts b/src/apis/calendar/v3.ts index 86bc2c709fd..b093b939327 100644 --- a/src/apis/calendar/v3.ts +++ b/src/apis/calendar/v3.ts @@ -549,7 +549,7 @@ export namespace calendar_v3 { self?: boolean; } | null; /** - * Description of the event. Optional. + * Description of the event. Can contain HTML. Optional. */ description?: string | null; /** @@ -1105,7 +1105,7 @@ export namespace calendar_v3 { * @param {object} params Parameters for request * @param {string} params.calendarId Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. * @param {boolean=} params.sendNotifications Whether to send notifications about the calendar sharing change. Optional. The default is True. - * @param {().AclRule} params.resource Request body data + * @param {().AclRule} params.requestBody 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 @@ -1254,7 +1254,7 @@ export namespace calendar_v3 { * @param {string} params.calendarId Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. * @param {string} params.ruleId ACL rule identifier. * @param {boolean=} params.sendNotifications Whether to send notifications about the calendar sharing change. Note that there are no notifications on access removal. Optional. The default is True. - * @param {().AclRule} params.resource Request body data + * @param {().AclRule} params.requestBody 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 @@ -1327,7 +1327,7 @@ export namespace calendar_v3 { * @param {string} params.calendarId Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. * @param {string} params.ruleId ACL rule identifier. * @param {boolean=} params.sendNotifications Whether to send notifications about the calendar sharing change. Note that there are no notifications on access removal. Optional. The default is True. - * @param {().AclRule} params.resource Request body data + * @param {().AclRule} params.requestBody 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 @@ -1402,7 +1402,7 @@ export namespace calendar_v3 { * @param {string=} params.pageToken Token specifying which result page to return. Optional. * @param {boolean=} params.showDeleted Whether to include deleted ACLs in the result. Deleted ACLs are represented by role equal to "none". Deleted ACLs will always be included if syncToken is provided. Optional. The default is False. * @param {string=} params.syncToken Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since then. All entries deleted since the previous list request will always be in the result set and it is not allowed to set showDeleted to False. If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken. Learn more about incremental synchronization. Optional. The default is to return all entries. - * @param {().Channel} params.resource Request body data + * @param {().Channel} params.requestBody 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 @@ -1781,7 +1781,7 @@ export namespace calendar_v3 { * * @param {object} params Parameters for request * @param {boolean=} params.colorRgbFormat Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If this feature is used, the index-based colorId field will be set to the best matching option automatically. Optional. The default is False. - * @param {().CalendarListEntry} params.resource Request body data + * @param {().CalendarListEntry} params.requestBody 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 @@ -1936,7 +1936,7 @@ export namespace calendar_v3 { * @param {object} params Parameters for request * @param {string} params.calendarId Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. * @param {boolean=} params.colorRgbFormat Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If this feature is used, the index-based colorId field will be set to the best matching option automatically. Optional. The default is False. - * @param {().CalendarListEntry} params.resource Request body data + * @param {().CalendarListEntry} params.requestBody 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 @@ -2011,7 +2011,7 @@ export namespace calendar_v3 { * @param {object} params Parameters for request * @param {string} params.calendarId Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. * @param {boolean=} params.colorRgbFormat Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If this feature is used, the index-based colorId field will be set to the best matching option automatically. Optional. The default is False. - * @param {().CalendarListEntry} params.resource Request body data + * @param {().CalendarListEntry} params.requestBody 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 @@ -2090,7 +2090,7 @@ export namespace calendar_v3 { * @param {boolean=} params.showDeleted Whether to include deleted calendar list entries in the result. Optional. The default is False. * @param {boolean=} params.showHidden Whether to show hidden entries. Optional. The default is False. * @param {string=} params.syncToken Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since then. If only read-only fields such as calendar properties or ACLs have changed, the entry won't be returned. All entries deleted and hidden since the previous list request will always be in the result set and it is not allowed to set showDeleted neither showHidden to False. To ensure client state consistency minAccessRole query parameter cannot be specified together with nextSyncToken. If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken. Learn more about incremental synchronization. Optional. The default is to return all entries. - * @param {().Channel} params.resource Request body data + * @param {().Channel} params.requestBody 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 @@ -2533,7 +2533,7 @@ export namespace calendar_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Calendar} params.resource Request body data + * @param {().Calendar} params.requestBody 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 @@ -2605,7 +2605,7 @@ export namespace calendar_v3 { * * @param {object} params Parameters for request * @param {string} params.calendarId Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. - * @param {().Calendar} params.resource Request body data + * @param {().Calendar} params.requestBody 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 @@ -2677,7 +2677,7 @@ export namespace calendar_v3 { * * @param {object} params Parameters for request * @param {string} params.calendarId Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. - * @param {().Calendar} params.resource Request body data + * @param {().Calendar} params.requestBody 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 @@ -2832,7 +2832,7 @@ export namespace calendar_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Channel} params.resource Request body data + * @param {().Channel} params.requestBody 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 @@ -3079,7 +3079,7 @@ export namespace calendar_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {boolean=} params.alwaysIncludeEmail Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False. + * @param {boolean=} params.alwaysIncludeEmail Deprecated and ignored. A value will always be returned in the email field for the organizer, creator and attendees, even if no real email address is available (i.e. a generated, non-working value will be provided). * @param {string} params.calendarId Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. * @param {string} params.eventId Event identifier. * @param {integer=} params.maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional. @@ -3156,7 +3156,7 @@ export namespace calendar_v3 { * @param {string} params.calendarId Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. * @param {integer=} params.conferenceDataVersion Version number of conference data supported by the API client. Version 0 assumes no conference data support and ignores conference data in the event's body. Version 1 enables support for copying of ConferenceData as well as for creating new conferences using the createRequest field of conferenceData. The default is 0. * @param {boolean=} params.supportsAttachments Whether API client performing operation supports event attachments. Optional. The default is False. - * @param {().Event} params.resource Request body data + * @param {().Event} params.requestBody 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 @@ -3232,7 +3232,7 @@ export namespace calendar_v3 { * @param {boolean=} params.sendNotifications Deprecated. Please use sendUpdates instead. Whether to send notifications about the creation of the new event. Note that some emails might still be sent even if you set the value to false. The default is false. * @param {string=} params.sendUpdates Whether to send notifications about the creation of the new event. Note that some emails might still be sent. The default is false. * @param {boolean=} params.supportsAttachments Whether API client performing operation supports event attachments. Optional. The default is False. - * @param {().Event} params.resource Request body data + * @param {().Event} params.requestBody 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 @@ -3302,7 +3302,7 @@ export namespace calendar_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {boolean=} params.alwaysIncludeEmail Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False. + * @param {boolean=} params.alwaysIncludeEmail Deprecated and ignored. A value will always be returned in the email field for the organizer, creator and attendees, even if no real email address is available (i.e. a generated, non-working value will be provided). * @param {string} params.calendarId Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. * @param {string} params.eventId Recurring event identifier. * @param {integer=} params.maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional. @@ -3383,7 +3383,7 @@ export namespace calendar_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {boolean=} params.alwaysIncludeEmail Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False. + * @param {boolean=} params.alwaysIncludeEmail Deprecated and ignored. A value will always be returned in the email field for the organizer, creator and attendees, even if no real email address is available (i.e. a generated, non-working value will be provided). * @param {string} params.calendarId Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. * @param {string=} params.iCalUID Specifies event ID in the iCalendar format to be included in the response. Optional. * @param {integer=} params.maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional. @@ -3545,7 +3545,7 @@ export namespace calendar_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {boolean=} params.alwaysIncludeEmail Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False. + * @param {boolean=} params.alwaysIncludeEmail Deprecated and ignored. A value will always be returned in the email field for the organizer, creator and attendees, even if no real email address is available (i.e. a generated, non-working value will be provided). * @param {string} params.calendarId Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. * @param {integer=} params.conferenceDataVersion Version number of conference data supported by the API client. Version 0 assumes no conference data support and ignores conference data in the event's body. Version 1 enables support for copying of ConferenceData as well as for creating new conferences using the createRequest field of conferenceData. The default is 0. * @param {string} params.eventId Event identifier. @@ -3553,7 +3553,7 @@ export namespace calendar_v3 { * @param {boolean=} params.sendNotifications Deprecated. Please use sendUpdates instead. Whether to send notifications about the event update (for example, description changes, etc.). Note that some emails might still be sent even if you set the value to false. The default is false. * @param {string=} params.sendUpdates Guests who should receive notifications about the event update (for example, title changes, etc.). * @param {boolean=} params.supportsAttachments Whether API client performing operation supports event attachments. Optional. The default is False. - * @param {().Event} params.resource Request body data + * @param {().Event} params.requestBody 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 @@ -3696,7 +3696,7 @@ export namespace calendar_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {boolean=} params.alwaysIncludeEmail Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False. + * @param {boolean=} params.alwaysIncludeEmail Deprecated and ignored. A value will always be returned in the email field for the organizer, creator and attendees, even if no real email address is available (i.e. a generated, non-working value will be provided). * @param {string} params.calendarId Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. * @param {integer=} params.conferenceDataVersion Version number of conference data supported by the API client. Version 0 assumes no conference data support and ignores conference data in the event's body. Version 1 enables support for copying of ConferenceData as well as for creating new conferences using the createRequest field of conferenceData. The default is 0. * @param {string} params.eventId Event identifier. @@ -3704,7 +3704,7 @@ export namespace calendar_v3 { * @param {boolean=} params.sendNotifications Deprecated. Please use sendUpdates instead. Whether to send notifications about the event update (for example, description changes, etc.). Note that some emails might still be sent even if you set the value to false. The default is false. * @param {string=} params.sendUpdates Guests who should receive notifications about the event update (for example, title changes, etc.). * @param {boolean=} params.supportsAttachments Whether API client performing operation supports event attachments. Optional. The default is False. - * @param {().Event} params.resource Request body data + * @param {().Event} params.requestBody 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 @@ -3774,7 +3774,7 @@ export namespace calendar_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {boolean=} params.alwaysIncludeEmail Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False. + * @param {boolean=} params.alwaysIncludeEmail Deprecated and ignored. A value will always be returned in the email field for the organizer, creator and attendees, even if no real email address is available (i.e. a generated, non-working value will be provided). * @param {string} params.calendarId Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword. * @param {string=} params.iCalUID Specifies event ID in the iCalendar format to be included in the response. Optional. * @param {integer=} params.maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional. @@ -3792,7 +3792,7 @@ export namespace calendar_v3 { * @param {string=} params.timeMin Lower bound (exclusive) for an event's end time to filter by. Optional. The default is not to filter by end time. Must be an RFC3339 timestamp with mandatory time zone offset, for example, 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided but are ignored. If timeMax is set, timeMin must be smaller than timeMax. * @param {string=} params.timeZone Time zone used in the response. Optional. The default is the time zone of the calendar. * @param {string=} params.updatedMin Lower bound for an event's last modification time (as a RFC3339 timestamp) to filter by. When specified, entries deleted since this time will always be included regardless of showDeleted. Optional. The default is not to filter by last modification time. - * @param {().Channel} params.resource Request body data + * @param {().Channel} params.requestBody 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 @@ -3886,7 +3886,7 @@ export namespace calendar_v3 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False. + * Deprecated and ignored. A value will always be returned in the email field for the organizer, creator and attendees, even if no real email address is available (i.e. a generated, non-working value will be provided). */ alwaysIncludeEmail?: boolean; /** @@ -3973,7 +3973,7 @@ export namespace calendar_v3 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False. + * Deprecated and ignored. A value will always be returned in the email field for the organizer, creator and attendees, even if no real email address is available (i.e. a generated, non-working value will be provided). */ alwaysIncludeEmail?: boolean; /** @@ -4024,7 +4024,7 @@ export namespace calendar_v3 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False. + * Deprecated and ignored. A value will always be returned in the email field for the organizer, creator and attendees, even if no real email address is available (i.e. a generated, non-working value will be provided). */ alwaysIncludeEmail?: boolean; /** @@ -4130,7 +4130,7 @@ export namespace calendar_v3 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False. + * Deprecated and ignored. A value will always be returned in the email field for the organizer, creator and attendees, even if no real email address is available (i.e. a generated, non-working value will be provided). */ alwaysIncludeEmail?: boolean; /** @@ -4197,7 +4197,7 @@ export namespace calendar_v3 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False. + * Deprecated and ignored. A value will always be returned in the email field for the organizer, creator and attendees, even if no real email address is available (i.e. a generated, non-working value will be provided). */ alwaysIncludeEmail?: boolean; /** @@ -4241,7 +4241,7 @@ export namespace calendar_v3 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False. + * Deprecated and ignored. A value will always be returned in the email field for the organizer, creator and attendees, even if no real email address is available (i.e. a generated, non-working value will be provided). */ alwaysIncludeEmail?: boolean; /** @@ -4332,7 +4332,7 @@ export namespace calendar_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().FreeBusyRequest} params.resource Request body data + * @param {().FreeBusyRequest} params.requestBody 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 @@ -4571,7 +4571,7 @@ export namespace calendar_v3 { * @param {integer=} params.maxResults Maximum number of entries returned on one result page. By default the value is 100 entries. The page size can never be larger than 250 entries. Optional. * @param {string=} params.pageToken Token specifying which result page to return. Optional. * @param {string=} params.syncToken Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since then. If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken. Learn more about incremental synchronization. Optional. The default is to return all entries. - * @param {().Channel} params.resource Request body data + * @param {().Channel} params.requestBody 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 diff --git a/src/apis/chat/v1.ts b/src/apis/chat/v1.ts index 436ec21409c..ea9601f4b4c 100644 --- a/src/apis/chat/v1.ts +++ b/src/apis/chat/v1.ts @@ -967,7 +967,7 @@ export namespace chat_v1 { * @param {object} params Parameters for request * @param {string} params.parent Required. Space resource name, in the form "spaces/x". Example: spaces/AAAAMpdlehY * @param {string=} params.threadKey Opaque thread identifier string that can be specified to group messages into a single thread. If this is the first message with a given thread identifier, a new thread is created. Subsequent messages with the same thread identifier will be posted into the same thread. This relieves bots and webhooks from having to store the Hangouts Chat thread ID of a thread (created earlier by them) to post further updates to it. Has no effect if thread field, corresponding to an existing thread, is set in message. - * @param {().Message} params.resource Request body data + * @param {().Message} params.requestBody 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 @@ -1179,7 +1179,7 @@ export namespace chat_v1 { * @param {object} params Parameters for request * @param {string} params.name Resource name, in the form "spaces/x/messages/x". Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4 * @param {string=} params.updateMask Required. The field paths to be updated. Currently supported field paths: "text", "cards". - * @param {().Message} params.resource Request body data + * @param {().Message} params.requestBody 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 diff --git a/src/apis/civicinfo/v2.ts b/src/apis/civicinfo/v2.ts index 9d0d339b2e6..166b504b276 100644 --- a/src/apis/civicinfo/v2.ts +++ b/src/apis/civicinfo/v2.ts @@ -491,30 +491,6 @@ export namespace civicinfo_v2 { dataset?: string | null; provider?: string | null; } - export interface Schema$LivegraphBacktraceRecordInfo { - dataSourcePublishMsec?: string | null; - expId?: string | null; - expInfo?: Schema$LivegraphBacktraceRecordInfoExpInfo; - isRecon?: boolean | null; - isWlmThrottled?: boolean | null; - numberOfTriples?: string | null; - priority?: string | null; - process?: string | null; - proxyReceiveMsec?: string | null; - proxySentMsec?: string | null; - recordId?: string | null; - shouldMonitorLatency?: boolean | null; - subscriberReceiveMsec?: string | null; - topicBuildFinishMsec?: string | null; - topicBuildStartMsec?: string | null; - version?: string | null; - } - export interface Schema$LivegraphBacktraceRecordInfoExpInfo { - deletedIns?: string[] | null; - } - export interface Schema$MessageSet { - recordMessageSetExt?: Schema$LivegraphBacktraceRecordInfo; - } /** * Information about an Office held by one or more Officials. */ @@ -585,7 +561,6 @@ export namespace civicinfo_v2 { latE7?: number | null; lngE7?: number | null; metadata?: Schema$FieldMetadataProto; - temporaryData?: Schema$MessageSet; } /** * A location where a voter can vote. This may be an early vote site, an election day voting location, or a drop off location for a completed ballot. @@ -886,7 +861,7 @@ export namespace civicinfo_v2 { * * @param {object} params Parameters for request * @param {string=} params.query The search query. Queries can cover any parts of a OCD ID or a human readable division name. All words given in the query are treated as required patterns. In addition to that, most query operators of the Apache Lucene library are supported. See http://lucene.apache.org/core/2_9_4/queryparsersyntax.html - * @param {().DivisionSearchRequest} params.resource Request body data + * @param {().DivisionSearchRequest} params.requestBody 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 @@ -985,7 +960,7 @@ export namespace civicinfo_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().ElectionsQueryRequest} params.resource Request body data + * @param {().ElectionsQueryRequest} params.requestBody 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 @@ -1067,7 +1042,7 @@ export namespace civicinfo_v2 { * @param {string=} params.electionId The unique ID of the election to look up. A list of election IDs can be obtained at https://www.googleapis.com/civicinfo/{version}/electionsIf no election ID is specified in the query and there is more than one election with data for the given voter, the additional elections are provided in the otherElections response field. * @param {boolean=} params.officialOnly If set to true, only data from official state sources will be returned. * @param {boolean=} params.returnAllAvailableData If set to true, the query will return the success codeand include any partial information when it is unable to determine a matching address or unable to determine the election for electionId=0 queries. - * @param {().VoterInfoRequest} params.resource Request body data + * @param {().VoterInfoRequest} params.requestBody 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 @@ -1196,7 +1171,7 @@ export namespace civicinfo_v2 { * @param {boolean=} params.includeOffices Whether to return information about offices and officials. If false, only the top-level district information will be returned. * @param {string=} params.levels A list of office levels to filter by. Only offices that serve at least one of these levels will be returned. Divisions that don't contain a matching office will not be returned. * @param {string=} params.roles A list of office roles to filter by. Only offices fulfilling one of these roles will be returned. Divisions that don't contain a matching office will not be returned. - * @param {().RepresentativeInfoRequest} params.resource Request body data + * @param {().RepresentativeInfoRequest} params.requestBody 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 @@ -1281,7 +1256,7 @@ export namespace civicinfo_v2 { * @param {string} params.ocdId The Open Civic Data division identifier of the division to look up. * @param {boolean=} params.recursive If true, information about all divisions contained in the division requested will be included as well. For example, if querying ocd-division/country:us/district:dc, this would also return all DC's wards and ANCs. * @param {string=} params.roles A list of office roles to filter by. Only offices fulfilling one of these roles will be returned. Divisions that don't contain a matching office will not be returned. - * @param {().DivisionRepresentativeInfoRequest} params.resource Request body data + * @param {().DivisionRepresentativeInfoRequest} params.requestBody 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 diff --git a/src/apis/classroom/v1.ts b/src/apis/classroom/v1.ts index 4f33e83b87c..f9f62770526 100644 --- a/src/apis/classroom/v1.ts +++ b/src/apis/classroom/v1.ts @@ -1238,7 +1238,7 @@ export namespace classroom_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Course} params.resource Request body data + * @param {().Course} params.requestBody 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 @@ -1518,7 +1518,7 @@ export namespace classroom_v1 { * @param {object} params Parameters for request * @param {string} params.id Identifier of the course to update. This identifier can be either the Classroom-assigned identifier or an alias. * @param {string=} params.updateMask Mask that identifies which fields on the course to update. This field is required to do an update. The update will fail if invalid fields are specified. The following fields are valid: * `name` * `section` * `descriptionHeading` * `description` * `room` * `courseState` * `ownerId` Note: patches to ownerId are treated as being effective immediately, but in practice it may take some time for the ownership transfer of all affected resources to complete. When set in a query parameter, this field should be specified as `updateMask=,,...` - * @param {().Course} params.resource Request body data + * @param {().Course} params.requestBody 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 @@ -1587,7 +1587,7 @@ export namespace classroom_v1 { * * @param {object} params Parameters for request * @param {string} params.id Identifier of the course to update. This identifier can be either the Classroom-assigned identifier or an alias. - * @param {().Course} params.resource Request body data + * @param {().Course} params.requestBody 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 @@ -1760,7 +1760,7 @@ export namespace classroom_v1 { * * @param {object} params Parameters for request * @param {string} params.courseId Identifier of the course to alias. This identifier can be either the Classroom-assigned identifier or an alias. - * @param {().CourseAlias} params.resource Request body data + * @param {().CourseAlias} params.requestBody 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 @@ -2052,7 +2052,7 @@ export namespace classroom_v1 { * * @param {object} params Parameters for request * @param {string} params.courseId Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - * @param {().Announcement} params.resource Request body data + * @param {().Announcement} params.requestBody 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 @@ -2359,7 +2359,7 @@ export namespace classroom_v1 { * @param {object} params Parameters for request * @param {string} params.courseId Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. * @param {string} params.id Identifier of the announcement. - * @param {().ModifyAnnouncementAssigneesRequest} params.resource Request body data + * @param {().ModifyAnnouncementAssigneesRequest} params.requestBody 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 @@ -2436,7 +2436,7 @@ export namespace classroom_v1 { * @param {string} params.courseId Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. * @param {string} params.id Identifier of the announcement. * @param {string=} params.updateMask Mask that identifies which fields on the announcement to update. This field is required to do an update. The update fails if invalid fields are specified. If a field supports empty values, it can be cleared by specifying it in the update mask and not in the Announcement object. If a field that does not support empty values is included in the update mask and not set in the Announcement object, an `INVALID_ARGUMENT` error will be returned. The following fields may be specified by teachers: * `text` * `state` * `scheduled_time` - * @param {().Announcement} params.resource Request body data + * @param {().Announcement} params.requestBody 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 @@ -2645,7 +2645,7 @@ export namespace classroom_v1 { * * @param {object} params Parameters for request * @param {string} params.courseId Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - * @param {().CourseWork} params.resource Request body data + * @param {().CourseWork} params.requestBody 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 @@ -2949,7 +2949,7 @@ export namespace classroom_v1 { * @param {object} params Parameters for request * @param {string} params.courseId Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. * @param {string} params.id Identifier of the coursework. - * @param {().ModifyCourseWorkAssigneesRequest} params.resource Request body data + * @param {().ModifyCourseWorkAssigneesRequest} params.requestBody 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 @@ -3025,7 +3025,7 @@ export namespace classroom_v1 { * @param {string} params.courseId Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. * @param {string} params.id Identifier of the course work. * @param {string=} params.updateMask Mask that identifies which fields on the course work to update. This field is required to do an update. The update fails if invalid fields are specified. If a field supports empty values, it can be cleared by specifying it in the update mask and not in the CourseWork object. If a field that does not support empty values is included in the update mask and not set in the CourseWork object, an `INVALID_ARGUMENT` error will be returned. The following fields may be specified by teachers: * `title` * `description` * `state` * `due_date` * `due_time` * `max_points` * `scheduled_time` * `submission_modification_mode` * `topic_id` - * @param {().CourseWork} params.resource Request body data + * @param {().CourseWork} params.requestBody 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 @@ -3398,7 +3398,7 @@ export namespace classroom_v1 { * @param {string} params.courseId Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. * @param {string} params.courseWorkId Identifier of the course work. * @param {string} params.id Identifier of the student submission. - * @param {().ModifyAttachmentsRequest} params.resource Request body data + * @param {().ModifyAttachmentsRequest} params.requestBody 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 @@ -3478,7 +3478,7 @@ export namespace classroom_v1 { * @param {string} params.courseWorkId Identifier of the course work. * @param {string} params.id Identifier of the student submission. * @param {string=} params.updateMask Mask that identifies which fields on the student submission to update. This field is required to do an update. The update fails if invalid fields are specified. The following fields may be specified by teachers: * `draft_grade` * `assigned_grade` - * @param {().StudentSubmission} params.resource Request body data + * @param {().StudentSubmission} params.requestBody 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 @@ -3555,7 +3555,7 @@ export namespace classroom_v1 { * @param {string} params.courseId Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. * @param {string} params.courseWorkId Identifier of the course work. * @param {string} params.id Identifier of the student submission. - * @param {().ReclaimStudentSubmissionRequest} params.resource Request body data + * @param {().ReclaimStudentSubmissionRequest} params.requestBody 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 @@ -3630,7 +3630,7 @@ export namespace classroom_v1 { * @param {string} params.courseId Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. * @param {string} params.courseWorkId Identifier of the course work. * @param {string} params.id Identifier of the student submission. - * @param {().ReturnStudentSubmissionRequest} params.resource Request body data + * @param {().ReturnStudentSubmissionRequest} params.requestBody 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 @@ -3705,7 +3705,7 @@ export namespace classroom_v1 { * @param {string} params.courseId Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. * @param {string} params.courseWorkId Identifier of the course work. * @param {string} params.id Identifier of the student submission. - * @param {().TurnInStudentSubmissionRequest} params.resource Request body data + * @param {().TurnInStudentSubmissionRequest} params.requestBody 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 @@ -3972,7 +3972,7 @@ export namespace classroom_v1 { * @param {object} params Parameters for request * @param {string} params.courseId Identifier of the course to create the student in. This identifier can be either the Classroom-assigned identifier or an alias. * @param {string=} params.enrollmentCode Enrollment code of the course to create the student in. This code is required if userId corresponds to the requesting user; it may be omitted if the requesting user has administrative permissions to create students for any user. - * @param {().Student} params.resource Request body data + * @param {().Student} params.requestBody 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 @@ -4350,7 +4350,7 @@ export namespace classroom_v1 { * * @param {object} params Parameters for request * @param {string} params.courseId Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - * @param {().Teacher} params.resource Request body data + * @param {().Teacher} params.requestBody 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 @@ -4724,7 +4724,7 @@ export namespace classroom_v1 { * * @param {object} params Parameters for request * @param {string} params.courseId Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - * @param {().Topic} params.resource Request body data + * @param {().Topic} params.requestBody 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 @@ -5021,7 +5021,7 @@ export namespace classroom_v1 { * @param {string} params.courseId Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. * @param {string} params.id Identifier of the topic. * @param {string=} params.updateMask Mask that identifies which fields on the topic to update. This field is required to do an update. The update fails if invalid fields are specified. If a field supports empty values, it can be cleared by specifying it in the update mask and not in the Topic object. If a field that does not support empty values is included in the update mask and not set in the Topic object, an `INVALID_ARGUMENT` error will be returned. The following fields may be specified: * `name` - * @param {().Topic} params.resource Request body data + * @param {().Topic} params.requestBody 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 @@ -5267,7 +5267,7 @@ export namespace classroom_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Invitation} params.resource Request body data + * @param {().Invitation} params.requestBody 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 @@ -5636,7 +5636,7 @@ export namespace classroom_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Registration} params.resource Request body data + * @param {().Registration} params.requestBody 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 @@ -5910,7 +5910,7 @@ export namespace classroom_v1 { * * @param {object} params Parameters for request * @param {string} params.studentId ID of the student (in standard format) - * @param {().GuardianInvitation} params.resource Request body data + * @param {().GuardianInvitation} params.requestBody 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 @@ -6147,7 +6147,7 @@ export namespace classroom_v1 { * @param {string} params.invitationId The `id` field of the `GuardianInvitation` to be modified. * @param {string} params.studentId The ID of the student whose guardian invitation is to be modified. * @param {string=} params.updateMask Mask that identifies which fields on the course to update. This field is required to do an update. The update will fail if invalid fields are specified. The following fields are valid: * `state` When set in a query parameter, this field should be specified as `updateMask=,,...` - * @param {().GuardianInvitation} params.resource Request body data + * @param {().GuardianInvitation} params.requestBody 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 diff --git a/src/apis/cloudasset/v1.ts b/src/apis/cloudasset/v1.ts index 650ca7e5251..4b953511606 100644 --- a/src/apis/cloudasset/v1.ts +++ b/src/apis/cloudasset/v1.ts @@ -587,11 +587,11 @@ export namespace cloudasset_v1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -862,7 +862,7 @@ export namespace cloudasset_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The relative name of the root asset. This can only be an organization number (such as "organizations/123"), a project ID (such as "projects/my-project-id"), or a project number (such as "projects/12345"), or a folder number (such as "folders/123"). - * @param {().ExportAssetsRequest} params.resource Request body data + * @param {().ExportAssetsRequest} params.requestBody 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 diff --git a/src/apis/cloudasset/v1beta1.ts b/src/apis/cloudasset/v1beta1.ts index 6423844087f..6018c17d594 100644 --- a/src/apis/cloudasset/v1beta1.ts +++ b/src/apis/cloudasset/v1beta1.ts @@ -294,11 +294,11 @@ export namespace cloudasset_v1beta1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -395,7 +395,7 @@ export namespace cloudasset_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The relative name of the root asset. This can only be an organization number (such as "organizations/123"), a project ID (such as "projects/my-project-id"), a project number (such as "projects/12345"), or a folder number (such as "folders/123"). - * @param {().ExportAssetsRequest} params.resource Request body data + * @param {().ExportAssetsRequest} params.requestBody 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 @@ -675,7 +675,7 @@ export namespace cloudasset_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The relative name of the root asset. This can only be an organization number (such as "organizations/123"), a project ID (such as "projects/my-project-id"), a project number (such as "projects/12345"), or a folder number (such as "folders/123"). - * @param {().ExportAssetsRequest} params.resource Request body data + * @param {().ExportAssetsRequest} params.requestBody 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 @@ -983,7 +983,7 @@ export namespace cloudasset_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The relative name of the root asset. This can only be an organization number (such as "organizations/123"), a project ID (such as "projects/my-project-id"), a project number (such as "projects/12345"), or a folder number (such as "folders/123"). - * @param {().ExportAssetsRequest} params.resource Request body data + * @param {().ExportAssetsRequest} params.requestBody 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 diff --git a/src/apis/cloudbilling/v1.ts b/src/apis/cloudbilling/v1.ts index c9326420dc1..165337f24ee 100644 --- a/src/apis/cloudbilling/v1.ts +++ b/src/apis/cloudbilling/v1.ts @@ -186,7 +186,7 @@ export namespace cloudbilling_v1 { */ condition?: Schema$Expr; /** - * Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. + * Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example,`alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. */ members?: string[] | null; /** @@ -566,7 +566,7 @@ export namespace cloudbilling_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().BillingAccount} params.resource Request body data + * @param {().BillingAccount} params.requestBody 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 @@ -1070,7 +1070,7 @@ export namespace cloudbilling_v1 { * @param {object} params Parameters for request * @param {string} params.name The name of the billing account resource to be updated. * @param {string=} params.updateMask The update mask applied to the resource. Only "display_name" is currently supported. - * @param {().BillingAccount} params.resource Request body data + * @param {().BillingAccount} params.requestBody 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 @@ -1193,7 +1193,7 @@ export namespace cloudbilling_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -1317,7 +1317,7 @@ export namespace cloudbilling_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -1870,7 +1870,7 @@ export namespace cloudbilling_v1 { * * @param {object} params Parameters for request * @param {string} params.name The resource name of the project associated with the billing information that you want to update. For example, `projects/tokyo-rain-123`. - * @param {().ProjectBillingInfo} params.resource Request body data + * @param {().ProjectBillingInfo} params.requestBody 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 diff --git a/src/apis/cloudbuild/v1.ts b/src/apis/cloudbuild/v1.ts index 5681d5479bd..0a2ff721d88 100644 --- a/src/apis/cloudbuild/v1.ts +++ b/src/apis/cloudbuild/v1.ts @@ -393,7 +393,7 @@ export namespace cloudbuild_v1 { */ filename?: string | null; /** - * GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. + * GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`. */ github?: Schema$GitHubEventsConfig; /** @@ -421,7 +421,7 @@ export namespace cloudbuild_v1 { */ tags?: string[] | null; /** - * Template describing the types of source changes to trigger a build. Branch and tag names in trigger templates are interpreted as regular expressions. Any branch or tag change that matches that regular expression will trigger a build. + * Template describing the types of source changes to trigger a build. Branch and tag names in trigger templates are interpreted as regular expressions. Any branch or tag change that matches that regular expression will trigger a build. Mutually exclusive with `github`. */ triggerTemplate?: Schema$RepoSource; } @@ -612,9 +612,13 @@ export namespace cloudbuild_v1 { */ projectId?: string | null; /** - * Name of the Cloud Source Repository. If omitted, the name "default" is assumed. + * Required. Name of the Cloud Source Repository. */ repoName?: string | null; + /** + * Substitutions to use in a triggered build. Should only be used with RunBuildTrigger + */ + substitutions?: {[key: string]: string} | null; /** * Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax */ @@ -771,7 +775,7 @@ export namespace cloudbuild_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the operation resource to be cancelled. - * @param {().CancelOperationRequest} params.resource Request body data + * @param {().CancelOperationRequest} params.requestBody 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 @@ -1055,9 +1059,9 @@ export namespace cloudbuild_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.id ID of the build. - * @param {string} params.projectId ID of the project. - * @param {().CancelBuildRequest} params.resource Request body data + * @param {string} params.id Required. ID of the build. + * @param {string} params.projectId Required. ID of the project. + * @param {().CancelBuildRequest} params.requestBody 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 @@ -1128,8 +1132,8 @@ export namespace cloudbuild_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.projectId ID of the project. - * @param {().Build} params.resource Request body data + * @param {string} params.projectId Required. ID of the project. + * @param {().Build} params.requestBody 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 @@ -1203,8 +1207,8 @@ export namespace cloudbuild_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.id ID of the build. - * @param {string} params.projectId ID of the project. + * @param {string} params.id Required. ID of the build. + * @param {string} params.projectId Required. ID of the project. * @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 @@ -1279,7 +1283,7 @@ export namespace cloudbuild_v1 { * @param {string=} params.filter The raw filter text to constrain the results. * @param {integer=} params.pageSize Number of results to return in the list. * @param {string=} params.pageToken Token to provide to skip to a particular spot in the list. - * @param {string} params.projectId ID of the project. + * @param {string} params.projectId Required. ID of the project. * @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 @@ -1353,9 +1357,9 @@ export namespace cloudbuild_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.id Build ID of the original build. - * @param {string} params.projectId ID of the project. - * @param {().RetryBuildRequest} params.resource Request body data + * @param {string} params.id Required. Build ID of the original build. + * @param {string} params.projectId Required. ID of the project. + * @param {().RetryBuildRequest} params.requestBody 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 @@ -1430,11 +1434,11 @@ export namespace cloudbuild_v1 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * ID of the build. + * Required. ID of the build. */ id?: string; /** - * ID of the project. + * Required. ID of the project. */ projectId?: string; @@ -1451,7 +1455,7 @@ export namespace cloudbuild_v1 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * ID of the project. + * Required. ID of the project. */ projectId?: string; @@ -1468,11 +1472,11 @@ export namespace cloudbuild_v1 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * ID of the build. + * Required. ID of the build. */ id?: string; /** - * ID of the project. + * Required. ID of the project. */ projectId?: string; } @@ -1496,7 +1500,7 @@ export namespace cloudbuild_v1 { */ pageToken?: string; /** - * ID of the project. + * Required. ID of the project. */ projectId?: string; } @@ -1508,11 +1512,11 @@ export namespace cloudbuild_v1 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Build ID of the original build. + * Required. Build ID of the original build. */ id?: string; /** - * ID of the project. + * Required. ID of the project. */ projectId?: string; @@ -1535,8 +1539,8 @@ export namespace cloudbuild_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.projectId ID of the project for which to configure automatic builds. - * @param {().BuildTrigger} params.resource Request body data + * @param {string} params.projectId Required. ID of the project for which to configure automatic builds. + * @param {().BuildTrigger} params.requestBody 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 @@ -1610,8 +1614,8 @@ export namespace cloudbuild_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.projectId ID of the project that owns the trigger. - * @param {string} params.triggerId ID of the `BuildTrigger` to delete. + * @param {string} params.projectId Required. ID of the project that owns the trigger. + * @param {string} params.triggerId Required. ID of the `BuildTrigger` to delete. * @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 @@ -1682,8 +1686,8 @@ export namespace cloudbuild_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.projectId ID of the project that owns the trigger. - * @param {string} params.triggerId ID of the `BuildTrigger` to get. + * @param {string} params.projectId Required. ID of the project that owns the trigger. + * @param {string} params.triggerId Required. Identifier (`id` or `name`) of the `BuildTrigger` to get. * @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 @@ -1758,7 +1762,7 @@ export namespace cloudbuild_v1 { * @param {object} params Parameters for request * @param {integer=} params.pageSize Number of results to return in the list. * @param {string=} params.pageToken Token to provide to skip to a particular spot in the list. - * @param {string} params.projectId ID of the project for which to list BuildTriggers. + * @param {string} params.projectId Required. ID of the project for which to list BuildTriggers. * @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 @@ -1839,9 +1843,9 @@ export namespace cloudbuild_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.projectId ID of the project that owns the trigger. - * @param {string} params.triggerId ID of the `BuildTrigger` to update. - * @param {().BuildTrigger} params.resource Request body data + * @param {string} params.projectId Required. ID of the project that owns the trigger. + * @param {string} params.triggerId Required. ID of the `BuildTrigger` to update. + * @param {().BuildTrigger} params.requestBody 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 @@ -1914,9 +1918,9 @@ export namespace cloudbuild_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.projectId ID of the project. - * @param {string} params.triggerId ID of the trigger. - * @param {().RepoSource} params.resource Request body data + * @param {string} params.projectId Required. ID of the project. + * @param {string} params.triggerId Required. ID of the trigger. + * @param {().RepoSource} params.requestBody 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 @@ -1991,7 +1995,7 @@ export namespace cloudbuild_v1 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * ID of the project for which to configure automatic builds. + * Required. ID of the project for which to configure automatic builds. */ projectId?: string; @@ -2008,11 +2012,11 @@ export namespace cloudbuild_v1 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * ID of the project that owns the trigger. + * Required. ID of the project that owns the trigger. */ projectId?: string; /** - * ID of the `BuildTrigger` to delete. + * Required. ID of the `BuildTrigger` to delete. */ triggerId?: string; } @@ -2024,11 +2028,11 @@ export namespace cloudbuild_v1 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * ID of the project that owns the trigger. + * Required. ID of the project that owns the trigger. */ projectId?: string; /** - * ID of the `BuildTrigger` to get. + * Required. Identifier (`id` or `name`) of the `BuildTrigger` to get. */ triggerId?: string; } @@ -2048,7 +2052,7 @@ export namespace cloudbuild_v1 { */ pageToken?: string; /** - * ID of the project for which to list BuildTriggers. + * Required. ID of the project for which to list BuildTriggers. */ projectId?: string; } @@ -2060,11 +2064,11 @@ export namespace cloudbuild_v1 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * ID of the project that owns the trigger. + * Required. ID of the project that owns the trigger. */ projectId?: string; /** - * ID of the `BuildTrigger` to update. + * Required. ID of the `BuildTrigger` to update. */ triggerId?: string; @@ -2081,11 +2085,11 @@ export namespace cloudbuild_v1 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * ID of the project. + * Required. ID of the project. */ projectId?: string; /** - * ID of the trigger. + * Required. ID of the trigger. */ triggerId?: string; diff --git a/src/apis/cloudbuild/v1alpha1.ts b/src/apis/cloudbuild/v1alpha1.ts index 3c28c5b2cb7..e66e0a94ac6 100644 --- a/src/apis/cloudbuild/v1alpha1.ts +++ b/src/apis/cloudbuild/v1alpha1.ts @@ -456,9 +456,13 @@ export namespace cloudbuild_v1alpha1 { */ projectId?: string | null; /** - * Name of the Cloud Source Repository. If omitted, the name "default" is assumed. + * Required. Name of the Cloud Source Repository. */ repoName?: string | null; + /** + * Substitutions to use in a triggered build. Should only be used with RunBuildTrigger + */ + substitutions?: {[key: string]: string} | null; /** * Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax */ @@ -669,7 +673,7 @@ export namespace cloudbuild_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.parent ID of the parent project. - * @param {().WorkerPool} params.resource Request body data + * @param {().WorkerPool} params.requestBody 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 @@ -960,7 +964,8 @@ export namespace cloudbuild_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.name The field will contain name of the resource requested, for example: "projects/project-1/workerPools/workerpool-name" - * @param {().WorkerPool} params.resource Request body data + * @param {string=} params.updateMask A mask specifying which fields in `WorkerPool` should be updated. + * @param {().WorkerPool} params.requestBody 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 @@ -1089,6 +1094,10 @@ export namespace cloudbuild_v1alpha1 { * The field will contain name of the resource requested, for example: "projects/project-1/workerPools/workerpool-name" */ name?: string; + /** + * A mask specifying which fields in `WorkerPool` should be updated. + */ + updateMask?: string; /** * Request body metadata diff --git a/src/apis/clouddebugger/v2.ts b/src/apis/clouddebugger/v2.ts index 27b492f6a59..daab3c52c10 100644 --- a/src/apis/clouddebugger/v2.ts +++ b/src/apis/clouddebugger/v2.ts @@ -656,7 +656,7 @@ export namespace clouddebugger_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().RegisterDebuggeeRequest} params.resource Request body data + * @param {().RegisterDebuggeeRequest} params.requestBody 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 @@ -942,7 +942,7 @@ export namespace clouddebugger_v2 { * @param {object} params Parameters for request * @param {string} params.debuggeeId Required. Identifies the debuggee being debugged. * @param {string} params.id Breakpoint identifier, unique in the scope of the debuggee. - * @param {().UpdateActiveBreakpointRequest} params.resource Request body data + * @param {().UpdateActiveBreakpointRequest} params.requestBody 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 @@ -1666,7 +1666,7 @@ export namespace clouddebugger_v2 { * @param {object} params Parameters for request * @param {string=} params.clientVersion Required. The client version making the call. Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). * @param {string} params.debuggeeId Required. ID of the debuggee where the breakpoint is to be set. - * @param {().Breakpoint} params.resource Request body data + * @param {().Breakpoint} params.requestBody 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 diff --git a/src/apis/clouderrorreporting/v1beta1.ts b/src/apis/clouderrorreporting/v1beta1.ts index fbf4239d0f0..75dd4d4f0a8 100644 --- a/src/apis/clouderrorreporting/v1beta1.ts +++ b/src/apis/clouderrorreporting/v1beta1.ts @@ -582,7 +582,7 @@ export namespace clouderrorreporting_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.projectName Required. The resource name of the Google Cloud Platform project. Written as `projects/` plus the [Google Cloud Platform project ID](https://support.google.com/cloud/answer/6158840). Example: `projects/my-project-123`. - * @param {().ReportedErrorEvent} params.resource Request body data + * @param {().ReportedErrorEvent} params.requestBody 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 @@ -802,7 +802,7 @@ export namespace clouderrorreporting_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The group resource name. Example: projects/my-project-123/groups/my-groupid - * @param {().ErrorGroup} params.resource Request body data + * @param {().ErrorGroup} params.requestBody 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 diff --git a/src/apis/cloudfunctions/v1.ts b/src/apis/cloudfunctions/v1.ts index b3fa3506cfa..1092df785e4 100644 --- a/src/apis/cloudfunctions/v1.ts +++ b/src/apis/cloudfunctions/v1.ts @@ -374,6 +374,10 @@ export namespace cloudfunctions_v1 { * If not empty, indicates that there may be more functions that match the request; this value should be passed in a new google.cloud.functions.v1.ListFunctionsRequest to get more functions. */ nextPageToken?: string | null; + /** + * Locations that could not be reached. The response does not include any functions from these locations. + */ + unreachable?: string[] | null; } /** * The response message for Locations.ListLocations. @@ -514,11 +518,11 @@ export namespace cloudfunctions_v1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -914,7 +918,7 @@ export namespace cloudfunctions_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The name of the function to be called. - * @param {().CallFunctionRequest} params.resource Request body data + * @param {().CallFunctionRequest} params.requestBody 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 @@ -989,7 +993,7 @@ export namespace cloudfunctions_v1 { * * @param {object} params Parameters for request * @param {string} params.location Required. The project and location in which the function should be created, specified in the format `projects/x/locations/x` - * @param {().CloudFunction} params.resource Request body data + * @param {().CloudFunction} params.requestBody 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 @@ -1137,7 +1141,7 @@ export namespace cloudfunctions_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of function for which source code Google Cloud Storage signed URL should be generated. - * @param {().GenerateDownloadUrlRequest} params.resource Request body data + * @param {().GenerateDownloadUrlRequest} params.requestBody 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 @@ -1220,7 +1224,7 @@ export namespace cloudfunctions_v1 { * * @param {object} params Parameters for request * @param {string} params.parent The project and location in which the Google Cloud Storage signed URL should be generated, specified in the format `projects/x/locations/x`. - * @param {().GenerateUploadUrlRequest} params.resource Request body data + * @param {().GenerateUploadUrlRequest} params.requestBody 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 @@ -1449,7 +1453,7 @@ export namespace cloudfunctions_v1 { * @param {object} params Parameters for request * @param {integer=} params.pageSize Maximum number of functions to return per call. * @param {string=} params.pageToken The value returned by the last `ListFunctionsResponse`; indicates that this is a continuation of a prior `ListFunctions` call, and that the system should return the next page of data. - * @param {string} params.parent The project and location from which the function should be listed, specified in the format `projects/x/locations/x` If you want to list functions in all locations, use "-" in place of a location. + * @param {string} params.parent The project and location from which the function should be listed, specified in the format `projects/x/locations/x` If you want to list functions in all locations, use "-" in place of a location. When listing functions in all locations, if one or more location(s) are unreachable, the response will contain functions from all reachable locations along with the names of any unreachable locations. * @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 @@ -1528,7 +1532,7 @@ export namespace cloudfunctions_v1 { * @param {object} params Parameters for request * @param {string} params.name A user-defined name of the function. Function names must be unique globally and match pattern `projects/x/locations/x/functions/x` * @param {string=} params.updateMask Required list of fields to be updated in this request. - * @param {().CloudFunction} params.resource Request body data + * @param {().CloudFunction} params.requestBody 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 @@ -1601,7 +1605,7 @@ export namespace cloudfunctions_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -1675,7 +1679,7 @@ export namespace cloudfunctions_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -1875,7 +1879,7 @@ export namespace cloudfunctions_v1 { */ pageToken?: string; /** - * The project and location from which the function should be listed, specified in the format `projects/x/locations/x` If you want to list functions in all locations, use "-" in place of a location. + * The project and location from which the function should be listed, specified in the format `projects/x/locations/x` If you want to list functions in all locations, use "-" in place of a location. When listing functions in all locations, if one or more location(s) are unreachable, the response will contain functions from all reachable locations along with the names of any unreachable locations. */ parent?: string; } diff --git a/src/apis/cloudfunctions/v1beta2.ts b/src/apis/cloudfunctions/v1beta2.ts index ab541eeec4e..e5f1bf2939c 100644 --- a/src/apis/cloudfunctions/v1beta2.ts +++ b/src/apis/cloudfunctions/v1beta2.ts @@ -825,7 +825,7 @@ export namespace cloudfunctions_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.name Required. The name of the function to be called. - * @param {().CallFunctionRequest} params.resource Request body data + * @param {().CallFunctionRequest} params.requestBody 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 @@ -903,7 +903,7 @@ export namespace cloudfunctions_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.location Required. The project and location in which the function should be created, specified in the format `projects/x/locations/x` - * @param {().CloudFunction} params.resource Request body data + * @param {().CloudFunction} params.requestBody 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 @@ -1051,7 +1051,7 @@ export namespace cloudfunctions_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.name The name of function for which source code Google Cloud Storage signed URL should be generated. - * @param {().GenerateDownloadUrlRequest} params.resource Request body data + * @param {().GenerateDownloadUrlRequest} params.requestBody 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 @@ -1134,7 +1134,7 @@ export namespace cloudfunctions_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.parent The project and location in which the Google Cloud Storage signed URL should be generated, specified in the format `projects/x/locations/x`. - * @param {().GenerateUploadUrlRequest} params.resource Request body data + * @param {().GenerateUploadUrlRequest} params.requestBody 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 @@ -1367,7 +1367,7 @@ export namespace cloudfunctions_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.name Required. The name of the function to be updated. - * @param {().CloudFunction} params.resource Request body data + * @param {().CloudFunction} params.requestBody 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 diff --git a/src/apis/cloudidentity/v1.ts b/src/apis/cloudidentity/v1.ts index bc6c6891c8a..08da619f5f9 100644 --- a/src/apis/cloudidentity/v1.ts +++ b/src/apis/cloudidentity/v1.ts @@ -302,7 +302,7 @@ export namespace cloudidentity_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Group} params.resource Request body data + * @param {().Group} params.requestBody 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 @@ -665,7 +665,7 @@ export namespace cloudidentity_v1 { * @param {object} params Parameters for request * @param {string} params.name Output only. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Group in the format: `groups/{group_id}`, where group_id is the unique ID assigned to the Group. Must be left blank while creating a Group. * @param {string=} params.updateMask Editable fields: `display_name`, `description` - * @param {().Group} params.resource Request body data + * @param {().Group} params.requestBody 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 @@ -935,7 +935,7 @@ export namespace cloudidentity_v1 { * * @param {object} params Parameters for request * @param {string} params.parent [Resource name](https://cloud.google.com/apis/design/resource_names) of the Group to create Membership within. Format: `groups/{group_id}`, where `group_id` is the unique ID assigned to the Group. - * @param {().Membership} params.resource Request body data + * @param {().Membership} params.requestBody 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 diff --git a/src/apis/cloudidentity/v1beta1.ts b/src/apis/cloudidentity/v1beta1.ts index 9a996d89b40..605dd3afa4c 100644 --- a/src/apis/cloudidentity/v1beta1.ts +++ b/src/apis/cloudidentity/v1beta1.ts @@ -293,7 +293,7 @@ export namespace cloudidentity_v1beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Group} params.resource Request body data + * @param {().Group} params.requestBody 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 @@ -585,7 +585,7 @@ export namespace cloudidentity_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name Output only. [Resource name](https://cloud.google.com/apis/design/resource_names) of the Group in the format: `groups/{group_id}`, where group_id is the unique id assigned to the Group. Must be left blank while creating a Group * @param {string=} params.updateMask Editable fields: `display_name`, `description` - * @param {().Group} params.resource Request body data + * @param {().Group} params.requestBody 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 @@ -835,7 +835,7 @@ export namespace cloudidentity_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent [Resource name](https://cloud.google.com/apis/design/resource_names) of the Group to create Membership within. Format: `groups/{group_id}`, where `group_id` is the unique id assigned to the Group. - * @param {().Membership} params.resource Request body data + * @param {().Membership} params.requestBody 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 diff --git a/src/apis/cloudiot/v1.ts b/src/apis/cloudiot/v1.ts index 292e0875a6a..1810c80a8f5 100644 --- a/src/apis/cloudiot/v1.ts +++ b/src/apis/cloudiot/v1.ts @@ -467,11 +467,11 @@ export namespace cloudiot_v1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -673,7 +673,7 @@ export namespace cloudiot_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The name of the registry. For example, `projects/example-project/locations/us-central1/registries/my-registry`. - * @param {().BindDeviceToGatewayRequest} params.resource Request body data + * @param {().BindDeviceToGatewayRequest} params.requestBody 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 @@ -755,7 +755,7 @@ export namespace cloudiot_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The project and cloud region where this device registry must be created. For example, `projects/example-project/locations/us-central1`. - * @param {().DeviceRegistry} params.resource Request body data + * @param {().DeviceRegistry} params.requestBody 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 @@ -970,7 +970,7 @@ export namespace cloudiot_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -1129,7 +1129,7 @@ export namespace cloudiot_v1 { * @param {object} params Parameters for request * @param {string} params.name The resource path name. For example, `projects/example-project/locations/us-central1/registries/my-registry`. * @param {string=} params.updateMask Required. Only updates the `device_registry` fields indicated by this mask. The field mask must not be empty, and it must not contain fields that are immutable or only set by the server. Mutable top-level fields: `event_notification_config`, `http_config`, `mqtt_config`, and `state_notification_config`. - * @param {().DeviceRegistry} params.resource Request body data + * @param {().DeviceRegistry} params.requestBody 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 @@ -1201,7 +1201,7 @@ export namespace cloudiot_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -1274,7 +1274,7 @@ export namespace cloudiot_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -1356,7 +1356,7 @@ export namespace cloudiot_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The name of the registry. For example, `projects/example-project/locations/us-central1/registries/my-registry`. - * @param {().UnbindDeviceFromGatewayRequest} params.resource Request body data + * @param {().UnbindDeviceFromGatewayRequest} params.requestBody 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 @@ -1623,7 +1623,7 @@ export namespace cloudiot_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The name of the device registry where this device should be created. For example, `projects/example-project/locations/us-central1/registries/my-registry`. - * @param {().Device} params.resource Request body data + * @param {().Device} params.requestBody 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 @@ -1917,7 +1917,7 @@ export namespace cloudiot_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The name of the device. For example, `projects/p0/locations/us-central1/registries/registry0/devices/device0` or `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. - * @param {().ModifyCloudToDeviceConfigRequest} params.resource Request body data + * @param {().ModifyCloudToDeviceConfigRequest} params.requestBody 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 @@ -1995,7 +1995,7 @@ export namespace cloudiot_v1 { * @param {object} params Parameters for request * @param {string} params.name The resource path name. For example, `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or `projects/p1/locations/us-central1/registries/registry0/devices/{num_id}`. When `name` is populated as a response from the service, it always ends in the device numeric ID. * @param {string=} params.updateMask Required. Only updates the `device` fields indicated by this mask. The field mask must not be empty, and it must not contain fields that are immutable or only set by the server. Mutable top-level fields: `credentials`, `blocked`, and `metadata` - * @param {().Device} params.resource Request body data + * @param {().Device} params.requestBody 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 @@ -2065,7 +2065,7 @@ export namespace cloudiot_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The name of the device. For example, `projects/p0/locations/us-central1/registries/registry0/devices/device0` or `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. - * @param {().SendCommandToDeviceRequest} params.resource Request body data + * @param {().SendCommandToDeviceRequest} params.requestBody 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 @@ -2509,7 +2509,7 @@ export namespace cloudiot_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -2582,7 +2582,7 @@ export namespace cloudiot_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -2655,7 +2655,7 @@ export namespace cloudiot_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 diff --git a/src/apis/cloudkms/v1.ts b/src/apis/cloudkms/v1.ts index e4aa526d442..ba99d438ac0 100644 --- a/src/apis/cloudkms/v1.ts +++ b/src/apis/cloudkms/v1.ts @@ -215,7 +215,7 @@ export namespace cloudkms_v1 { */ nextRotationTime?: string | null; /** - * Output only. A copy of the "primary" CryptoKeyVersion that will be used by Encrypt when this CryptoKey is given in EncryptRequest.name. The CryptoKey's primary version can be updated via UpdateCryptoKeyPrimaryVersion. All keys with purpose ENCRYPT_DECRYPT have a primary. For other keys, this field will be omitted. + * Output only. A copy of the "primary" CryptoKeyVersion that will be used by Encrypt when this CryptoKey is given in EncryptRequest.name. The CryptoKey's primary version can be updated via UpdateCryptoKeyPrimaryVersion. Keys with purpose ENCRYPT_DECRYPT may have a primary. For other keys, this field will be omitted. */ primary?: Schema$CryptoKeyVersion; /** @@ -603,11 +603,11 @@ export namespace cloudkms_v1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -904,7 +904,7 @@ export namespace cloudkms_v1 { * @param {object} params Parameters for request * @param {string=} params.keyRingId Required. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}` * @param {string} params.parent Required. The resource name of the location associated with the KeyRings, in the format `projects/x/locations/x`. - * @param {().KeyRing} params.resource Request body data + * @param {().KeyRing} params.requestBody 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 @@ -1199,7 +1199,7 @@ export namespace cloudkms_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -1272,7 +1272,7 @@ export namespace cloudkms_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -1479,7 +1479,7 @@ export namespace cloudkms_v1 { * @param {string=} params.cryptoKeyId Required. It must be unique within a KeyRing and match the regular expression `[a-zA-Z0-9_-]{1,63}` * @param {string} params.parent Required. The name of the KeyRing associated with the CryptoKeys. * @param {boolean=} params.skipInitialVersionCreation If set to true, the request will create a CryptoKey without any CryptoKeyVersions. You must manually call CreateCryptoKeyVersion or ImportCryptoKeyVersion before you can use this CryptoKey. - * @param {().CryptoKey} params.resource Request body data + * @param {().CryptoKey} params.requestBody 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 @@ -1554,7 +1554,7 @@ export namespace cloudkms_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the CryptoKey to use for decryption. The server will choose the appropriate version. - * @param {().DecryptRequest} params.resource Request body data + * @param {().DecryptRequest} params.requestBody 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 @@ -1629,7 +1629,7 @@ export namespace cloudkms_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the CryptoKey or CryptoKeyVersion to use for encryption. If a CryptoKey is specified, the server will use its primary version. - * @param {().EncryptRequest} params.resource Request body data + * @param {().EncryptRequest} params.requestBody 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 @@ -1930,7 +1930,7 @@ export namespace cloudkms_v1 { * @param {object} params Parameters for request * @param {string} params.name Output only. The resource name for this CryptoKey in the format `projects/x/locations/x/keyRings/x/cryptoKeys/x`. * @param {string=} params.updateMask Required. List of fields to be updated in this request. - * @param {().CryptoKey} params.resource Request body data + * @param {().CryptoKey} params.requestBody 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 @@ -2002,7 +2002,7 @@ export namespace cloudkms_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -2075,7 +2075,7 @@ export namespace cloudkms_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -2157,7 +2157,7 @@ export namespace cloudkms_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the CryptoKey to update. - * @param {().UpdateCryptoKeyPrimaryVersionRequest} params.resource Request body data + * @param {().UpdateCryptoKeyPrimaryVersionRequest} params.requestBody 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 @@ -2433,7 +2433,7 @@ export namespace cloudkms_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the CryptoKeyVersion to use for decryption. - * @param {().AsymmetricDecryptRequest} params.resource Request body data + * @param {().AsymmetricDecryptRequest} params.requestBody 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 @@ -2515,7 +2515,7 @@ export namespace cloudkms_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the CryptoKeyVersion to use for signing. - * @param {().AsymmetricSignRequest} params.resource Request body data + * @param {().AsymmetricSignRequest} params.requestBody 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 @@ -2594,7 +2594,7 @@ export namespace cloudkms_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The name of the CryptoKey associated with the CryptoKeyVersions. - * @param {().CryptoKeyVersion} params.resource Request body data + * @param {().CryptoKeyVersion} params.requestBody 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 @@ -2669,7 +2669,7 @@ export namespace cloudkms_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the CryptoKeyVersion to destroy. - * @param {().DestroyCryptoKeyVersionRequest} params.resource Request body data + * @param {().DestroyCryptoKeyVersionRequest} params.requestBody 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 @@ -2889,7 +2889,7 @@ export namespace cloudkms_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The name of the CryptoKey to be imported into. - * @param {().ImportCryptoKeyVersionRequest} params.resource Request body data + * @param {().ImportCryptoKeyVersionRequest} params.requestBody 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 @@ -3053,7 +3053,7 @@ export namespace cloudkms_v1 { * @param {object} params Parameters for request * @param {string} params.name Output only. The resource name for this CryptoKeyVersion in the format `projects/x/locations/x/keyRings/x/cryptoKeys/x/cryptoKeyVersions/x`. * @param {string=} params.updateMask Required. List of fields to be updated in this request. - * @param {().CryptoKeyVersion} params.resource Request body data + * @param {().CryptoKeyVersion} params.requestBody 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 @@ -3125,7 +3125,7 @@ export namespace cloudkms_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the CryptoKeyVersion to restore. - * @param {().RestoreCryptoKeyVersionRequest} params.resource Request body data + * @param {().RestoreCryptoKeyVersionRequest} params.requestBody 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 @@ -3388,7 +3388,7 @@ export namespace cloudkms_v1 { * @param {object} params Parameters for request * @param {string=} params.importJobId Required. It must be unique within a KeyRing and match the regular expression `[a-zA-Z0-9_-]{1,63}` * @param {string} params.parent Required. The name of the KeyRing associated with the ImportJobs. - * @param {().ImportJob} params.resource Request body data + * @param {().ImportJob} params.requestBody 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 @@ -3687,7 +3687,7 @@ export namespace cloudkms_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -3760,7 +3760,7 @@ export namespace cloudkms_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 diff --git a/src/apis/cloudprivatecatalogproducer/v1beta1.ts b/src/apis/cloudprivatecatalogproducer/v1beta1.ts index 7a3ac8502b7..f208ecafe96 100644 --- a/src/apis/cloudprivatecatalogproducer/v1beta1.ts +++ b/src/apis/cloudprivatecatalogproducer/v1beta1.ts @@ -336,11 +336,11 @@ export namespace cloudprivatecatalogproducer_v1beta1 { */ bindings?: Schema$GoogleIamV1Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -477,7 +477,7 @@ export namespace cloudprivatecatalogproducer_v1beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().GoogleCloudPrivatecatalogproducerV1beta1Catalog} params.resource Request body data + * @param {().GoogleCloudPrivatecatalogproducerV1beta1Catalog} params.requestBody 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 @@ -930,7 +930,7 @@ export namespace cloudprivatecatalogproducer_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name Output only. The resource name of the catalog, in the format `catalogs/{catalog_id}'. A unique identifier for the catalog, which is generated by catalog service. * @param {string=} params.updateMask Field mask that controls which fields of the catalog should be updated. - * @param {().GoogleCloudPrivatecatalogproducerV1beta1Catalog} params.resource Request body data + * @param {().GoogleCloudPrivatecatalogproducerV1beta1Catalog} params.requestBody 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 @@ -1027,7 +1027,7 @@ export namespace cloudprivatecatalogproducer_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().GoogleIamV1SetIamPolicyRequest} params.resource Request body data + * @param {().GoogleIamV1SetIamPolicyRequest} params.requestBody 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 @@ -1106,7 +1106,7 @@ export namespace cloudprivatecatalogproducer_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GoogleIamV1TestIamPermissionsRequest} params.resource Request body data + * @param {().GoogleIamV1TestIamPermissionsRequest} params.requestBody 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 @@ -1200,7 +1200,7 @@ export namespace cloudprivatecatalogproducer_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The resource name of the catalog. - * @param {().GoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest} params.resource Request body data + * @param {().GoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest} params.requestBody 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 @@ -1452,7 +1452,7 @@ export namespace cloudprivatecatalogproducer_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent The `Catalog` resource's name. - * @param {().GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest} params.resource Request body data + * @param {().GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest} params.requestBody 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 @@ -1904,7 +1904,7 @@ export namespace cloudprivatecatalogproducer_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The resource name of the current product that is copied from. - * @param {().GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest} params.resource Request body data + * @param {().GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest} params.requestBody 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 @@ -1988,7 +1988,7 @@ export namespace cloudprivatecatalogproducer_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent The catalog name of the new product's parent. - * @param {().GoogleCloudPrivatecatalogproducerV1beta1Product} params.resource Request body data + * @param {().GoogleCloudPrivatecatalogproducerV1beta1Product} params.requestBody 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 @@ -2365,7 +2365,7 @@ export namespace cloudprivatecatalogproducer_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the product in the format `catalogs/{catalog_id}/products/a-z*[a-z0-9]'. A unique identifier for the product under a catalog, which cannot be changed after the product is created. The final segment of the name must between 1 and 256 characters in length. * @param {string=} params.updateMask Field mask that controls which fields of the product should be updated. - * @param {().GoogleCloudPrivatecatalogproducerV1beta1Product} params.resource Request body data + * @param {().GoogleCloudPrivatecatalogproducerV1beta1Product} params.requestBody 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 @@ -2574,7 +2574,7 @@ export namespace cloudprivatecatalogproducer_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.product The resource name of the product. - * @param {().GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest} params.resource Request body data + * @param {().GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest} params.requestBody 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 @@ -2676,7 +2676,7 @@ export namespace cloudprivatecatalogproducer_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent The product name of the new version's parent. - * @param {().GoogleCloudPrivatecatalogproducerV1beta1Version} params.resource Request body data + * @param {().GoogleCloudPrivatecatalogproducerV1beta1Version} params.requestBody 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 @@ -3035,7 +3035,7 @@ export namespace cloudprivatecatalogproducer_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the version, in the format `catalogs/{catalog_id}/products/{product_id}/versions/a-z*[a-z0-9]'. A unique identifier for the version under a product, which can't be changed after the version is created. The final segment of the name must between 1 and 63 characters in length. * @param {string=} params.updateMask Field mask that controls which fields of the version should be updated. - * @param {().GoogleCloudPrivatecatalogproducerV1beta1Version} params.resource Request body data + * @param {().GoogleCloudPrivatecatalogproducerV1beta1Version} params.requestBody 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 @@ -3223,7 +3223,7 @@ export namespace cloudprivatecatalogproducer_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the operation resource to be cancelled. - * @param {().GoogleLongrunningCancelOperationRequest} params.resource Request body data + * @param {().GoogleLongrunningCancelOperationRequest} params.requestBody 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 diff --git a/src/apis/cloudprofiler/v2.ts b/src/apis/cloudprofiler/v2.ts index a8ab572923d..7927e7fdb1a 100644 --- a/src/apis/cloudprofiler/v2.ts +++ b/src/apis/cloudprofiler/v2.ts @@ -198,7 +198,7 @@ export namespace cloudprofiler_v2 { * * @param {object} params Parameters for request * @param {string} params.parent Parent project to create the profile in. - * @param {().CreateProfileRequest} params.resource Request body data + * @param {().CreateProfileRequest} params.requestBody 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 @@ -272,7 +272,7 @@ export namespace cloudprofiler_v2 { * * @param {object} params Parameters for request * @param {string} params.parent Parent project to create the profile in. - * @param {().Profile} params.resource Request body data + * @param {().Profile} params.requestBody 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 @@ -347,7 +347,7 @@ export namespace cloudprofiler_v2 { * @param {object} params Parameters for request * @param {string} params.name Output only. Opaque, server-assigned, unique ID for this profile. * @param {string=} params.updateMask Field mask used to specify the fields to be overwritten. Currently only profile_bytes and labels fields are supported by UpdateProfile, so only those fields can be specified in the mask. When no mask is provided, all fields are overwritten. - * @param {().Profile} params.resource Request body data + * @param {().Profile} params.requestBody 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 diff --git a/src/apis/cloudresourcemanager/v1.ts b/src/apis/cloudresourcemanager/v1.ts index 6d5867df716..cb8d51976fc 100644 --- a/src/apis/cloudresourcemanager/v1.ts +++ b/src/apis/cloudresourcemanager/v1.ts @@ -588,11 +588,11 @@ export namespace cloudresourcemanager_v1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -816,7 +816,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ Name of the resource for the `Policy` to clear. - * @param {().ClearOrgPolicyRequest} params.resource Request body data + * @param {().ClearOrgPolicyRequest} params.requestBody 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 @@ -940,7 +940,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ The name of the resource to start computing the effective `Policy`. - * @param {().GetEffectiveOrgPolicyRequest} params.resource Request body data + * @param {().GetEffectiveOrgPolicyRequest} params.requestBody 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 @@ -1068,7 +1068,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ Name of the resource the `Policy` is set on. - * @param {().GetOrgPolicyRequest} params.resource Request body data + * @param {().GetOrgPolicyRequest} params.requestBody 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 @@ -1207,7 +1207,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ Name of the resource to list `Constraints` for. - * @param {().ListAvailableOrgPolicyConstraintsRequest} params.resource Request body data + * @param {().ListAvailableOrgPolicyConstraintsRequest} params.requestBody 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 @@ -1368,7 +1368,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ Name of the resource to list Policies for. - * @param {().ListOrgPoliciesRequest} params.resource Request body data + * @param {().ListOrgPoliciesRequest} params.requestBody 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 @@ -1498,7 +1498,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ Resource name of the resource to attach the `Policy`. - * @param {().SetOrgPolicyRequest} params.resource Request body data + * @param {().SetOrgPolicyRequest} params.requestBody 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 @@ -1730,7 +1730,7 @@ export namespace cloudresourcemanager_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Lien} params.resource Request body data + * @param {().Lien} params.requestBody 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 @@ -2399,7 +2399,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ Name of the resource for the `Policy` to clear. - * @param {().ClearOrgPolicyRequest} params.resource Request body data + * @param {().ClearOrgPolicyRequest} params.requestBody 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 @@ -2643,7 +2643,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ The name of the resource to start computing the effective `Policy`. - * @param {().GetEffectiveOrgPolicyRequest} params.resource Request body data + * @param {().GetEffectiveOrgPolicyRequest} params.requestBody 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 @@ -2772,7 +2772,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -2896,7 +2896,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ Name of the resource the `Policy` is set on. - * @param {().GetOrgPolicyRequest} params.resource Request body data + * @param {().GetOrgPolicyRequest} params.requestBody 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 @@ -3035,7 +3035,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ Name of the resource to list `Constraints` for. - * @param {().ListAvailableOrgPolicyConstraintsRequest} params.resource Request body data + * @param {().ListAvailableOrgPolicyConstraintsRequest} params.requestBody 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 @@ -3196,7 +3196,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ Name of the resource to list Policies for. - * @param {().ListOrgPoliciesRequest} params.resource Request body data + * @param {().ListOrgPoliciesRequest} params.requestBody 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 @@ -3335,7 +3335,7 @@ export namespace cloudresourcemanager_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().SearchOrganizationsRequest} params.resource Request body data + * @param {().SearchOrganizationsRequest} params.requestBody 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 @@ -3469,7 +3469,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -3593,7 +3593,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ Resource name of the resource to attach the `Policy`. - * @param {().SetOrgPolicyRequest} params.resource Request body data + * @param {().SetOrgPolicyRequest} params.requestBody 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 @@ -3720,7 +3720,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -4035,7 +4035,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ Name of the resource for the `Policy` to clear. - * @param {().ClearOrgPolicyRequest} params.resource Request body data + * @param {().ClearOrgPolicyRequest} params.requestBody 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 @@ -4155,7 +4155,7 @@ export namespace cloudresourcemanager_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Project} params.resource Request body data + * @param {().Project} params.requestBody 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 @@ -4513,7 +4513,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.projectId The Project ID (for example, `my-project-123`). Required. - * @param {().GetAncestryRequest} params.resource Request body data + * @param {().GetAncestryRequest} params.requestBody 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 @@ -4641,7 +4641,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ The name of the resource to start computing the effective `Policy`. - * @param {().GetEffectiveOrgPolicyRequest} params.resource Request body data + * @param {().GetEffectiveOrgPolicyRequest} params.requestBody 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 @@ -4770,7 +4770,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -4894,7 +4894,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ Name of the resource the `Policy` is set on. - * @param {().GetOrgPolicyRequest} params.resource Request body data + * @param {().GetOrgPolicyRequest} params.requestBody 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 @@ -5164,7 +5164,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ Name of the resource to list `Constraints` for. - * @param {().ListAvailableOrgPolicyConstraintsRequest} params.resource Request body data + * @param {().ListAvailableOrgPolicyConstraintsRequest} params.requestBody 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 @@ -5325,7 +5325,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ Name of the resource to list Policies for. - * @param {().ListOrgPoliciesRequest} params.resource Request body data + * @param {().ListOrgPoliciesRequest} params.requestBody 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 @@ -5456,7 +5456,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -5580,7 +5580,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ Resource name of the resource to attach the `Policy`. - * @param {().SetOrgPolicyRequest} params.resource Request body data + * @param {().SetOrgPolicyRequest} params.requestBody 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 @@ -5707,7 +5707,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -5837,7 +5837,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.projectId The project ID (for example, `foo-bar-123`). Required. - * @param {().UndeleteProjectRequest} params.resource Request body data + * @param {().UndeleteProjectRequest} params.requestBody 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 @@ -5963,7 +5963,7 @@ export namespace cloudresourcemanager_v1 { * * @param {object} params Parameters for request * @param {string} params.projectId The project ID (for example, `my-project-123`). Required. - * @param {().Project} params.resource Request body data + * @param {().Project} params.requestBody 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 diff --git a/src/apis/cloudresourcemanager/v1beta1.ts b/src/apis/cloudresourcemanager/v1beta1.ts index 88926827f35..83acee74e67 100644 --- a/src/apis/cloudresourcemanager/v1beta1.ts +++ b/src/apis/cloudresourcemanager/v1beta1.ts @@ -332,11 +332,11 @@ export namespace cloudresourcemanager_v1beta1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -625,7 +625,7 @@ export namespace cloudresourcemanager_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -890,7 +890,7 @@ export namespace cloudresourcemanager_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -1015,7 +1015,7 @@ export namespace cloudresourcemanager_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -1151,7 +1151,7 @@ export namespace cloudresourcemanager_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Output only. The resource name of the organization. This is the organization's relative path in the API. Its format is "organizations/[organization_id]". For example, "organizations/1234". - * @param {().Organization} params.resource Request body data + * @param {().Organization} params.requestBody 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 @@ -1383,7 +1383,7 @@ export namespace cloudresourcemanager_v1beta1 { * * @param {object} params Parameters for request * @param {boolean=} params.useLegacyStack A safety hatch to opt out of the new reliable project creation process. - * @param {().Project} params.resource Request body data + * @param {().Project} params.requestBody 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 @@ -1739,7 +1739,7 @@ export namespace cloudresourcemanager_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.projectId The Project ID (for example, `my-project-123`). Required. - * @param {().GetAncestryRequest} params.resource Request body data + * @param {().GetAncestryRequest} params.requestBody 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 @@ -1867,7 +1867,7 @@ export namespace cloudresourcemanager_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -2122,7 +2122,7 @@ export namespace cloudresourcemanager_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -2246,7 +2246,7 @@ export namespace cloudresourcemanager_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -2376,7 +2376,7 @@ export namespace cloudresourcemanager_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.projectId The project ID (for example, `foo-bar-123`). Required. - * @param {().UndeleteProjectRequest} params.resource Request body data + * @param {().UndeleteProjectRequest} params.requestBody 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 @@ -2502,7 +2502,7 @@ export namespace cloudresourcemanager_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.projectId The project ID (for example, `my-project-123`). Required. - * @param {().Project} params.resource Request body data + * @param {().Project} params.requestBody 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 diff --git a/src/apis/cloudresourcemanager/v2.ts b/src/apis/cloudresourcemanager/v2.ts index 35b1d7b616b..46bc4a26d9d 100644 --- a/src/apis/cloudresourcemanager/v2.ts +++ b/src/apis/cloudresourcemanager/v2.ts @@ -314,11 +314,11 @@ export namespace cloudresourcemanager_v2 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -436,7 +436,7 @@ export namespace cloudresourcemanager_v2 { * * @param {object} params Parameters for request * @param {string=} params.parent Required. The resource name of the new Folder's parent. Must be of the form `folders/{folder_id}` or `organizations/{org_id}`. - * @param {().Folder} params.resource Request body data + * @param {().Folder} params.requestBody 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 @@ -646,7 +646,7 @@ export namespace cloudresourcemanager_v2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -794,7 +794,7 @@ export namespace cloudresourcemanager_v2 { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the Folder to move. Must be of the form folders/{folder_id} - * @param {().MoveFolderRequest} params.resource Request body data + * @param {().MoveFolderRequest} params.requestBody 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 @@ -867,7 +867,7 @@ export namespace cloudresourcemanager_v2 { * @param {object} params Parameters for request * @param {string} params.name Output only. The resource name of the Folder. Its format is `folders/{folder_id}`, for example: "folders/1234". * @param {string=} params.updateMask Required. Fields to be updated. Only the `display_name` can be updated. - * @param {().Folder} params.resource Request body data + * @param {().Folder} params.requestBody 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 @@ -936,7 +936,7 @@ export namespace cloudresourcemanager_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().SearchFoldersRequest} params.resource Request body data + * @param {().SearchFoldersRequest} params.requestBody 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 @@ -1010,7 +1010,7 @@ export namespace cloudresourcemanager_v2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -1084,7 +1084,7 @@ export namespace cloudresourcemanager_v2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -1167,7 +1167,7 @@ export namespace cloudresourcemanager_v2 { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the Folder to undelete. Must be of the form `folders/{folder_id}`. - * @param {().UndeleteFolderRequest} params.resource Request body data + * @param {().UndeleteFolderRequest} params.requestBody 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 diff --git a/src/apis/cloudresourcemanager/v2beta1.ts b/src/apis/cloudresourcemanager/v2beta1.ts index 63d3efdd74f..3e073fb1fd6 100644 --- a/src/apis/cloudresourcemanager/v2beta1.ts +++ b/src/apis/cloudresourcemanager/v2beta1.ts @@ -314,11 +314,11 @@ export namespace cloudresourcemanager_v2beta1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -436,7 +436,7 @@ export namespace cloudresourcemanager_v2beta1 { * * @param {object} params Parameters for request * @param {string=} params.parent Required. The resource name of the new Folder's parent. Must be of the form `folders/{folder_id}` or `organizations/{org_id}`. - * @param {().Folder} params.resource Request body data + * @param {().Folder} params.requestBody 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 @@ -646,7 +646,7 @@ export namespace cloudresourcemanager_v2beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -794,7 +794,7 @@ export namespace cloudresourcemanager_v2beta1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the Folder to move. Must be of the form folders/{folder_id} - * @param {().MoveFolderRequest} params.resource Request body data + * @param {().MoveFolderRequest} params.requestBody 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 @@ -867,7 +867,7 @@ export namespace cloudresourcemanager_v2beta1 { * @param {object} params Parameters for request * @param {string} params.name Output only. The resource name of the Folder. Its format is `folders/{folder_id}`, for example: "folders/1234". * @param {string=} params.updateMask Required. Fields to be updated. Only the `display_name` can be updated. - * @param {().Folder} params.resource Request body data + * @param {().Folder} params.requestBody 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 @@ -936,7 +936,7 @@ export namespace cloudresourcemanager_v2beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().SearchFoldersRequest} params.resource Request body data + * @param {().SearchFoldersRequest} params.requestBody 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 @@ -1010,7 +1010,7 @@ export namespace cloudresourcemanager_v2beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -1084,7 +1084,7 @@ export namespace cloudresourcemanager_v2beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -1167,7 +1167,7 @@ export namespace cloudresourcemanager_v2beta1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the Folder to undelete. Must be of the form `folders/{folder_id}`. - * @param {().UndeleteFolderRequest} params.resource Request body data + * @param {().UndeleteFolderRequest} params.requestBody 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 diff --git a/src/apis/cloudscheduler/v1.ts b/src/apis/cloudscheduler/v1.ts index bc985f8b125..d768f54b905 100644 --- a/src/apis/cloudscheduler/v1.ts +++ b/src/apis/cloudscheduler/v1.ts @@ -341,7 +341,7 @@ export namespace cloudscheduler_v1 { */ export interface Schema$PubsubMessage { /** - * Optional attributes for this message. + * Attributes for this message. If this field is empty, the message must contain non-empty data. */ attributes?: {[key: string]: string} | null; /** @@ -801,7 +801,7 @@ export namespace cloudscheduler_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`. - * @param {().Job} params.resource Request body data + * @param {().Job} params.requestBody 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 @@ -1307,7 +1307,7 @@ export namespace cloudscheduler_v1 { * @param {object} params Parameters for request * @param {string} params.name Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) * `LOCATION_ID` is the canonical ID for the job's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/. * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters. * @param {string=} params.updateMask A mask used to specify which fields of the job are being updated. - * @param {().Job} params.resource Request body data + * @param {().Job} params.requestBody 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 @@ -1430,7 +1430,7 @@ export namespace cloudscheduler_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. - * @param {().PauseJobRequest} params.resource Request body data + * @param {().PauseJobRequest} params.requestBody 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 @@ -1553,7 +1553,7 @@ export namespace cloudscheduler_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. - * @param {().ResumeJobRequest} params.resource Request body data + * @param {().ResumeJobRequest} params.requestBody 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 @@ -1676,7 +1676,7 @@ export namespace cloudscheduler_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. - * @param {().RunJobRequest} params.resource Request body data + * @param {().RunJobRequest} params.requestBody 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 diff --git a/src/apis/cloudscheduler/v1beta1.ts b/src/apis/cloudscheduler/v1beta1.ts index 0a0420e75cf..35a7ee79b6e 100644 --- a/src/apis/cloudscheduler/v1beta1.ts +++ b/src/apis/cloudscheduler/v1beta1.ts @@ -341,7 +341,7 @@ export namespace cloudscheduler_v1beta1 { */ export interface Schema$PubsubMessage { /** - * Optional attributes for this message. + * Attributes for this message. If this field is empty, the message must contain non-empty data. */ attributes?: {[key: string]: string} | null; /** @@ -801,7 +801,7 @@ export namespace cloudscheduler_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`. - * @param {().Job} params.resource Request body data + * @param {().Job} params.requestBody 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 @@ -1313,7 +1313,7 @@ export namespace cloudscheduler_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) * `LOCATION_ID` is the canonical ID for the job's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/. * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters. * @param {string=} params.updateMask A mask used to specify which fields of the job are being updated. - * @param {().Job} params.resource Request body data + * @param {().Job} params.requestBody 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 @@ -1436,7 +1436,7 @@ export namespace cloudscheduler_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. - * @param {().PauseJobRequest} params.resource Request body data + * @param {().PauseJobRequest} params.requestBody 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 @@ -1562,7 +1562,7 @@ export namespace cloudscheduler_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. - * @param {().ResumeJobRequest} params.resource Request body data + * @param {().ResumeJobRequest} params.requestBody 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 @@ -1688,7 +1688,7 @@ export namespace cloudscheduler_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. - * @param {().RunJobRequest} params.resource Request body data + * @param {().RunJobRequest} params.requestBody 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 diff --git a/src/apis/cloudsearch/v1.ts b/src/apis/cloudsearch/v1.ts index 0679d57ceee..9a267b7c3cc 100644 --- a/src/apis/cloudsearch/v1.ts +++ b/src/apis/cloudsearch/v1.ts @@ -600,36 +600,6 @@ export namespace cloudsearch_v1 { export interface Schema$GetSearchApplicationUserStatsResponse { stats?: Schema$SearchApplicationUserStats[]; } - /** - * Gmail Action restricts (i.e. read/replied/snoozed). - */ - export interface Schema$GmailActionRestrict { - type?: string | null; - } - /** - * Gmail Attachment restricts (i.e. has:attachment, has:drive, filename:pdf). - */ - export interface Schema$GmailAttachmentRestrict { - type?: string | null; - } - /** - * Gmail Folder restricts (i.e. in Drafts/Sent/Chats/User Generated Labels). - */ - export interface Schema$GmailFolderRestrict { - type?: string | null; - } - /** - * Gmail Intelligent restricts (i.e. smartlabels, important). - */ - export interface Schema$GmailIntelligentRestrict { - type?: string | null; - } - /** - * Gmail Time restricts (i.e. received today, this week). - */ - export interface Schema$GmailTimeRestrict { - type?: string | null; - } export interface Schema$GSuitePrincipal { /** * This principal represents all users of the G Suite domain of the customer. @@ -1212,7 +1182,7 @@ export namespace cloudsearch_v1 { */ debugOptions?: Schema$DebugOptions; /** - * Maximum number of items to return. <br />The maximum and the default value is 1000 + * Maximum number of items to return. <br />The maximum value is 100 and the default value is 20. */ limit?: number | null; /** @@ -1544,14 +1514,6 @@ export namespace cloudsearch_v1 { */ driveMimeTypeRestrict?: Schema$DriveMimeTypeRestrict; driveTimeSpanRestrict?: Schema$DriveTimeSpanRestrict; - gmailActionRestrict?: Schema$GmailActionRestrict; - gmailAttachmentRestrict?: Schema$GmailAttachmentRestrict; - /** - * Gmail Types. - */ - gmailFolderRestrict?: Schema$GmailFolderRestrict; - gmailIntelligentRestrict?: Schema$GmailIntelligentRestrict; - gmailTimeRestrict?: Schema$GmailTimeRestrict; /** * The search restrict (e.g. "after:2017-09-11 before:2017-09-12"). */ @@ -2009,7 +1971,7 @@ export namespace cloudsearch_v1 { */ export interface Schema$SuggestRequest { /** - * The sources to use for suggestions. If not specified, all data sources from the current search application are used. Suggestions are based on Gmail titles. Suggestions from third party sources are not available. + * The sources to use for suggestions. If not specified, the data sources are taken from the current search application. NOTE: Suggestions are supported only for third party data sources and people (i.e. PredefinedSource.PERSON). */ dataSourceRestrictions?: Schema$DataSourceRestriction[]; /** @@ -2226,14 +2188,14 @@ export namespace cloudsearch_v1 { /** * cloudsearch.debug.datasources.items.checkAccess - * @desc Checks whether an item is accessible by specified principal. + * @desc Checks whether an item is accessible by specified principal. **Note:** This API requires an admin account to execute. * @alias cloudsearch.debug.datasources.items.checkAccess * @memberOf! () * * @param {object} params Parameters for request * @param {boolean=} params.debugOptions.enableDebugging If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field. * @param {string} params.name Item name, format: datasources/{source_id}/items/{item_id} - * @param {().Principal} params.resource Request body data + * @param {().Principal} params.requestBody 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 @@ -2304,13 +2266,13 @@ export namespace cloudsearch_v1 { /** * cloudsearch.debug.datasources.items.searchByViewUrl - * @desc Fetches the item whose viewUrl exactly matches that of the URL provided in the request. + * @desc Fetches the item whose viewUrl exactly matches that of the URL provided in the request. **Note:** This API requires an admin account to execute. * @alias cloudsearch.debug.datasources.items.searchByViewUrl * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.name Source name, format: datasources/{source_id} - * @param {().SearchItemsByViewUrlRequest} params.resource Request body data + * @param {().SearchItemsByViewUrlRequest} params.requestBody 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 @@ -2434,7 +2396,7 @@ export namespace cloudsearch_v1 { /** * cloudsearch.debug.datasources.items.unmappedids.list - * @desc List all unmapped identities for a specific item. + * @desc List all unmapped identities for a specific item. **Note:** This API requires an admin account to execute. * @alias cloudsearch.debug.datasources.items.unmappedids.list * @memberOf! () * @@ -2565,7 +2527,7 @@ export namespace cloudsearch_v1 { /** * cloudsearch.debug.identitysources.items.listForunmappedidentity - * @desc Lists names of items associated with an unmapped identity. + * @desc Lists names of items associated with an unmapped identity. **Note:** This API requires an admin account to execute. * @alias cloudsearch.debug.identitysources.items.listForunmappedidentity * @memberOf! () * @@ -2700,7 +2662,7 @@ export namespace cloudsearch_v1 { /** * cloudsearch.debug.identitysources.unmappedids.list - * @desc Lists unmapped user identities for an identity source. + * @desc Lists unmapped user identities for an identity source. **Note:** This API requires an admin account to execute. * @alias cloudsearch.debug.identitysources.unmappedids.list * @memberOf! () * @@ -2834,7 +2796,7 @@ export namespace cloudsearch_v1 { /** * cloudsearch.indexing.datasources.deleteSchema - * @desc Deletes the schema of a data source. + * @desc Deletes the schema of a data source. **Note:** This API requires an admin or service account to execute. * @alias cloudsearch.indexing.datasources.deleteSchema * @memberOf! () * @@ -2909,7 +2871,7 @@ export namespace cloudsearch_v1 { /** * cloudsearch.indexing.datasources.getSchema - * @desc Gets the schema of a data source. + * @desc Gets the schema of a data source. **Note:** This API requires an admin or service account to execute. * @alias cloudsearch.indexing.datasources.getSchema * @memberOf! () * @@ -2982,13 +2944,13 @@ export namespace cloudsearch_v1 { /** * cloudsearch.indexing.datasources.updateSchema - * @desc Updates the schema of a data source. + * @desc Updates the schema of a data source. This method does not perform incremental updates to the schema. Instead, this method updates the schema by overwriting the entire schema. **Note:** This API requires an admin or service account to execute. * @alias cloudsearch.indexing.datasources.updateSchema * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.name Name of the data source to update Schema. Format: datasources/{source_id} - * @param {().UpdateSchemaRequest} params.resource Request body data + * @param {().UpdateSchemaRequest} params.requestBody 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 @@ -3198,7 +3160,7 @@ export namespace cloudsearch_v1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the Data Source to delete items in a queue. Format: datasources/{source_id} - * @param {().DeleteQueueItemsRequest} params.resource Request body data + * @param {().DeleteQueueItemsRequest} params.requestBody 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 @@ -3346,7 +3308,7 @@ export namespace cloudsearch_v1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the Item. Format: datasources/{source_id}/items/{item_id}
              This is a required field. The maximum length is 1536 characters. - * @param {().IndexItemRequest} params.resource Request body data + * @param {().IndexItemRequest} params.requestBody 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 @@ -3500,7 +3462,7 @@ export namespace cloudsearch_v1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the Data Source to poll items. Format: datasources/{source_id} - * @param {().PollItemsRequest} params.resource Request body data + * @param {().PollItemsRequest} params.requestBody 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 @@ -3575,7 +3537,7 @@ export namespace cloudsearch_v1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the item to push into the indexing queue.
              Format: datasources/{source_id}/items/{ID}
              This is a required field. The maximum length is 1536 characters. - * @param {().PushItemRequest} params.resource Request body data + * @param {().PushItemRequest} params.requestBody 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 @@ -3648,7 +3610,7 @@ export namespace cloudsearch_v1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the Data Source to unreserve all items. Format: datasources/{source_id} - * @param {().UnreserveItemsRequest} params.resource Request body data + * @param {().UnreserveItemsRequest} params.requestBody 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 @@ -3723,7 +3685,7 @@ export namespace cloudsearch_v1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the Item to start a resumable upload. Format: datasources/{source_id}/items/{item_id}. - * @param {().StartUploadItemRequest} params.resource Request body data + * @param {().StartUploadItemRequest} params.requestBody 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 @@ -3982,13 +3944,13 @@ export namespace cloudsearch_v1 { /** * cloudsearch.media.upload - * @desc Uploads media for indexing. The upload endpoint supports direct and resumable upload protocols and is intended for large items that can not be [inlined during index requests](https://developers.google.com/cloud-search/docs/reference/rest/v1/indexing.datasources.items#itemcontent). To index large content: 1. Call indexing.datasources.items.upload with the resource name to begin an upload session and retrieve the UploadItemRef. 1. Call media.upload to upload the content using the same resource name from step 1. 1. Call indexing.datasources.items.index to index the item. Populate the [ItemContent](/cloud-search/docs/reference/rest/v1/indexing.datasources.items#ItemContent) with the UploadItemRef from step 1. For additional information, see [Create a content connector using the REST API](https://developers.google.com/cloud-search/docs/guides/content-connector#rest). + * @desc Uploads media for indexing. The upload endpoint supports direct and resumable upload protocols and is intended for large items that can not be [inlined during index requests](https://developers.google.com/cloud-search/docs/reference/rest/v1/indexing.datasources.items#itemcontent). To index large content: 1. Call indexing.datasources.items.upload with the resource name to begin an upload session and retrieve the UploadItemRef. 1. Call media.upload to upload the content using the same resource name from step 1. 1. Call indexing.datasources.items.index to index the item. Populate the [ItemContent](/cloud-search/docs/reference/rest/v1/indexing.datasources.items#ItemContent) with the UploadItemRef from step 1. For additional information, see [Create a content connector using the REST API](https://developers.google.com/cloud-search/docs/guides/content-connector#rest). **Note:** This API requires a service account to execute. * @alias cloudsearch.media.upload * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.resourceName Name of the media that is being downloaded. See ReadRequest.resource_name. - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents @@ -4191,12 +4153,12 @@ export namespace cloudsearch_v1 { /** * cloudsearch.query.search - * @desc The Cloud Search Query API provides the search method, which returns the most relevant results from a user query. The results can come from G Suite Apps, such as Gmail or Google Drive, or they can come from data that you have indexed from a third party. + * @desc The Cloud Search Query API provides the search method, which returns the most relevant results from a user query. The results can come from G Suite Apps, such as Gmail or Google Drive, or they can come from data that you have indexed from a third party. **Note:** This API requires a standard end user account to execute. * @alias cloudsearch.query.search * @memberOf! () * * @param {object} params Parameters for request - * @param {().SearchRequest} params.resource Request body data + * @param {().SearchRequest} params.requestBody 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 @@ -4261,12 +4223,12 @@ export namespace cloudsearch_v1 { /** * cloudsearch.query.suggest - * @desc Provides suggestions for autocompleting the query. + * @desc Provides suggestions for autocompleting the query. **Note:** This API requires a standard end user account to execute. * @alias cloudsearch.query.suggest * @memberOf! () * * @param {object} params Parameters for request - * @param {().SuggestRequest} params.resource Request body data + * @param {().SuggestRequest} params.requestBody 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 @@ -4361,7 +4323,7 @@ export namespace cloudsearch_v1 { /** * cloudsearch.query.sources.list - * @desc Returns list of sources that user can use for Search and Suggest APIs. + * @desc Returns list of sources that user can use for Search and Suggest APIs. **Note:** This API requires a standard end user account to execute. * @alias cloudsearch.query.sources.list * @memberOf! () * @@ -4487,12 +4449,12 @@ export namespace cloudsearch_v1 { /** * cloudsearch.settings.datasources.create - * @desc Creates a datasource. + * @desc Creates a datasource. **Note:** This API requires an admin account to execute. * @alias cloudsearch.settings.datasources.create * @memberOf! () * * @param {object} params Parameters for request - * @param {().DataSource} params.resource Request body data + * @param {().DataSource} params.requestBody 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 @@ -4561,7 +4523,7 @@ export namespace cloudsearch_v1 { /** * cloudsearch.settings.datasources.delete - * @desc Deletes a datasource. + * @desc Deletes a datasource. **Note:** This API requires an admin account to execute. * @alias cloudsearch.settings.datasources.delete * @memberOf! () * @@ -4636,7 +4598,7 @@ export namespace cloudsearch_v1 { /** * cloudsearch.settings.datasources.get - * @desc Gets a datasource. + * @desc Gets a datasource. **Note:** This API requires an admin account to execute. * @alias cloudsearch.settings.datasources.get * @memberOf! () * @@ -4711,7 +4673,7 @@ export namespace cloudsearch_v1 { /** * cloudsearch.settings.datasources.list - * @desc Lists datasources. + * @desc Lists datasources. **Note:** This API requires an admin account to execute. * @alias cloudsearch.settings.datasources.list * @memberOf! () * @@ -4789,13 +4751,13 @@ export namespace cloudsearch_v1 { /** * cloudsearch.settings.datasources.update - * @desc Updates a datasource. + * @desc Updates a datasource. **Note:** This API requires an admin account to execute. * @alias cloudsearch.settings.datasources.update * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.name Name of the datasource resource. Format: datasources/{source_id}.
              The name is ignored when creating a datasource. - * @param {().UpdateDataSourceRequest} params.resource Request body data + * @param {().UpdateDataSourceRequest} params.requestBody 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 @@ -4953,12 +4915,12 @@ export namespace cloudsearch_v1 { /** * cloudsearch.settings.searchapplications.create - * @desc Creates a search application. + * @desc Creates a search application. **Note:** This API requires an admin account to execute. * @alias cloudsearch.settings.searchapplications.create * @memberOf! () * * @param {object} params Parameters for request - * @param {().SearchApplication} params.resource Request body data + * @param {().SearchApplication} params.requestBody 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 @@ -5027,7 +4989,7 @@ export namespace cloudsearch_v1 { /** * cloudsearch.settings.searchapplications.delete - * @desc Deletes a search application. + * @desc Deletes a search application. **Note:** This API requires an admin account to execute. * @alias cloudsearch.settings.searchapplications.delete * @memberOf! () * @@ -5102,7 +5064,7 @@ export namespace cloudsearch_v1 { /** * cloudsearch.settings.searchapplications.get - * @desc Gets the specified search application. + * @desc Gets the specified search application. **Note:** This API requires an admin account to execute. * @alias cloudsearch.settings.searchapplications.get * @memberOf! () * @@ -5177,7 +5139,7 @@ export namespace cloudsearch_v1 { /** * cloudsearch.settings.searchapplications.list - * @desc Lists all search applications. + * @desc Lists all search applications. **Note:** This API requires an admin account to execute. * @alias cloudsearch.settings.searchapplications.list * @memberOf! () * @@ -5262,13 +5224,13 @@ export namespace cloudsearch_v1 { /** * cloudsearch.settings.searchapplications.reset - * @desc Resets a search application to default settings. This will return an empty response. + * @desc Resets a search application to default settings. This will return an empty response. **Note:** This API requires an admin account to execute. * @alias cloudsearch.settings.searchapplications.reset * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.name The name of the search application to be reset.
              Format: applications/{application_id}. - * @param {().ResetSearchApplicationRequest} params.resource Request body data + * @param {().ResetSearchApplicationRequest} params.requestBody 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 @@ -5337,13 +5299,13 @@ export namespace cloudsearch_v1 { /** * cloudsearch.settings.searchapplications.update - * @desc Updates a search application. + * @desc Updates a search application. **Note:** This API requires an admin account to execute. * @alias cloudsearch.settings.searchapplications.update * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.name Name of the Search Application.
              Format: searchapplications/{application_id}. - * @param {().SearchApplication} params.resource Request body data + * @param {().SearchApplication} params.requestBody 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 @@ -5526,7 +5488,7 @@ export namespace cloudsearch_v1 { /** * cloudsearch.stats.getIndex - * @desc Gets indexed item statistics aggreggated across all data sources. This API only returns statistics for previous dates; it doesn't return statistics for the current day. + * @desc Gets indexed item statistics aggreggated across all data sources. This API only returns statistics for previous dates; it doesn't return statistics for the current day. **Note:** This API requires a standard end user account to execute. * @alias cloudsearch.stats.getIndex * @memberOf! () * @@ -5610,7 +5572,7 @@ export namespace cloudsearch_v1 { /** * cloudsearch.stats.getQuery - * @desc Get the query statistics for customer + * @desc Get the query statistics for customer. **Note:** This API requires a standard end user account to execute. * @alias cloudsearch.stats.getQuery * @memberOf! () * @@ -5694,7 +5656,7 @@ export namespace cloudsearch_v1 { /** * cloudsearch.stats.getSession - * @desc Get the # of search sessions for the customer + * @desc Get the # of search sessions, % of successful sessions with a click query statistics for customer. **Note:** This API requires a standard end user account to execute. * @alias cloudsearch.stats.getSession * @memberOf! () * @@ -5778,7 +5740,7 @@ export namespace cloudsearch_v1 { /** * cloudsearch.stats.getUser - * @desc Get the users statistics for customer + * @desc Get the users statistics for customer. **Note:** This API requires a standard end user account to execute. * @alias cloudsearch.stats.getUser * @memberOf! () * @@ -6003,7 +5965,7 @@ export namespace cloudsearch_v1 { /** * cloudsearch.stats.index.datasources.get - * @desc Gets indexed item statistics for a single data source. + * @desc Gets indexed item statistics for a single data source. **Note:** This API requires a standard end user account to execute. * @alias cloudsearch.stats.index.datasources.get * @memberOf! () * @@ -6147,7 +6109,7 @@ export namespace cloudsearch_v1 { /** * cloudsearch.stats.query.searchapplications.get - * @desc Get the query statistics for search application + * @desc Get the query statistics for search application. **Note:** This API requires a standard end user account to execute. * @alias cloudsearch.stats.query.searchapplications.get * @memberOf! () * @@ -6299,7 +6261,7 @@ export namespace cloudsearch_v1 { /** * cloudsearch.stats.session.searchapplications.get - * @desc Get the # of search sessions for the search application + * @desc Get the # of search sessions, % of successful sessions with a click query statistics for search application. **Note:** This API requires a standard end user account to execute. * @alias cloudsearch.stats.session.searchapplications.get * @memberOf! () * @@ -6451,7 +6413,7 @@ export namespace cloudsearch_v1 { /** * cloudsearch.stats.user.searchapplications.get - * @desc Get the users statistics for search application + * @desc Get the users statistics for search application. **Note:** This API requires a standard end user account to execute. * @alias cloudsearch.stats.user.searchapplications.get * @memberOf! () * diff --git a/src/apis/cloudshell/v1.ts b/src/apis/cloudshell/v1.ts index a4e78c1932d..4ef4d891035 100644 --- a/src/apis/cloudshell/v1.ts +++ b/src/apis/cloudshell/v1.ts @@ -281,7 +281,7 @@ export namespace cloudshell_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the operation resource to be cancelled. - * @param {().CancelOperationRequest} params.resource Request body data + * @param {().CancelOperationRequest} params.requestBody 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 diff --git a/src/apis/cloudshell/v1alpha1.ts b/src/apis/cloudshell/v1alpha1.ts index 4a407523651..938ad5dda8b 100644 --- a/src/apis/cloudshell/v1alpha1.ts +++ b/src/apis/cloudshell/v1alpha1.ts @@ -312,7 +312,7 @@ export namespace cloudshell_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the resource that should receive the credentials, for example `users/me/environments/default` or `users/someone@example.com/environments/default`. - * @param {().AuthorizeEnvironmentRequest} params.resource Request body data + * @param {().AuthorizeEnvironmentRequest} params.requestBody 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 @@ -457,7 +457,7 @@ export namespace cloudshell_v1alpha1 { * @param {object} params Parameters for request * @param {string} params.name Name of the resource to be updated, for example `users/me/environments/default` or `users/someone@example.com/environments/default`. * @param {string=} params.updateMask Mask specifying which fields in the environment should be updated. - * @param {().Environment} params.resource Request body data + * @param {().Environment} params.requestBody 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 @@ -529,7 +529,7 @@ export namespace cloudshell_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the resource that should be started, for example `users/me/environments/default` or `users/someone@example.com/environments/default`. - * @param {().StartEnvironmentRequest} params.resource Request body data + * @param {().StartEnvironmentRequest} params.requestBody 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 @@ -679,7 +679,7 @@ export namespace cloudshell_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.parent Parent resource name, e.g. `users/me/environments/default`. - * @param {().CreatePublicKeyRequest} params.resource Request body data + * @param {().CreatePublicKeyRequest} params.requestBody 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 diff --git a/src/apis/cloudtasks/v2.ts b/src/apis/cloudtasks/v2.ts index 9db6385e59b..73e9c2094f7 100644 --- a/src/apis/cloudtasks/v2.ts +++ b/src/apis/cloudtasks/v2.ts @@ -255,6 +255,35 @@ export namespace cloudtasks_v2 { */ requestedPolicyVersion?: number | null; } + /** + * HTTP request. The task will be pushed to the worker as an HTTP request. If the worker or the redirected worker acknowledges the task by returning a successful HTTP response code ([`200` - `299`]), the task will removed from the queue. If any other HTTP response code is returned or no response is received, the task will be retried according to the following: * User-specified throttling: retry configuration, rate limits, and the queue's state. * System throttling: To prevent the worker from overloading, Cloud Tasks may temporarily reduce the queue's effective rate. User-specified settings will not be changed. System throttling happens because: * Cloud Tasks backs off on all errors. Normally the backoff specified in rate limits will be used. But if the worker returns `429` (Too Many Requests), `503` (Service Unavailable), or the rate of errors is high, Cloud Tasks will use a higher backoff rate. The retry specified in the `Retry-After` HTTP response header is considered. * To prevent traffic spikes and to smooth sudden large traffic spikes, dispatches ramp up slowly when the queue is newly created or idle and if large numbers of tasks suddenly become available to dispatch (due to spikes in create task rates, the queue being unpaused, or many tasks that are scheduled at the same time). + */ + export interface Schema$HttpRequest { + /** + * HTTP request body. A request body is allowed only if the HTTP method is POST, PUT, or PATCH. It is an error to set body on a task with an incompatible HttpMethod. + */ + body?: string | null; + /** + * HTTP request headers. This map contains the header field names and values. Headers can be set when the task is created. These headers represent a subset of the headers that will accompany the task's HTTP request. Some HTTP request headers will be ignored or replaced. A partial list of headers that will be ignored or replaced is: * Host: This will be computed by Cloud Tasks and derived from HttpRequest.url. * Content-Length: This will be computed by Cloud Tasks. * User-Agent: This will be set to `"Google-Cloud-Tasks"`. * X-Google-*: Google use only. * X-AppEngine-*: Google use only. `Content-Type` won't be set by Cloud Tasks. You can explicitly set `Content-Type` to a media type when the task is created. For example, `Content-Type` can be set to `"application/octet-stream"` or `"application/json"`. Headers which can have multiple values (according to RFC2616) can be specified using comma-separated values. The size of the headers must be less than 80KB. + */ + headers?: {[key: string]: string} | null; + /** + * The HTTP method to use for the request. The default is POST. + */ + httpMethod?: string | null; + /** + * If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com. + */ + oauthToken?: Schema$OAuthToken; + /** + * If specified, an [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) token will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization can be used for many scenarios, including calling Cloud Run, or endpoints where you intend to validate the token yourself. + */ + oidcToken?: Schema$OidcToken; + /** + * Required. The full url path that the request will be sent to. This string must begin with either "http://" or "https://". Some examples are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will encode some characters for safety and compatibility. The maximum allowed URL length is 2083 characters after encoding. The `Location` header response from a redirect response [`300` - `399`] may be followed. The redirect is not counted as a separate attempt. + */ + url?: string | null; + } /** * The response message for Locations.ListLocations. */ @@ -319,6 +348,32 @@ export namespace cloudtasks_v2 { */ name?: string | null; } + /** + * Contains information needed for generating an [OAuth token](https://developers.google.com/identity/protocols/OAuth2). This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com. + */ + export interface Schema$OAuthToken { + /** + * OAuth scope to be used for generating OAuth access token. If not specified, "https://www.googleapis.com/auth/cloud-platform" will be used. + */ + scope?: string | null; + /** + * [Service account email](https://cloud.google.com/iam/docs/service-accounts) to be used for generating OAuth token. The service account must be within the same project as the queue. The caller must have iam.serviceAccounts.actAs permission for the service account. + */ + serviceAccountEmail?: string | null; + } + /** + * Contains information needed for generating an [OpenID Connect token](https://developers.google.com/identity/protocols/OpenIDConnect). This type of authorization can be used for many scenarios, including calling Cloud Run, or endpoints where you intend to validate the token yourself. + */ + export interface Schema$OidcToken { + /** + * Audience to be used when generating OIDC token. If not specified, the URI specified in target will be used. + */ + audience?: string | null; + /** + * [Service account email](https://cloud.google.com/iam/docs/service-accounts) to be used for generating OIDC token. The service account must be within the same project as the queue. The caller must have iam.serviceAccounts.actAs permission for the service account. + */ + serviceAccountEmail?: string | null; + } /** * Request message for PauseQueue. */ @@ -332,11 +387,11 @@ export namespace cloudtasks_v2 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -349,7 +404,7 @@ export namespace cloudtasks_v2 { */ export interface Schema$Queue { /** - * Overrides for task-level app_engine_routing. These settings apply only to App Engine tasks in this queue. If set, `app_engine_routing_override` is used for all App Engine tasks in the queue, no matter what the setting is for the task-level app_engine_routing. + * Overrides for task-level app_engine_routing. These settings apply only to App Engine tasks in this queue. Http tasks are not affected. If set, `app_engine_routing_override` is used for all App Engine tasks in the queue, no matter what the setting is for the task-level app_engine_routing. */ appEngineRoutingOverride?: Schema$AppEngineRouting; /** @@ -471,13 +526,17 @@ export namespace cloudtasks_v2 { */ dispatchCount?: number | null; /** - * The deadline for requests sent to the worker. If the worker does not respond by this deadline then the request is cancelled and the attempt is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the task according to the RetryConfig. Note that when the request is cancelled, Cloud Tasks will stop listing for the response, but whether the worker stops processing depends on the worker. For example, if the worker is stuck, it may not react to cancelled requests. The default and maximum values depend on the type of request: * For App Engine tasks, 0 indicates that the request has the default deadline. The default deadline depends on the [scaling type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling) of the service: 10 minutes for standard apps with automatic scaling, 24 hours for standard apps with manual and basic scaling, and 60 minutes for flex apps. If the request deadline is set, it must be in the interval [15 seconds, 24 hours 15 seconds]. Regardless of the task's `dispatch_deadline`, the app handler will not run for longer than than the service's timeout. We recommend setting the `dispatch_deadline` to at most a few seconds more than the app handler's timeout. For more information see [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts). `dispatch_deadline` will be truncated to the nearest millisecond. The deadline is an approximate deadline. + * The deadline for requests sent to the worker. If the worker does not respond by this deadline then the request is cancelled and the attempt is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the task according to the RetryConfig. Note that when the request is cancelled, Cloud Tasks will stop listing for the response, but whether the worker stops processing depends on the worker. For example, if the worker is stuck, it may not react to cancelled requests. The default and maximum values depend on the type of request: * For HTTP tasks, the default is 10 minutes. The deadline must be in the interval [15 seconds, 30 minutes]. * For App Engine tasks, 0 indicates that the request has the default deadline. The default deadline depends on the [scaling type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling) of the service: 10 minutes for standard apps with automatic scaling, 24 hours for standard apps with manual and basic scaling, and 60 minutes for flex apps. If the request deadline is set, it must be in the interval [15 seconds, 24 hours 15 seconds]. Regardless of the task's `dispatch_deadline`, the app handler will not run for longer than than the service's timeout. We recommend setting the `dispatch_deadline` to at most a few seconds more than the app handler's timeout. For more information see [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts). `dispatch_deadline` will be truncated to the nearest millisecond. The deadline is an approximate deadline. */ dispatchDeadline?: string | null; /** * Output only. The status of the task's first attempt. Only dispatch_time will be set. The other Attempt information is not retained by Cloud Tasks. */ firstAttempt?: Schema$Attempt; + /** + * HTTP request that is sent to the worker. An HTTP task is a task that has HttpRequest set. + */ + httpRequest?: Schema$HttpRequest; /** * Output only. The status of the task's last attempt. */ @@ -897,7 +956,7 @@ export namespace cloudtasks_v2 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The location name in which the queue will be created. For example: `projects/PROJECT_ID/locations/LOCATION_ID` The list of allowed locations can be obtained by calling Cloud Tasks' implementation of ListLocations. - * @param {().Queue} params.resource Request body data + * @param {().Queue} params.requestBody 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 @@ -1252,7 +1311,7 @@ export namespace cloudtasks_v2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -1531,7 +1590,7 @@ export namespace cloudtasks_v2 { * @param {object} params Parameters for request * @param {string} params.name Caller-specified and required in CreateQueue, after which it becomes output only. The queue name. The queue name must have the following format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) * `LOCATION_ID` is the canonical ID for the queue's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/. * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or hyphens (-). The maximum length is 100 characters. * @param {string=} params.updateMask A mask used to specify which fields of the queue are being updated. If empty, then all fields will be updated. - * @param {().Queue} params.resource Request body data + * @param {().Queue} params.requestBody 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 @@ -1653,7 +1712,7 @@ export namespace cloudtasks_v2 { * * @param {object} params Parameters for request * @param {string} params.name Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @param {().PauseQueueRequest} params.resource Request body data + * @param {().PauseQueueRequest} params.requestBody 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 @@ -1775,7 +1834,7 @@ export namespace cloudtasks_v2 { * * @param {object} params Parameters for request * @param {string} params.name Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @param {().PurgeQueueRequest} params.resource Request body data + * @param {().PurgeQueueRequest} params.requestBody 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 @@ -1897,7 +1956,7 @@ export namespace cloudtasks_v2 { * * @param {object} params Parameters for request * @param {string} params.name Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @param {().ResumeQueueRequest} params.resource Request body data + * @param {().ResumeQueueRequest} params.requestBody 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 @@ -2018,7 +2077,7 @@ export namespace cloudtasks_v2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -2142,7 +2201,7 @@ export namespace cloudtasks_v2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -2473,7 +2532,7 @@ export namespace cloudtasks_v2 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. - * @param {().CreateTaskRequest} params.resource Request body data + * @param {().CreateTaskRequest} params.requestBody 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 @@ -2968,7 +3027,7 @@ export namespace cloudtasks_v2 { * * @param {object} params Parameters for request * @param {string} params.name Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @param {().RunTaskRequest} params.resource Request body data + * @param {().RunTaskRequest} params.requestBody 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 diff --git a/src/apis/cloudtasks/v2beta2.ts b/src/apis/cloudtasks/v2beta2.ts index 84779bd274e..8afebd3eaff 100644 --- a/src/apis/cloudtasks/v2beta2.ts +++ b/src/apis/cloudtasks/v2beta2.ts @@ -393,11 +393,11 @@ export namespace cloudtasks_v2beta2 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -1021,7 +1021,7 @@ export namespace cloudtasks_v2beta2 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The location name in which the queue will be created. For example: `projects/PROJECT_ID/locations/LOCATION_ID` The list of allowed locations can be obtained by calling Cloud Tasks' implementation of ListLocations. - * @param {().Queue} params.resource Request body data + * @param {().Queue} params.requestBody 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 @@ -1388,7 +1388,7 @@ export namespace cloudtasks_v2beta2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -1670,7 +1670,7 @@ export namespace cloudtasks_v2beta2 { * @param {object} params Parameters for request * @param {string} params.name Caller-specified and required in CreateQueue, after which it becomes output only. The queue name. The queue name must have the following format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) * `LOCATION_ID` is the canonical ID for the queue's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/. * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or hyphens (-). The maximum length is 100 characters. * @param {string=} params.updateMask A mask used to specify which fields of the queue are being updated. If empty, then all fields will be updated. - * @param {().Queue} params.resource Request body data + * @param {().Queue} params.requestBody 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 @@ -1796,7 +1796,7 @@ export namespace cloudtasks_v2beta2 { * * @param {object} params Parameters for request * @param {string} params.name Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @param {().PauseQueueRequest} params.resource Request body data + * @param {().PauseQueueRequest} params.requestBody 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 @@ -1925,7 +1925,7 @@ export namespace cloudtasks_v2beta2 { * * @param {object} params Parameters for request * @param {string} params.name Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @param {().PurgeQueueRequest} params.resource Request body data + * @param {().PurgeQueueRequest} params.requestBody 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 @@ -2054,7 +2054,7 @@ export namespace cloudtasks_v2beta2 { * * @param {object} params Parameters for request * @param {string} params.name Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @param {().ResumeQueueRequest} params.resource Request body data + * @param {().ResumeQueueRequest} params.requestBody 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 @@ -2182,7 +2182,7 @@ export namespace cloudtasks_v2beta2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -2310,7 +2310,7 @@ export namespace cloudtasks_v2beta2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -2641,7 +2641,7 @@ export namespace cloudtasks_v2beta2 { * * @param {object} params Parameters for request * @param {string} params.name Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @param {().AcknowledgeTaskRequest} params.resource Request body data + * @param {().AcknowledgeTaskRequest} params.requestBody 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 @@ -2770,7 +2770,7 @@ export namespace cloudtasks_v2beta2 { * * @param {object} params Parameters for request * @param {string} params.name Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @param {().CancelLeaseRequest} params.resource Request body data + * @param {().CancelLeaseRequest} params.requestBody 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 @@ -2900,7 +2900,7 @@ export namespace cloudtasks_v2beta2 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. - * @param {().CreateTaskRequest} params.resource Request body data + * @param {().CreateTaskRequest} params.requestBody 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 @@ -3213,7 +3213,7 @@ export namespace cloudtasks_v2beta2 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * @param {().LeaseTasksRequest} params.resource Request body data + * @param {().LeaseTasksRequest} params.requestBody 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 @@ -3486,7 +3486,7 @@ export namespace cloudtasks_v2beta2 { * * @param {object} params Parameters for request * @param {string} params.name Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @param {().RenewLeaseRequest} params.resource Request body data + * @param {().RenewLeaseRequest} params.requestBody 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 @@ -3615,7 +3615,7 @@ export namespace cloudtasks_v2beta2 { * * @param {object} params Parameters for request * @param {string} params.name Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @param {().RunTaskRequest} params.resource Request body data + * @param {().RunTaskRequest} params.requestBody 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 diff --git a/src/apis/cloudtasks/v2beta3.ts b/src/apis/cloudtasks/v2beta3.ts index bff57c6d30f..3373f9511b8 100644 --- a/src/apis/cloudtasks/v2beta3.ts +++ b/src/apis/cloudtasks/v2beta3.ts @@ -396,11 +396,11 @@ export namespace cloudtasks_v2beta3 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -978,7 +978,7 @@ export namespace cloudtasks_v2beta3 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The location name in which the queue will be created. For example: `projects/PROJECT_ID/locations/LOCATION_ID` The list of allowed locations can be obtained by calling Cloud Tasks' implementation of ListLocations. - * @param {().Queue} params.resource Request body data + * @param {().Queue} params.requestBody 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 @@ -1333,7 +1333,7 @@ export namespace cloudtasks_v2beta3 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -1612,7 +1612,7 @@ export namespace cloudtasks_v2beta3 { * @param {object} params Parameters for request * @param {string} params.name Caller-specified and required in CreateQueue, after which it becomes output only. The queue name. The queue name must have the following format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) * `LOCATION_ID` is the canonical ID for the queue's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/. * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or hyphens (-). The maximum length is 100 characters. * @param {string=} params.updateMask A mask used to specify which fields of the queue are being updated. If empty, then all fields will be updated. - * @param {().Queue} params.resource Request body data + * @param {().Queue} params.requestBody 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 @@ -1734,7 +1734,7 @@ export namespace cloudtasks_v2beta3 { * * @param {object} params Parameters for request * @param {string} params.name Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @param {().PauseQueueRequest} params.resource Request body data + * @param {().PauseQueueRequest} params.requestBody 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 @@ -1859,7 +1859,7 @@ export namespace cloudtasks_v2beta3 { * * @param {object} params Parameters for request * @param {string} params.name Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @param {().PurgeQueueRequest} params.resource Request body data + * @param {().PurgeQueueRequest} params.requestBody 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 @@ -1984,7 +1984,7 @@ export namespace cloudtasks_v2beta3 { * * @param {object} params Parameters for request * @param {string} params.name Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @param {().ResumeQueueRequest} params.resource Request body data + * @param {().ResumeQueueRequest} params.requestBody 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 @@ -2108,7 +2108,7 @@ export namespace cloudtasks_v2beta3 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -2232,7 +2232,7 @@ export namespace cloudtasks_v2beta3 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -2563,7 +2563,7 @@ export namespace cloudtasks_v2beta3 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. - * @param {().CreateTaskRequest} params.resource Request body data + * @param {().CreateTaskRequest} params.requestBody 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 @@ -3058,7 +3058,7 @@ export namespace cloudtasks_v2beta3 { * * @param {object} params Parameters for request * @param {string} params.name Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @param {().RunTaskRequest} params.resource Request body data + * @param {().RunTaskRequest} params.requestBody 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 diff --git a/src/apis/cloudtrace/v1.ts b/src/apis/cloudtrace/v1.ts index b4fb7f0c6b4..954ec05a0f8 100644 --- a/src/apis/cloudtrace/v1.ts +++ b/src/apis/cloudtrace/v1.ts @@ -256,7 +256,7 @@ export namespace cloudtrace_v1 { * * @param {object} params Parameters for request * @param {string} params.projectId Required. ID of the Cloud project where the trace data is stored. - * @param {().Traces} params.resource Request body data + * @param {().Traces} params.requestBody 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 diff --git a/src/apis/cloudtrace/v2.ts b/src/apis/cloudtrace/v2.ts index 140dcf2785c..c3493682e8c 100644 --- a/src/apis/cloudtrace/v2.ts +++ b/src/apis/cloudtrace/v2.ts @@ -449,7 +449,7 @@ export namespace cloudtrace_v2 { * * @param {object} params Parameters for request * @param {string} params.name Required. The name of the project where the spans belong. The format is `projects/[PROJECT_ID]`. - * @param {().BatchWriteSpansRequest} params.resource Request body data + * @param {().BatchWriteSpansRequest} params.requestBody 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 @@ -547,7 +547,7 @@ export namespace cloudtrace_v2 { * * @param {object} params Parameters for request * @param {string} params.name The resource name of the span in the following format: projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. [SPAN_ID] is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array. - * @param {().Span} params.resource Request body data + * @param {().Span} params.requestBody 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 diff --git a/src/apis/commentanalyzer/v1alpha1.ts b/src/apis/commentanalyzer/v1alpha1.ts index 1b153ddf57c..7c3a7c07392 100644 --- a/src/apis/commentanalyzer/v1alpha1.ts +++ b/src/apis/commentanalyzer/v1alpha1.ts @@ -140,7 +140,7 @@ export namespace commentanalyzer_v1alpha1 { */ doNotStore?: boolean | null; /** - * The language(s) of the comment and context (if none are specified, the language is automatically detected). If multiple languages are specified, the text is checked in all of them that are supported. Both ISO and BCP-47 language codes are accepted. Current Language Restrictions: * Only English text ("en") is supported. If none of the languages specified by the caller are supported, an `UNIMPLEMENTED` error is returned. + * The language(s) of the comment and context. If none are specified, we attempt to automatically detect the language. Specifying multiple languages means the text contains multiple lanugages. Both ISO and BCP-47 language codes are accepted. The server returns an error if no language was specified and language detection fails. The server also returns an error if the languages (either specified by the caller, or auto-detected) are not *all* supported by the service. */ languages?: string[] | null; /** @@ -173,7 +173,7 @@ export namespace commentanalyzer_v1alpha1 { */ detectedLanguages?: string[] | null; /** - * The language(s) used by CommentAnalyzer service to choose which Model to use when analyzing the comment. Might better be called "effective_languages". The logic used to make the choice is as follows: if Request.languages.empty() effective_languages = detected_languages else effective_languages = Request.languages + * The language(s) used by CommentAnalyzer service to choose which Model to use when analyzing the comment. Might better be called "effective_languages". The logic used to make the choice is as follows: if !Request.languages.empty() effective_languages = Request.languages else effective_languages = detected_languages[0] */ languages?: string[] | null; } @@ -281,7 +281,7 @@ export namespace commentanalyzer_v1alpha1 { */ context?: Schema$Context; /** - * The language(s) of the comment and context (if none are specified, the language is automatically detected). If multiple languages are specified, the text is checked in all of them that are supported. Both ISO and BCP-47 language codes are accepted. Current Language Restrictions: * Only English text ("en") is supported. If none of the languages specified by the caller are supported, an `UNIMPLEMENTED` error is returned. + * The language(s) of the comment and context. If none are specified, we attempt to automatically detect the language. Both ISO and BCP-47 language codes are accepted. */ languages?: string[] | null; /** @@ -333,7 +333,7 @@ export namespace commentanalyzer_v1alpha1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AnalyzeCommentRequest} params.resource Request body data + * @param {().AnalyzeCommentRequest} params.requestBody 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 @@ -411,7 +411,7 @@ export namespace commentanalyzer_v1alpha1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().SuggestCommentScoreRequest} params.resource Request body data + * @param {().SuggestCommentScoreRequest} params.requestBody 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 diff --git a/src/apis/composer/v1.ts b/src/apis/composer/v1.ts index d50c591373a..a98edc430b4 100644 --- a/src/apis/composer/v1.ts +++ b/src/apis/composer/v1.ts @@ -413,7 +413,7 @@ export namespace composer_v1 { * * @param {object} params Parameters for request * @param {string} params.parent The parent must be of the form "projects/{projectId}/locations/{locationId}". - * @param {().Environment} params.resource Request body data + * @param {().Environment} params.requestBody 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 @@ -709,7 +709,7 @@ export namespace composer_v1 { * @param {object} params Parameters for request * @param {string} params.name The relative resource name of the environment to update, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" * @param {string=} params.updateMask Required. A comma-separated list of paths, relative to `Environment`, of fields to update. For example, to set the version of scikit-learn to install in the environment to 0.19.0 and to remove an existing installation of numpy, the `updateMask` parameter would include the following two `paths` values: "config.softwareConfig.pypiPackages.scikit-learn" and "config.softwareConfig.pypiPackages.numpy". The included patch environment would specify the scikit-learn version as follows: { "config":{ "softwareConfig":{ "pypiPackages":{ "scikit-learn":"==0.19.0" } } } } Note that in the above example, any existing PyPI packages other than scikit-learn and numpy will be unaffected. Only one update type may be included in a single request's `updateMask`. For example, one cannot update both the PyPI packages and labels in the same request. However, it is possible to update multiple members of a map field simultaneously in the same request. For example, to set the labels "label1" and "label2" while clearing "label3" (assuming it already exists), one can provide the paths "labels.label1", "labels.label2", and "labels.label3" and populate the patch environment as follows: { "labels":{ "label1":"new-label1-value" "label2":"new-label2-value" } } Note that in the above example, any existing labels that are not included in the `updateMask` will be unaffected. It is also possible to replace an entire map field by providing the map field's path in the `updateMask`. The new value of the field will be that which is provided in the patch environment. For example, to delete all pre-existing user-specified PyPI packages and install botocore at version 1.7.14, the `updateMask` would contain the path "config.softwareConfig.pypiPackages", and the patch environment would be the following: { "config":{ "softwareConfig":{ "pypiPackages":{ "botocore":"==1.7.14" } } } } **Note:** Only the following fields can be updated:
              Mask Purpose
              config.softwareConfig.pypiPackages Replace all custom custom PyPI packages. If a replacement package map is not included in `environment`, all custom PyPI packages are cleared. It is an error to provide both this mask and a mask specifying an individual package.
              config.softwareConfig.pypiPackages.packagename Update the custom PyPI package packagename, preserving other packages. To delete the package, include it in `updateMask`, and omit the mapping for it in `environment.config.softwareConfig.pypiPackages`. It is an error to provide both a mask of this form and the "config.softwareConfig.pypiPackages" mask.
              labels Replace all environment labels. If a replacement labels map is not included in `environment`, all labels are cleared. It is an error to provide both this mask and a mask specifying one or more individual labels.
              labels.labelName Set the label named labelName, while preserving other labels. To delete the label, include it in `updateMask` and omit its mapping in `environment.labels`. It is an error to provide both a mask of this form and the "labels" mask.
              config.nodeCount Horizontally scale the number of nodes in the environment. An integer greater than or equal to 3 must be provided in the `config.nodeCount` field.
              config.softwareConfig.airflowConfigOverrides Replace all Apache Airflow config overrides. If a replacement config overrides map is not included in `environment`, all config overrides are cleared. It is an error to provide both this mask and a mask specifying one or more individual config overrides.
              config.softwareConfig.airflowConfigOverrides.section-name Override the Apache Airflow config property name in the section named section, preserving other properties. To delete the property override, include it in `updateMask` and omit its mapping in `environment.config.softwareConfig.airflowConfigOverrides`. It is an error to provide both a mask of this form and the "config.softwareConfig.airflowConfigOverrides" mask.
              config.softwareConfig.envVariables Replace all environment variables. If a replacement environment variable map is not included in `environment`, all custom environment variables are cleared. It is an error to provide both this mask and a mask specifying one or more individual environment variables.
              - * @param {().Environment} params.resource Request body data + * @param {().Environment} params.requestBody 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 diff --git a/src/apis/composer/v1beta1.ts b/src/apis/composer/v1beta1.ts index c50c8e469a2..80c4c8355ff 100644 --- a/src/apis/composer/v1beta1.ts +++ b/src/apis/composer/v1beta1.ts @@ -472,7 +472,7 @@ export namespace composer_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent The parent must be of the form "projects/{projectId}/locations/{locationId}". - * @param {().Environment} params.resource Request body data + * @param {().Environment} params.requestBody 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 @@ -768,7 +768,7 @@ export namespace composer_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name The relative resource name of the environment to update, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" * @param {string=} params.updateMask Required. A comma-separated list of paths, relative to `Environment`, of fields to update. For example, to set the version of scikit-learn to install in the environment to 0.19.0 and to remove an existing installation of argparse, the `updateMask` parameter would include the following two `paths` values: "config.softwareConfig.pypiPackages.scikit-learn" and "config.softwareConfig.pypiPackages.argparse". The included patch environment would specify the scikit-learn version as follows: { "config":{ "softwareConfig":{ "pypiPackages":{ "scikit-learn":"==0.19.0" } } } } Note that in the above example, any existing PyPI packages other than scikit-learn and argparse will be unaffected. Only one update type may be included in a single request's `updateMask`. For example, one cannot update both the PyPI packages and labels in the same request. However, it is possible to update multiple members of a map field simultaneously in the same request. For example, to set the labels "label1" and "label2" while clearing "label3" (assuming it already exists), one can provide the paths "labels.label1", "labels.label2", and "labels.label3" and populate the patch environment as follows: { "labels":{ "label1":"new-label1-value" "label2":"new-label2-value" } } Note that in the above example, any existing labels that are not included in the `updateMask` will be unaffected. It is also possible to replace an entire map field by providing the map field's path in the `updateMask`. The new value of the field will be that which is provided in the patch environment. For example, to delete all pre-existing user-specified PyPI packages and install botocore at version 1.7.14, the `updateMask` would contain the path "config.softwareConfig.pypiPackages", and the patch environment would be the following: { "config":{ "softwareConfig":{ "pypiPackages":{ "botocore":"==1.7.14" } } } } Note: Only the following fields can be updated:
              Mask Purpose
              config.softwareConfig.pypiPackages Replace all custom custom PyPI packages. If a replacement package map is not included in `environment`, all custom PyPI packages are cleared. It is an error to provide both this mask and a mask specifying an individual package.
              config.softwareConfig.pypiPackages.packagename Update the custom PyPI package packagename, preserving other packages. To delete the package, include it in `updateMask`, and omit the mapping for it in `environment.config.softwareConfig.pypiPackages`. It is an error to provide both a mask of this form and the "config.softwareConfig.pypiPackages" mask.
              labels Replace all environment labels. If a replacement labels map is not included in `environment`, all labels are cleared. It is an error to provide both this mask and a mask specifying one or more individual labels.
              labels.labelName Set the label named labelName, while preserving other labels. To delete the label, include it in `updateMask` and omit its mapping in `environment.labels`. It is an error to provide both a mask of this form and the "labels" mask.
              config.nodeCount Horizontally scale the number of nodes in the environment. An integer greater than or equal to 3 must be provided in the `config.nodeCount` field.
              config.softwareConfig.airflowConfigOverrides Replace all Apache Airflow config overrides. If a replacement config overrides map is not included in `environment`, all config overrides are cleared. It is an error to provide both this mask and a mask specifying one or more individual config overrides.
              config.softwareConfig.airflowConfigOverrides.section-name Override the Apache Airflow config property name in the section named section, preserving other properties. To delete the property override, include it in `updateMask` and omit its mapping in `environment.config.softwareConfig.airflowConfigOverrides`. It is an error to provide both a mask of this form and the "config.softwareConfig.airflowConfigOverrides" mask.
              config.softwareConfig.envVariables Replace all environment variables. If a replacement environment variable map is not included in `environment`, all custom environment variables are cleared. It is an error to provide both this mask and a mask specifying one or more individual environment variables.
              config.softwareConfig.imageVersion Upgrade the version of the environment in-place. Refer to `SoftwareConfig.image_version` for information on how to format the new image version. Additionally, the new image version cannot effect a version downgrade and must match the current image version's Composer major version and Airflow major and minor versions. Consult the Cloud Composer Version List for valid values.
              - * @param {().Environment} params.resource Request body data + * @param {().Environment} params.requestBody 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 diff --git a/src/apis/compute/alpha.ts b/src/apis/compute/alpha.ts index a06beaae558..e6d1b421166 100644 --- a/src/apis/compute/alpha.ts +++ b/src/apis/compute/alpha.ts @@ -686,7 +686,7 @@ export namespace compute_alpha { */ instanceProperties?: Schema$AllocationSpecificSKUAllocationReservedInstanceProperties; /** - * [OutputOnly] Indicates how many instances are in use. + * [Output Only] Indicates how many instances are in use. */ inUseCount?: string | null; } @@ -787,6 +787,10 @@ export namespace compute_alpha { * Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks. */ labels?: {[key: string]: string} | null; + /** + * Specifies which action to take on instance update with this disk. Default is to use the existing disk. + */ + onUpdateAction?: string | null; /** * URLs of the zones where the disk should be replicated to. Only applicable for regional resources. */ @@ -924,7 +928,7 @@ export namespace compute_alpha { */ selfLinkWithId?: string | null; /** - * [Output Only] The status of the autoscaler configuration. + * [Output Only] The status of the autoscaler configuration. Current set of possible values: PENDING: Autoscaler backend hasn't read new/updated configuration DELETING: Configuration is being deleted ACTIVE: Configuration is acknowledged to be effective. Some warnings might or might not be present in the status_details field. ERROR: Configuration has errors. Actionable for users. Details are present in the status_details field. New values might be added in the future. */ status?: string | null; /** @@ -1023,7 +1027,7 @@ export namespace compute_alpha { */ message?: string | null; /** - * The type of error returned. + * The type of error, warning or notice returned. Current set of possible values: ALL_INSTANCES_UNHEALTHY (WARNING): All instances in the instance group are unhealthy (not in RUNNING state). BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): There is no backend service attached to the instance group. CAPPED_AT_MAX_NUM_REPLICAS (WARNING): Autoscaler recommends size bigger than maxNumReplicas. CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom metric samples are not exported often enough to be a credible base for autoscaling. CUSTOM_METRIC_INVALID (ERROR): The custom metric that was specified does not exist or does not have the necessary labels. MIN_EQUALS_MAX (WARNING): The minNumReplicas is equal to maxNumReplicas. This means the autoscaler cannot add or remove instances from the instance group. MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not receive any data from the custom metric configured for autoscaling. MISSING_LOAD_BALANCING_DATA_POINTS (WARNING): The autoscaler is configured to scale based on a load balancing signal but the instance group has not received any requests from the load balancer. MODE_OFF (WARNING): Autoscaling is turned off. The number of instances in the group won't change automatically. The autoscaling configuration is preserved. MODE_ONLY_UP (WARNING): Autoscaling is in the "Autoscale only up" mode. Instances in the group will be only added. MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The instance group cannot be autoscaled because it has more than one backend service attached to it. NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): Exceeded quota for necessary resources, such as CPU, number of instances and so on. REGION_RESOURCE_STOCKOUT (ERROR): Showed only for regional autoscalers: there is a resource stockout in the chosen region. SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be scaled does not exist. UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): Autoscaling does not work with an HTTP/S load balancer that has been configured for maxRate. ZONE_RESOURCE_STOCKOUT (ERROR): For zonal autoscalers: there is a resource stockout in the chosen zone. For regional autoscalers: in at least one of the zones you're using there is a resource stockout. New values might be added in the future. Some of the values might not be available in all API versions. */ type?: string | null; } @@ -4354,6 +4358,10 @@ export namespace compute_alpha { * Specifies whether the disks restored from source snapshots or source machine image should erase Windows specific VSS signature. */ eraseWindowsVssSignature?: boolean | null; + /** + * Specifies a fingerprint for this resource, which is essentially a hash of the instance's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the instance. You must always provide an up-to-date fingerprint hash in order to update the instance. To see the latest fingerprint, make get() request to the instance. + */ + fingerprint?: string | null; /** * A list of the type and count of accelerator cards attached to the instance. */ @@ -7055,7 +7063,7 @@ export namespace compute_alpha { port?: number | null; } /** - * Represents a collection of network endpoints. + * Represents a collection of network endpoints. For more information read Setting up network endpoint groups in load balancing. (== resource_for v1.networkEndpointGroups ==) (== resource_for beta.networkEndpointGroups ==) */ export interface Schema$NetworkEndpointGroup { /** @@ -7537,7 +7545,7 @@ export namespace compute_alpha { networkPeering?: Schema$NetworkPeering; } /** - * Represent a sole-tenant Node Group resource. A sole-tenant node is a physical server that is dedicated to hosting VM instances only for your specific project. Use sole-tenant nodes to keep your instances physically separated from instances in other projects, or to group your instances together on the same host hardware. For more information, read Sole-tenant nodes. (== resource_for beta.nodeGroups ==) (== resource_for v1.nodeGroups ==) NextID: 15 + * Represent a sole-tenant Node Group resource. A sole-tenant node is a physical server that is dedicated to hosting VM instances only for your specific project. Use sole-tenant nodes to keep your instances physically separated from instances in other projects, or to group your instances together on the same host hardware. For more information, read Sole-tenant nodes. (== resource_for beta.nodeGroups ==) (== resource_for v1.nodeGroups ==) NextID: 16 */ export interface Schema$NodeGroup { autoscalingPolicy?: Schema$NodeGroupAutoscalingPolicy; @@ -8072,7 +8080,7 @@ export namespace compute_alpha { */ endpoint?: string | null; /** - * Optional. If specified, this field is used to populate the ?name? field in gRPC requests. + * Optional. If specified, this field is used to populate the "name" field in gRPC requests. */ payloadName?: string | null; /** @@ -8854,7 +8862,7 @@ export namespace compute_alpha { */ notUsers?: string[] | null; /** - * A map of Istio attribute to expected values. Exact match, prefix match, and suffix match are supported for values. For example, `request.headers[version]: ?v1?`. The properties are ANDed together. + * A map of Istio attribute to expected values. Exact match, prefix match, and suffix match are supported for values. For example, `request.headers[version]: "v1"`. The properties are ANDed together. */ properties?: {[key: string]: string} | null; /** @@ -9754,7 +9762,7 @@ export namespace compute_alpha { */ export interface Schema$Reservation { /** - * [OutputOnly] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment. + * [Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment. */ commitment?: string | null; /** @@ -10652,7 +10660,7 @@ export namespace compute_alpha { */ enable?: boolean | null; /** - * Specifies the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. + * Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This option can take one of the following values: - ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only for successful connections. - ALL: Export logs for all connections, successful and unsuccessful. */ filter?: string | null; } @@ -10761,11 +10769,11 @@ export namespace compute_alpha { */ autoAllocatedNatIps?: string[] | null; /** - * A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", ?179.12.26.133?]. + * A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. */ drainAutoAllocatedNatIps?: string[] | null; /** - * A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", ?179.12.26.133?]. + * A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. */ drainUserAllocatedNatIps?: string[] | null; /** @@ -11282,7 +11290,7 @@ export namespace compute_alpha { */ export interface Schema$ShieldedInstanceIdentity { /** - * An Endorsement Key (EK) issued to the Shielded Instance's vTPM. + * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM. */ encryptionKey?: Schema$ShieldedInstanceIdentityEntry; /** @@ -11290,7 +11298,7 @@ export namespace compute_alpha { */ kind?: string | null; /** - * An Attestation Key (AK) issued to the Shielded Instance's vTPM. + * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM. */ signingKey?: Schema$ShieldedInstanceIdentityEntry; } @@ -11402,7 +11410,7 @@ export namespace compute_alpha { */ description?: string | null; /** - * [Output Only] Size of the snapshot, specified in GB. + * [Output Only] Size of the source disk, specified in GB. */ diskSizeGb?: string | null; /** @@ -14660,7 +14668,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Address} params.resource Request body data + * @param {().Address} params.requestBody 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 @@ -14815,7 +14823,7 @@ export namespace compute_alpha { * @param {string} params.region The region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetLabelsRequest} params.resource Request body data + * @param {().RegionSetLabelsRequest} params.requestBody 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 @@ -14892,7 +14900,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -15394,7 +15402,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone Name of the zone for this request. - * @param {().Autoscaler} params.resource Request body data + * @param {().Autoscaler} params.requestBody 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 @@ -15550,7 +15558,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone Name of the zone for this request. - * @param {().Autoscaler} params.resource Request body data + * @param {().Autoscaler} params.requestBody 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 @@ -15627,7 +15635,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -15709,7 +15717,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone Name of the zone for this request. - * @param {().Autoscaler} params.resource Request body data + * @param {().Autoscaler} params.requestBody 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 @@ -16004,7 +16012,7 @@ export namespace compute_alpha { * @param {string} params.backendBucket Name of the BackendBucket resource to which the Signed URL Key should be added. The name should conform to RFC1035. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().SignedUrlKey} params.resource Request body data + * @param {().SignedUrlKey} params.requestBody 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 @@ -16382,7 +16390,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendBucket} params.resource Request body data + * @param {().BackendBucket} params.requestBody 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 @@ -16537,7 +16545,7 @@ export namespace compute_alpha { * @param {string} params.backendBucket Name of the BackendBucket resource to patch. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendBucket} params.resource Request body data + * @param {().BackendBucket} params.requestBody 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 @@ -16613,7 +16621,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetPolicyRequest} params.resource Request body data + * @param {().GlobalSetPolicyRequest} params.requestBody 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 @@ -16687,7 +16695,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -16768,7 +16776,7 @@ export namespace compute_alpha { * @param {string} params.backendBucket Name of the BackendBucket resource to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendBucket} params.resource Request body data + * @param {().BackendBucket} params.requestBody 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 @@ -17099,7 +17107,7 @@ export namespace compute_alpha { * @param {string} params.backendService Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().SignedUrlKey} params.resource Request body data + * @param {().SignedUrlKey} params.requestBody 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 @@ -17490,7 +17498,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.backendService Name of the BackendService resource to which the queried instance belongs. * @param {string} params.project - * @param {().ResourceGroupReference} params.resource Request body data + * @param {().ResourceGroupReference} params.requestBody 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 @@ -17573,7 +17581,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendService} params.resource Request body data + * @param {().BackendService} params.requestBody 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 @@ -17728,7 +17736,7 @@ export namespace compute_alpha { * @param {string} params.backendService Name of the BackendService resource to patch. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendService} params.resource Request body data + * @param {().BackendService} params.requestBody 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 @@ -17805,7 +17813,7 @@ export namespace compute_alpha { * @param {string} params.backendService Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().SecurityPolicyReference} params.resource Request body data + * @param {().SecurityPolicyReference} params.requestBody 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 @@ -17881,7 +17889,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -17962,7 +17970,7 @@ export namespace compute_alpha { * @param {string} params.backendService Name of the BackendService resource to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendService} params.resource Request body data + * @param {().BackendService} params.requestBody 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 @@ -18327,7 +18335,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().DisksAddResourcePoliciesRequest} params.resource Request body data + * @param {().DisksAddResourcePoliciesRequest} params.requestBody 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 @@ -18485,7 +18493,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().Snapshot} params.resource Request body data + * @param {().Snapshot} params.requestBody 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 @@ -18787,7 +18795,7 @@ export namespace compute_alpha { * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string=} params.sourceImage Optional. Source image to restore onto a disk. * @param {string} params.zone The name of the zone for this request. - * @param {().Disk} params.resource Request body data + * @param {().Disk} params.requestBody 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 @@ -18938,7 +18946,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().DisksRemoveResourcePoliciesRequest} params.resource Request body data + * @param {().DisksRemoveResourcePoliciesRequest} params.requestBody 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 @@ -19018,7 +19026,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().DisksResizeRequest} params.resource Request body data + * @param {().DisksResizeRequest} params.requestBody 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 @@ -19094,7 +19102,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().ZoneSetPolicyRequest} params.resource Request body data + * @param {().ZoneSetPolicyRequest} params.requestBody 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 @@ -19170,7 +19178,7 @@ export namespace compute_alpha { * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().ZoneSetLabelsRequest} params.resource Request body data + * @param {().ZoneSetLabelsRequest} params.requestBody 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 @@ -19246,7 +19254,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -20153,7 +20161,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ExternalVpnGateway} params.resource Request body data + * @param {().ExternalVpnGateway} params.requestBody 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 @@ -20309,7 +20317,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetLabelsRequest} params.resource Request body data + * @param {().GlobalSetLabelsRequest} params.requestBody 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 @@ -20385,7 +20393,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -20747,7 +20755,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Firewall} params.resource Request body data + * @param {().Firewall} params.requestBody 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 @@ -20898,7 +20906,7 @@ export namespace compute_alpha { * @param {string} params.firewall Name of the firewall rule to patch. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Firewall} params.resource Request body data + * @param {().Firewall} params.requestBody 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 @@ -20973,7 +20981,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -21054,7 +21062,7 @@ export namespace compute_alpha { * @param {string} params.firewall Name of the firewall rule to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Firewall} params.resource Request body data + * @param {().Firewall} params.requestBody 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 @@ -21528,7 +21536,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ForwardingRule} params.resource Request body data + * @param {().ForwardingRule} params.requestBody 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 @@ -21685,7 +21693,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ForwardingRule} params.resource Request body data + * @param {().ForwardingRule} params.requestBody 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 @@ -21763,7 +21771,7 @@ export namespace compute_alpha { * @param {string} params.region The region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetLabelsRequest} params.resource Request body data + * @param {().RegionSetLabelsRequest} params.requestBody 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 @@ -21841,7 +21849,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetReference} params.resource Request body data + * @param {().TargetReference} params.requestBody 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 @@ -21918,7 +21926,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -22396,7 +22404,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Address} params.resource Request body data + * @param {().Address} params.requestBody 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 @@ -22548,7 +22556,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetLabelsRequest} params.resource Request body data + * @param {().GlobalSetLabelsRequest} params.requestBody 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 @@ -22624,7 +22632,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -22990,7 +22998,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ForwardingRule} params.resource Request body data + * @param {().ForwardingRule} params.requestBody 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 @@ -23145,7 +23153,7 @@ export namespace compute_alpha { * @param {string} params.forwardingRule Name of the ForwardingRule resource to patch. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ForwardingRule} params.resource Request body data + * @param {().ForwardingRule} params.requestBody 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 @@ -23221,7 +23229,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetLabelsRequest} params.resource Request body data + * @param {().GlobalSetLabelsRequest} params.requestBody 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 @@ -23298,7 +23306,7 @@ export namespace compute_alpha { * @param {string} params.forwardingRule Name of the ForwardingRule resource in which target is to be set. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetReference} params.resource Request body data + * @param {().TargetReference} params.requestBody 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 @@ -23374,7 +23382,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -23640,7 +23648,7 @@ export namespace compute_alpha { * @param {string} params.networkEndpointGroup The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().GlobalNetworkEndpointGroupsAttachEndpointsRequest} params.resource Request body data + * @param {().GlobalNetworkEndpointGroupsAttachEndpointsRequest} params.requestBody 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 @@ -23795,7 +23803,7 @@ export namespace compute_alpha { * @param {string} params.networkEndpointGroup The name of the network endpoint group where you are removing network endpoints. It should comply with RFC1035. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().GlobalNetworkEndpointGroupsDetachEndpointsRequest} params.resource Request body data + * @param {().GlobalNetworkEndpointGroupsDetachEndpointsRequest} params.requestBody 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 @@ -23950,7 +23958,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().NetworkEndpointGroup} params.resource Request body data + * @param {().NetworkEndpointGroup} params.requestBody 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 @@ -25414,7 +25422,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().PublicDelegatedPrefix} params.resource Request body data + * @param {().PublicDelegatedPrefix} params.requestBody 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 @@ -25576,7 +25584,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to patch. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().PublicDelegatedPrefix} params.resource Request body data + * @param {().PublicDelegatedPrefix} params.requestBody 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 @@ -26005,7 +26013,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HealthCheck} params.resource Request body data + * @param {().HealthCheck} params.requestBody 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 @@ -26158,7 +26166,7 @@ export namespace compute_alpha { * @param {string} params.healthCheck Name of the HealthCheck resource to patch. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HealthCheck} params.resource Request body data + * @param {().HealthCheck} params.requestBody 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 @@ -26234,7 +26242,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -26315,7 +26323,7 @@ export namespace compute_alpha { * @param {string} params.healthCheck Name of the HealthCheck resource to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HealthCheck} params.resource Request body data + * @param {().HealthCheck} params.requestBody 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 @@ -26733,7 +26741,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HttpHealthCheck} params.resource Request body data + * @param {().HttpHealthCheck} params.requestBody 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 @@ -26888,7 +26896,7 @@ export namespace compute_alpha { * @param {string} params.httpHealthCheck Name of the HttpHealthCheck resource to patch. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HttpHealthCheck} params.resource Request body data + * @param {().HttpHealthCheck} params.requestBody 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 @@ -26964,7 +26972,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -27045,7 +27053,7 @@ export namespace compute_alpha { * @param {string} params.httpHealthCheck Name of the HttpHealthCheck resource to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HttpHealthCheck} params.resource Request body data + * @param {().HttpHealthCheck} params.requestBody 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 @@ -27436,7 +27444,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HttpsHealthCheck} params.resource Request body data + * @param {().HttpsHealthCheck} params.requestBody 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 @@ -27593,7 +27601,7 @@ export namespace compute_alpha { * @param {string} params.httpsHealthCheck Name of the HttpsHealthCheck resource to patch. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HttpsHealthCheck} params.resource Request body data + * @param {().HttpsHealthCheck} params.requestBody 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 @@ -27669,7 +27677,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -27750,7 +27758,7 @@ export namespace compute_alpha { * @param {string} params.httpsHealthCheck Name of the HttpsHealthCheck resource to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HttpsHealthCheck} params.resource Request body data + * @param {().HttpsHealthCheck} params.requestBody 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 @@ -28066,7 +28074,7 @@ export namespace compute_alpha { * @param {string} params.image Image name. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().DeprecationStatus} params.resource Request body data + * @param {().DeprecationStatus} params.requestBody 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 @@ -28361,7 +28369,7 @@ export namespace compute_alpha { * @param {boolean=} params.forceCreate Force image creation if true. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Image} params.resource Request body data + * @param {().Image} params.requestBody 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 @@ -28511,7 +28519,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetPolicyRequest} params.resource Request body data + * @param {().GlobalSetPolicyRequest} params.requestBody 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 @@ -28585,7 +28593,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetLabelsRequest} params.resource Request body data + * @param {().GlobalSetLabelsRequest} params.requestBody 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 @@ -28660,7 +28668,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -28957,7 +28965,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the managed instance group is located. - * @param {().InstanceGroupManagersAbandonInstancesRequest} params.resource Request body data + * @param {().InstanceGroupManagersAbandonInstancesRequest} params.requestBody 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 @@ -29121,7 +29129,7 @@ export namespace compute_alpha { * @param {string} params.instanceGroupManager The name of the managed instance group, should conform to RFC1035. * @param {string} params.project Project ID for this request. * @param {string} params.zone The name of the zone where the managed instance group is located. Should conform to RFC1035. - * @param {().InstanceGroupManagersApplyUpdatesRequest} params.resource Request body data + * @param {().InstanceGroupManagersApplyUpdatesRequest} params.requestBody 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 @@ -29201,7 +29209,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the managed instance group is located. It should conform to RFC1035. - * @param {().InstanceGroupManagersCreateInstancesRequest} params.resource Request body data + * @param {().InstanceGroupManagersCreateInstancesRequest} params.requestBody 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 @@ -29356,7 +29364,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the managed instance group is located. - * @param {().InstanceGroupManagersDeleteInstancesRequest} params.resource Request body data + * @param {().InstanceGroupManagersDeleteInstancesRequest} params.requestBody 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 @@ -29433,7 +29441,7 @@ export namespace compute_alpha { * @param {string} params.instanceGroupManager The name of the managed instance group. It should conform to RFC1035. * @param {string} params.project Project ID for this request. * @param {string} params.zone The name of the zone where the managed instance group is located. It should conform to RFC1035. - * @param {().InstanceGroupManagersDeletePerInstanceConfigsReq} params.resource Request body data + * @param {().InstanceGroupManagersDeletePerInstanceConfigsReq} params.requestBody 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 @@ -29590,7 +29598,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where you want to create the managed instance group. - * @param {().InstanceGroupManager} params.resource Request body data + * @param {().InstanceGroupManager} params.requestBody 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 @@ -30054,7 +30062,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where you want to create the managed instance group. - * @param {().InstanceGroupManager} params.resource Request body data + * @param {().InstanceGroupManager} params.requestBody 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 @@ -30132,7 +30140,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the managed instance group is located. It should conform to RFC1035. - * @param {().InstanceGroupManagersPatchPerInstanceConfigsReq} params.resource Request body data + * @param {().InstanceGroupManagersPatchPerInstanceConfigsReq} params.requestBody 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 @@ -30212,7 +30220,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the managed instance group is located. - * @param {().InstanceGroupManagersRecreateInstancesRequest} params.resource Request body data + * @param {().InstanceGroupManagersRecreateInstancesRequest} params.requestBody 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 @@ -30368,7 +30376,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the managed instance group is located. - * @param {().InstanceGroupManagersResizeAdvancedRequest} params.resource Request body data + * @param {().InstanceGroupManagersResizeAdvancedRequest} params.requestBody 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 @@ -30446,7 +30454,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the managed instance group is located. - * @param {().InstanceGroupManagersSetAutoHealingRequest} params.resource Request body data + * @param {().InstanceGroupManagersSetAutoHealingRequest} params.requestBody 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 @@ -30526,7 +30534,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the managed instance group is located. - * @param {().InstanceGroupManagersSetInstanceTemplateRequest} params.resource Request body data + * @param {().InstanceGroupManagersSetInstanceTemplateRequest} params.requestBody 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 @@ -30604,7 +30612,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the managed instance group is located. - * @param {().InstanceGroupManagersSetTargetPoolsRequest} params.resource Request body data + * @param {().InstanceGroupManagersSetTargetPoolsRequest} params.requestBody 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 @@ -30681,7 +30689,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -30763,7 +30771,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where you want to create the managed instance group. - * @param {().InstanceGroupManager} params.resource Request body data + * @param {().InstanceGroupManager} params.requestBody 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 @@ -30841,7 +30849,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the managed instance group is located. It should conform to RFC1035. - * @param {().InstanceGroupManagersUpdatePerInstanceConfigsReq} params.resource Request body data + * @param {().InstanceGroupManagersUpdatePerInstanceConfigsReq} params.requestBody 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 @@ -31617,7 +31625,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the instance group is located. - * @param {().InstanceGroupsAddInstancesRequest} params.resource Request body data + * @param {().InstanceGroupsAddInstancesRequest} params.requestBody 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 @@ -31932,7 +31940,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where you want to create the instance group. - * @param {().InstanceGroup} params.resource Request body data + * @param {().InstanceGroup} params.requestBody 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 @@ -32092,7 +32100,7 @@ export namespace compute_alpha { * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. * @param {string} params.zone The name of the zone where the instance group is located. - * @param {().InstanceGroupsListInstancesRequest} params.resource Request body data + * @param {().InstanceGroupsListInstancesRequest} params.requestBody 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 @@ -32177,7 +32185,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the instance group is located. - * @param {().InstanceGroupsRemoveInstancesRequest} params.resource Request body data + * @param {().InstanceGroupsRemoveInstancesRequest} params.requestBody 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 @@ -32255,7 +32263,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the instance group is located. - * @param {().InstanceGroupsSetNamedPortsRequest} params.resource Request body data + * @param {().InstanceGroupsSetNamedPortsRequest} params.requestBody 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 @@ -32332,7 +32340,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -32705,7 +32713,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().AccessConfig} params.resource Request body data + * @param {().AccessConfig} params.requestBody 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 @@ -32783,7 +32791,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesAddResourcePoliciesRequest} params.resource Request body data + * @param {().InstancesAddResourcePoliciesRequest} params.requestBody 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 @@ -32943,7 +32951,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().AttachedDisk} params.resource Request body data + * @param {().AttachedDisk} params.requestBody 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 @@ -33821,7 +33829,7 @@ export namespace compute_alpha { * @param {string=} params.sourceInstanceTemplate Specifies instance template to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate * @param {string=} params.sourceMachineImage Specifies instance machine to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project/global/global/machineImages/machineImage - projects/project/global/global/machineImages/machineImage - global/machineImages/machineImage * @param {string} params.zone The name of the zone for this request. - * @param {().Instance} params.resource Request body data + * @param {().Instance} params.requestBody 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 @@ -34060,7 +34068,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesRemoveResourcePoliciesRequest} params.resource Request body data + * @param {().InstancesRemoveResourcePoliciesRequest} params.requestBody 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 @@ -34216,7 +34224,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesResumeRequest} params.resource Request body data + * @param {().InstancesResumeRequest} params.requestBody 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 @@ -34457,7 +34465,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().ZoneSetPolicyRequest} params.resource Request body data + * @param {().ZoneSetPolicyRequest} params.requestBody 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 @@ -34533,7 +34541,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesSetLabelsRequest} params.resource Request body data + * @param {().InstancesSetLabelsRequest} params.requestBody 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 @@ -34611,7 +34619,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesSetMachineResourcesRequest} params.resource Request body data + * @param {().InstancesSetMachineResourcesRequest} params.requestBody 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 @@ -34689,7 +34697,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesSetMachineTypeRequest} params.resource Request body data + * @param {().InstancesSetMachineTypeRequest} params.requestBody 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 @@ -34767,7 +34775,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().Metadata} params.resource Request body data + * @param {().Metadata} params.requestBody 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 @@ -34845,7 +34853,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesSetMinCpuPlatformRequest} params.resource Request body data + * @param {().InstancesSetMinCpuPlatformRequest} params.requestBody 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 @@ -34923,7 +34931,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesSetNameRequest} params.resource Request body data + * @param {().InstancesSetNameRequest} params.requestBody 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 @@ -35001,7 +35009,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().Scheduling} params.resource Request body data + * @param {().Scheduling} params.requestBody 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 @@ -35079,7 +35087,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesSetServiceAccountRequest} params.resource Request body data + * @param {().InstancesSetServiceAccountRequest} params.requestBody 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 @@ -35157,7 +35165,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().ShieldedInstanceIntegrityPolicy} params.resource Request body data + * @param {().ShieldedInstanceIntegrityPolicy} params.requestBody 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 @@ -35237,7 +35245,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().ShieldedVmIntegrityPolicy} params.resource Request body data + * @param {().ShieldedVmIntegrityPolicy} params.requestBody 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 @@ -35317,7 +35325,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().Tags} params.resource Request body data + * @param {().Tags} params.requestBody 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 @@ -35549,7 +35557,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesStartWithEncryptionKeyRequest} params.resource Request body data + * @param {().InstancesStartWithEncryptionKeyRequest} params.requestBody 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 @@ -35783,7 +35791,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -35866,7 +35874,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().AccessConfig} params.resource Request body data + * @param {().AccessConfig} params.requestBody 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 @@ -35944,7 +35952,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().DisplayDevice} params.resource Request body data + * @param {().DisplayDevice} params.requestBody 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 @@ -36023,7 +36031,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().NetworkInterface} params.resource Request body data + * @param {().NetworkInterface} params.requestBody 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 @@ -36103,7 +36111,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().ShieldedInstanceConfig} params.resource Request body data + * @param {().ShieldedInstanceConfig} params.requestBody 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 @@ -36183,7 +36191,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().ShieldedVmConfig} params.resource Request body data + * @param {().ShieldedVmConfig} params.requestBody 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 @@ -37751,7 +37759,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InstanceTemplate} params.resource Request body data + * @param {().InstanceTemplate} params.requestBody 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 @@ -37907,7 +37915,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetPolicyRequest} params.resource Request body data + * @param {().GlobalSetPolicyRequest} params.requestBody 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 @@ -37981,7 +37989,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -38543,7 +38551,7 @@ export namespace compute_alpha { * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {boolean=} params.validateOnly If true, the request will not be committed. - * @param {().InterconnectAttachment} params.resource Request body data + * @param {().InterconnectAttachment} params.requestBody 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 @@ -38707,7 +38715,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InterconnectAttachment} params.resource Request body data + * @param {().InterconnectAttachment} params.requestBody 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 @@ -38784,7 +38792,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetPolicyRequest} params.resource Request body data + * @param {().RegionSetPolicyRequest} params.requestBody 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 @@ -38860,7 +38868,7 @@ export namespace compute_alpha { * @param {string} params.region The region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetLabelsRequest} params.resource Request body data + * @param {().RegionSetLabelsRequest} params.requestBody 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 @@ -38937,7 +38945,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -39447,7 +39455,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -39911,7 +39919,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Interconnect} params.resource Request body data + * @param {().Interconnect} params.requestBody 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 @@ -40064,7 +40072,7 @@ export namespace compute_alpha { * @param {string} params.interconnect Name of the interconnect to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Interconnect} params.resource Request body data + * @param {().Interconnect} params.requestBody 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 @@ -40140,7 +40148,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetPolicyRequest} params.resource Request body data + * @param {().GlobalSetPolicyRequest} params.requestBody 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 @@ -40214,7 +40222,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetLabelsRequest} params.resource Request body data + * @param {().GlobalSetLabelsRequest} params.requestBody 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 @@ -40290,7 +40298,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -40735,7 +40743,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetPolicyRequest} params.resource Request body data + * @param {().GlobalSetPolicyRequest} params.requestBody 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 @@ -40809,7 +40817,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -41195,7 +41203,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().License} params.resource Request body data + * @param {().License} params.requestBody 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 @@ -41347,7 +41355,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetPolicyRequest} params.resource Request body data + * @param {().GlobalSetPolicyRequest} params.requestBody 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 @@ -41421,7 +41429,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -41878,7 +41886,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string=} params.sourceInstance Required. Source instance that is used to create the machine image from. - * @param {().MachineImage} params.resource Request body data + * @param {().MachineImage} params.requestBody 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 @@ -42030,7 +42038,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetPolicyRequest} params.resource Request body data + * @param {().GlobalSetPolicyRequest} params.requestBody 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 @@ -42104,7 +42112,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -42758,7 +42766,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. - * @param {().NetworkEndpointGroupsAttachEndpointsRequest} params.resource Request body data + * @param {().NetworkEndpointGroupsAttachEndpointsRequest} params.requestBody 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 @@ -42915,7 +42923,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. - * @param {().NetworkEndpointGroupsDetachEndpointsRequest} params.resource Request body data + * @param {().NetworkEndpointGroupsDetachEndpointsRequest} params.requestBody 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 @@ -43072,7 +43080,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where you want to create the network endpoint group. It should comply with RFC1035. - * @param {().NetworkEndpointGroup} params.resource Request body data + * @param {().NetworkEndpointGroup} params.requestBody 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 @@ -43234,7 +43242,7 @@ export namespace compute_alpha { * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. - * @param {().NetworkEndpointGroupsListEndpointsRequest} params.resource Request body data + * @param {().NetworkEndpointGroupsListEndpointsRequest} params.requestBody 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 @@ -43334,7 +43342,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -43676,7 +43684,7 @@ export namespace compute_alpha { * @param {string} params.network Name of the network resource to add peering to. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().NetworksAddPeeringRequest} params.resource Request body data + * @param {().NetworksAddPeeringRequest} params.requestBody 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 @@ -43991,7 +43999,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Network} params.resource Request body data + * @param {().Network} params.requestBody 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 @@ -44397,7 +44405,7 @@ export namespace compute_alpha { * @param {string} params.network Name of the network to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Network} params.resource Request body data + * @param {().Network} params.requestBody 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 @@ -44473,7 +44481,7 @@ export namespace compute_alpha { * @param {string} params.network Name of the network resource to remove peering from. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().NetworksRemovePeeringRequest} params.resource Request body data + * @param {().NetworksRemovePeeringRequest} params.requestBody 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 @@ -44625,7 +44633,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -44706,7 +44714,7 @@ export namespace compute_alpha { * @param {string} params.network Name of the network resource which the updated peering is belonging to. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().NetworksUpdatePeeringRequest} params.resource Request body data + * @param {().NetworksUpdatePeeringRequest} params.requestBody 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 @@ -45161,7 +45169,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().NodeGroupsAddNodesRequest} params.resource Request body data + * @param {().NodeGroupsAddNodesRequest} params.requestBody 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 @@ -45398,7 +45406,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().NodeGroupsDeleteNodesRequest} params.resource Request body data + * @param {().NodeGroupsDeleteNodesRequest} params.requestBody 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 @@ -45626,7 +45634,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().NodeGroup} params.resource Request body data + * @param {().NodeGroup} params.requestBody 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 @@ -45862,7 +45870,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().NodeGroupsSetAutoscalingPolicyRequest} params.resource Request body data + * @param {().NodeGroupsSetAutoscalingPolicyRequest} params.requestBody 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 @@ -45941,7 +45949,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().ZoneSetPolicyRequest} params.resource Request body data + * @param {().ZoneSetPolicyRequest} params.requestBody 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 @@ -46017,7 +46025,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().NodeGroupsSetNodeTemplateRequest} params.resource Request body data + * @param {().NodeGroupsSetNodeTemplateRequest} params.requestBody 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 @@ -46094,7 +46102,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -46853,7 +46861,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().NodeTemplate} params.resource Request body data + * @param {().NodeTemplate} params.requestBody 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 @@ -47009,7 +47017,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetPolicyRequest} params.resource Request body data + * @param {().RegionSetPolicyRequest} params.requestBody 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 @@ -47084,7 +47092,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -47694,7 +47702,7 @@ export namespace compute_alpha { * @param {boolean=} params.replaceExistingAssociation Indicates whether or not to replace it if an association of the attachment already exists. This is false by default, in which case an error will be returned if an assocation already exists. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.securityPolicy Name of the security policy to update. - * @param {().SecurityPolicyAssociation} params.resource Request body data + * @param {().SecurityPolicyAssociation} params.requestBody 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 @@ -47770,7 +47778,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.securityPolicy Name of the security policy to update. - * @param {().SecurityPolicyRule} params.resource Request body data + * @param {().SecurityPolicyRule} params.requestBody 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 @@ -48228,7 +48236,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string=} params.parentId Parent ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().SecurityPolicy} params.resource Request body data + * @param {().SecurityPolicy} params.requestBody 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 @@ -48558,7 +48566,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.securityPolicy Name of the security policy to update. - * @param {().SecurityPolicy} params.resource Request body data + * @param {().SecurityPolicy} params.requestBody 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 @@ -48635,7 +48643,7 @@ export namespace compute_alpha { * @param {integer=} params.priority The priority of the rule to patch. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.securityPolicy Name of the security policy to update. - * @param {().SecurityPolicyRule} params.resource Request body data + * @param {().SecurityPolicyRule} params.requestBody 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 @@ -49405,7 +49413,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().PacketMirroring} params.resource Request body data + * @param {().PacketMirroring} params.requestBody 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 @@ -49562,7 +49570,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().PacketMirroring} params.resource Request body data + * @param {().PacketMirroring} params.requestBody 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 @@ -49639,7 +49647,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -49984,7 +49992,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ProjectsDisableXpnResourceRequest} params.resource Request body data + * @param {().ProjectsDisableXpnResourceRequest} params.requestBody 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 @@ -50133,7 +50141,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ProjectsEnableXpnResourceRequest} params.resource Request body data + * @param {().ProjectsEnableXpnResourceRequest} params.requestBody 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 @@ -50434,7 +50442,7 @@ export namespace compute_alpha { * @param {string=} params.order_by Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {().ProjectsListXpnHostsRequest} params.resource Request body data + * @param {().ProjectsListXpnHostsRequest} params.requestBody 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 @@ -50509,7 +50517,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().DiskMoveRequest} params.resource Request body data + * @param {().DiskMoveRequest} params.requestBody 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 @@ -50584,7 +50592,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InstanceMoveRequest} params.resource Request body data + * @param {().InstanceMoveRequest} params.requestBody 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 @@ -50659,7 +50667,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Metadata} params.resource Request body data + * @param {().Metadata} params.requestBody 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 @@ -50737,7 +50745,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ProjectsSetDefaultNetworkTierRequest} params.resource Request body data + * @param {().ProjectsSetDefaultNetworkTierRequest} params.requestBody 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 @@ -50815,7 +50823,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ProjectsSetDefaultServiceAccountRequest} params.resource Request body data + * @param {().ProjectsSetDefaultServiceAccountRequest} params.requestBody 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 @@ -50893,7 +50901,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().UsageExportLocation} params.resource Request body data + * @param {().UsageExportLocation} params.requestBody 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 @@ -51415,7 +51423,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().PublicAdvertisedPrefix} params.resource Request body data + * @param {().PublicAdvertisedPrefix} params.requestBody 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 @@ -51577,7 +51585,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to patch. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().PublicAdvertisedPrefix} params.resource Request body data + * @param {().PublicAdvertisedPrefix} params.requestBody 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 @@ -52016,7 +52024,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region of this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().PublicDelegatedPrefix} params.resource Request body data + * @param {().PublicDelegatedPrefix} params.requestBody 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 @@ -52180,7 +52188,7 @@ export namespace compute_alpha { * @param {string} params.publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to patch. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().PublicDelegatedPrefix} params.resource Request body data + * @param {().PublicDelegatedPrefix} params.requestBody 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 @@ -52576,7 +52584,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Autoscaler} params.resource Request body data + * @param {().Autoscaler} params.requestBody 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 @@ -52735,7 +52743,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Autoscaler} params.resource Request body data + * @param {().Autoscaler} params.requestBody 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 @@ -52812,7 +52820,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -52894,7 +52902,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Autoscaler} params.resource Request body data + * @param {().Autoscaler} params.requestBody 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 @@ -53316,7 +53324,7 @@ export namespace compute_alpha { * @param {string} params.backendService Name of the BackendService resource for which to get health. * @param {string} params.project * @param {string} params.region Name of the region scoping this request. - * @param {().ResourceGroupReference} params.resource Request body data + * @param {().ResourceGroupReference} params.requestBody 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 @@ -53400,7 +53408,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendService} params.resource Request body data + * @param {().BackendService} params.requestBody 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 @@ -53557,7 +53565,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendService} params.resource Request body data + * @param {().BackendService} params.requestBody 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 @@ -53634,7 +53642,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -53716,7 +53724,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendService} params.resource Request body data + * @param {().BackendService} params.requestBody 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 @@ -54168,7 +54176,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Commitment} params.resource Request body data + * @param {().Commitment} params.requestBody 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 @@ -54324,7 +54332,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -54406,7 +54414,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionCommitmentsUpdateReservationsRequest} params.resource Request body data + * @param {().RegionCommitmentsUpdateReservationsRequest} params.requestBody 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 @@ -54651,7 +54659,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionDisksAddResourcePoliciesRequest} params.resource Request body data + * @param {().RegionDisksAddResourcePoliciesRequest} params.requestBody 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 @@ -54730,7 +54738,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Snapshot} params.resource Request body data + * @param {().Snapshot} params.requestBody 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 @@ -55033,7 +55041,7 @@ export namespace compute_alpha { * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string=} params.sourceImage Optional. Source image to restore onto a disk. - * @param {().Disk} params.resource Request body data + * @param {().Disk} params.requestBody 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 @@ -55187,7 +55195,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionDisksRemoveResourcePoliciesRequest} params.resource Request body data + * @param {().RegionDisksRemoveResourcePoliciesRequest} params.requestBody 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 @@ -55267,7 +55275,7 @@ export namespace compute_alpha { * @param {string} params.project The project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionDisksResizeRequest} params.resource Request body data + * @param {().RegionDisksResizeRequest} params.requestBody 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 @@ -55344,7 +55352,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetPolicyRequest} params.resource Request body data + * @param {().RegionSetPolicyRequest} params.requestBody 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 @@ -55420,7 +55428,7 @@ export namespace compute_alpha { * @param {string} params.region The region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetLabelsRequest} params.resource Request body data + * @param {().RegionSetLabelsRequest} params.requestBody 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 @@ -55497,7 +55505,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -56278,7 +56286,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HealthCheck} params.resource Request body data + * @param {().HealthCheck} params.requestBody 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 @@ -56435,7 +56443,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HealthCheck} params.resource Request body data + * @param {().HealthCheck} params.requestBody 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 @@ -56512,7 +56520,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -56594,7 +56602,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HealthCheck} params.resource Request body data + * @param {().HealthCheck} params.requestBody 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 @@ -57016,7 +57024,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HealthCheckService} params.resource Request body data + * @param {().HealthCheckService} params.requestBody 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 @@ -57174,7 +57182,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -57390,7 +57398,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersAbandonInstancesRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersAbandonInstancesRequest} params.requestBody 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 @@ -57467,7 +57475,7 @@ export namespace compute_alpha { * @param {string} params.instanceGroupManager The name of the managed instance group, should conform to RFC1035. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request, should conform to RFC1035. - * @param {().RegionInstanceGroupManagersApplyUpdatesRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersApplyUpdatesRequest} params.requestBody 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 @@ -57547,7 +57555,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region where the managed instance group is located. It should conform to RFC1035. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersCreateInstancesRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersCreateInstancesRequest} params.requestBody 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 @@ -57702,7 +57710,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersDeleteInstancesRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersDeleteInstancesRequest} params.requestBody 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 @@ -57779,7 +57787,7 @@ export namespace compute_alpha { * @param {string} params.instanceGroupManager The name of the managed instance group. It should conform to RFC1035. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request, should conform to RFC1035. - * @param {().RegionInstanceGroupManagerDeleteInstanceConfigReq} params.resource Request body data + * @param {().RegionInstanceGroupManagerDeleteInstanceConfigReq} params.requestBody 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 @@ -57936,7 +57944,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InstanceGroupManager} params.resource Request body data + * @param {().InstanceGroupManager} params.requestBody 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 @@ -58415,7 +58423,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InstanceGroupManager} params.resource Request body data + * @param {().InstanceGroupManager} params.requestBody 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 @@ -58493,7 +58501,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request, should conform to RFC1035. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagerPatchInstanceConfigReq} params.resource Request body data + * @param {().RegionInstanceGroupManagerPatchInstanceConfigReq} params.requestBody 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 @@ -58573,7 +58581,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersRecreateRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersRecreateRequest} params.requestBody 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 @@ -58729,7 +58737,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersSetAutoHealingRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersSetAutoHealingRequest} params.requestBody 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 @@ -58809,7 +58817,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersSetTemplateRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersSetTemplateRequest} params.requestBody 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 @@ -58887,7 +58895,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersSetTargetPoolsRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersSetTargetPoolsRequest} params.requestBody 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 @@ -58964,7 +58972,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -59046,7 +59054,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InstanceGroupManager} params.resource Request body data + * @param {().InstanceGroupManager} params.requestBody 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 @@ -59124,7 +59132,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request, should conform to RFC1035. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagerUpdateInstanceConfigReq} params.resource Request body data + * @param {().RegionInstanceGroupManagerUpdateInstanceConfigReq} params.requestBody 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 @@ -60003,7 +60011,7 @@ export namespace compute_alpha { * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. - * @param {().RegionInstanceGroupsListInstancesRequest} params.resource Request body data + * @param {().RegionInstanceGroupsListInstancesRequest} params.requestBody 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 @@ -60090,7 +60098,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupsSetNamedPortsRequest} params.resource Request body data + * @param {().RegionInstanceGroupsSetNamedPortsRequest} params.requestBody 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 @@ -60167,7 +60175,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -60558,7 +60566,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().NotificationEndpoint} params.resource Request body data + * @param {().NotificationEndpoint} params.requestBody 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 @@ -60716,7 +60724,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -61686,7 +61694,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().SslCertificate} params.resource Request body data + * @param {().SslCertificate} params.requestBody 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 @@ -61842,7 +61850,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -62210,7 +62218,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetHttpProxy} params.resource Request body data + * @param {().TargetHttpProxy} params.requestBody 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 @@ -62367,7 +62375,7 @@ export namespace compute_alpha { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpProxy Name of the TargetHttpProxy to set a URL map for. - * @param {().UrlMapReference} params.resource Request body data + * @param {().UrlMapReference} params.requestBody 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 @@ -62444,7 +62452,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -62841,7 +62849,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetHttpsProxy} params.resource Request body data + * @param {().TargetHttpsProxy} params.requestBody 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 @@ -63000,7 +63008,7 @@ export namespace compute_alpha { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpsProxy Name of the TargetHttpsProxy resource to set an SslCertificates resource for. - * @param {().RegionTargetHttpsProxiesSetSslCertificatesRequest} params.resource Request body data + * @param {().RegionTargetHttpsProxiesSetSslCertificatesRequest} params.requestBody 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 @@ -63078,7 +63086,7 @@ export namespace compute_alpha { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpsProxy Name of the TargetHttpsProxy to set a URL map for. - * @param {().UrlMapReference} params.resource Request body data + * @param {().UrlMapReference} params.requestBody 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 @@ -63155,7 +63163,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -63579,7 +63587,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. - * @param {().UrlMap} params.resource Request body data + * @param {().UrlMap} params.requestBody 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 @@ -63657,7 +63665,7 @@ export namespace compute_alpha { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. * @param {string} params.urlMap Name of the UrlMap scoping this request. - * @param {().CacheInvalidationRule} params.resource Request body data + * @param {().CacheInvalidationRule} params.requestBody 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 @@ -63814,7 +63822,7 @@ export namespace compute_alpha { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. * @param {string} params.urlMap Name of the UrlMap resource to patch. - * @param {().UrlMap} params.resource Request body data + * @param {().UrlMap} params.requestBody 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 @@ -63891,7 +63899,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -63973,7 +63981,7 @@ export namespace compute_alpha { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. * @param {string} params.urlMap Name of the UrlMap resource to update. - * @param {().UrlMap} params.resource Request body data + * @param {().UrlMap} params.requestBody 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 @@ -64050,7 +64058,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string} params.urlMap Name of the UrlMap resource to be validated as. - * @param {().RegionUrlMapsValidateRequest} params.resource Request body data + * @param {().RegionUrlMapsValidateRequest} params.requestBody 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 @@ -64689,7 +64697,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone Name of the zone for this request. - * @param {().Reservation} params.resource Request body data + * @param {().Reservation} params.requestBody 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 @@ -64846,7 +64854,7 @@ export namespace compute_alpha { * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.reservation Name of the reservation to update. * @param {string} params.zone Name of the zone for this request. - * @param {().ReservationsResizeRequest} params.resource Request body data + * @param {().ReservationsResizeRequest} params.requestBody 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 @@ -64923,7 +64931,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().ZoneSetPolicyRequest} params.resource Request body data + * @param {().ZoneSetPolicyRequest} params.requestBody 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 @@ -64998,7 +65006,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -65633,7 +65641,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ResourcePolicy} params.resource Request body data + * @param {().ResourcePolicy} params.requestBody 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 @@ -65789,7 +65797,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetPolicyRequest} params.resource Request body data + * @param {().RegionSetPolicyRequest} params.requestBody 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 @@ -65864,7 +65872,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -66554,7 +66562,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Router} params.resource Request body data + * @param {().Router} params.requestBody 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 @@ -66709,7 +66717,7 @@ export namespace compute_alpha { * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.router Name of the Router resource to patch. - * @param {().Router} params.resource Request body data + * @param {().Router} params.requestBody 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 @@ -66785,7 +66793,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string} params.router Name of the Router resource to query. - * @param {().Router} params.resource Request body data + * @param {().Router} params.requestBody 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 @@ -66865,7 +66873,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -66947,7 +66955,7 @@ export namespace compute_alpha { * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.router Name of the Router resource to update. - * @param {().Router} params.resource Request body data + * @param {().Router} params.requestBody 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 @@ -67467,7 +67475,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Route} params.resource Request body data + * @param {().Route} params.requestBody 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 @@ -67617,7 +67625,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -67808,7 +67816,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.securityPolicy Name of the security policy to update. * @param {boolean=} params.validateOnly If true, the request will not be committed. - * @param {().SecurityPolicyRule} params.resource Request body data + * @param {().SecurityPolicyRule} params.requestBody 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 @@ -68112,7 +68120,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {boolean=} params.validateOnly If true, the request will not be committed. - * @param {().SecurityPolicy} params.resource Request body data + * @param {().SecurityPolicy} params.requestBody 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 @@ -68371,7 +68379,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.securityPolicy Name of the security policy to update. - * @param {().SecurityPolicy} params.resource Request body data + * @param {().SecurityPolicy} params.requestBody 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 @@ -68449,7 +68457,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.securityPolicy Name of the security policy to update. * @param {boolean=} params.validateOnly If true, the request will not be committed. - * @param {().SecurityPolicyRule} params.resource Request body data + * @param {().SecurityPolicyRule} params.requestBody 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 @@ -68601,7 +68609,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetLabelsRequest} params.resource Request body data + * @param {().GlobalSetLabelsRequest} params.requestBody 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 @@ -68677,7 +68685,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -69340,7 +69348,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetPolicyRequest} params.resource Request body data + * @param {().GlobalSetPolicyRequest} params.requestBody 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 @@ -69414,7 +69422,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetLabelsRequest} params.resource Request body data + * @param {().GlobalSetLabelsRequest} params.requestBody 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 @@ -69490,7 +69498,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -69960,7 +69968,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().SslCertificate} params.resource Request body data + * @param {().SslCertificate} params.requestBody 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 @@ -70114,7 +70122,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -70486,7 +70494,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().SslPolicy} params.resource Request body data + * @param {().SslPolicy} params.requestBody 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 @@ -70733,7 +70741,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. - * @param {().SslPolicy} params.resource Request body data + * @param {().SslPolicy} params.requestBody 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 @@ -70809,7 +70817,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -71215,7 +71223,7 @@ export namespace compute_alpha { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.subnetwork Name of the Subnetwork resource to update. - * @param {().SubnetworksExpandIpCidrRangeRequest} params.resource Request body data + * @param {().SubnetworksExpandIpCidrRangeRequest} params.requestBody 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 @@ -71442,7 +71450,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Subnetwork} params.resource Request body data + * @param {().Subnetwork} params.requestBody 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 @@ -71686,7 +71694,7 @@ export namespace compute_alpha { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.subnetwork Name of the Subnetwork resource to patch. - * @param {().Subnetwork} params.resource Request body data + * @param {().Subnetwork} params.requestBody 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 @@ -71763,7 +71771,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetPolicyRequest} params.resource Request body data + * @param {().RegionSetPolicyRequest} params.requestBody 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 @@ -71839,7 +71847,7 @@ export namespace compute_alpha { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.subnetwork Name of the Subnetwork resource. - * @param {().SubnetworksSetPrivateIpGoogleAccessRequest} params.resource Request body data + * @param {().SubnetworksSetPrivateIpGoogleAccessRequest} params.requestBody 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 @@ -71918,7 +71926,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -72564,7 +72572,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetHttpProxy} params.resource Request body data + * @param {().TargetHttpProxy} params.requestBody 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 @@ -72719,7 +72727,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpProxy Name of the TargetHttpProxy to set a URL map for. - * @param {().UrlMapReference} params.resource Request body data + * @param {().UrlMapReference} params.requestBody 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 @@ -72795,7 +72803,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -73280,7 +73288,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetHttpsProxy} params.resource Request body data + * @param {().TargetHttpsProxy} params.requestBody 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 @@ -73437,7 +73445,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpsProxy Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should conform to RFC1035. - * @param {().TargetHttpsProxiesSetQuicOverrideRequest} params.resource Request body data + * @param {().TargetHttpsProxiesSetQuicOverrideRequest} params.requestBody 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 @@ -73514,7 +73522,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpsProxy Name of the TargetHttpsProxy resource to set an SslCertificates resource for. - * @param {().TargetHttpsProxiesSetSslCertificatesRequest} params.resource Request body data + * @param {().TargetHttpsProxiesSetSslCertificatesRequest} params.requestBody 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 @@ -73591,7 +73599,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpsProxy Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035. - * @param {().SslPolicyReference} params.resource Request body data + * @param {().SslPolicyReference} params.requestBody 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 @@ -73668,7 +73676,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpsProxy Name of the TargetHttpsProxy resource whose URL map is to be set. - * @param {().UrlMapReference} params.resource Request body data + * @param {().UrlMapReference} params.requestBody 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 @@ -73744,7 +73752,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -74307,7 +74315,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone Name of the zone scoping this request. - * @param {().TargetInstance} params.resource Request body data + * @param {().TargetInstance} params.requestBody 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 @@ -74463,7 +74471,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -74707,7 +74715,7 @@ export namespace compute_alpha { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetPool Name of the target pool to add a health check to. - * @param {().TargetPoolsAddHealthCheckRequest} params.resource Request body data + * @param {().TargetPoolsAddHealthCheckRequest} params.requestBody 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 @@ -74785,7 +74793,7 @@ export namespace compute_alpha { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetPool Name of the TargetPool resource to add instances to. - * @param {().TargetPoolsAddInstanceRequest} params.resource Request body data + * @param {().TargetPoolsAddInstanceRequest} params.requestBody 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 @@ -75096,7 +75104,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string} params.targetPool Name of the TargetPool resource to which the queried instance belongs. - * @param {().InstanceReference} params.resource Request body data + * @param {().InstanceReference} params.requestBody 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 @@ -75177,7 +75185,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetPool} params.resource Request body data + * @param {().TargetPool} params.requestBody 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 @@ -75333,7 +75341,7 @@ export namespace compute_alpha { * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetPool Name of the target pool to remove health checks from. - * @param {().TargetPoolsRemoveHealthCheckRequest} params.resource Request body data + * @param {().TargetPoolsRemoveHealthCheckRequest} params.requestBody 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 @@ -75411,7 +75419,7 @@ export namespace compute_alpha { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetPool Name of the TargetPool resource to remove instances from. - * @param {().TargetPoolsRemoveInstanceRequest} params.resource Request body data + * @param {().TargetPoolsRemoveInstanceRequest} params.requestBody 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 @@ -75490,7 +75498,7 @@ export namespace compute_alpha { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetPool Name of the TargetPool resource to set a backup pool for. - * @param {().TargetReference} params.resource Request body data + * @param {().TargetReference} params.requestBody 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 @@ -75567,7 +75575,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -76132,7 +76140,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetSslProxy} params.resource Request body data + * @param {().TargetSslProxy} params.requestBody 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 @@ -76287,7 +76295,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetSslProxy Name of the TargetSslProxy resource whose BackendService resource is to be set. - * @param {().TargetSslProxiesSetBackendServiceRequest} params.resource Request body data + * @param {().TargetSslProxiesSetBackendServiceRequest} params.requestBody 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 @@ -76364,7 +76372,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetSslProxy Name of the TargetSslProxy resource whose ProxyHeader is to be set. - * @param {().TargetSslProxiesSetProxyHeaderRequest} params.resource Request body data + * @param {().TargetSslProxiesSetProxyHeaderRequest} params.requestBody 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 @@ -76441,7 +76449,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetSslProxy Name of the TargetSslProxy resource whose SslCertificate resource is to be set. - * @param {().TargetSslProxiesSetSslCertificatesRequest} params.resource Request body data + * @param {().TargetSslProxiesSetSslCertificatesRequest} params.requestBody 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 @@ -76518,7 +76526,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetSslProxy Name of the TargetSslProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035. - * @param {().SslPolicyReference} params.resource Request body data + * @param {().SslPolicyReference} params.requestBody 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 @@ -76594,7 +76602,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -77039,7 +77047,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetTcpProxy} params.resource Request body data + * @param {().TargetTcpProxy} params.requestBody 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 @@ -77194,7 +77202,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetTcpProxy Name of the TargetTcpProxy resource whose BackendService resource is to be set. - * @param {().TargetTcpProxiesSetBackendServiceRequest} params.resource Request body data + * @param {().TargetTcpProxiesSetBackendServiceRequest} params.requestBody 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 @@ -77271,7 +77279,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetTcpProxy Name of the TargetTcpProxy resource whose ProxyHeader is to be set. - * @param {().TargetTcpProxiesSetProxyHeaderRequest} params.resource Request body data + * @param {().TargetTcpProxiesSetProxyHeaderRequest} params.requestBody 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 @@ -77347,7 +77355,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -77832,7 +77840,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetVpnGateway} params.resource Request body data + * @param {().TargetVpnGateway} params.requestBody 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 @@ -77991,7 +77999,7 @@ export namespace compute_alpha { * @param {string} params.region The region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetLabelsRequest} params.resource Request body data + * @param {().RegionSetLabelsRequest} params.requestBody 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 @@ -78068,7 +78076,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -78567,7 +78575,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().UrlMap} params.resource Request body data + * @param {().UrlMap} params.requestBody 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 @@ -78642,7 +78650,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.urlMap Name of the UrlMap scoping this request. - * @param {().CacheInvalidationRule} params.resource Request body data + * @param {().CacheInvalidationRule} params.requestBody 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 @@ -78795,7 +78803,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.urlMap Name of the UrlMap resource to patch. - * @param {().UrlMap} params.resource Request body data + * @param {().UrlMap} params.requestBody 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 @@ -78870,7 +78878,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -78951,7 +78959,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.urlMap Name of the UrlMap resource to update. - * @param {().UrlMap} params.resource Request body data + * @param {().UrlMap} params.requestBody 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 @@ -79026,7 +79034,7 @@ export namespace compute_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.urlMap Name of the UrlMap resource to be validated as. - * @param {().UrlMapsValidateRequest} params.resource Request body data + * @param {().UrlMapsValidateRequest} params.requestBody 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 @@ -79656,7 +79664,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().VpnGateway} params.resource Request body data + * @param {().VpnGateway} params.requestBody 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 @@ -79812,7 +79820,7 @@ export namespace compute_alpha { * @param {string} params.region The region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetLabelsRequest} params.resource Request body data + * @param {().RegionSetLabelsRequest} params.requestBody 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 @@ -79889,7 +79897,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -80413,7 +80421,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().VpnTunnel} params.resource Request body data + * @param {().VpnTunnel} params.requestBody 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 @@ -80569,7 +80577,7 @@ export namespace compute_alpha { * @param {string} params.region The region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetLabelsRequest} params.resource Request body data + * @param {().RegionSetLabelsRequest} params.requestBody 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 @@ -80646,7 +80654,7 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 diff --git a/src/apis/compute/beta.ts b/src/apis/compute/beta.ts index 3624b39130f..203f4e17921 100644 --- a/src/apis/compute/beta.ts +++ b/src/apis/compute/beta.ts @@ -636,7 +636,7 @@ export namespace compute_beta { */ instanceProperties?: Schema$AllocationSpecificSKUAllocationReservedInstanceProperties; /** - * [OutputOnly] Indicates how many instances are in use. + * [Output Only] Indicates how many instances are in use. */ inUseCount?: string | null; } @@ -824,7 +824,7 @@ export namespace compute_beta { */ selfLink?: string | null; /** - * [Output Only] The status of the autoscaler configuration. + * [Output Only] The status of the autoscaler configuration. Current set of possible values: PENDING: Autoscaler backend hasn't read new/updated configuration DELETING: Configuration is being deleted ACTIVE: Configuration is acknowledged to be effective. Some warnings might or might not be present in the status_details field. ERROR: Configuration has errors. Actionable for users. Details are present in the status_details field. New values might be added in the future. */ status?: string | null; /** @@ -923,7 +923,7 @@ export namespace compute_beta { */ message?: string | null; /** - * The type of error returned. + * The type of error, warning or notice returned. Current set of possible values: ALL_INSTANCES_UNHEALTHY (WARNING): All instances in the instance group are unhealthy (not in RUNNING state). BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): There is no backend service attached to the instance group. CAPPED_AT_MAX_NUM_REPLICAS (WARNING): Autoscaler recommends size bigger than maxNumReplicas. CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom metric samples are not exported often enough to be a credible base for autoscaling. CUSTOM_METRIC_INVALID (ERROR): The custom metric that was specified does not exist or does not have the necessary labels. MIN_EQUALS_MAX (WARNING): The minNumReplicas is equal to maxNumReplicas. This means the autoscaler cannot add or remove instances from the instance group. MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not receive any data from the custom metric configured for autoscaling. MISSING_LOAD_BALANCING_DATA_POINTS (WARNING): The autoscaler is configured to scale based on a load balancing signal but the instance group has not received any requests from the load balancer. MODE_OFF (WARNING): Autoscaling is turned off. The number of instances in the group won't change automatically. The autoscaling configuration is preserved. MODE_ONLY_UP (WARNING): Autoscaling is in the "Autoscale only up" mode. Instances in the group will be only added. MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The instance group cannot be autoscaled because it has more than one backend service attached to it. NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): Exceeded quota for necessary resources, such as CPU, number of instances and so on. REGION_RESOURCE_STOCKOUT (ERROR): Showed only for regional autoscalers: there is a resource stockout in the chosen region. SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be scaled does not exist. UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): Autoscaling does not work with an HTTP/S load balancer that has been configured for maxRate. ZONE_RESOURCE_STOCKOUT (ERROR): For zonal autoscalers: there is a resource stockout in the chosen zone. For regional autoscalers: in at least one of the zones you're using there is a resource stockout. New values might be added in the future. Some of the values might not be available in all API versions. */ type?: string | null; } @@ -5971,7 +5971,7 @@ export namespace compute_beta { port?: number | null; } /** - * Represents a collection of network endpoints. + * Represents a collection of network endpoints. For more information read Setting up network endpoint groups in load balancing. (== resource_for v1.networkEndpointGroups ==) (== resource_for beta.networkEndpointGroups ==) */ export interface Schema$NetworkEndpointGroup { /** @@ -6320,7 +6320,7 @@ export namespace compute_beta { networkPeering?: Schema$NetworkPeering; } /** - * Represent a sole-tenant Node Group resource. A sole-tenant node is a physical server that is dedicated to hosting VM instances only for your specific project. Use sole-tenant nodes to keep your instances physically separated from instances in other projects, or to group your instances together on the same host hardware. For more information, read Sole-tenant nodes. (== resource_for beta.nodeGroups ==) (== resource_for v1.nodeGroups ==) NextID: 15 + * Represent a sole-tenant Node Group resource. A sole-tenant node is a physical server that is dedicated to hosting VM instances only for your specific project. Use sole-tenant nodes to keep your instances physically separated from instances in other projects, or to group your instances together on the same host hardware. For more information, read Sole-tenant nodes. (== resource_for beta.nodeGroups ==) (== resource_for v1.nodeGroups ==) NextID: 16 */ export interface Schema$NodeGroup { /** @@ -7874,7 +7874,7 @@ export namespace compute_beta { */ export interface Schema$Reservation { /** - * [OutputOnly] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment. + * [Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment. */ commitment?: string | null; /** @@ -8688,7 +8688,7 @@ export namespace compute_beta { */ enable?: boolean | null; /** - * Specifies the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. + * Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This option can take one of the following values: - ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only for successful connections. - ALL: Export logs for all connections, successful and unsuccessful. */ filter?: string | null; } @@ -8797,11 +8797,11 @@ export namespace compute_beta { */ autoAllocatedNatIps?: string[] | null; /** - * A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", ?179.12.26.133?]. + * A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. */ drainAutoAllocatedNatIps?: string[] | null; /** - * A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", ?179.12.26.133?]. + * A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. */ drainUserAllocatedNatIps?: string[] | null; /** @@ -9098,7 +9098,7 @@ export namespace compute_beta { */ export interface Schema$ShieldedInstanceIdentity { /** - * An Endorsement Key (EK) issued to the Shielded Instance's vTPM. + * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM. */ encryptionKey?: Schema$ShieldedInstanceIdentityEntry; /** @@ -9106,7 +9106,7 @@ export namespace compute_beta { */ kind?: string | null; /** - * An Attestation Key (AK) issued to the Shielded Instance's vTPM. + * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM. */ signingKey?: Schema$ShieldedInstanceIdentityEntry; } @@ -9218,7 +9218,7 @@ export namespace compute_beta { */ description?: string | null; /** - * [Output Only] Size of the snapshot, specified in GB. + * [Output Only] Size of the source disk, specified in GB. */ diskSizeGb?: string | null; /** @@ -12627,7 +12627,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Address} params.resource Request body data + * @param {().Address} params.requestBody 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 @@ -12908,7 +12908,7 @@ export namespace compute_beta { * @param {string} params.region The region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetLabelsRequest} params.resource Request body data + * @param {().RegionSetLabelsRequest} params.requestBody 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 @@ -13045,7 +13045,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -13779,7 +13779,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone Name of the zone for this request. - * @param {().Autoscaler} params.resource Request body data + * @param {().Autoscaler} params.requestBody 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 @@ -14059,7 +14059,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone Name of the zone for this request. - * @param {().Autoscaler} params.resource Request body data + * @param {().Autoscaler} params.requestBody 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 @@ -14196,7 +14196,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -14336,7 +14336,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone Name of the zone for this request. - * @param {().Autoscaler} params.resource Request body data + * @param {().Autoscaler} params.requestBody 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 @@ -14631,7 +14631,7 @@ export namespace compute_beta { * @param {string} params.backendBucket Name of the BackendBucket resource to which the Signed URL Key should be added. The name should conform to RFC1035. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().SignedUrlKey} params.resource Request body data + * @param {().SignedUrlKey} params.requestBody 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 @@ -15095,7 +15095,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendBucket} params.resource Request body data + * @param {().BackendBucket} params.requestBody 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 @@ -15369,7 +15369,7 @@ export namespace compute_beta { * @param {string} params.backendBucket Name of the BackendBucket resource to patch. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendBucket} params.resource Request body data + * @param {().BackendBucket} params.requestBody 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 @@ -15504,7 +15504,7 @@ export namespace compute_beta { * @param {string} params.backendBucket Name of the BackendBucket resource to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendBucket} params.resource Request body data + * @param {().BackendBucket} params.requestBody 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 @@ -15773,7 +15773,7 @@ export namespace compute_beta { * @param {string} params.backendService Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().SignedUrlKey} params.resource Request body data + * @param {().SignedUrlKey} params.requestBody 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 @@ -16389,7 +16389,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.backendService Name of the BackendService resource to which the queried instance belongs. * @param {string} params.project - * @param {().ResourceGroupReference} params.resource Request body data + * @param {().ResourceGroupReference} params.requestBody 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 @@ -16526,7 +16526,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendService} params.resource Request body data + * @param {().BackendService} params.requestBody 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 @@ -16802,7 +16802,7 @@ export namespace compute_beta { * @param {string} params.backendService Name of the BackendService resource to patch. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendService} params.resource Request body data + * @param {().BackendService} params.requestBody 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 @@ -16937,7 +16937,7 @@ export namespace compute_beta { * @param {string} params.backendService Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().SecurityPolicyReference} params.resource Request body data + * @param {().SecurityPolicyReference} params.requestBody 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 @@ -17070,7 +17070,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -17209,7 +17209,7 @@ export namespace compute_beta { * @param {string} params.backendService Name of the BackendService resource to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendService} params.resource Request body data + * @param {().BackendService} params.requestBody 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 @@ -17574,7 +17574,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().DisksAddResourcePoliciesRequest} params.resource Request body data + * @param {().DisksAddResourcePoliciesRequest} params.requestBody 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 @@ -17855,7 +17855,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().Snapshot} params.resource Request body data + * @param {().Snapshot} params.requestBody 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 @@ -18326,7 +18326,7 @@ export namespace compute_beta { * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string=} params.sourceImage Optional. Source image to restore onto a disk. * @param {string} params.zone The name of the zone for this request. - * @param {().Disk} params.resource Request body data + * @param {().Disk} params.requestBody 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 @@ -18543,7 +18543,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().DisksRemoveResourcePoliciesRequest} params.resource Request body data + * @param {().DisksRemoveResourcePoliciesRequest} params.requestBody 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 @@ -18683,7 +18683,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().DisksResizeRequest} params.resource Request body data + * @param {().DisksResizeRequest} params.requestBody 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 @@ -18759,7 +18759,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().ZoneSetPolicyRequest} params.resource Request body data + * @param {().ZoneSetPolicyRequest} params.requestBody 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 @@ -18895,7 +18895,7 @@ export namespace compute_beta { * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().ZoneSetLabelsRequest} params.resource Request body data + * @param {().ZoneSetLabelsRequest} params.requestBody 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 @@ -19031,7 +19031,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -20123,7 +20123,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ExternalVpnGateway} params.resource Request body data + * @param {().ExternalVpnGateway} params.requestBody 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 @@ -20279,7 +20279,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetLabelsRequest} params.resource Request body data + * @param {().GlobalSetLabelsRequest} params.requestBody 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 @@ -20355,7 +20355,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -20877,7 +20877,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Firewall} params.resource Request body data + * @param {().Firewall} params.requestBody 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 @@ -21149,7 +21149,7 @@ export namespace compute_beta { * @param {string} params.firewall Name of the firewall rule to patch. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Firewall} params.resource Request body data + * @param {().Firewall} params.requestBody 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 @@ -21281,7 +21281,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -21420,7 +21420,7 @@ export namespace compute_beta { * @param {string} params.firewall Name of the firewall rule to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Firewall} params.resource Request body data + * @param {().Firewall} params.requestBody 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 @@ -22126,7 +22126,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ForwardingRule} params.resource Request body data + * @param {().ForwardingRule} params.requestBody 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 @@ -22349,7 +22349,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ForwardingRule} params.resource Request body data + * @param {().ForwardingRule} params.requestBody 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 @@ -22487,7 +22487,7 @@ export namespace compute_beta { * @param {string} params.region The region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetLabelsRequest} params.resource Request body data + * @param {().RegionSetLabelsRequest} params.requestBody 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 @@ -22625,7 +22625,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetReference} params.resource Request body data + * @param {().TargetReference} params.requestBody 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 @@ -22762,7 +22762,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -23400,7 +23400,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Address} params.resource Request body data + * @param {().Address} params.requestBody 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 @@ -23672,7 +23672,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetLabelsRequest} params.resource Request body data + * @param {().GlobalSetLabelsRequest} params.requestBody 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 @@ -23805,7 +23805,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -24331,7 +24331,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ForwardingRule} params.resource Request body data + * @param {().ForwardingRule} params.requestBody 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 @@ -24549,7 +24549,7 @@ export namespace compute_beta { * @param {string} params.forwardingRule Name of the ForwardingRule resource to patch. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ForwardingRule} params.resource Request body data + * @param {().ForwardingRule} params.requestBody 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 @@ -24682,7 +24682,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetLabelsRequest} params.resource Request body data + * @param {().GlobalSetLabelsRequest} params.requestBody 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 @@ -24816,7 +24816,7 @@ export namespace compute_beta { * @param {string} params.forwardingRule Name of the ForwardingRule resource in which target is to be set. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetReference} params.resource Request body data + * @param {().TargetReference} params.requestBody 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 @@ -24949,7 +24949,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -26240,7 +26240,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HealthCheck} params.resource Request body data + * @param {().HealthCheck} params.requestBody 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 @@ -26514,7 +26514,7 @@ export namespace compute_beta { * @param {string} params.healthCheck Name of the HealthCheck resource to patch. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HealthCheck} params.resource Request body data + * @param {().HealthCheck} params.requestBody 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 @@ -26647,7 +26647,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -26786,7 +26786,7 @@ export namespace compute_beta { * @param {string} params.healthCheck Name of the HealthCheck resource to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HealthCheck} params.resource Request body data + * @param {().HealthCheck} params.requestBody 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 @@ -27364,7 +27364,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HttpHealthCheck} params.resource Request body data + * @param {().HttpHealthCheck} params.requestBody 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 @@ -27640,7 +27640,7 @@ export namespace compute_beta { * @param {string} params.httpHealthCheck Name of the HttpHealthCheck resource to patch. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HttpHealthCheck} params.resource Request body data + * @param {().HttpHealthCheck} params.requestBody 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 @@ -27773,7 +27773,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -27912,7 +27912,7 @@ export namespace compute_beta { * @param {string} params.httpHealthCheck Name of the HttpHealthCheck resource to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HttpHealthCheck} params.resource Request body data + * @param {().HttpHealthCheck} params.requestBody 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 @@ -28463,7 +28463,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HttpsHealthCheck} params.resource Request body data + * @param {().HttpsHealthCheck} params.requestBody 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 @@ -28741,7 +28741,7 @@ export namespace compute_beta { * @param {string} params.httpsHealthCheck Name of the HttpsHealthCheck resource to patch. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HttpsHealthCheck} params.resource Request body data + * @param {().HttpsHealthCheck} params.requestBody 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 @@ -28874,7 +28874,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -29013,7 +29013,7 @@ export namespace compute_beta { * @param {string} params.httpsHealthCheck Name of the HttpsHealthCheck resource to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HttpsHealthCheck} params.resource Request body data + * @param {().HttpsHealthCheck} params.requestBody 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 @@ -29438,7 +29438,7 @@ export namespace compute_beta { * @param {string} params.image Image name. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().DeprecationStatus} params.resource Request body data + * @param {().DeprecationStatus} params.requestBody 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 @@ -29892,7 +29892,7 @@ export namespace compute_beta { * @param {boolean=} params.forceCreate Force image creation if true. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Image} params.resource Request body data + * @param {().Image} params.requestBody 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 @@ -30105,7 +30105,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetPolicyRequest} params.resource Request body data + * @param {().GlobalSetPolicyRequest} params.requestBody 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 @@ -30236,7 +30236,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetLabelsRequest} params.resource Request body data + * @param {().GlobalSetLabelsRequest} params.requestBody 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 @@ -30368,7 +30368,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -30725,7 +30725,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the managed instance group is located. - * @param {().InstanceGroupManagersAbandonInstancesRequest} params.resource Request body data + * @param {().InstanceGroupManagersAbandonInstancesRequest} params.requestBody 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 @@ -30952,7 +30952,7 @@ export namespace compute_beta { * @param {string} params.instanceGroupManager The name of the managed instance group, should conform to RFC1035. * @param {string} params.project Project ID for this request. * @param {string} params.zone The name of the zone where the managed instance group is located. Should conform to RFC1035. - * @param {().InstanceGroupManagersApplyUpdatesRequest} params.resource Request body data + * @param {().InstanceGroupManagersApplyUpdatesRequest} params.requestBody 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 @@ -31032,7 +31032,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the managed instance group is located. It should conform to RFC1035. - * @param {().InstanceGroupManagersCreateInstancesRequest} params.resource Request body data + * @param {().InstanceGroupManagersCreateInstancesRequest} params.requestBody 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 @@ -31303,7 +31303,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the managed instance group is located. - * @param {().InstanceGroupManagersDeleteInstancesRequest} params.resource Request body data + * @param {().InstanceGroupManagersDeleteInstancesRequest} params.requestBody 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 @@ -31571,7 +31571,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where you want to create the managed instance group. - * @param {().InstanceGroupManager} params.resource Request body data + * @param {().InstanceGroupManager} params.requestBody 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 @@ -32030,7 +32030,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where you want to create the managed instance group. - * @param {().InstanceGroupManager} params.resource Request body data + * @param {().InstanceGroupManager} params.requestBody 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 @@ -32168,7 +32168,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the managed instance group is located. - * @param {().InstanceGroupManagersRecreateInstancesRequest} params.resource Request body data + * @param {().InstanceGroupManagersRecreateInstancesRequest} params.requestBody 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 @@ -32445,7 +32445,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the managed instance group is located. - * @param {().InstanceGroupManagersResizeAdvancedRequest} params.resource Request body data + * @param {().InstanceGroupManagersResizeAdvancedRequest} params.requestBody 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 @@ -32583,7 +32583,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the managed instance group is located. - * @param {().InstanceGroupManagersSetAutoHealingRequest} params.resource Request body data + * @param {().InstanceGroupManagersSetAutoHealingRequest} params.requestBody 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 @@ -32723,7 +32723,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the managed instance group is located. - * @param {().InstanceGroupManagersSetInstanceTemplateRequest} params.resource Request body data + * @param {().InstanceGroupManagersSetInstanceTemplateRequest} params.requestBody 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 @@ -32861,7 +32861,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the managed instance group is located. - * @param {().InstanceGroupManagersSetTargetPoolsRequest} params.resource Request body data + * @param {().InstanceGroupManagersSetTargetPoolsRequest} params.requestBody 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 @@ -32998,7 +32998,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -33141,7 +33141,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where you want to create the managed instance group. - * @param {().InstanceGroupManager} params.resource Request body data + * @param {().InstanceGroupManager} params.requestBody 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 @@ -33820,7 +33820,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the instance group is located. - * @param {().InstanceGroupsAddInstancesRequest} params.resource Request body data + * @param {().InstanceGroupsAddInstancesRequest} params.requestBody 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 @@ -34367,7 +34367,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where you want to create the instance group. - * @param {().InstanceGroup} params.resource Request body data + * @param {().InstanceGroup} params.requestBody 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 @@ -34666,7 +34666,7 @@ export namespace compute_beta { * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. * @param {string} params.zone The name of the zone where the instance group is located. - * @param {().InstanceGroupsListInstancesRequest} params.resource Request body data + * @param {().InstanceGroupsListInstancesRequest} params.requestBody 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 @@ -34811,7 +34811,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the instance group is located. - * @param {().InstanceGroupsRemoveInstancesRequest} params.resource Request body data + * @param {().InstanceGroupsRemoveInstancesRequest} params.requestBody 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 @@ -34949,7 +34949,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the instance group is located. - * @param {().InstanceGroupsSetNamedPortsRequest} params.resource Request body data + * @param {().InstanceGroupsSetNamedPortsRequest} params.requestBody 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 @@ -35086,7 +35086,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -35522,7 +35522,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().AccessConfig} params.resource Request body data + * @param {().AccessConfig} params.requestBody 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 @@ -35805,7 +35805,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().AttachedDisk} params.resource Request body data + * @param {().AttachedDisk} params.requestBody 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 @@ -36934,7 +36934,7 @@ export namespace compute_beta { * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string=} params.sourceInstanceTemplate Specifies instance template to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate * @param {string} params.zone The name of the zone for this request. - * @param {().Instance} params.resource Request body data + * @param {().Instance} params.requestBody 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 @@ -37441,7 +37441,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesResumeRequest} params.resource Request body data + * @param {().InstancesResumeRequest} params.requestBody 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 @@ -37800,7 +37800,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().ZoneSetPolicyRequest} params.resource Request body data + * @param {().ZoneSetPolicyRequest} params.requestBody 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 @@ -37936,7 +37936,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesSetLabelsRequest} params.resource Request body data + * @param {().InstancesSetLabelsRequest} params.requestBody 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 @@ -38074,7 +38074,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesSetMachineResourcesRequest} params.resource Request body data + * @param {().InstancesSetMachineResourcesRequest} params.requestBody 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 @@ -38212,7 +38212,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesSetMachineTypeRequest} params.resource Request body data + * @param {().InstancesSetMachineTypeRequest} params.requestBody 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 @@ -38350,7 +38350,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().Metadata} params.resource Request body data + * @param {().Metadata} params.requestBody 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 @@ -38488,7 +38488,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesSetMinCpuPlatformRequest} params.resource Request body data + * @param {().InstancesSetMinCpuPlatformRequest} params.requestBody 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 @@ -38626,7 +38626,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().Scheduling} params.resource Request body data + * @param {().Scheduling} params.requestBody 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 @@ -38764,7 +38764,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesSetServiceAccountRequest} params.resource Request body data + * @param {().InstancesSetServiceAccountRequest} params.requestBody 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 @@ -38842,7 +38842,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().ShieldedInstanceIntegrityPolicy} params.resource Request body data + * @param {().ShieldedInstanceIntegrityPolicy} params.requestBody 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 @@ -38922,7 +38922,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().ShieldedVmIntegrityPolicy} params.resource Request body data + * @param {().ShieldedVmIntegrityPolicy} params.requestBody 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 @@ -39062,7 +39062,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().Tags} params.resource Request body data + * @param {().Tags} params.requestBody 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 @@ -39410,7 +39410,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesStartWithEncryptionKeyRequest} params.resource Request body data + * @param {().InstancesStartWithEncryptionKeyRequest} params.requestBody 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 @@ -39759,7 +39759,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -39905,7 +39905,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().AccessConfig} params.resource Request body data + * @param {().AccessConfig} params.requestBody 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 @@ -39983,7 +39983,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().DisplayDevice} params.resource Request body data + * @param {().DisplayDevice} params.requestBody 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 @@ -40126,7 +40126,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().NetworkInterface} params.resource Request body data + * @param {().NetworkInterface} params.requestBody 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 @@ -40206,7 +40206,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().ShieldedInstanceConfig} params.resource Request body data + * @param {().ShieldedInstanceConfig} params.requestBody 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 @@ -40286,7 +40286,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().ShieldedVmConfig} params.resource Request body data + * @param {().ShieldedVmConfig} params.requestBody 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 @@ -41895,7 +41895,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InstanceTemplate} params.resource Request body data + * @param {().InstanceTemplate} params.requestBody 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 @@ -42114,7 +42114,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetPolicyRequest} params.resource Request body data + * @param {().GlobalSetPolicyRequest} params.requestBody 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 @@ -42245,7 +42245,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -42963,7 +42963,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InterconnectAttachment} params.resource Request body data + * @param {().InterconnectAttachment} params.requestBody 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 @@ -43193,7 +43193,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InterconnectAttachment} params.resource Request body data + * @param {().InterconnectAttachment} params.requestBody 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 @@ -43271,7 +43271,7 @@ export namespace compute_beta { * @param {string} params.region The region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetLabelsRequest} params.resource Request body data + * @param {().RegionSetLabelsRequest} params.requestBody 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 @@ -43408,7 +43408,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -44430,7 +44430,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Interconnect} params.resource Request body data + * @param {().Interconnect} params.requestBody 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 @@ -44704,7 +44704,7 @@ export namespace compute_beta { * @param {string} params.interconnect Name of the interconnect to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Interconnect} params.resource Request body data + * @param {().Interconnect} params.requestBody 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 @@ -44780,7 +44780,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetLabelsRequest} params.resource Request body data + * @param {().GlobalSetLabelsRequest} params.requestBody 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 @@ -44913,7 +44913,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -45540,7 +45540,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().License} params.resource Request body data + * @param {().License} params.requestBody 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 @@ -45692,7 +45692,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetPolicyRequest} params.resource Request body data + * @param {().GlobalSetPolicyRequest} params.requestBody 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 @@ -46496,7 +46496,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. - * @param {().NetworkEndpointGroupsAttachEndpointsRequest} params.resource Request body data + * @param {().NetworkEndpointGroupsAttachEndpointsRequest} params.requestBody 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 @@ -46653,7 +46653,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. - * @param {().NetworkEndpointGroupsDetachEndpointsRequest} params.resource Request body data + * @param {().NetworkEndpointGroupsDetachEndpointsRequest} params.requestBody 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 @@ -46810,7 +46810,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where you want to create the network endpoint group. It should comply with RFC1035. - * @param {().NetworkEndpointGroup} params.resource Request body data + * @param {().NetworkEndpointGroup} params.requestBody 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 @@ -46972,7 +46972,7 @@ export namespace compute_beta { * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. - * @param {().NetworkEndpointGroupsListEndpointsRequest} params.resource Request body data + * @param {().NetworkEndpointGroupsListEndpointsRequest} params.requestBody 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 @@ -47072,7 +47072,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -47471,7 +47471,7 @@ export namespace compute_beta { * @param {string} params.network Name of the network resource to add peering to. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().NetworksAddPeeringRequest} params.resource Request body data + * @param {().NetworksAddPeeringRequest} params.requestBody 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 @@ -47854,7 +47854,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Network} params.resource Request body data + * @param {().Network} params.requestBody 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 @@ -48215,7 +48215,7 @@ export namespace compute_beta { * @param {string} params.network Name of the network to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Network} params.resource Request body data + * @param {().Network} params.requestBody 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 @@ -48348,7 +48348,7 @@ export namespace compute_beta { * @param {string} params.network Name of the network resource to remove peering from. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().NetworksRemovePeeringRequest} params.resource Request body data + * @param {().NetworksRemovePeeringRequest} params.requestBody 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 @@ -48610,7 +48610,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -48691,7 +48691,7 @@ export namespace compute_beta { * @param {string} params.network Name of the network resource which the updated peering is belonging to. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().NetworksUpdatePeeringRequest} params.resource Request body data + * @param {().NetworksUpdatePeeringRequest} params.requestBody 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 @@ -49042,7 +49042,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().NodeGroupsAddNodesRequest} params.resource Request body data + * @param {().NodeGroupsAddNodesRequest} params.requestBody 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 @@ -49278,7 +49278,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().NodeGroupsDeleteNodesRequest} params.resource Request body data + * @param {().NodeGroupsDeleteNodesRequest} params.requestBody 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 @@ -49506,7 +49506,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().NodeGroup} params.resource Request body data + * @param {().NodeGroup} params.requestBody 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 @@ -49741,7 +49741,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().ZoneSetPolicyRequest} params.resource Request body data + * @param {().ZoneSetPolicyRequest} params.requestBody 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 @@ -49817,7 +49817,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().NodeGroupsSetNodeTemplateRequest} params.resource Request body data + * @param {().NodeGroupsSetNodeTemplateRequest} params.requestBody 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 @@ -49894,7 +49894,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -50624,7 +50624,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().NodeTemplate} params.resource Request body data + * @param {().NodeTemplate} params.requestBody 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 @@ -50780,7 +50780,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetPolicyRequest} params.resource Request body data + * @param {().RegionSetPolicyRequest} params.requestBody 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 @@ -50855,7 +50855,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -51705,7 +51705,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().PacketMirroring} params.resource Request body data + * @param {().PacketMirroring} params.requestBody 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 @@ -51862,7 +51862,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().PacketMirroring} params.resource Request body data + * @param {().PacketMirroring} params.requestBody 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 @@ -51939,7 +51939,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -52388,7 +52388,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ProjectsDisableXpnResourceRequest} params.resource Request body data + * @param {().ProjectsDisableXpnResourceRequest} params.requestBody 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 @@ -52641,7 +52641,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ProjectsEnableXpnResourceRequest} params.resource Request body data + * @param {().ProjectsEnableXpnResourceRequest} params.requestBody 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 @@ -53172,7 +53172,7 @@ export namespace compute_beta { * @param {string=} params.order_by Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {().ProjectsListXpnHostsRequest} params.resource Request body data + * @param {().ProjectsListXpnHostsRequest} params.requestBody 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 @@ -53301,7 +53301,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().DiskMoveRequest} params.resource Request body data + * @param {().DiskMoveRequest} params.requestBody 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 @@ -53430,7 +53430,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InstanceMoveRequest} params.resource Request body data + * @param {().InstanceMoveRequest} params.requestBody 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 @@ -53559,7 +53559,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Metadata} params.resource Request body data + * @param {().Metadata} params.requestBody 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 @@ -53637,7 +53637,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ProjectsSetDefaultNetworkTierRequest} params.resource Request body data + * @param {().ProjectsSetDefaultNetworkTierRequest} params.requestBody 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 @@ -53768,7 +53768,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().UsageExportLocation} params.resource Request body data + * @param {().UsageExportLocation} params.requestBody 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 @@ -54439,7 +54439,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Autoscaler} params.resource Request body data + * @param {().Autoscaler} params.requestBody 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 @@ -54722,7 +54722,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Autoscaler} params.resource Request body data + * @param {().Autoscaler} params.requestBody 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 @@ -54859,7 +54859,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -54999,7 +54999,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Autoscaler} params.resource Request body data + * @param {().Autoscaler} params.requestBody 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 @@ -55592,7 +55592,7 @@ export namespace compute_beta { * @param {string} params.backendService Name of the BackendService resource for which to get health. * @param {string} params.project * @param {string} params.region Name of the region scoping this request. - * @param {().ResourceGroupReference} params.resource Request body data + * @param {().ResourceGroupReference} params.requestBody 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 @@ -55733,7 +55733,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendService} params.resource Request body data + * @param {().BackendService} params.requestBody 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 @@ -56017,7 +56017,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendService} params.resource Request body data + * @param {().BackendService} params.requestBody 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 @@ -56154,7 +56154,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -56297,7 +56297,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendService} params.resource Request body data + * @param {().BackendService} params.requestBody 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 @@ -56925,7 +56925,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Commitment} params.resource Request body data + * @param {().Commitment} params.requestBody 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 @@ -57148,7 +57148,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionCommitmentsUpdateReservationsRequest} params.resource Request body data + * @param {().RegionCommitmentsUpdateReservationsRequest} params.requestBody 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 @@ -57368,7 +57368,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionDisksAddResourcePoliciesRequest} params.resource Request body data + * @param {().RegionDisksAddResourcePoliciesRequest} params.requestBody 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 @@ -57446,7 +57446,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Snapshot} params.resource Request body data + * @param {().Snapshot} params.requestBody 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 @@ -57749,7 +57749,7 @@ export namespace compute_beta { * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string=} params.sourceImage Optional. Source image to restore onto a disk. - * @param {().Disk} params.resource Request body data + * @param {().Disk} params.requestBody 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 @@ -57903,7 +57903,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionDisksRemoveResourcePoliciesRequest} params.resource Request body data + * @param {().RegionDisksRemoveResourcePoliciesRequest} params.requestBody 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 @@ -57983,7 +57983,7 @@ export namespace compute_beta { * @param {string} params.project The project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionDisksResizeRequest} params.resource Request body data + * @param {().RegionDisksResizeRequest} params.requestBody 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 @@ -58060,7 +58060,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetPolicyRequest} params.resource Request body data + * @param {().RegionSetPolicyRequest} params.requestBody 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 @@ -58136,7 +58136,7 @@ export namespace compute_beta { * @param {string} params.region The region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetLabelsRequest} params.resource Request body data + * @param {().RegionSetLabelsRequest} params.requestBody 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 @@ -58213,7 +58213,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -58990,7 +58990,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HealthCheck} params.resource Request body data + * @param {().HealthCheck} params.requestBody 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 @@ -59147,7 +59147,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HealthCheck} params.resource Request body data + * @param {().HealthCheck} params.requestBody 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 @@ -59225,7 +59225,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HealthCheck} params.resource Request body data + * @param {().HealthCheck} params.requestBody 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 @@ -59530,7 +59530,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersAbandonInstancesRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersAbandonInstancesRequest} params.requestBody 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 @@ -59607,7 +59607,7 @@ export namespace compute_beta { * @param {string} params.instanceGroupManager The name of the managed instance group, should conform to RFC1035. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request, should conform to RFC1035. - * @param {().RegionInstanceGroupManagersApplyUpdatesRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersApplyUpdatesRequest} params.requestBody 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 @@ -59687,7 +59687,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region where the managed instance group is located. It should conform to RFC1035. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersCreateInstancesRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersCreateInstancesRequest} params.requestBody 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 @@ -59958,7 +59958,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersDeleteInstancesRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersDeleteInstancesRequest} params.requestBody 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 @@ -60226,7 +60226,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InstanceGroupManager} params.resource Request body data + * @param {().InstanceGroupManager} params.requestBody 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 @@ -60692,7 +60692,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InstanceGroupManager} params.resource Request body data + * @param {().InstanceGroupManager} params.requestBody 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 @@ -60830,7 +60830,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersRecreateRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersRecreateRequest} params.requestBody 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 @@ -61105,7 +61105,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersSetAutoHealingRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersSetAutoHealingRequest} params.requestBody 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 @@ -61245,7 +61245,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersSetTemplateRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersSetTemplateRequest} params.requestBody 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 @@ -61383,7 +61383,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersSetTargetPoolsRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersSetTargetPoolsRequest} params.requestBody 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 @@ -61520,7 +61520,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -61663,7 +61663,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InstanceGroupManager} params.resource Request body data + * @param {().InstanceGroupManager} params.requestBody 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 @@ -62580,7 +62580,7 @@ export namespace compute_beta { * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. - * @param {().RegionInstanceGroupsListInstancesRequest} params.resource Request body data + * @param {().RegionInstanceGroupsListInstancesRequest} params.requestBody 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 @@ -62727,7 +62727,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupsSetNamedPortsRequest} params.resource Request body data + * @param {().RegionInstanceGroupsSetNamedPortsRequest} params.requestBody 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 @@ -62864,7 +62864,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -64051,7 +64051,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().SslCertificate} params.resource Request body data + * @param {().SslCertificate} params.requestBody 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 @@ -64469,7 +64469,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetHttpProxy} params.resource Request body data + * @param {().TargetHttpProxy} params.requestBody 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 @@ -64626,7 +64626,7 @@ export namespace compute_beta { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpProxy Name of the TargetHttpProxy to set a URL map for. - * @param {().UrlMapReference} params.resource Request body data + * @param {().UrlMapReference} params.requestBody 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 @@ -64994,7 +64994,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetHttpsProxy} params.resource Request body data + * @param {().TargetHttpsProxy} params.requestBody 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 @@ -65153,7 +65153,7 @@ export namespace compute_beta { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpsProxy Name of the TargetHttpsProxy resource to set an SslCertificates resource for. - * @param {().RegionTargetHttpsProxiesSetSslCertificatesRequest} params.resource Request body data + * @param {().RegionTargetHttpsProxiesSetSslCertificatesRequest} params.requestBody 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 @@ -65231,7 +65231,7 @@ export namespace compute_beta { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpsProxy Name of the TargetHttpsProxy to set a URL map for. - * @param {().UrlMapReference} params.resource Request body data + * @param {().UrlMapReference} params.requestBody 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 @@ -65626,7 +65626,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. - * @param {().UrlMap} params.resource Request body data + * @param {().UrlMap} params.requestBody 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 @@ -65704,7 +65704,7 @@ export namespace compute_beta { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. * @param {string} params.urlMap Name of the UrlMap scoping this request. - * @param {().CacheInvalidationRule} params.resource Request body data + * @param {().CacheInvalidationRule} params.requestBody 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 @@ -65861,7 +65861,7 @@ export namespace compute_beta { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. * @param {string} params.urlMap Name of the UrlMap resource to patch. - * @param {().UrlMap} params.resource Request body data + * @param {().UrlMap} params.requestBody 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 @@ -65939,7 +65939,7 @@ export namespace compute_beta { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. * @param {string} params.urlMap Name of the UrlMap resource to update. - * @param {().UrlMap} params.resource Request body data + * @param {().UrlMap} params.requestBody 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 @@ -66016,7 +66016,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string} params.urlMap Name of the UrlMap resource to be validated as. - * @param {().RegionUrlMapsValidateRequest} params.resource Request body data + * @param {().RegionUrlMapsValidateRequest} params.requestBody 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 @@ -66630,7 +66630,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone Name of the zone for this request. - * @param {().Reservation} params.resource Request body data + * @param {().Reservation} params.requestBody 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 @@ -66787,7 +66787,7 @@ export namespace compute_beta { * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.reservation Name of the reservation to update. * @param {string} params.zone Name of the zone for this request. - * @param {().ReservationsResizeRequest} params.resource Request body data + * @param {().ReservationsResizeRequest} params.requestBody 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 @@ -66864,7 +66864,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().ZoneSetPolicyRequest} params.resource Request body data + * @param {().ZoneSetPolicyRequest} params.requestBody 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 @@ -66939,7 +66939,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -67574,7 +67574,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ResourcePolicy} params.resource Request body data + * @param {().ResourcePolicy} params.requestBody 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 @@ -67730,7 +67730,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetPolicyRequest} params.resource Request body data + * @param {().RegionSetPolicyRequest} params.requestBody 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 @@ -67805,7 +67805,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -68783,7 +68783,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Router} params.resource Request body data + * @param {().Router} params.requestBody 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 @@ -69065,7 +69065,7 @@ export namespace compute_beta { * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.router Name of the Router resource to patch. - * @param {().Router} params.resource Request body data + * @param {().Router} params.requestBody 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 @@ -69201,7 +69201,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string} params.router Name of the Router resource to query. - * @param {().Router} params.resource Request body data + * @param {().Router} params.requestBody 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 @@ -69341,7 +69341,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -69484,7 +69484,7 @@ export namespace compute_beta { * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.router Name of the Router resource to update. - * @param {().Router} params.resource Request body data + * @param {().Router} params.requestBody 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 @@ -70162,7 +70162,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Route} params.resource Request body data + * @param {().Route} params.requestBody 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 @@ -70432,7 +70432,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -70623,7 +70623,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.securityPolicy Name of the security policy to update. * @param {boolean=} params.validateOnly If true, the request will not be committed. - * @param {().SecurityPolicyRule} params.resource Request body data + * @param {().SecurityPolicyRule} params.requestBody 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 @@ -71087,7 +71087,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {boolean=} params.validateOnly If true, the request will not be committed. - * @param {().SecurityPolicy} params.resource Request body data + * @param {().SecurityPolicy} params.requestBody 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 @@ -71467,7 +71467,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.securityPolicy Name of the security policy to update. - * @param {().SecurityPolicy} params.resource Request body data + * @param {().SecurityPolicy} params.requestBody 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 @@ -71545,7 +71545,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.securityPolicy Name of the security policy to update. * @param {boolean=} params.validateOnly If true, the request will not be committed. - * @param {().SecurityPolicyRule} params.resource Request body data + * @param {().SecurityPolicyRule} params.requestBody 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 @@ -71697,7 +71697,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetLabelsRequest} params.resource Request body data + * @param {().GlobalSetLabelsRequest} params.requestBody 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 @@ -71830,7 +71830,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -72662,7 +72662,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetPolicyRequest} params.resource Request body data + * @param {().GlobalSetPolicyRequest} params.requestBody 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 @@ -72793,7 +72793,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetLabelsRequest} params.resource Request body data + * @param {().GlobalSetLabelsRequest} params.requestBody 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 @@ -72926,7 +72926,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -73556,7 +73556,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().SslCertificate} params.resource Request body data + * @param {().SslCertificate} params.requestBody 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 @@ -73830,7 +73830,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -74202,7 +74202,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().SslPolicy} params.resource Request body data + * @param {().SslPolicy} params.requestBody 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 @@ -74449,7 +74449,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. - * @param {().SslPolicy} params.resource Request body data + * @param {().SslPolicy} params.requestBody 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 @@ -74525,7 +74525,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -75110,7 +75110,7 @@ export namespace compute_beta { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.subnetwork Name of the Subnetwork resource to update. - * @param {().SubnetworksExpandIpCidrRangeRequest} params.resource Request body data + * @param {().SubnetworksExpandIpCidrRangeRequest} params.requestBody 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 @@ -75506,7 +75506,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Subnetwork} params.resource Request body data + * @param {().Subnetwork} params.requestBody 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 @@ -75877,7 +75877,7 @@ export namespace compute_beta { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.subnetwork Name of the Subnetwork resource to patch. - * @param {().Subnetwork} params.resource Request body data + * @param {().Subnetwork} params.requestBody 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 @@ -76014,7 +76014,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetPolicyRequest} params.resource Request body data + * @param {().RegionSetPolicyRequest} params.requestBody 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 @@ -76150,7 +76150,7 @@ export namespace compute_beta { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.subnetwork Name of the Subnetwork resource. - * @param {().SubnetworksSetPrivateIpGoogleAccessRequest} params.resource Request body data + * @param {().SubnetworksSetPrivateIpGoogleAccessRequest} params.requestBody 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 @@ -76289,7 +76289,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -77095,7 +77095,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetHttpProxy} params.resource Request body data + * @param {().TargetHttpProxy} params.requestBody 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 @@ -77370,7 +77370,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpProxy Name of the TargetHttpProxy to set a URL map for. - * @param {().UrlMapReference} params.resource Request body data + * @param {().UrlMapReference} params.requestBody 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 @@ -77503,7 +77503,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -78148,7 +78148,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetHttpsProxy} params.resource Request body data + * @param {().TargetHttpsProxy} params.requestBody 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 @@ -78368,7 +78368,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpsProxy Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should conform to RFC1035. - * @param {().TargetHttpsProxiesSetQuicOverrideRequest} params.resource Request body data + * @param {().TargetHttpsProxiesSetQuicOverrideRequest} params.requestBody 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 @@ -78502,7 +78502,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpsProxy Name of the TargetHttpsProxy resource to set an SslCertificates resource for. - * @param {().TargetHttpsProxiesSetSslCertificatesRequest} params.resource Request body data + * @param {().TargetHttpsProxiesSetSslCertificatesRequest} params.requestBody 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 @@ -78579,7 +78579,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpsProxy Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035. - * @param {().SslPolicyReference} params.resource Request body data + * @param {().SslPolicyReference} params.requestBody 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 @@ -78713,7 +78713,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpsProxy Name of the TargetHttpsProxy resource whose URL map is to be set. - * @param {().UrlMapReference} params.resource Request body data + * @param {().UrlMapReference} params.requestBody 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 @@ -78846,7 +78846,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -79641,7 +79641,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone Name of the zone scoping this request. - * @param {().TargetInstance} params.resource Request body data + * @param {().TargetInstance} params.requestBody 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 @@ -79923,7 +79923,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -80227,7 +80227,7 @@ export namespace compute_beta { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetPool Name of the target pool to add a health check to. - * @param {().TargetPoolsAddHealthCheckRequest} params.resource Request body data + * @param {().TargetPoolsAddHealthCheckRequest} params.requestBody 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 @@ -80365,7 +80365,7 @@ export namespace compute_beta { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetPool Name of the TargetPool resource to add instances to. - * @param {().TargetPoolsAddInstanceRequest} params.resource Request body data + * @param {().TargetPoolsAddInstanceRequest} params.requestBody 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 @@ -80911,7 +80911,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string} params.targetPool Name of the TargetPool resource to which the queried instance belongs. - * @param {().InstanceReference} params.resource Request body data + * @param {().InstanceReference} params.requestBody 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 @@ -81049,7 +81049,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetPool} params.resource Request body data + * @param {().TargetPool} params.requestBody 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 @@ -81331,7 +81331,7 @@ export namespace compute_beta { * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetPool Name of the target pool to remove health checks from. - * @param {().TargetPoolsRemoveHealthCheckRequest} params.resource Request body data + * @param {().TargetPoolsRemoveHealthCheckRequest} params.requestBody 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 @@ -81469,7 +81469,7 @@ export namespace compute_beta { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetPool Name of the TargetPool resource to remove instances from. - * @param {().TargetPoolsRemoveInstanceRequest} params.resource Request body data + * @param {().TargetPoolsRemoveInstanceRequest} params.requestBody 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 @@ -81608,7 +81608,7 @@ export namespace compute_beta { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetPool Name of the TargetPool resource to set a backup pool for. - * @param {().TargetReference} params.resource Request body data + * @param {().TargetReference} params.requestBody 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 @@ -81745,7 +81745,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -82470,7 +82470,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetSslProxy} params.resource Request body data + * @param {().TargetSslProxy} params.requestBody 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 @@ -82745,7 +82745,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetSslProxy Name of the TargetSslProxy resource whose BackendService resource is to be set. - * @param {().TargetSslProxiesSetBackendServiceRequest} params.resource Request body data + * @param {().TargetSslProxiesSetBackendServiceRequest} params.requestBody 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 @@ -82879,7 +82879,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetSslProxy Name of the TargetSslProxy resource whose ProxyHeader is to be set. - * @param {().TargetSslProxiesSetProxyHeaderRequest} params.resource Request body data + * @param {().TargetSslProxiesSetProxyHeaderRequest} params.requestBody 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 @@ -83013,7 +83013,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetSslProxy Name of the TargetSslProxy resource whose SslCertificate resource is to be set. - * @param {().TargetSslProxiesSetSslCertificatesRequest} params.resource Request body data + * @param {().TargetSslProxiesSetSslCertificatesRequest} params.requestBody 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 @@ -83090,7 +83090,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetSslProxy Name of the TargetSslProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035. - * @param {().SslPolicyReference} params.resource Request body data + * @param {().SslPolicyReference} params.requestBody 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 @@ -83223,7 +83223,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -83828,7 +83828,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetTcpProxy} params.resource Request body data + * @param {().TargetTcpProxy} params.requestBody 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 @@ -84103,7 +84103,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetTcpProxy Name of the TargetTcpProxy resource whose BackendService resource is to be set. - * @param {().TargetTcpProxiesSetBackendServiceRequest} params.resource Request body data + * @param {().TargetTcpProxiesSetBackendServiceRequest} params.requestBody 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 @@ -84237,7 +84237,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetTcpProxy Name of the TargetTcpProxy resource whose ProxyHeader is to be set. - * @param {().TargetTcpProxiesSetProxyHeaderRequest} params.resource Request body data + * @param {().TargetTcpProxiesSetProxyHeaderRequest} params.requestBody 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 @@ -84929,7 +84929,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetVpnGateway} params.resource Request body data + * @param {().TargetVpnGateway} params.requestBody 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 @@ -85154,7 +85154,7 @@ export namespace compute_beta { * @param {string} params.region The region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetLabelsRequest} params.resource Request body data + * @param {().RegionSetLabelsRequest} params.requestBody 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 @@ -85291,7 +85291,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -85950,7 +85950,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().UrlMap} params.resource Request body data + * @param {().UrlMap} params.requestBody 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 @@ -86082,7 +86082,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.urlMap Name of the UrlMap scoping this request. - * @param {().CacheInvalidationRule} params.resource Request body data + * @param {().CacheInvalidationRule} params.requestBody 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 @@ -86356,7 +86356,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.urlMap Name of the UrlMap resource to patch. - * @param {().UrlMap} params.resource Request body data + * @param {().UrlMap} params.requestBody 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 @@ -86488,7 +86488,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -86627,7 +86627,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.urlMap Name of the UrlMap resource to update. - * @param {().UrlMap} params.resource Request body data + * @param {().UrlMap} params.requestBody 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 @@ -86759,7 +86759,7 @@ export namespace compute_beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.urlMap Name of the UrlMap resource to be validated as. - * @param {().UrlMapsValidateRequest} params.resource Request body data + * @param {().UrlMapsValidateRequest} params.requestBody 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 @@ -87389,7 +87389,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().VpnGateway} params.resource Request body data + * @param {().VpnGateway} params.requestBody 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 @@ -87545,7 +87545,7 @@ export namespace compute_beta { * @param {string} params.region The region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetLabelsRequest} params.resource Request body data + * @param {().RegionSetLabelsRequest} params.requestBody 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 @@ -88271,7 +88271,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().VpnTunnel} params.resource Request body data + * @param {().VpnTunnel} params.requestBody 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 @@ -88493,7 +88493,7 @@ export namespace compute_beta { * @param {string} params.region The region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetLabelsRequest} params.resource Request body data + * @param {().RegionSetLabelsRequest} params.requestBody 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 @@ -88630,7 +88630,7 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 diff --git a/src/apis/compute/v1.ts b/src/apis/compute/v1.ts index 65c69179940..69a6536d6cf 100644 --- a/src/apis/compute/v1.ts +++ b/src/apis/compute/v1.ts @@ -626,7 +626,7 @@ export namespace compute_v1 { */ instanceProperties?: Schema$AllocationSpecificSKUAllocationReservedInstanceProperties; /** - * [OutputOnly] Indicates how many instances are in use. + * [Output Only] Indicates how many instances are in use. */ inUseCount?: string | null; } @@ -806,7 +806,7 @@ export namespace compute_v1 { */ selfLink?: string | null; /** - * [Output Only] The status of the autoscaler configuration. + * [Output Only] The status of the autoscaler configuration. Current set of possible values: PENDING: Autoscaler backend hasn't read new/updated configuration DELETING: Configuration is being deleted ACTIVE: Configuration is acknowledged to be effective. Some warnings might or might not be present in the status_details field. ERROR: Configuration has errors. Actionable for users. Details are present in the status_details field. New values might be added in the future. */ status?: string | null; /** @@ -905,7 +905,7 @@ export namespace compute_v1 { */ message?: string | null; /** - * The type of error returned. + * The type of error, warning or notice returned. Current set of possible values: ALL_INSTANCES_UNHEALTHY (WARNING): All instances in the instance group are unhealthy (not in RUNNING state). BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): There is no backend service attached to the instance group. CAPPED_AT_MAX_NUM_REPLICAS (WARNING): Autoscaler recommends size bigger than maxNumReplicas. CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom metric samples are not exported often enough to be a credible base for autoscaling. CUSTOM_METRIC_INVALID (ERROR): The custom metric that was specified does not exist or does not have the necessary labels. MIN_EQUALS_MAX (WARNING): The minNumReplicas is equal to maxNumReplicas. This means the autoscaler cannot add or remove instances from the instance group. MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not receive any data from the custom metric configured for autoscaling. MISSING_LOAD_BALANCING_DATA_POINTS (WARNING): The autoscaler is configured to scale based on a load balancing signal but the instance group has not received any requests from the load balancer. MODE_OFF (WARNING): Autoscaling is turned off. The number of instances in the group won't change automatically. The autoscaling configuration is preserved. MODE_ONLY_UP (WARNING): Autoscaling is in the "Autoscale only up" mode. Instances in the group will be only added. MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The instance group cannot be autoscaled because it has more than one backend service attached to it. NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): Exceeded quota for necessary resources, such as CPU, number of instances and so on. REGION_RESOURCE_STOCKOUT (ERROR): Showed only for regional autoscalers: there is a resource stockout in the chosen region. SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be scaled does not exist. UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): Autoscaling does not work with an HTTP/S load balancer that has been configured for maxRate. ZONE_RESOURCE_STOCKOUT (ERROR): For zonal autoscalers: there is a resource stockout in the chosen zone. For regional autoscalers: in at least one of the zones you're using there is a resource stockout. New values might be added in the future. Some of the values might not be available in all API versions. */ type?: string | null; } @@ -5536,7 +5536,7 @@ export namespace compute_v1 { port?: number | null; } /** - * Represents a collection of network endpoints. + * Represents a collection of network endpoints. For more information read Setting up network endpoint groups in load balancing. (== resource_for v1.networkEndpointGroups ==) (== resource_for beta.networkEndpointGroups ==) */ export interface Schema$NetworkEndpointGroup { /** @@ -5860,7 +5860,7 @@ export namespace compute_v1 { networkPeering?: Schema$NetworkPeering; } /** - * Represent a sole-tenant Node Group resource. A sole-tenant node is a physical server that is dedicated to hosting VM instances only for your specific project. Use sole-tenant nodes to keep your instances physically separated from instances in other projects, or to group your instances together on the same host hardware. For more information, read Sole-tenant nodes. (== resource_for beta.nodeGroups ==) (== resource_for v1.nodeGroups ==) NextID: 15 + * Represent a sole-tenant Node Group resource. A sole-tenant node is a physical server that is dedicated to hosting VM instances only for your specific project. Use sole-tenant nodes to keep your instances physically separated from instances in other projects, or to group your instances together on the same host hardware. For more information, read Sole-tenant nodes. (== resource_for beta.nodeGroups ==) (== resource_for v1.nodeGroups ==) NextID: 16 */ export interface Schema$NodeGroup { /** @@ -7129,7 +7129,7 @@ export namespace compute_v1 { */ export interface Schema$Reservation { /** - * [OutputOnly] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment. + * [Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment. */ commitment?: string | null; /** @@ -7909,7 +7909,7 @@ export namespace compute_v1 { */ enable?: boolean | null; /** - * Specifies the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. + * Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This option can take one of the following values: - ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only for successful connections. - ALL: Export logs for all connections, successful and unsuccessful. */ filter?: string | null; } @@ -8017,11 +8017,11 @@ export namespace compute_v1 { */ autoAllocatedNatIps?: string[] | null; /** - * A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", ?179.12.26.133?]. + * A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. */ drainAutoAllocatedNatIps?: string[] | null; /** - * A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", ?179.12.26.133?]. + * A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. */ drainUserAllocatedNatIps?: string[] | null; /** @@ -8300,7 +8300,7 @@ export namespace compute_v1 { */ export interface Schema$ShieldedInstanceIdentity { /** - * An Endorsement Key (EK) issued to the Shielded Instance's vTPM. + * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM. */ encryptionKey?: Schema$ShieldedInstanceIdentityEntry; /** @@ -8308,7 +8308,7 @@ export namespace compute_v1 { */ kind?: string | null; /** - * An Attestation Key (AK) issued to the Shielded Instance's vTPM. + * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM. */ signingKey?: Schema$ShieldedInstanceIdentityEntry; } @@ -8364,7 +8364,7 @@ export namespace compute_v1 { */ description?: string | null; /** - * [Output Only] Size of the snapshot, specified in GB. + * [Output Only] Size of the source disk, specified in GB. */ diskSizeGb?: string | null; /** @@ -11675,7 +11675,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Address} params.resource Request body data + * @param {().Address} params.requestBody 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 @@ -12493,7 +12493,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone Name of the zone for this request. - * @param {().Autoscaler} params.resource Request body data + * @param {().Autoscaler} params.requestBody 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 @@ -12773,7 +12773,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone Name of the zone for this request. - * @param {().Autoscaler} params.resource Request body data + * @param {().Autoscaler} params.requestBody 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 @@ -12909,7 +12909,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone Name of the zone for this request. - * @param {().Autoscaler} params.resource Request body data + * @param {().Autoscaler} params.requestBody 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 @@ -13179,7 +13179,7 @@ export namespace compute_v1 { * @param {string} params.backendBucket Name of the BackendBucket resource to which the Signed URL Key should be added. The name should conform to RFC1035. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().SignedUrlKey} params.resource Request body data + * @param {().SignedUrlKey} params.requestBody 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 @@ -13643,7 +13643,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendBucket} params.resource Request body data + * @param {().BackendBucket} params.requestBody 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 @@ -13917,7 +13917,7 @@ export namespace compute_v1 { * @param {string} params.backendBucket Name of the BackendBucket resource to patch. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendBucket} params.resource Request body data + * @param {().BackendBucket} params.requestBody 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 @@ -14052,7 +14052,7 @@ export namespace compute_v1 { * @param {string} params.backendBucket Name of the BackendBucket resource to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendBucket} params.resource Request body data + * @param {().BackendBucket} params.requestBody 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 @@ -14321,7 +14321,7 @@ export namespace compute_v1 { * @param {string} params.backendService Name of the BackendService resource to which the Signed URL Key should be added. The name should conform to RFC1035. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().SignedUrlKey} params.resource Request body data + * @param {().SignedUrlKey} params.requestBody 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 @@ -14937,7 +14937,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.backendService Name of the BackendService resource to which the queried instance belongs. * @param {string} params.project - * @param {().ResourceGroupReference} params.resource Request body data + * @param {().ResourceGroupReference} params.requestBody 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 @@ -15074,7 +15074,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendService} params.resource Request body data + * @param {().BackendService} params.requestBody 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 @@ -15348,7 +15348,7 @@ export namespace compute_v1 { * @param {string} params.backendService Name of the BackendService resource to patch. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendService} params.resource Request body data + * @param {().BackendService} params.requestBody 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 @@ -15425,7 +15425,7 @@ export namespace compute_v1 { * @param {string} params.backendService Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().SecurityPolicyReference} params.resource Request body data + * @param {().SecurityPolicyReference} params.requestBody 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 @@ -15560,7 +15560,7 @@ export namespace compute_v1 { * @param {string} params.backendService Name of the BackendService resource to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendService} params.resource Request body data + * @param {().BackendService} params.requestBody 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 @@ -15904,7 +15904,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().DisksAddResourcePoliciesRequest} params.resource Request body data + * @param {().DisksAddResourcePoliciesRequest} params.requestBody 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 @@ -16185,7 +16185,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().Snapshot} params.resource Request body data + * @param {().Snapshot} params.requestBody 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 @@ -16655,7 +16655,7 @@ export namespace compute_v1 { * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string=} params.sourceImage Optional. Source image to restore onto a disk. * @param {string} params.zone The name of the zone for this request. - * @param {().Disk} params.resource Request body data + * @param {().Disk} params.requestBody 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 @@ -16872,7 +16872,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().DisksRemoveResourcePoliciesRequest} params.resource Request body data + * @param {().DisksRemoveResourcePoliciesRequest} params.requestBody 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 @@ -17012,7 +17012,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().DisksResizeRequest} params.resource Request body data + * @param {().DisksResizeRequest} params.requestBody 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 @@ -17088,7 +17088,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().ZoneSetPolicyRequest} params.resource Request body data + * @param {().ZoneSetPolicyRequest} params.requestBody 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 @@ -17224,7 +17224,7 @@ export namespace compute_v1 { * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().ZoneSetLabelsRequest} params.resource Request body data + * @param {().ZoneSetLabelsRequest} params.requestBody 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 @@ -17300,7 +17300,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -18387,7 +18387,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ExternalVpnGateway} params.resource Request body data + * @param {().ExternalVpnGateway} params.requestBody 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 @@ -18543,7 +18543,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetLabelsRequest} params.resource Request body data + * @param {().GlobalSetLabelsRequest} params.requestBody 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 @@ -18619,7 +18619,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -19141,7 +19141,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Firewall} params.resource Request body data + * @param {().Firewall} params.requestBody 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 @@ -19413,7 +19413,7 @@ export namespace compute_v1 { * @param {string} params.firewall Name of the firewall rule to patch. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Firewall} params.resource Request body data + * @param {().Firewall} params.requestBody 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 @@ -19547,7 +19547,7 @@ export namespace compute_v1 { * @param {string} params.firewall Name of the firewall rule to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Firewall} params.resource Request body data + * @param {().Firewall} params.requestBody 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 @@ -20232,7 +20232,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ForwardingRule} params.resource Request body data + * @param {().ForwardingRule} params.requestBody 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 @@ -20515,7 +20515,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetReference} params.resource Request body data + * @param {().TargetReference} params.requestBody 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 @@ -21066,7 +21066,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Address} params.resource Request body data + * @param {().Address} params.requestBody 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 @@ -21685,7 +21685,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ForwardingRule} params.resource Request body data + * @param {().ForwardingRule} params.requestBody 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 @@ -21958,7 +21958,7 @@ export namespace compute_v1 { * @param {string} params.forwardingRule Name of the ForwardingRule resource in which target is to be set. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetReference} params.resource Request body data + * @param {().TargetReference} params.requestBody 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 @@ -23177,7 +23177,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HealthCheck} params.resource Request body data + * @param {().HealthCheck} params.requestBody 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 @@ -23451,7 +23451,7 @@ export namespace compute_v1 { * @param {string} params.healthCheck Name of the HealthCheck resource to patch. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HealthCheck} params.resource Request body data + * @param {().HealthCheck} params.requestBody 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 @@ -23586,7 +23586,7 @@ export namespace compute_v1 { * @param {string} params.healthCheck Name of the HealthCheck resource to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HealthCheck} params.resource Request body data + * @param {().HealthCheck} params.requestBody 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 @@ -24143,7 +24143,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HttpHealthCheck} params.resource Request body data + * @param {().HttpHealthCheck} params.requestBody 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 @@ -24417,7 +24417,7 @@ export namespace compute_v1 { * @param {string} params.httpHealthCheck Name of the HttpHealthCheck resource to patch. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HttpHealthCheck} params.resource Request body data + * @param {().HttpHealthCheck} params.requestBody 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 @@ -24552,7 +24552,7 @@ export namespace compute_v1 { * @param {string} params.httpHealthCheck Name of the HttpHealthCheck resource to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HttpHealthCheck} params.resource Request body data + * @param {().HttpHealthCheck} params.requestBody 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 @@ -25082,7 +25082,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HttpsHealthCheck} params.resource Request body data + * @param {().HttpsHealthCheck} params.requestBody 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 @@ -25360,7 +25360,7 @@ export namespace compute_v1 { * @param {string} params.httpsHealthCheck Name of the HttpsHealthCheck resource to patch. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HttpsHealthCheck} params.resource Request body data + * @param {().HttpsHealthCheck} params.requestBody 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 @@ -25495,7 +25495,7 @@ export namespace compute_v1 { * @param {string} params.httpsHealthCheck Name of the HttpsHealthCheck resource to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HttpsHealthCheck} params.resource Request body data + * @param {().HttpsHealthCheck} params.requestBody 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 @@ -25899,7 +25899,7 @@ export namespace compute_v1 { * @param {string} params.image Image name. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().DeprecationStatus} params.resource Request body data + * @param {().DeprecationStatus} params.requestBody 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 @@ -26352,7 +26352,7 @@ export namespace compute_v1 { * @param {boolean=} params.forceCreate Force image creation if true. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Image} params.resource Request body data + * @param {().Image} params.requestBody 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 @@ -26565,7 +26565,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetPolicyRequest} params.resource Request body data + * @param {().GlobalSetPolicyRequest} params.requestBody 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 @@ -26696,7 +26696,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetLabelsRequest} params.resource Request body data + * @param {().GlobalSetLabelsRequest} params.requestBody 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 @@ -26771,7 +26771,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -27124,7 +27124,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the managed instance group is located. - * @param {().InstanceGroupManagersAbandonInstancesRequest} params.resource Request body data + * @param {().InstanceGroupManagersAbandonInstancesRequest} params.requestBody 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 @@ -27545,7 +27545,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the managed instance group is located. - * @param {().InstanceGroupManagersDeleteInstancesRequest} params.resource Request body data + * @param {().InstanceGroupManagersDeleteInstancesRequest} params.requestBody 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 @@ -27813,7 +27813,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where you want to create the managed instance group. - * @param {().InstanceGroupManager} params.resource Request body data + * @param {().InstanceGroupManager} params.requestBody 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 @@ -28198,7 +28198,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where you want to create the managed instance group. - * @param {().InstanceGroupManager} params.resource Request body data + * @param {().InstanceGroupManager} params.requestBody 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 @@ -28336,7 +28336,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the managed instance group is located. - * @param {().InstanceGroupManagersRecreateInstancesRequest} params.resource Request body data + * @param {().InstanceGroupManagersRecreateInstancesRequest} params.requestBody 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 @@ -28613,7 +28613,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the managed instance group is located. - * @param {().InstanceGroupManagersSetInstanceTemplateRequest} params.resource Request body data + * @param {().InstanceGroupManagersSetInstanceTemplateRequest} params.requestBody 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 @@ -28751,7 +28751,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the managed instance group is located. - * @param {().InstanceGroupManagersSetTargetPoolsRequest} params.resource Request body data + * @param {().InstanceGroupManagersSetTargetPoolsRequest} params.requestBody 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 @@ -29264,7 +29264,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the instance group is located. - * @param {().InstanceGroupsAddInstancesRequest} params.resource Request body data + * @param {().InstanceGroupsAddInstancesRequest} params.requestBody 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 @@ -29811,7 +29811,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where you want to create the instance group. - * @param {().InstanceGroup} params.resource Request body data + * @param {().InstanceGroup} params.requestBody 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 @@ -30110,7 +30110,7 @@ export namespace compute_v1 { * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. * @param {string} params.zone The name of the zone where the instance group is located. - * @param {().InstanceGroupsListInstancesRequest} params.resource Request body data + * @param {().InstanceGroupsListInstancesRequest} params.requestBody 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 @@ -30255,7 +30255,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the instance group is located. - * @param {().InstanceGroupsRemoveInstancesRequest} params.resource Request body data + * @param {().InstanceGroupsRemoveInstancesRequest} params.requestBody 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 @@ -30393,7 +30393,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the instance group is located. - * @param {().InstanceGroupsSetNamedPortsRequest} params.resource Request body data + * @param {().InstanceGroupsSetNamedPortsRequest} params.requestBody 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 @@ -30800,7 +30800,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().AccessConfig} params.resource Request body data + * @param {().AccessConfig} params.requestBody 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 @@ -31083,7 +31083,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().AttachedDisk} params.resource Request body data + * @param {().AttachedDisk} params.requestBody 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 @@ -32133,7 +32133,7 @@ export namespace compute_v1 { * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string=} params.sourceInstanceTemplate Specifies instance template to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate * @param {string} params.zone The name of the zone for this request. - * @param {().Instance} params.resource Request body data + * @param {().Instance} params.requestBody 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 @@ -32850,7 +32850,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().ZoneSetPolicyRequest} params.resource Request body data + * @param {().ZoneSetPolicyRequest} params.requestBody 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 @@ -32986,7 +32986,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesSetLabelsRequest} params.resource Request body data + * @param {().InstancesSetLabelsRequest} params.requestBody 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 @@ -33124,7 +33124,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesSetMachineResourcesRequest} params.resource Request body data + * @param {().InstancesSetMachineResourcesRequest} params.requestBody 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 @@ -33262,7 +33262,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesSetMachineTypeRequest} params.resource Request body data + * @param {().InstancesSetMachineTypeRequest} params.requestBody 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 @@ -33400,7 +33400,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().Metadata} params.resource Request body data + * @param {().Metadata} params.requestBody 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 @@ -33538,7 +33538,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesSetMinCpuPlatformRequest} params.resource Request body data + * @param {().InstancesSetMinCpuPlatformRequest} params.requestBody 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 @@ -33676,7 +33676,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().Scheduling} params.resource Request body data + * @param {().Scheduling} params.requestBody 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 @@ -33814,7 +33814,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesSetServiceAccountRequest} params.resource Request body data + * @param {().InstancesSetServiceAccountRequest} params.requestBody 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 @@ -33892,7 +33892,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().ShieldedInstanceIntegrityPolicy} params.resource Request body data + * @param {().ShieldedInstanceIntegrityPolicy} params.requestBody 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 @@ -34032,7 +34032,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().Tags} params.resource Request body data + * @param {().Tags} params.requestBody 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 @@ -34380,7 +34380,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesStartWithEncryptionKeyRequest} params.resource Request body data + * @param {().InstancesStartWithEncryptionKeyRequest} params.requestBody 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 @@ -34591,7 +34591,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -34674,7 +34674,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().AccessConfig} params.resource Request body data + * @param {().AccessConfig} params.requestBody 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 @@ -34752,7 +34752,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().DisplayDevice} params.resource Request body data + * @param {().DisplayDevice} params.requestBody 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 @@ -34831,7 +34831,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().NetworkInterface} params.resource Request body data + * @param {().NetworkInterface} params.requestBody 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 @@ -34911,7 +34911,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().ShieldedInstanceConfig} params.resource Request body data + * @param {().ShieldedInstanceConfig} params.requestBody 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 @@ -36381,7 +36381,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InstanceTemplate} params.resource Request body data + * @param {().InstanceTemplate} params.requestBody 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 @@ -36600,7 +36600,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetPolicyRequest} params.resource Request body data + * @param {().GlobalSetPolicyRequest} params.requestBody 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 @@ -36674,7 +36674,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -37388,7 +37388,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InterconnectAttachment} params.resource Request body data + * @param {().InterconnectAttachment} params.requestBody 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 @@ -37618,7 +37618,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InterconnectAttachment} params.resource Request body data + * @param {().InterconnectAttachment} params.requestBody 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 @@ -38582,7 +38582,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Interconnect} params.resource Request body data + * @param {().Interconnect} params.requestBody 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 @@ -38856,7 +38856,7 @@ export namespace compute_v1 { * @param {string} params.interconnect Name of the interconnect to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Interconnect} params.resource Request body data + * @param {().Interconnect} params.requestBody 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 @@ -39140,7 +39140,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -39537,7 +39537,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().License} params.resource Request body data + * @param {().License} params.requestBody 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 @@ -39689,7 +39689,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetPolicyRequest} params.resource Request body data + * @param {().GlobalSetPolicyRequest} params.requestBody 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 @@ -39763,7 +39763,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -40589,7 +40589,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. - * @param {().NetworkEndpointGroupsAttachEndpointsRequest} params.resource Request body data + * @param {().NetworkEndpointGroupsAttachEndpointsRequest} params.requestBody 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 @@ -40746,7 +40746,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. - * @param {().NetworkEndpointGroupsDetachEndpointsRequest} params.resource Request body data + * @param {().NetworkEndpointGroupsDetachEndpointsRequest} params.requestBody 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 @@ -40903,7 +40903,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone where you want to create the network endpoint group. It should comply with RFC1035. - * @param {().NetworkEndpointGroup} params.resource Request body data + * @param {().NetworkEndpointGroup} params.requestBody 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 @@ -41065,7 +41065,7 @@ export namespace compute_v1 { * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. - * @param {().NetworkEndpointGroupsListEndpointsRequest} params.resource Request body data + * @param {().NetworkEndpointGroupsListEndpointsRequest} params.requestBody 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 @@ -41165,7 +41165,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -41564,7 +41564,7 @@ export namespace compute_v1 { * @param {string} params.network Name of the network resource to add peering to. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().NetworksAddPeeringRequest} params.resource Request body data + * @param {().NetworksAddPeeringRequest} params.requestBody 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 @@ -41947,7 +41947,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Network} params.resource Request body data + * @param {().Network} params.requestBody 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 @@ -42219,7 +42219,7 @@ export namespace compute_v1 { * @param {string} params.network Name of the network to update. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Network} params.resource Request body data + * @param {().Network} params.requestBody 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 @@ -42352,7 +42352,7 @@ export namespace compute_v1 { * @param {string} params.network Name of the network resource to remove peering from. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().NetworksRemovePeeringRequest} params.resource Request body data + * @param {().NetworksRemovePeeringRequest} params.requestBody 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 @@ -42558,7 +42558,7 @@ export namespace compute_v1 { * @param {string} params.network Name of the network resource which the updated peering is belonging to. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().NetworksUpdatePeeringRequest} params.resource Request body data + * @param {().NetworksUpdatePeeringRequest} params.requestBody 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 @@ -42844,7 +42844,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().NodeGroupsAddNodesRequest} params.resource Request body data + * @param {().NodeGroupsAddNodesRequest} params.requestBody 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 @@ -43080,7 +43080,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().NodeGroupsDeleteNodesRequest} params.resource Request body data + * @param {().NodeGroupsDeleteNodesRequest} params.requestBody 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 @@ -43307,7 +43307,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().NodeGroup} params.resource Request body data + * @param {().NodeGroup} params.requestBody 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 @@ -43540,7 +43540,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().ZoneSetPolicyRequest} params.resource Request body data + * @param {().ZoneSetPolicyRequest} params.requestBody 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 @@ -43616,7 +43616,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().NodeGroupsSetNodeTemplateRequest} params.resource Request body data + * @param {().NodeGroupsSetNodeTemplateRequest} params.requestBody 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 @@ -43693,7 +43693,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -44418,7 +44418,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().NodeTemplate} params.resource Request body data + * @param {().NodeTemplate} params.requestBody 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 @@ -44574,7 +44574,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetPolicyRequest} params.resource Request body data + * @param {().RegionSetPolicyRequest} params.requestBody 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 @@ -44649,7 +44649,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -45431,7 +45431,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ProjectsDisableXpnResourceRequest} params.resource Request body data + * @param {().ProjectsDisableXpnResourceRequest} params.requestBody 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 @@ -45684,7 +45684,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ProjectsEnableXpnResourceRequest} params.resource Request body data + * @param {().ProjectsEnableXpnResourceRequest} params.requestBody 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 @@ -46215,7 +46215,7 @@ export namespace compute_v1 { * @param {string=} params.order_by Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {().ProjectsListXpnHostsRequest} params.resource Request body data + * @param {().ProjectsListXpnHostsRequest} params.requestBody 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 @@ -46344,7 +46344,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().DiskMoveRequest} params.resource Request body data + * @param {().DiskMoveRequest} params.requestBody 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 @@ -46474,7 +46474,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InstanceMoveRequest} params.resource Request body data + * @param {().InstanceMoveRequest} params.requestBody 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 @@ -46603,7 +46603,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Metadata} params.resource Request body data + * @param {().Metadata} params.requestBody 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 @@ -46681,7 +46681,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ProjectsSetDefaultNetworkTierRequest} params.resource Request body data + * @param {().ProjectsSetDefaultNetworkTierRequest} params.requestBody 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 @@ -46812,7 +46812,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().UsageExportLocation} params.resource Request body data + * @param {().UsageExportLocation} params.requestBody 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 @@ -47483,7 +47483,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Autoscaler} params.resource Request body data + * @param {().Autoscaler} params.requestBody 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 @@ -47766,7 +47766,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Autoscaler} params.resource Request body data + * @param {().Autoscaler} params.requestBody 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 @@ -47902,7 +47902,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Autoscaler} params.resource Request body data + * @param {().Autoscaler} params.requestBody 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 @@ -48470,7 +48470,7 @@ export namespace compute_v1 { * @param {string} params.backendService Name of the BackendService resource for which to get health. * @param {string} params.project * @param {string} params.region Name of the region scoping this request. - * @param {().ResourceGroupReference} params.resource Request body data + * @param {().ResourceGroupReference} params.requestBody 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 @@ -48611,7 +48611,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendService} params.resource Request body data + * @param {().BackendService} params.requestBody 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 @@ -48895,7 +48895,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendService} params.resource Request body data + * @param {().BackendService} params.requestBody 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 @@ -49034,7 +49034,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendService} params.resource Request body data + * @param {().BackendService} params.requestBody 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 @@ -49636,7 +49636,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Commitment} params.resource Request body data + * @param {().Commitment} params.requestBody 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 @@ -49972,7 +49972,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionDisksAddResourcePoliciesRequest} params.resource Request body data + * @param {().RegionDisksAddResourcePoliciesRequest} params.requestBody 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 @@ -50050,7 +50050,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Snapshot} params.resource Request body data + * @param {().Snapshot} params.requestBody 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 @@ -50278,7 +50278,7 @@ export namespace compute_v1 { * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string=} params.sourceImage Optional. Source image to restore onto a disk. - * @param {().Disk} params.resource Request body data + * @param {().Disk} params.requestBody 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 @@ -50430,7 +50430,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionDisksRemoveResourcePoliciesRequest} params.resource Request body data + * @param {().RegionDisksRemoveResourcePoliciesRequest} params.requestBody 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 @@ -50510,7 +50510,7 @@ export namespace compute_v1 { * @param {string} params.project The project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionDisksResizeRequest} params.resource Request body data + * @param {().RegionDisksResizeRequest} params.requestBody 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 @@ -50588,7 +50588,7 @@ export namespace compute_v1 { * @param {string} params.region The region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetLabelsRequest} params.resource Request body data + * @param {().RegionSetLabelsRequest} params.requestBody 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 @@ -50665,7 +50665,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -51393,7 +51393,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HealthCheck} params.resource Request body data + * @param {().HealthCheck} params.requestBody 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 @@ -51550,7 +51550,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HealthCheck} params.resource Request body data + * @param {().HealthCheck} params.requestBody 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 @@ -51628,7 +51628,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HealthCheck} params.resource Request body data + * @param {().HealthCheck} params.requestBody 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 @@ -51933,7 +51933,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersAbandonInstancesRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersAbandonInstancesRequest} params.requestBody 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 @@ -52204,7 +52204,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersDeleteInstancesRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersDeleteInstancesRequest} params.requestBody 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 @@ -52472,7 +52472,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InstanceGroupManager} params.resource Request body data + * @param {().InstanceGroupManager} params.requestBody 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 @@ -52864,7 +52864,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InstanceGroupManager} params.resource Request body data + * @param {().InstanceGroupManager} params.requestBody 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 @@ -53002,7 +53002,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersRecreateRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersRecreateRequest} params.requestBody 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 @@ -53277,7 +53277,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersSetTemplateRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersSetTemplateRequest} params.requestBody 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 @@ -53415,7 +53415,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersSetTargetPoolsRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersSetTargetPoolsRequest} params.requestBody 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 @@ -54195,7 +54195,7 @@ export namespace compute_v1 { * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. - * @param {().RegionInstanceGroupsListInstancesRequest} params.resource Request body data + * @param {().RegionInstanceGroupsListInstancesRequest} params.requestBody 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 @@ -54342,7 +54342,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupsSetNamedPortsRequest} params.resource Request body data + * @param {().RegionInstanceGroupsSetNamedPortsRequest} params.requestBody 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 @@ -55500,7 +55500,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().SslCertificate} params.resource Request body data + * @param {().SslCertificate} params.requestBody 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 @@ -55918,7 +55918,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetHttpProxy} params.resource Request body data + * @param {().TargetHttpProxy} params.requestBody 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 @@ -56075,7 +56075,7 @@ export namespace compute_v1 { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpProxy Name of the TargetHttpProxy to set a URL map for. - * @param {().UrlMapReference} params.resource Request body data + * @param {().UrlMapReference} params.requestBody 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 @@ -56443,7 +56443,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetHttpsProxy} params.resource Request body data + * @param {().TargetHttpsProxy} params.requestBody 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 @@ -56602,7 +56602,7 @@ export namespace compute_v1 { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpsProxy Name of the TargetHttpsProxy resource to set an SslCertificates resource for. - * @param {().RegionTargetHttpsProxiesSetSslCertificatesRequest} params.resource Request body data + * @param {().RegionTargetHttpsProxiesSetSslCertificatesRequest} params.requestBody 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 @@ -56680,7 +56680,7 @@ export namespace compute_v1 { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpsProxy Name of the TargetHttpsProxy to set a URL map for. - * @param {().UrlMapReference} params.resource Request body data + * @param {().UrlMapReference} params.requestBody 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 @@ -57075,7 +57075,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. - * @param {().UrlMap} params.resource Request body data + * @param {().UrlMap} params.requestBody 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 @@ -57232,7 +57232,7 @@ export namespace compute_v1 { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. * @param {string} params.urlMap Name of the UrlMap resource to patch. - * @param {().UrlMap} params.resource Request body data + * @param {().UrlMap} params.requestBody 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 @@ -57310,7 +57310,7 @@ export namespace compute_v1 { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. * @param {string} params.urlMap Name of the UrlMap resource to update. - * @param {().UrlMap} params.resource Request body data + * @param {().UrlMap} params.requestBody 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 @@ -57387,7 +57387,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string} params.urlMap Name of the UrlMap resource to be validated as. - * @param {().RegionUrlMapsValidateRequest} params.resource Request body data + * @param {().RegionUrlMapsValidateRequest} params.requestBody 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 @@ -57970,7 +57970,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone Name of the zone for this request. - * @param {().Reservation} params.resource Request body data + * @param {().Reservation} params.requestBody 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 @@ -58127,7 +58127,7 @@ export namespace compute_v1 { * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.reservation Name of the reservation to update. * @param {string} params.zone Name of the zone for this request. - * @param {().ReservationsResizeRequest} params.resource Request body data + * @param {().ReservationsResizeRequest} params.requestBody 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 @@ -58204,7 +58204,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().ZoneSetPolicyRequest} params.resource Request body data + * @param {().ZoneSetPolicyRequest} params.requestBody 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 @@ -58279,7 +58279,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -58909,7 +58909,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ResourcePolicy} params.resource Request body data + * @param {().ResourcePolicy} params.requestBody 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 @@ -59065,7 +59065,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetPolicyRequest} params.resource Request body data + * @param {().RegionSetPolicyRequest} params.requestBody 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 @@ -59140,7 +59140,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -60113,7 +60113,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Router} params.resource Request body data + * @param {().Router} params.requestBody 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 @@ -60395,7 +60395,7 @@ export namespace compute_v1 { * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.router Name of the Router resource to patch. - * @param {().Router} params.resource Request body data + * @param {().Router} params.requestBody 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 @@ -60531,7 +60531,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string} params.router Name of the Router resource to query. - * @param {().Router} params.resource Request body data + * @param {().Router} params.requestBody 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 @@ -60673,7 +60673,7 @@ export namespace compute_v1 { * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.router Name of the Router resource to update. - * @param {().Router} params.resource Request body data + * @param {().Router} params.requestBody 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 @@ -61322,7 +61322,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Route} params.resource Request body data + * @param {().Route} params.requestBody 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 @@ -61624,7 +61624,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.securityPolicy Name of the security policy to update. - * @param {().SecurityPolicyRule} params.resource Request body data + * @param {().SecurityPolicyRule} params.requestBody 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 @@ -61927,7 +61927,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().SecurityPolicy} params.resource Request body data + * @param {().SecurityPolicy} params.requestBody 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 @@ -62080,7 +62080,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.securityPolicy Name of the security policy to update. - * @param {().SecurityPolicy} params.resource Request body data + * @param {().SecurityPolicy} params.requestBody 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 @@ -62157,7 +62157,7 @@ export namespace compute_v1 { * @param {integer=} params.priority The priority of the rule to patch. * @param {string} params.project Project ID for this request. * @param {string} params.securityPolicy Name of the security policy to update. - * @param {().SecurityPolicyRule} params.resource Request body data + * @param {().SecurityPolicyRule} params.requestBody 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 @@ -62978,7 +62978,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetPolicyRequest} params.resource Request body data + * @param {().GlobalSetPolicyRequest} params.requestBody 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 @@ -63109,7 +63109,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetLabelsRequest} params.resource Request body data + * @param {().GlobalSetLabelsRequest} params.requestBody 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 @@ -63185,7 +63185,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -63811,7 +63811,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().SslCertificate} params.resource Request body data + * @param {().SslCertificate} params.requestBody 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 @@ -64297,7 +64297,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().SslPolicy} params.resource Request body data + * @param {().SslPolicy} params.requestBody 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 @@ -64544,7 +64544,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.sslPolicy Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. - * @param {().SslPolicy} params.resource Request body data + * @param {().SslPolicy} params.requestBody 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 @@ -65103,7 +65103,7 @@ export namespace compute_v1 { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.subnetwork Name of the Subnetwork resource to update. - * @param {().SubnetworksExpandIpCidrRangeRequest} params.resource Request body data + * @param {().SubnetworksExpandIpCidrRangeRequest} params.requestBody 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 @@ -65442,7 +65442,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Subnetwork} params.resource Request body data + * @param {().Subnetwork} params.requestBody 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 @@ -65752,7 +65752,7 @@ export namespace compute_v1 { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.subnetwork Name of the Subnetwork resource to patch. - * @param {().Subnetwork} params.resource Request body data + * @param {().Subnetwork} params.requestBody 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 @@ -65829,7 +65829,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetPolicyRequest} params.resource Request body data + * @param {().RegionSetPolicyRequest} params.requestBody 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 @@ -65965,7 +65965,7 @@ export namespace compute_v1 { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.subnetwork Name of the Subnetwork resource. - * @param {().SubnetworksSetPrivateIpGoogleAccessRequest} params.resource Request body data + * @param {().SubnetworksSetPrivateIpGoogleAccessRequest} params.requestBody 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 @@ -66044,7 +66044,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -66846,7 +66846,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetHttpProxy} params.resource Request body data + * @param {().TargetHttpProxy} params.requestBody 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 @@ -67121,7 +67121,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpProxy Name of the TargetHttpProxy to set a URL map for. - * @param {().UrlMapReference} params.resource Request body data + * @param {().UrlMapReference} params.requestBody 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 @@ -67741,7 +67741,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetHttpsProxy} params.resource Request body data + * @param {().TargetHttpsProxy} params.requestBody 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 @@ -67961,7 +67961,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpsProxy Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should conform to RFC1035. - * @param {().TargetHttpsProxiesSetQuicOverrideRequest} params.resource Request body data + * @param {().TargetHttpsProxiesSetQuicOverrideRequest} params.requestBody 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 @@ -68095,7 +68095,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpsProxy Name of the TargetHttpsProxy resource to set an SslCertificates resource for. - * @param {().TargetHttpsProxiesSetSslCertificatesRequest} params.resource Request body data + * @param {().TargetHttpsProxiesSetSslCertificatesRequest} params.requestBody 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 @@ -68172,7 +68172,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpsProxy Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035. - * @param {().SslPolicyReference} params.resource Request body data + * @param {().SslPolicyReference} params.requestBody 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 @@ -68306,7 +68306,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetHttpsProxy Name of the TargetHttpsProxy resource whose URL map is to be set. - * @param {().UrlMapReference} params.resource Request body data + * @param {().UrlMapReference} params.requestBody 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 @@ -69076,7 +69076,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone Name of the zone scoping this request. - * @param {().TargetInstance} params.resource Request body data + * @param {().TargetInstance} params.requestBody 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 @@ -69496,7 +69496,7 @@ export namespace compute_v1 { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetPool Name of the target pool to add a health check to. - * @param {().TargetPoolsAddHealthCheckRequest} params.resource Request body data + * @param {().TargetPoolsAddHealthCheckRequest} params.requestBody 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 @@ -69634,7 +69634,7 @@ export namespace compute_v1 { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetPool Name of the TargetPool resource to add instances to. - * @param {().TargetPoolsAddInstanceRequest} params.resource Request body data + * @param {().TargetPoolsAddInstanceRequest} params.requestBody 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 @@ -70179,7 +70179,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string} params.targetPool Name of the TargetPool resource to which the queried instance belongs. - * @param {().InstanceReference} params.resource Request body data + * @param {().InstanceReference} params.requestBody 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 @@ -70317,7 +70317,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetPool} params.resource Request body data + * @param {().TargetPool} params.requestBody 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 @@ -70599,7 +70599,7 @@ export namespace compute_v1 { * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetPool Name of the target pool to remove health checks from. - * @param {().TargetPoolsRemoveHealthCheckRequest} params.resource Request body data + * @param {().TargetPoolsRemoveHealthCheckRequest} params.requestBody 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 @@ -70737,7 +70737,7 @@ export namespace compute_v1 { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetPool Name of the TargetPool resource to remove instances from. - * @param {().TargetPoolsRemoveInstanceRequest} params.resource Request body data + * @param {().TargetPoolsRemoveInstanceRequest} params.requestBody 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 @@ -70876,7 +70876,7 @@ export namespace compute_v1 { * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetPool Name of the TargetPool resource to set a backup pool for. - * @param {().TargetReference} params.resource Request body data + * @param {().TargetReference} params.requestBody 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 @@ -71572,7 +71572,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetSslProxy} params.resource Request body data + * @param {().TargetSslProxy} params.requestBody 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 @@ -71845,7 +71845,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetSslProxy Name of the TargetSslProxy resource whose BackendService resource is to be set. - * @param {().TargetSslProxiesSetBackendServiceRequest} params.resource Request body data + * @param {().TargetSslProxiesSetBackendServiceRequest} params.requestBody 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 @@ -71979,7 +71979,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetSslProxy Name of the TargetSslProxy resource whose ProxyHeader is to be set. - * @param {().TargetSslProxiesSetProxyHeaderRequest} params.resource Request body data + * @param {().TargetSslProxiesSetProxyHeaderRequest} params.requestBody 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 @@ -72113,7 +72113,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetSslProxy Name of the TargetSslProxy resource whose SslCertificate resource is to be set. - * @param {().TargetSslProxiesSetSslCertificatesRequest} params.resource Request body data + * @param {().TargetSslProxiesSetSslCertificatesRequest} params.requestBody 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 @@ -72190,7 +72190,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetSslProxy Name of the TargetSslProxy resource whose SSL policy is to be set. The name must be 1-63 characters long, and comply with RFC1035. - * @param {().SslPolicyReference} params.resource Request body data + * @param {().SslPolicyReference} params.requestBody 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 @@ -72770,7 +72770,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetTcpProxy} params.resource Request body data + * @param {().TargetTcpProxy} params.requestBody 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 @@ -73043,7 +73043,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetTcpProxy Name of the TargetTcpProxy resource whose BackendService resource is to be set. - * @param {().TargetTcpProxiesSetBackendServiceRequest} params.resource Request body data + * @param {().TargetTcpProxiesSetBackendServiceRequest} params.requestBody 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 @@ -73177,7 +73177,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.targetTcpProxy Name of the TargetTcpProxy resource whose ProxyHeader is to be set. - * @param {().TargetTcpProxiesSetProxyHeaderRequest} params.resource Request body data + * @param {().TargetTcpProxiesSetProxyHeaderRequest} params.requestBody 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 @@ -73869,7 +73869,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetVpnGateway} params.resource Request body data + * @param {().TargetVpnGateway} params.requestBody 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 @@ -74615,7 +74615,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().UrlMap} params.resource Request body data + * @param {().UrlMap} params.requestBody 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 @@ -74747,7 +74747,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.urlMap Name of the UrlMap scoping this request. - * @param {().CacheInvalidationRule} params.resource Request body data + * @param {().CacheInvalidationRule} params.requestBody 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 @@ -75021,7 +75021,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.urlMap Name of the UrlMap resource to patch. - * @param {().UrlMap} params.resource Request body data + * @param {().UrlMap} params.requestBody 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 @@ -75154,7 +75154,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.urlMap Name of the UrlMap resource to update. - * @param {().UrlMap} params.resource Request body data + * @param {().UrlMap} params.requestBody 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 @@ -75285,7 +75285,7 @@ export namespace compute_v1 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.urlMap Name of the UrlMap resource to be validated as. - * @param {().UrlMapsValidateRequest} params.resource Request body data + * @param {().UrlMapsValidateRequest} params.requestBody 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 @@ -75893,7 +75893,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().VpnGateway} params.resource Request body data + * @param {().VpnGateway} params.requestBody 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 @@ -76049,7 +76049,7 @@ export namespace compute_v1 { * @param {string} params.region The region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().RegionSetLabelsRequest} params.resource Request body data + * @param {().RegionSetLabelsRequest} params.requestBody 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 @@ -76126,7 +76126,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -76881,7 +76881,7 @@ export namespace compute_v1 { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().VpnTunnel} params.resource Request body data + * @param {().VpnTunnel} params.requestBody 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 diff --git a/src/apis/container/v1.ts b/src/apis/container/v1.ts index d166f26c301..540b47f80da 100644 --- a/src/apis/container/v1.ts +++ b/src/apis/container/v1.ts @@ -2284,7 +2284,7 @@ export namespace container_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster id) of the cluster to complete IP rotation. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().CompleteIPRotationRequest} params.resource Request body data + * @param {().CompleteIPRotationRequest} params.requestBody 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 @@ -2410,7 +2410,7 @@ export namespace container_v1 { * * @param {object} params Parameters for request * @param {string} params.parent The parent (project and location) where the cluster will be created. Specified in the format 'projects/x/locations/x'. - * @param {().CreateClusterRequest} params.resource Request body data + * @param {().CreateClusterRequest} params.requestBody 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 @@ -3024,7 +3024,7 @@ export namespace container_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster) of the cluster to set addons. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().SetAddonsConfigRequest} params.resource Request body data + * @param {().SetAddonsConfigRequest} params.requestBody 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 @@ -3150,7 +3150,7 @@ export namespace container_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster id) of the cluster to set legacy abac. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().SetLegacyAbacRequest} params.resource Request body data + * @param {().SetLegacyAbacRequest} params.requestBody 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 @@ -3276,7 +3276,7 @@ export namespace container_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster) of the cluster to set locations. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().SetLocationsRequest} params.resource Request body data + * @param {().SetLocationsRequest} params.requestBody 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 @@ -3402,7 +3402,7 @@ export namespace container_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster) of the cluster to set logging. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().SetLoggingServiceRequest} params.resource Request body data + * @param {().SetLoggingServiceRequest} params.requestBody 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 @@ -3529,7 +3529,7 @@ export namespace container_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster id) of the cluster to set maintenance policy. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().SetMaintenancePolicyRequest} params.resource Request body data + * @param {().SetMaintenancePolicyRequest} params.requestBody 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 @@ -3657,7 +3657,7 @@ export namespace container_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster) of the cluster to set auth. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().SetMasterAuthRequest} params.resource Request body data + * @param {().SetMasterAuthRequest} params.requestBody 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 @@ -3783,7 +3783,7 @@ export namespace container_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster) of the cluster to set monitoring. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().SetMonitoringServiceRequest} params.resource Request body data + * @param {().SetMonitoringServiceRequest} params.requestBody 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 @@ -3909,7 +3909,7 @@ export namespace container_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster id) of the cluster to set networking policy. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().SetNetworkPolicyRequest} params.resource Request body data + * @param {().SetNetworkPolicyRequest} params.requestBody 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 @@ -4035,7 +4035,7 @@ export namespace container_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster id) of the cluster to set labels. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().SetLabelsRequest} params.resource Request body data + * @param {().SetLabelsRequest} params.requestBody 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 @@ -4161,7 +4161,7 @@ export namespace container_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster id) of the cluster to start IP rotation. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().StartIPRotationRequest} params.resource Request body data + * @param {().StartIPRotationRequest} params.requestBody 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 @@ -4288,7 +4288,7 @@ export namespace container_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster) of the cluster to update. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().UpdateClusterRequest} params.resource Request body data + * @param {().UpdateClusterRequest} params.requestBody 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 @@ -4411,7 +4411,7 @@ export namespace container_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster) of the cluster to update. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().UpdateMasterRequest} params.resource Request body data + * @param {().UpdateMasterRequest} params.requestBody 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 @@ -4864,7 +4864,7 @@ export namespace container_v1 { * * @param {object} params Parameters for request * @param {string} params.parent The parent (project, location, cluster id) where the node pool will be created. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().CreateNodePoolRequest} params.resource Request body data + * @param {().CreateNodePoolRequest} params.requestBody 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 @@ -5361,7 +5361,7 @@ export namespace container_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster, node pool id) of the node poll to rollback upgrade. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {().RollbackNodePoolUpgradeRequest} params.resource Request body data + * @param {().RollbackNodePoolUpgradeRequest} params.requestBody 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 @@ -5488,7 +5488,7 @@ export namespace container_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster, node pool) of the node pool to set autoscaler settings. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {().SetNodePoolAutoscalingRequest} params.resource Request body data + * @param {().SetNodePoolAutoscalingRequest} params.requestBody 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 @@ -5615,7 +5615,7 @@ export namespace container_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster, node pool id) of the node pool to set management properties. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {().SetNodePoolManagementRequest} params.resource Request body data + * @param {().SetNodePoolManagementRequest} params.requestBody 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 @@ -5742,7 +5742,7 @@ export namespace container_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster, node pool id) of the node pool to set size. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {().SetNodePoolSizeRequest} params.resource Request body data + * @param {().SetNodePoolSizeRequest} params.requestBody 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 @@ -5870,7 +5870,7 @@ export namespace container_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster, node pool) of the node pool to update. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {().UpdateNodePoolRequest} params.resource Request body data + * @param {().UpdateNodePoolRequest} params.requestBody 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 @@ -6324,7 +6324,7 @@ export namespace container_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, operation id) of the operation to cancel. Specified in the format 'projects/x/locations/x/operations/x'. - * @param {().CancelOperationRequest} params.resource Request body data + * @param {().CancelOperationRequest} params.requestBody 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 @@ -6938,7 +6938,7 @@ export namespace container_v1 { * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetAddonsConfigRequest} params.resource Request body data + * @param {().SetAddonsConfigRequest} params.requestBody 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 @@ -7077,7 +7077,7 @@ export namespace container_v1 { * @param {string} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().CompleteIPRotationRequest} params.resource Request body data + * @param {().CompleteIPRotationRequest} params.requestBody 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 @@ -7211,7 +7211,7 @@ export namespace container_v1 { * @param {object} params Parameters for request * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the parent field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the parent field. - * @param {().CreateClusterRequest} params.resource Request body data + * @param {().CreateClusterRequest} params.requestBody 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 @@ -7617,7 +7617,7 @@ export namespace container_v1 { * @param {string} params.clusterId Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetLegacyAbacRequest} params.resource Request body data + * @param {().SetLegacyAbacRequest} params.requestBody 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 @@ -7887,7 +7887,7 @@ export namespace container_v1 { * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetLocationsRequest} params.resource Request body data + * @param {().SetLocationsRequest} params.requestBody 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 @@ -8026,7 +8026,7 @@ export namespace container_v1 { * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetLoggingServiceRequest} params.resource Request body data + * @param {().SetLoggingServiceRequest} params.requestBody 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 @@ -8165,7 +8165,7 @@ export namespace container_v1 { * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().UpdateMasterRequest} params.resource Request body data + * @param {().UpdateMasterRequest} params.requestBody 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 @@ -8304,7 +8304,7 @@ export namespace container_v1 { * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetMonitoringServiceRequest} params.resource Request body data + * @param {().SetMonitoringServiceRequest} params.requestBody 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 @@ -8443,7 +8443,7 @@ export namespace container_v1 { * @param {string} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetLabelsRequest} params.resource Request body data + * @param {().SetLabelsRequest} params.requestBody 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 @@ -8579,7 +8579,7 @@ export namespace container_v1 { * @param {string} params.clusterId The name of the cluster to update. * @param {string} params.projectId The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). * @param {string} params.zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. - * @param {().SetMaintenancePolicyRequest} params.resource Request body data + * @param {().SetMaintenancePolicyRequest} params.requestBody 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 @@ -8720,7 +8720,7 @@ export namespace container_v1 { * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetMasterAuthRequest} params.resource Request body data + * @param {().SetMasterAuthRequest} params.requestBody 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 @@ -8859,7 +8859,7 @@ export namespace container_v1 { * @param {string} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetNetworkPolicyRequest} params.resource Request body data + * @param {().SetNetworkPolicyRequest} params.requestBody 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 @@ -8998,7 +8998,7 @@ export namespace container_v1 { * @param {string} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().StartIPRotationRequest} params.resource Request body data + * @param {().StartIPRotationRequest} params.requestBody 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 @@ -9138,7 +9138,7 @@ export namespace container_v1 { * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().UpdateClusterRequest} params.resource Request body data + * @param {().UpdateClusterRequest} params.requestBody 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 @@ -9704,7 +9704,7 @@ export namespace container_v1 { * @param {string} params.nodePoolId Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetNodePoolAutoscalingRequest} params.resource Request body data + * @param {().SetNodePoolAutoscalingRequest} params.requestBody 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 @@ -9843,7 +9843,7 @@ export namespace container_v1 { * @param {string} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the parent field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the parent field. - * @param {().CreateNodePoolRequest} params.resource Request body data + * @param {().CreateNodePoolRequest} params.requestBody 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 @@ -10402,7 +10402,7 @@ export namespace container_v1 { * @param {string} params.nodePoolId Deprecated. The name of the node pool to rollback. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().RollbackNodePoolUpgradeRequest} params.resource Request body data + * @param {().RollbackNodePoolUpgradeRequest} params.requestBody 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 @@ -10546,7 +10546,7 @@ export namespace container_v1 { * @param {string} params.nodePoolId Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetNodePoolManagementRequest} params.resource Request body data + * @param {().SetNodePoolManagementRequest} params.requestBody 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 @@ -10690,7 +10690,7 @@ export namespace container_v1 { * @param {string} params.nodePoolId Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetNodePoolSizeRequest} params.resource Request body data + * @param {().SetNodePoolSizeRequest} params.requestBody 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 @@ -10834,7 +10834,7 @@ export namespace container_v1 { * @param {string} params.nodePoolId Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().UpdateNodePoolRequest} params.resource Request body data + * @param {().UpdateNodePoolRequest} params.requestBody 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 @@ -11227,7 +11227,7 @@ export namespace container_v1 { * @param {string} params.operationId Deprecated. The server-assigned `name` of the operation. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the operation resides. This field has been deprecated and replaced by the name field. - * @param {().CancelOperationRequest} params.resource Request body data + * @param {().CancelOperationRequest} params.requestBody 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 diff --git a/src/apis/container/v1beta1.ts b/src/apis/container/v1beta1.ts index e31071f79ee..932d48b8124 100644 --- a/src/apis/container/v1beta1.ts +++ b/src/apis/container/v1beta1.ts @@ -2583,7 +2583,7 @@ export namespace container_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster id) of the cluster to complete IP rotation. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().CompleteIPRotationRequest} params.resource Request body data + * @param {().CompleteIPRotationRequest} params.requestBody 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 @@ -2658,7 +2658,7 @@ export namespace container_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent The parent (project and location) where the cluster will be created. Specified in the format 'projects/x/locations/x'. - * @param {().CreateClusterRequest} params.resource Request body data + * @param {().CreateClusterRequest} params.requestBody 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 @@ -3035,7 +3035,7 @@ export namespace container_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster) of the cluster to set addons. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().SetAddonsConfigRequest} params.resource Request body data + * @param {().SetAddonsConfigRequest} params.requestBody 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 @@ -3110,7 +3110,7 @@ export namespace container_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster id) of the cluster to set legacy abac. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().SetLegacyAbacRequest} params.resource Request body data + * @param {().SetLegacyAbacRequest} params.requestBody 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 @@ -3185,7 +3185,7 @@ export namespace container_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster) of the cluster to set locations. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().SetLocationsRequest} params.resource Request body data + * @param {().SetLocationsRequest} params.requestBody 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 @@ -3260,7 +3260,7 @@ export namespace container_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster) of the cluster to set logging. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().SetLoggingServiceRequest} params.resource Request body data + * @param {().SetLoggingServiceRequest} params.requestBody 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 @@ -3335,7 +3335,7 @@ export namespace container_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster id) of the cluster to set maintenance policy. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().SetMaintenancePolicyRequest} params.resource Request body data + * @param {().SetMaintenancePolicyRequest} params.requestBody 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 @@ -3412,7 +3412,7 @@ export namespace container_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster) of the cluster to set auth. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().SetMasterAuthRequest} params.resource Request body data + * @param {().SetMasterAuthRequest} params.requestBody 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 @@ -3487,7 +3487,7 @@ export namespace container_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster) of the cluster to set monitoring. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().SetMonitoringServiceRequest} params.resource Request body data + * @param {().SetMonitoringServiceRequest} params.requestBody 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 @@ -3562,7 +3562,7 @@ export namespace container_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster id) of the cluster to set networking policy. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().SetNetworkPolicyRequest} params.resource Request body data + * @param {().SetNetworkPolicyRequest} params.requestBody 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 @@ -3637,7 +3637,7 @@ export namespace container_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster id) of the cluster to set labels. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().SetLabelsRequest} params.resource Request body data + * @param {().SetLabelsRequest} params.requestBody 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 @@ -3712,7 +3712,7 @@ export namespace container_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster id) of the cluster to start IP rotation. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().StartIPRotationRequest} params.resource Request body data + * @param {().StartIPRotationRequest} params.requestBody 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 @@ -3787,7 +3787,7 @@ export namespace container_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster) of the cluster to update. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().UpdateClusterRequest} params.resource Request body data + * @param {().UpdateClusterRequest} params.requestBody 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 @@ -3859,7 +3859,7 @@ export namespace container_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster) of the cluster to update. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().UpdateMasterRequest} params.resource Request body data + * @param {().UpdateMasterRequest} params.requestBody 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 @@ -4260,7 +4260,7 @@ export namespace container_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent The parent (project, location, cluster id) where the node pool will be created. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {().CreateNodePoolRequest} params.resource Request body data + * @param {().CreateNodePoolRequest} params.requestBody 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 @@ -4562,7 +4562,7 @@ export namespace container_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster, node pool id) of the node poll to rollback upgrade. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {().RollbackNodePoolUpgradeRequest} params.resource Request body data + * @param {().RollbackNodePoolUpgradeRequest} params.requestBody 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 @@ -4637,7 +4637,7 @@ export namespace container_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster, node pool) of the node pool to set autoscaler settings. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {().SetNodePoolAutoscalingRequest} params.resource Request body data + * @param {().SetNodePoolAutoscalingRequest} params.requestBody 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 @@ -4712,7 +4712,7 @@ export namespace container_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster, node pool id) of the node pool to set management properties. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {().SetNodePoolManagementRequest} params.resource Request body data + * @param {().SetNodePoolManagementRequest} params.requestBody 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 @@ -4787,7 +4787,7 @@ export namespace container_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster, node pool id) of the node pool to set size. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {().SetNodePoolSizeRequest} params.resource Request body data + * @param {().SetNodePoolSizeRequest} params.requestBody 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 @@ -4862,7 +4862,7 @@ export namespace container_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, cluster, node pool) of the node pool to update. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {().UpdateNodePoolRequest} params.resource Request body data + * @param {().UpdateNodePoolRequest} params.requestBody 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 @@ -5221,7 +5221,7 @@ export namespace container_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name (project, location, operation id) of the operation to cancel. Specified in the format 'projects/x/locations/x/operations/x'. - * @param {().CancelOperationRequest} params.resource Request body data + * @param {().CancelOperationRequest} params.requestBody 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 @@ -5629,7 +5629,7 @@ export namespace container_v1beta1 { * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetAddonsConfigRequest} params.resource Request body data + * @param {().SetAddonsConfigRequest} params.requestBody 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 @@ -5706,7 +5706,7 @@ export namespace container_v1beta1 { * @param {string} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().CompleteIPRotationRequest} params.resource Request body data + * @param {().CompleteIPRotationRequest} params.requestBody 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 @@ -5782,7 +5782,7 @@ export namespace container_v1beta1 { * @param {object} params Parameters for request * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the parent field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the parent field. - * @param {().CreateClusterRequest} params.resource Request body data + * @param {().CreateClusterRequest} params.requestBody 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 @@ -6010,7 +6010,7 @@ export namespace container_v1beta1 { * @param {string} params.clusterId Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetLegacyAbacRequest} params.resource Request body data + * @param {().SetLegacyAbacRequest} params.requestBody 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 @@ -6164,7 +6164,7 @@ export namespace container_v1beta1 { * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetLocationsRequest} params.resource Request body data + * @param {().SetLocationsRequest} params.requestBody 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 @@ -6241,7 +6241,7 @@ export namespace container_v1beta1 { * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetLoggingServiceRequest} params.resource Request body data + * @param {().SetLoggingServiceRequest} params.requestBody 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 @@ -6318,7 +6318,7 @@ export namespace container_v1beta1 { * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().UpdateMasterRequest} params.resource Request body data + * @param {().UpdateMasterRequest} params.requestBody 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 @@ -6395,7 +6395,7 @@ export namespace container_v1beta1 { * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetMonitoringServiceRequest} params.resource Request body data + * @param {().SetMonitoringServiceRequest} params.requestBody 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 @@ -6472,7 +6472,7 @@ export namespace container_v1beta1 { * @param {string} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetLabelsRequest} params.resource Request body data + * @param {().SetLabelsRequest} params.requestBody 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 @@ -6549,7 +6549,7 @@ export namespace container_v1beta1 { * @param {string} params.clusterId The name of the cluster to update. * @param {string} params.projectId The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). * @param {string} params.zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. - * @param {().SetMaintenancePolicyRequest} params.resource Request body data + * @param {().SetMaintenancePolicyRequest} params.requestBody 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 @@ -6628,7 +6628,7 @@ export namespace container_v1beta1 { * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetMasterAuthRequest} params.resource Request body data + * @param {().SetMasterAuthRequest} params.requestBody 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 @@ -6705,7 +6705,7 @@ export namespace container_v1beta1 { * @param {string} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetNetworkPolicyRequest} params.resource Request body data + * @param {().SetNetworkPolicyRequest} params.requestBody 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 @@ -6782,7 +6782,7 @@ export namespace container_v1beta1 { * @param {string} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().StartIPRotationRequest} params.resource Request body data + * @param {().StartIPRotationRequest} params.requestBody 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 @@ -6859,7 +6859,7 @@ export namespace container_v1beta1 { * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().UpdateClusterRequest} params.resource Request body data + * @param {().UpdateClusterRequest} params.requestBody 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 @@ -7359,7 +7359,7 @@ export namespace container_v1beta1 { * @param {string} params.nodePoolId Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetNodePoolAutoscalingRequest} params.resource Request body data + * @param {().SetNodePoolAutoscalingRequest} params.requestBody 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 @@ -7436,7 +7436,7 @@ export namespace container_v1beta1 { * @param {string} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the parent field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the parent field. - * @param {().CreateNodePoolRequest} params.resource Request body data + * @param {().CreateNodePoolRequest} params.requestBody 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 @@ -7747,7 +7747,7 @@ export namespace container_v1beta1 { * @param {string} params.nodePoolId Deprecated. The name of the node pool to rollback. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().RollbackNodePoolUpgradeRequest} params.resource Request body data + * @param {().RollbackNodePoolUpgradeRequest} params.requestBody 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 @@ -7825,7 +7825,7 @@ export namespace container_v1beta1 { * @param {string} params.nodePoolId Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetNodePoolManagementRequest} params.resource Request body data + * @param {().SetNodePoolManagementRequest} params.requestBody 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 @@ -7903,7 +7903,7 @@ export namespace container_v1beta1 { * @param {string} params.nodePoolId Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetNodePoolSizeRequest} params.resource Request body data + * @param {().SetNodePoolSizeRequest} params.requestBody 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 @@ -7981,7 +7981,7 @@ export namespace container_v1beta1 { * @param {string} params.nodePoolId Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().UpdateNodePoolRequest} params.resource Request body data + * @param {().UpdateNodePoolRequest} params.requestBody 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 @@ -8316,7 +8316,7 @@ export namespace container_v1beta1 { * @param {string} params.operationId Deprecated. The server-assigned `name` of the operation. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the operation resides. This field has been deprecated and replaced by the name field. - * @param {().CancelOperationRequest} params.resource Request body data + * @param {().CancelOperationRequest} params.requestBody 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 diff --git a/src/apis/containeranalysis/v1alpha1.ts b/src/apis/containeranalysis/v1alpha1.ts index 913d180dee7..db08787071f 100644 --- a/src/apis/containeranalysis/v1alpha1.ts +++ b/src/apis/containeranalysis/v1alpha1.ts @@ -1028,11 +1028,11 @@ export namespace containeranalysis_v1alpha1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -1401,7 +1401,7 @@ export namespace containeranalysis_v1alpha1 { * @param {string=} params.name The name of the project. Should be of the form "providers/{provider_id}". @Deprecated * @param {string=} params.noteId The ID to use for this note. * @param {string} params.parent This field contains the project Id for example: "projects/{project_id} - * @param {().Note} params.resource Request body data + * @param {().Note} params.requestBody 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 @@ -1615,7 +1615,7 @@ export namespace containeranalysis_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -1769,7 +1769,7 @@ export namespace containeranalysis_v1alpha1 { * @param {object} params Parameters for request * @param {string} params.name The name of the note. Should be of the form "projects/{provider_id}/notes/{note_id}". * @param {string=} params.updateMask The fields to update. - * @param {().Note} params.resource Request body data + * @param {().Note} params.requestBody 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 @@ -1840,7 +1840,7 @@ export namespace containeranalysis_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -1914,7 +1914,7 @@ export namespace containeranalysis_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -2272,7 +2272,7 @@ export namespace containeranalysis_v1alpha1 { * @param {object} params Parameters for request * @param {string=} params.name The name of the project. Should be of the form "projects/{project_id}". @Deprecated * @param {string} params.parent This field contains the project Id for example: "projects/{project_id}" - * @param {().Occurrence} params.resource Request body data + * @param {().Occurrence} params.requestBody 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 @@ -2490,7 +2490,7 @@ export namespace containeranalysis_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -2804,7 +2804,7 @@ export namespace containeranalysis_v1alpha1 { * @param {object} params Parameters for request * @param {string} params.name The name of the occurrence. Should be of the form "projects/{project_id}/occurrences/{OCCURRENCE_ID}". * @param {string=} params.updateMask The fields to update. - * @param {().Occurrence} params.resource Request body data + * @param {().Occurrence} params.requestBody 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 @@ -2877,7 +2877,7 @@ export namespace containeranalysis_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -2951,7 +2951,7 @@ export namespace containeranalysis_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -3219,7 +3219,7 @@ export namespace containeranalysis_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.parent The project Id that this operation should be created under. - * @param {().CreateOperationRequest} params.resource Request body data + * @param {().CreateOperationRequest} params.requestBody 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 @@ -3295,7 +3295,7 @@ export namespace containeranalysis_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the Operation. Should be of the form "projects/{provider_id}/operations/{operation_id}". - * @param {().UpdateOperationRequest} params.resource Request body data + * @param {().UpdateOperationRequest} params.requestBody 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 @@ -3563,7 +3563,7 @@ export namespace containeranalysis_v1alpha1 { * @param {object} params Parameters for request * @param {string} params.name The scan config to update of the form projects/{project_id}/scanConfigs/{scan_config_id}. * @param {string=} params.updateMask The fields to update. - * @param {().ScanConfig} params.resource Request body data + * @param {().ScanConfig} params.requestBody 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 @@ -3714,7 +3714,7 @@ export namespace containeranalysis_v1alpha1 { * @param {string} params.name The name of the project. Should be of the form "providers/{provider_id}". @Deprecated * @param {string=} params.noteId The ID to use for this note. * @param {string=} params.parent This field contains the project Id for example: "projects/{project_id} - * @param {().Note} params.resource Request body data + * @param {().Note} params.requestBody 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 @@ -3928,7 +3928,7 @@ export namespace containeranalysis_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -4082,7 +4082,7 @@ export namespace containeranalysis_v1alpha1 { * @param {object} params Parameters for request * @param {string} params.name The name of the note. Should be of the form "projects/{provider_id}/notes/{note_id}". * @param {string=} params.updateMask The fields to update. - * @param {().Note} params.resource Request body data + * @param {().Note} params.requestBody 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 @@ -4153,7 +4153,7 @@ export namespace containeranalysis_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -4227,7 +4227,7 @@ export namespace containeranalysis_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 diff --git a/src/apis/containeranalysis/v1beta1.ts b/src/apis/containeranalysis/v1beta1.ts index 930dfc0a20a..45fa0ee2656 100644 --- a/src/apis/containeranalysis/v1beta1.ts +++ b/src/apis/containeranalysis/v1beta1.ts @@ -1118,11 +1118,11 @@ export namespace containeranalysis_v1beta1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -1430,7 +1430,7 @@ export namespace containeranalysis_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent The name of the project in the form of `projects/[PROJECT_ID]`, under which the notes are to be created. - * @param {().BatchCreateNotesRequest} params.resource Request body data + * @param {().BatchCreateNotesRequest} params.requestBody 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 @@ -1511,7 +1511,7 @@ export namespace containeranalysis_v1beta1 { * @param {object} params Parameters for request * @param {string=} params.noteId The ID to use for this note. * @param {string} params.parent The name of the project in the form of `projects/[PROJECT_ID]`, under which the note is to be created. - * @param {().Note} params.resource Request body data + * @param {().Note} params.requestBody 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 @@ -1725,7 +1725,7 @@ export namespace containeranalysis_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -1878,7 +1878,7 @@ export namespace containeranalysis_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. * @param {string=} params.updateMask The fields to update. - * @param {().Note} params.resource Request body data + * @param {().Note} params.requestBody 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 @@ -1949,7 +1949,7 @@ export namespace containeranalysis_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -2023,7 +2023,7 @@ export namespace containeranalysis_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -2389,7 +2389,7 @@ export namespace containeranalysis_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrences are to be created. - * @param {().BatchCreateOccurrencesRequest} params.resource Request body data + * @param {().BatchCreateOccurrencesRequest} params.requestBody 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 @@ -2473,7 +2473,7 @@ export namespace containeranalysis_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrence is to be created. - * @param {().Occurrence} params.resource Request body data + * @param {().Occurrence} params.requestBody 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 @@ -2691,7 +2691,7 @@ export namespace containeranalysis_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -3003,7 +3003,7 @@ export namespace containeranalysis_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. * @param {string=} params.updateMask The fields to update. - * @param {().Occurrence} params.resource Request body data + * @param {().Occurrence} params.requestBody 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 @@ -3076,7 +3076,7 @@ export namespace containeranalysis_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -3150,7 +3150,7 @@ export namespace containeranalysis_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -3575,7 +3575,7 @@ export namespace containeranalysis_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the scan configuration in the form of `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. - * @param {().ScanConfig} params.resource Request body data + * @param {().ScanConfig} params.requestBody 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 diff --git a/src/apis/content/v2.1.ts b/src/apis/content/v2.1.ts index cf34028fa95..41295be404a 100644 --- a/src/apis/content/v2.1.ts +++ b/src/apis/content/v2.1.ts @@ -1776,7 +1776,7 @@ export namespace content_v2_1 { */ quantity?: number | null; /** - * The reason for the cancellation. Orders that are cancelled with a noInventory reason will lead to the removal of the product from Shopping Actions until you make an update to that product. This will not affect your Shopping ads. + * The reason for the cancellation. Orders that are canceled with a noInventory reason will lead to the removal of the product from Shopping Actions until you make an update to that product. This will not affect your Shopping ads. */ reason?: string | null; /** @@ -2568,7 +2568,7 @@ export namespace content_v2_1 { } export interface Schema$OrderShipment { /** - * The carrier handling the shipment. Acceptable values for US are: - "gsx" - "ups" - "usps" - "fedex" - "dhl" - "ecourier" - "cxt" - "google" - "ontrac" - "emsy" - "ont" - "deliv" - "dynamex" - "lasership" - "mpx" - "uds" - "efw" - "jd logistics" Acceptable values for FR are: - "colissimo" - "chronopost" - "gls" - "dpd" - "bpost" - "colis prive" - "boxtal" - "geodis" - "tnt" - "la poste" + * The carrier handling the shipment. Acceptable values for US are: - "gsx" - "ups" - "usps" - "fedex" - "dhl" - "ecourier" - "cxt" - "google" - "ontrac" - "emsy" - "ont" - "deliv" - "dynamex" - "lasership" - "mpx" - "uds" - "efw" - "yunexpress" - "china post" - "china ems" - "singapore post" - "pos malaysia" - "postnl" - "ptt" - "eub" - "chukou1" Acceptable values for FR are: - "colissimo" - "chronopost" - "gls" - "dpd" - "bpost" - "colis prive" - "boxtal" - "geodis" - "tnt" - "la poste" - "ups" */ carrier?: string | null; /** @@ -2602,7 +2602,7 @@ export namespace content_v2_1 { } export interface Schema$OrderShipmentLineItemShipment { /** - * The ID of the line item that is shipped. Either lineItemId or productId is required. + * The ID of the line item that is shipped. This value is assigned by Google when an order is created. Either lineItemId or productId is required. */ lineItemId?: string | null; /** @@ -4896,7 +4896,7 @@ export namespace content_v2_1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AccountsCustomBatchRequest} params.resource Request body data + * @param {().AccountsCustomBatchRequest} params.requestBody 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 @@ -5121,7 +5121,7 @@ export namespace content_v2_1 { * * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the managing account. This must be a multi-client account. - * @param {().Account} params.resource Request body data + * @param {().Account} params.requestBody 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 @@ -5194,7 +5194,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.accountId The ID of the account that should be linked. * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account. - * @param {().AccountsLinkRequest} params.resource Request body data + * @param {().AccountsLinkRequest} params.requestBody 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 @@ -5347,7 +5347,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.accountId The ID of the account. * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account. - * @param {().Account} params.resource Request body data + * @param {().Account} params.requestBody 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 @@ -5573,7 +5573,7 @@ export namespace content_v2_1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AccountstatusesCustomBatchRequest} params.resource Request body data + * @param {().AccountstatusesCustomBatchRequest} params.requestBody 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 @@ -5878,7 +5878,7 @@ export namespace content_v2_1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AccounttaxCustomBatchRequest} params.resource Request body data + * @param {().AccounttaxCustomBatchRequest} params.requestBody 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 @@ -6113,7 +6113,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.accountId The ID of the account for which to get/update account tax settings. * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account. - * @param {().AccountTax} params.resource Request body data + * @param {().AccountTax} params.requestBody 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 @@ -6261,7 +6261,7 @@ export namespace content_v2_1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().DatafeedsCustomBatchRequest} params.resource Request body data + * @param {().DatafeedsCustomBatchRequest} params.requestBody 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 @@ -6569,7 +6569,7 @@ export namespace content_v2_1 { * * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. - * @param {().Datafeed} params.resource Request body data + * @param {().Datafeed} params.requestBody 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 @@ -6719,7 +6719,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.datafeedId The ID of the datafeed. * @param {string} params.merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. - * @param {().Datafeed} params.resource Request body data + * @param {().Datafeed} params.requestBody 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 @@ -6910,7 +6910,7 @@ export namespace content_v2_1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().DatafeedstatusesCustomBatchRequest} params.resource Request body data + * @param {().DatafeedstatusesCustomBatchRequest} params.requestBody 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 @@ -7220,7 +7220,7 @@ export namespace content_v2_1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().LiasettingsCustomBatchRequest} params.resource Request body data + * @param {().LiasettingsCustomBatchRequest} params.requestBody 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 @@ -8036,7 +8036,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.accountId The ID of the account for which to get or update LIA settings. * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account. - * @param {().LiaSettings} params.resource Request body data + * @param {().LiaSettings} params.requestBody 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 @@ -8309,7 +8309,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrderinvoicesCreateChargeInvoiceRequest} params.resource Request body data + * @param {().OrderinvoicesCreateChargeInvoiceRequest} params.requestBody 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 @@ -8402,7 +8402,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrderinvoicesCreateRefundInvoiceRequest} params.resource Request body data + * @param {().OrderinvoicesCreateRefundInvoiceRequest} params.requestBody 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 @@ -9016,7 +9016,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersAcknowledgeRequest} params.resource Request body data + * @param {().OrdersAcknowledgeRequest} params.requestBody 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 @@ -9183,7 +9183,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order to cancel. - * @param {().OrdersCancelRequest} params.resource Request body data + * @param {().OrdersCancelRequest} params.requestBody 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 @@ -9259,7 +9259,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersCancelLineItemRequest} params.resource Request body data + * @param {().OrdersCancelLineItemRequest} params.requestBody 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 @@ -9344,7 +9344,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the test order to cancel. - * @param {().OrdersCancelTestOrderByCustomerRequest} params.resource Request body data + * @param {().OrdersCancelTestOrderByCustomerRequest} params.requestBody 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 @@ -9436,7 +9436,7 @@ export namespace content_v2_1 { * * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that should manage the order. This cannot be a multi-client account. - * @param {().OrdersCreateTestOrderRequest} params.resource Request body data + * @param {().OrdersCreateTestOrderRequest} params.requestBody 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 @@ -9521,7 +9521,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersCreateTestReturnRequest} params.resource Request body data + * @param {().OrdersCreateTestReturnRequest} params.requestBody 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 @@ -9845,7 +9845,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersInStoreRefundLineItemRequest} params.resource Request body data + * @param {().OrdersInStoreRefundLineItemRequest} params.requestBody 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 @@ -10012,7 +10012,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersRejectReturnLineItemRequest} params.resource Request body data + * @param {().OrdersRejectReturnLineItemRequest} params.requestBody 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 @@ -10097,7 +10097,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersReturnRefundLineItemRequest} params.resource Request body data + * @param {().OrdersReturnRefundLineItemRequest} params.requestBody 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 @@ -10182,7 +10182,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersSetLineItemMetadataRequest} params.resource Request body data + * @param {().OrdersSetLineItemMetadataRequest} params.requestBody 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 @@ -10267,7 +10267,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersShipLineItemsRequest} params.resource Request body data + * @param {().OrdersShipLineItemsRequest} params.requestBody 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 @@ -10350,7 +10350,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersUpdateLineItemShippingDetailsRequest} params.resource Request body data + * @param {().OrdersUpdateLineItemShippingDetailsRequest} params.requestBody 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 @@ -10451,7 +10451,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersUpdateMerchantOrderIdRequest} params.resource Request body data + * @param {().OrdersUpdateMerchantOrderIdRequest} params.requestBody 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 @@ -10538,7 +10538,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersUpdateShipmentRequest} params.resource Request body data + * @param {().OrdersUpdateShipmentRequest} params.requestBody 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 @@ -11024,7 +11024,7 @@ export namespace content_v2_1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().PosCustomBatchRequest} params.resource Request body data + * @param {().PosCustomBatchRequest} params.requestBody 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 @@ -11249,7 +11249,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the POS or inventory data provider. * @param {string} params.targetMerchantId The ID of the target merchant. - * @param {().PosStore} params.resource Request body data + * @param {().PosStore} params.requestBody 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 @@ -11322,7 +11322,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the POS or inventory data provider. * @param {string} params.targetMerchantId The ID of the target merchant. - * @param {().PosInventoryRequest} params.resource Request body data + * @param {().PosInventoryRequest} params.requestBody 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 @@ -11475,7 +11475,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the POS or inventory data provider. * @param {string} params.targetMerchantId The ID of the target merchant. - * @param {().PosSaleRequest} params.resource Request body data + * @param {().PosSaleRequest} params.requestBody 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 @@ -11679,7 +11679,7 @@ export namespace content_v2_1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().ProductsCustomBatchRequest} params.resource Request body data + * @param {().ProductsCustomBatchRequest} params.requestBody 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 @@ -11905,7 +11905,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string=} params.feedId The Content API Supplemental Feed ID. * @param {string} params.merchantId The ID of the account that contains the product. This account cannot be a multi-client account. - * @param {().Product} params.resource Request body data + * @param {().Product} params.requestBody 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 @@ -12146,7 +12146,7 @@ export namespace content_v2_1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().ProductstatusesCustomBatchRequest} params.resource Request body data + * @param {().ProductstatusesCustomBatchRequest} params.requestBody 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 @@ -12451,7 +12451,7 @@ export namespace content_v2_1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().RegionalinventoryCustomBatchRequest} params.resource Request body data + * @param {().RegionalinventoryCustomBatchRequest} params.requestBody 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 @@ -12544,7 +12544,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that contains the product. This account cannot be a multi-client account. * @param {string} params.productId The REST ID of the product for which to update the regional inventory. - * @param {().RegionalInventory} params.resource Request body data + * @param {().RegionalInventory} params.requestBody 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 @@ -12659,7 +12659,7 @@ export namespace content_v2_1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().ReturnaddressCustomBatchRequest} params.resource Request body data + * @param {().ReturnaddressCustomBatchRequest} params.requestBody 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 @@ -12891,7 +12891,7 @@ export namespace content_v2_1 { * * @param {object} params Parameters for request * @param {string} params.merchantId The Merchant Center account to insert a return address for. - * @param {().ReturnAddress} params.resource Request body data + * @param {().ReturnAddress} params.requestBody 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 @@ -13142,7 +13142,7 @@ export namespace content_v2_1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().ReturnpolicyCustomBatchRequest} params.resource Request body data + * @param {().ReturnpolicyCustomBatchRequest} params.requestBody 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 @@ -13373,7 +13373,7 @@ export namespace content_v2_1 { * * @param {object} params Parameters for request * @param {string} params.merchantId The Merchant Center account to insert a return policy for. - * @param {().ReturnPolicy} params.resource Request body data + * @param {().ReturnPolicy} params.requestBody 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 @@ -13603,7 +13603,7 @@ export namespace content_v2_1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().ShippingsettingsCustomBatchRequest} params.resource Request body data + * @param {().ShippingsettingsCustomBatchRequest} params.requestBody 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 @@ -14045,7 +14045,7 @@ export namespace content_v2_1 { * @param {object} params Parameters for request * @param {string} params.accountId The ID of the account for which to get/update shipping settings. * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account. - * @param {().ShippingSettings} params.resource Request body data + * @param {().ShippingSettings} params.requestBody 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 diff --git a/src/apis/content/v2.ts b/src/apis/content/v2.ts index a39fb10e32d..4873b8d89c5 100644 --- a/src/apis/content/v2.ts +++ b/src/apis/content/v2.ts @@ -2052,7 +2052,7 @@ export namespace content_v2 { */ quantity?: number | null; /** - * The reason for the cancellation. Orders that are cancelled with a noInventory reason will lead to the removal of the product from Shopping Actions until you make an update to that product. This will not affect your Shopping ads. + * The reason for the cancellation. Orders that are canceled with a noInventory reason will lead to the removal of the product from Shopping Actions until you make an update to that product. This will not affect your Shopping ads. */ reason?: string | null; /** @@ -3198,7 +3198,7 @@ export namespace content_v2 { } export interface Schema$OrderShipment { /** - * The carrier handling the shipment. Acceptable values for US are: - "gsx" - "ups" - "usps" - "fedex" - "dhl" - "ecourier" - "cxt" - "google" - "ontrac" - "emsy" - "ont" - "deliv" - "dynamex" - "lasership" - "mpx" - "uds" - "efw" - "jd logistics" Acceptable values for FR are: - "colissimo" - "chronopost" - "gls" - "dpd" - "bpost" - "colis prive" - "boxtal" - "geodis" - "tnt" - "la poste" + * The carrier handling the shipment. Acceptable values for US are: - "gsx" - "ups" - "usps" - "fedex" - "dhl" - "ecourier" - "cxt" - "google" - "ontrac" - "emsy" - "ont" - "deliv" - "dynamex" - "lasership" - "mpx" - "uds" - "efw" - "yunexpress" - "china post" - "china ems" - "singapore post" - "pos malaysia" - "postnl" - "ptt" - "eub" - "chukou1" Acceptable values for FR are: - "colissimo" - "chronopost" - "gls" - "dpd" - "bpost" - "colis prive" - "boxtal" - "geodis" - "tnt" - "la poste" - "ups" */ carrier?: string | null; /** @@ -3228,7 +3228,7 @@ export namespace content_v2 { } export interface Schema$OrderShipmentLineItemShipment { /** - * The ID of the line item that is shipped. Either lineItemId or productId is required. + * The ID of the line item that is shipped. This value is assigned by Google when an order is created. Either lineItemId or productId is required. */ lineItemId?: string | null; /** @@ -5409,7 +5409,7 @@ export namespace content_v2 { * * @param {object} params Parameters for request * @param {boolean=} params.dryRun Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). - * @param {().AccountsCustomBatchRequest} params.resource Request body data + * @param {().AccountsCustomBatchRequest} params.requestBody 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 @@ -5636,7 +5636,7 @@ export namespace content_v2 { * @param {object} params Parameters for request * @param {boolean=} params.dryRun Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). * @param {string} params.merchantId The ID of the managing account. This must be a multi-client account. - * @param {().Account} params.resource Request body data + * @param {().Account} params.requestBody 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 @@ -5709,7 +5709,7 @@ export namespace content_v2 { * @param {object} params Parameters for request * @param {string} params.accountId The ID of the account that should be linked. * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account. - * @param {().AccountsLinkRequest} params.resource Request body data + * @param {().AccountsLinkRequest} params.requestBody 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 @@ -5863,7 +5863,7 @@ export namespace content_v2 { * @param {string} params.accountId The ID of the account. * @param {boolean=} params.dryRun Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account. - * @param {().Account} params.resource Request body data + * @param {().Account} params.requestBody 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 @@ -6106,7 +6106,7 @@ export namespace content_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AccountstatusesCustomBatchRequest} params.resource Request body data + * @param {().AccountstatusesCustomBatchRequest} params.requestBody 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 @@ -6413,7 +6413,7 @@ export namespace content_v2 { * * @param {object} params Parameters for request * @param {boolean=} params.dryRun Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). - * @param {().AccounttaxCustomBatchRequest} params.resource Request body data + * @param {().AccounttaxCustomBatchRequest} params.requestBody 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 @@ -6649,7 +6649,7 @@ export namespace content_v2 { * @param {string} params.accountId The ID of the account for which to get/update account tax settings. * @param {boolean=} params.dryRun Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account. - * @param {().AccountTax} params.resource Request body data + * @param {().AccountTax} params.requestBody 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 @@ -6807,7 +6807,7 @@ export namespace content_v2 { * * @param {object} params Parameters for request * @param {boolean=} params.dryRun Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). - * @param {().DatafeedsCustomBatchRequest} params.resource Request body data + * @param {().DatafeedsCustomBatchRequest} params.requestBody 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 @@ -7118,7 +7118,7 @@ export namespace content_v2 { * @param {object} params Parameters for request * @param {boolean=} params.dryRun Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). * @param {string} params.merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. - * @param {().Datafeed} params.resource Request body data + * @param {().Datafeed} params.requestBody 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 @@ -7269,7 +7269,7 @@ export namespace content_v2 { * @param {string} params.datafeedId The ID of the datafeed. * @param {boolean=} params.dryRun Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). * @param {string} params.merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. - * @param {().Datafeed} params.resource Request body data + * @param {().Datafeed} params.requestBody 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 @@ -7481,7 +7481,7 @@ export namespace content_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().DatafeedstatusesCustomBatchRequest} params.resource Request body data + * @param {().DatafeedstatusesCustomBatchRequest} params.requestBody 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 @@ -7791,7 +7791,7 @@ export namespace content_v2 { * * @param {object} params Parameters for request * @param {boolean=} params.dryRun Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). - * @param {().InventoryCustomBatchRequest} params.resource Request body data + * @param {().InventoryCustomBatchRequest} params.requestBody 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 @@ -7878,7 +7878,7 @@ export namespace content_v2 { * @param {string} params.merchantId The ID of the account that contains the product. This account cannot be a multi-client account. * @param {string} params.productId The REST ID of the product for which to update price and availability. * @param {string} params.storeCode The code of the store for which to update price and availability. Use online to update price and availability of an online product. - * @param {().InventorySetRequest} params.resource Request body data + * @param {().InventorySetRequest} params.requestBody 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 @@ -8007,7 +8007,7 @@ export namespace content_v2 { * * @param {object} params Parameters for request * @param {boolean=} params.dryRun Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). - * @param {().LiasettingsCustomBatchRequest} params.resource Request body data + * @param {().LiasettingsCustomBatchRequest} params.requestBody 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 @@ -8825,7 +8825,7 @@ export namespace content_v2 { * @param {string} params.accountId The ID of the account for which to get or update LIA settings. * @param {boolean=} params.dryRun Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account. - * @param {().LiaSettings} params.resource Request body data + * @param {().LiaSettings} params.requestBody 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 @@ -9107,7 +9107,7 @@ export namespace content_v2 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrderinvoicesCreateChargeInvoiceRequest} params.resource Request body data + * @param {().OrderinvoicesCreateChargeInvoiceRequest} params.requestBody 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 @@ -9200,7 +9200,7 @@ export namespace content_v2 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrderinvoicesCreateRefundInvoiceRequest} params.resource Request body data + * @param {().OrderinvoicesCreateRefundInvoiceRequest} params.requestBody 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 @@ -9814,7 +9814,7 @@ export namespace content_v2 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersAcknowledgeRequest} params.resource Request body data + * @param {().OrdersAcknowledgeRequest} params.requestBody 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 @@ -9979,7 +9979,7 @@ export namespace content_v2 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order to cancel. - * @param {().OrdersCancelRequest} params.resource Request body data + * @param {().OrdersCancelRequest} params.requestBody 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 @@ -10055,7 +10055,7 @@ export namespace content_v2 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersCancelLineItemRequest} params.resource Request body data + * @param {().OrdersCancelLineItemRequest} params.requestBody 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 @@ -10140,7 +10140,7 @@ export namespace content_v2 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the test order to cancel. - * @param {().OrdersCancelTestOrderByCustomerRequest} params.resource Request body data + * @param {().OrdersCancelTestOrderByCustomerRequest} params.requestBody 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 @@ -10232,7 +10232,7 @@ export namespace content_v2 { * * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that should manage the order. This cannot be a multi-client account. - * @param {().OrdersCreateTestOrderRequest} params.resource Request body data + * @param {().OrdersCreateTestOrderRequest} params.requestBody 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 @@ -10317,7 +10317,7 @@ export namespace content_v2 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersCreateTestReturnRequest} params.resource Request body data + * @param {().OrdersCreateTestReturnRequest} params.requestBody 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 @@ -10399,7 +10399,7 @@ export namespace content_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().OrdersCustomBatchRequest} params.resource Request body data + * @param {().OrdersCustomBatchRequest} params.requestBody 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 @@ -10722,7 +10722,7 @@ export namespace content_v2 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersInStoreRefundLineItemRequest} params.resource Request body data + * @param {().OrdersInStoreRefundLineItemRequest} params.requestBody 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 @@ -10889,7 +10889,7 @@ export namespace content_v2 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order to refund. - * @param {().OrdersRefundRequest} params.resource Request body data + * @param {().OrdersRefundRequest} params.requestBody 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 @@ -10965,7 +10965,7 @@ export namespace content_v2 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersRejectReturnLineItemRequest} params.resource Request body data + * @param {().OrdersRejectReturnLineItemRequest} params.requestBody 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 @@ -11050,7 +11050,7 @@ export namespace content_v2 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersReturnLineItemRequest} params.resource Request body data + * @param {().OrdersReturnLineItemRequest} params.requestBody 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 @@ -11135,7 +11135,7 @@ export namespace content_v2 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersReturnRefundLineItemRequest} params.resource Request body data + * @param {().OrdersReturnRefundLineItemRequest} params.requestBody 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 @@ -11220,7 +11220,7 @@ export namespace content_v2 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersSetLineItemMetadataRequest} params.resource Request body data + * @param {().OrdersSetLineItemMetadataRequest} params.requestBody 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 @@ -11305,7 +11305,7 @@ export namespace content_v2 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersShipLineItemsRequest} params.resource Request body data + * @param {().OrdersShipLineItemsRequest} params.requestBody 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 @@ -11388,7 +11388,7 @@ export namespace content_v2 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersUpdateLineItemShippingDetailsRequest} params.resource Request body data + * @param {().OrdersUpdateLineItemShippingDetailsRequest} params.requestBody 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 @@ -11489,7 +11489,7 @@ export namespace content_v2 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersUpdateMerchantOrderIdRequest} params.resource Request body data + * @param {().OrdersUpdateMerchantOrderIdRequest} params.requestBody 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 @@ -11576,7 +11576,7 @@ export namespace content_v2 { * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersUpdateShipmentRequest} params.resource Request body data + * @param {().OrdersUpdateShipmentRequest} params.requestBody 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 @@ -12116,7 +12116,7 @@ export namespace content_v2 { * * @param {object} params Parameters for request * @param {boolean=} params.dryRun Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). - * @param {().PosCustomBatchRequest} params.resource Request body data + * @param {().PosCustomBatchRequest} params.requestBody 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 @@ -12343,7 +12343,7 @@ export namespace content_v2 { * @param {boolean=} params.dryRun Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). * @param {string} params.merchantId The ID of the POS or inventory data provider. * @param {string} params.targetMerchantId The ID of the target merchant. - * @param {().PosStore} params.resource Request body data + * @param {().PosStore} params.requestBody 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 @@ -12416,7 +12416,7 @@ export namespace content_v2 { * @param {boolean=} params.dryRun Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). * @param {string} params.merchantId The ID of the POS or inventory data provider. * @param {string} params.targetMerchantId The ID of the target merchant. - * @param {().PosInventoryRequest} params.resource Request body data + * @param {().PosInventoryRequest} params.requestBody 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 @@ -12569,7 +12569,7 @@ export namespace content_v2 { * @param {boolean=} params.dryRun Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). * @param {string} params.merchantId The ID of the POS or inventory data provider. * @param {string} params.targetMerchantId The ID of the target merchant. - * @param {().PosSaleRequest} params.resource Request body data + * @param {().PosSaleRequest} params.requestBody 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 @@ -12795,7 +12795,7 @@ export namespace content_v2 { * * @param {object} params Parameters for request * @param {boolean=} params.dryRun Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). - * @param {().ProductsCustomBatchRequest} params.resource Request body data + * @param {().ProductsCustomBatchRequest} params.requestBody 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 @@ -13021,7 +13021,7 @@ export namespace content_v2 { * @param {object} params Parameters for request * @param {boolean=} params.dryRun Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). * @param {string} params.merchantId The ID of the account that contains the product. This account cannot be a multi-client account. - * @param {().Product} params.resource Request body data + * @param {().Product} params.requestBody 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 @@ -13273,7 +13273,7 @@ export namespace content_v2 { * * @param {object} params Parameters for request * @param {boolean=} params.includeAttributes Flag to include full product data in the results of this request. The default value is false. - * @param {().ProductstatusesCustomBatchRequest} params.resource Request body data + * @param {().ProductstatusesCustomBatchRequest} params.requestBody 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 @@ -13600,7 +13600,7 @@ export namespace content_v2 { * * @param {object} params Parameters for request * @param {boolean=} params.dryRun Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). - * @param {().ShippingsettingsCustomBatchRequest} params.resource Request body data + * @param {().ShippingsettingsCustomBatchRequest} params.requestBody 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 @@ -14042,7 +14042,7 @@ export namespace content_v2 { * @param {string} params.accountId The ID of the account for which to get/update shipping settings. * @param {boolean=} params.dryRun Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account. - * @param {().ShippingSettings} params.resource Request body data + * @param {().ShippingSettings} params.requestBody 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 diff --git a/src/apis/sqladmin/README.md b/src/apis/datacatalog/README.md similarity index 81% rename from src/apis/sqladmin/README.md rename to src/apis/datacatalog/README.md index 00baae94b02..6233261c593 100644 --- a/src/apis/sqladmin/README.md +++ b/src/apis/datacatalog/README.md @@ -1,8 +1,8 @@ Google Inc. logo -# sqladmin +# datacatalog -> Creates and manages Cloud SQL instances, which provide fully managed MySQL or PostgreSQL databases. +> A fully managed and highly scalable data discovery and metadata management service. ## Installation @@ -19,17 +19,17 @@ This library can be used in a browser. To prepare a single file bundle, clone th [repository](https://github.com/googleapis/google-api-nodejs-client) and run ```sh -$ cd src/apis/sqladmin +$ cd src/apis/datacatalog $ npm install $ npm run webpack ``` -The generated bundle will be written to `dist/sqladmin.min.js`. Use it from your HTML file: +The generated bundle will be written to `dist/datacatalog.min.js`. Use it from your HTML file: ```html - + ``` diff --git a/src/apis/sqladmin/index.ts b/src/apis/datacatalog/index.ts similarity index 62% rename from src/apis/sqladmin/index.ts rename to src/apis/datacatalog/index.ts index 2170803e96a..c3833298623 100644 --- a/src/apis/sqladmin/index.ts +++ b/src/apis/datacatalog/index.ts @@ -14,21 +14,23 @@ /*! THIS FILE IS AUTO-GENERATED */ import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; -import {sqladmin_v1beta4} from './v1beta4'; +import {datacatalog_v1beta1} from './v1beta1'; export const VERSIONS = { - v1beta4: sqladmin_v1beta4.Sqladmin, + v1beta1: datacatalog_v1beta1.Datacatalog, }; -export function sqladmin(version: 'v1beta4'): sqladmin_v1beta4.Sqladmin; -export function sqladmin( - options: sqladmin_v1beta4.Options -): sqladmin_v1beta4.Sqladmin; -export function sqladmin( +export function datacatalog( + version: 'v1beta1' +): datacatalog_v1beta1.Datacatalog; +export function datacatalog( + options: datacatalog_v1beta1.Options +): datacatalog_v1beta1.Datacatalog; +export function datacatalog( this: GoogleConfigurable, - versionOrOptions: 'v1beta4' | sqladmin_v1beta4.Options + versionOrOptions: 'v1beta1' | datacatalog_v1beta1.Options ) { - return getAPI('sqladmin', versionOrOptions, VERSIONS, this); + return getAPI('datacatalog', versionOrOptions, VERSIONS, this); } const auth = new AuthPlus(); diff --git a/src/apis/sqladmin/package.json b/src/apis/datacatalog/package.json similarity index 93% rename from src/apis/sqladmin/package.json rename to src/apis/datacatalog/package.json index 9774e422a7f..5331a1ae080 100644 --- a/src/apis/sqladmin/package.json +++ b/src/apis/datacatalog/package.json @@ -1,7 +1,7 @@ { - "name": "@google/sqladmin", + "name": "@google/datacatalog", "version": "0.1.0", - "description": "sqladmin", + "description": "datacatalog", "main": "build/index.js", "types": "build/index.d.ts", "keywords": [ diff --git a/src/apis/datacatalog/tsconfig.json b/src/apis/datacatalog/tsconfig.json new file mode 100644 index 00000000000..e0810904968 --- /dev/null +++ b/src/apis/datacatalog/tsconfig.json @@ -0,0 +1,10 @@ +{ + "extends": "./node_modules/gts/tsconfig-google.json", + "compilerOptions": { + "rootDir": ".", + "outDir": "build" + }, + "include": [ + "*.ts", + ] +} diff --git a/src/apis/datacatalog/v1beta1.ts b/src/apis/datacatalog/v1beta1.ts new file mode 100644 index 00000000000..259db773623 --- /dev/null +++ b/src/apis/datacatalog/v1beta1.ts @@ -0,0 +1,5731 @@ +// 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 datacatalog_v1beta1 { + export interface Options extends GlobalOptions { + version: 'v1beta1'; + } + + 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; + } + + /** + * Google Cloud Data Catalog API + * + * A fully managed and highly scalable data discovery and metadata management service. + * + * @example + * const {google} = require('googleapis'); + * const datacatalog = google.datacatalog('v1beta1'); + * + * @namespace datacatalog + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Datacatalog + */ + export class Datacatalog { + context: APIRequestContext; + catalog: Resource$Catalog; + entries: Resource$Entries; + projects: Resource$Projects; + + constructor(options: GlobalOptions, google?: GoogleConfigurable) { + this.context = { + _options: options || {}, + google, + }; + + this.catalog = new Resource$Catalog(this.context); + this.entries = new Resource$Entries(this.context); + this.projects = new Resource$Projects(this.context); + } + } + + /** + * Associates `members` with a `role`. + */ + export interface Schema$Binding { + /** + * The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently. + */ + condition?: Schema$Expr; + /** + * Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. + */ + members?: string[] | null; + /** + * Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + */ + role?: string | null; + } + /** + * 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 {} + /** + * Represents an expression text. Example: title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0" + */ + export interface Schema$Expr { + /** + * An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. + */ + description?: string | null; + /** + * Textual representation of an expression in Common Expression Language syntax. The application context of the containing message determines which well-known feature set of CEL is supported. + */ + expression?: string | null; + /** + * An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file. + */ + location?: string | null; + /** + * An optional title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. + */ + title?: string | null; + } + /** + * Request message for `GetIamPolicy` method. + */ + export interface Schema$GetIamPolicyRequest { + /** + * OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`. This field is only used by Cloud IAM. + */ + options?: Schema$GetPolicyOptions; + } + /** + * Encapsulates settings provided to GetIamPolicy. + */ + export interface Schema$GetPolicyOptions { + /** + * Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. + */ + requestedPolicyVersion?: number | null; + } + /** + * Spec for a group of BigQuery tables with name pattern `[prefix]YYYYMMDD`. Context: https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding + */ + export interface Schema$GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec { + /** + * Output only. The Data Catalog resource name of the dataset entry the current table belongs to, for example, `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`. + */ + dataset?: string | null; + /** + * Output only. Total number of shards. + */ + shardCount?: string | null; + /** + * Output only. The table name prefix of the shards. The name of any given shard is `[table_prefix]YYYYMMDD`, for example, for shard `MyTable20180101`, the `table_prefix` is `MyTable`. + */ + tablePrefix?: string | null; + } + /** + * Describes a BigQuery table. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1BigQueryTableSpec { + /** + * Output only. The table source type. + */ + tableSourceType?: string | null; + /** + * Spec of a BigQuery table. This field should only be populated if `table_source_type` is `BIGQUERY_TABLE`. + */ + tableSpec?: Schema$GoogleCloudDatacatalogV1beta1TableSpec; + /** + * Table view specification. This field should only be populated if `table_source_type` is `BIGQUERY_VIEW`. + */ + viewSpec?: Schema$GoogleCloudDatacatalogV1beta1ViewSpec; + } + /** + * Representation of a column within a schema. Columns could be nested inside other columns. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1ColumnSchema { + /** + * Required. Name of the column. + */ + column?: string | null; + /** + * Optional. Description of the column. Default value is an empty string. + */ + description?: string | null; + /** + * Optional. A column's mode indicates whether the values in this column are required, nullable, etc. Only `NULLABLE`, `REQUIRED` and `REPEATED` are supported. Default mode is `NULLABLE`. + */ + mode?: string | null; + /** + * Optional. Schema of sub-columns. A column can have zero or more sub-columns. + */ + subcolumns?: Schema$GoogleCloudDatacatalogV1beta1ColumnSchema[]; + /** + * Required. Type of the column. + */ + type?: string | null; + } + /** + * Entry Metadata. A Data Catalog Entry resource represents another resource in Google Cloud Platform, such as a BigQuery dataset or a Cloud Pub/Sub topic. Clients can use the `linked_resource` field in the Entry resource to refer to the original resource ID of the source system. An Entry resource contains resource details, such as its schema. An Entry can also be used to attach flexible metadata, such as a Tag. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1Entry { + /** + * Specification for a group of BigQuery tables with name pattern `[prefix]YYYYMMDD`. Context: https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding. + */ + bigqueryDateShardedSpec?: Schema$GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec; + /** + * Specification that applies to a BigQuery table. This is only valid on entries of type `TABLE`. + */ + bigqueryTableSpec?: Schema$GoogleCloudDatacatalogV1beta1BigQueryTableSpec; + /** + * Entry description, which can consist of several sentences or paragraphs that describe entry contents. Default value is an empty string. + */ + description?: string | null; + /** + * Display information such as title and description. A short name to identify the entry, for example, "Analytics Data - Jan 2011". Default value is an empty string. + */ + displayName?: string | null; + /** + * Specification that applies to a Cloud Storage fileset. This is only valid on entries of type FILESET. + */ + gcsFilesetSpec?: Schema$GoogleCloudDatacatalogV1beta1GcsFilesetSpec; + /** + * Output only. The resource this metadata entry refers to. For Google Cloud Platform resources, `linked_resource` is the [full name of the resource](https://cloud.google.com/apis/design/resource_names#full_resource_name). For example, the `linked_resource` for a table resource from BigQuery is: * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId + */ + linkedResource?: string | null; + /** + * The Data Catalog resource name of the entry in URL format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} Note that this Entry and its child resources may not actually be stored in the location in this name. + */ + name?: string | null; + /** + * Schema of the entry. An entry might not have any schema attached to it. + */ + schema?: Schema$GoogleCloudDatacatalogV1beta1Schema; + /** + * Output only. Timestamps about the underlying Google Cloud Platform resource, not about this Data Catalog Entry. + */ + sourceSystemTimestamps?: Schema$GoogleCloudDatacatalogV1beta1SystemTimestamps; + /** + * The type of the entry. + */ + type?: string | null; + } + /** + * EntryGroup Metadata. An EntryGroup resource represents a logical grouping of zero or more Data Catalog Entry resources. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1EntryGroup { + /** + * Output only. Timestamps about this EntryGroup. Default value is empty timestamps. + */ + dataCatalogTimestamps?: Schema$GoogleCloudDatacatalogV1beta1SystemTimestamps; + /** + * Entry group description, which can consist of several sentences or paragraphs that describe entry group contents. Default value is an empty string. + */ + description?: string | null; + /** + * A short name to identify the entry group, for example, "analytics data - jan 2011". Default value is an empty string. + */ + displayName?: string | null; + /** + * The resource name of the entry group in URL format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that this EntryGroup and its child resources may not actually be stored in the location in this name. + */ + name?: string | null; + } + /** + * Response message for ExportTaxonomies. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1ExportTaxonomiesResponse { + /** + * List of taxonomies and policy tags in a tree structure. + */ + taxonomies?: Schema$GoogleCloudDatacatalogV1beta1SerializedTaxonomy[]; + } + export interface Schema$GoogleCloudDatacatalogV1beta1FieldType { + /** + * Represents an enum type. + */ + enumType?: Schema$GoogleCloudDatacatalogV1beta1FieldTypeEnumType; + /** + * Represents primitive types - string, bool etc. + */ + primitiveType?: string | null; + } + export interface Schema$GoogleCloudDatacatalogV1beta1FieldTypeEnumType { + /** + * Required on create; optional on update. The set of allowed values for this enum. This set must not be empty, the display names of the values in this set must not be empty and the display names of the values must be case-insensitively unique within this set. Currently, enum values can only be added to the list of allowed values. Deletion and renaming of enum values are not supported. Can have up to 500 allowed values. + */ + allowedValues?: Schema$GoogleCloudDatacatalogV1beta1FieldTypeEnumTypeEnumValue[]; + } + export interface Schema$GoogleCloudDatacatalogV1beta1FieldTypeEnumTypeEnumValue { + /** + * Required. The display name of the enum value. Must not be an empty string. + */ + displayName?: string | null; + } + /** + * Describes a Cloud Storage fileset entry. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1GcsFilesetSpec { + /** + * Required. Patterns to identify a set of files in Google Cloud Storage. See [Cloud Storage documentation](storage/docs/gsutil/addlhelp/WildcardNames) for more information. Note that bucket wildcards are currently not supported. Examples of valid file_patterns: * `gs://bucket_name/dir/x: matches all files within `bucket_name/dir` directory. * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` spanning all subdirectories. * `gs://bucket_name/file*`: matches files prefixed by `file` in `bucket_name` * `gs://bucket_name/a/x/b`: matches all files in `bucket_name` that match `a/x/b` pattern, such as `a/c/b`, `a/d/b` * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` + */ + filePatterns?: string[] | null; + /** + * Output only. Sample files contained in this fileset, not all files contained in this fileset are represented here. + */ + sampleGcsFileSpecs?: Schema$GoogleCloudDatacatalogV1beta1GcsFileSpec[]; + } + /** + * Specifications of a single file in Cloud Storage. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1GcsFileSpec { + /** + * Required. The full file path. Example: `gs://bucket_name/a/b.txt`. + */ + filePath?: string | null; + /** + * Output only. Timestamps about the Cloud Storage file. + */ + gcsTimestamps?: Schema$GoogleCloudDatacatalogV1beta1SystemTimestamps; + /** + * Output only. The size of the file, in bytes. + */ + sizeBytes?: string | null; + } + /** + * Request message for ImportTaxonomies. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1ImportTaxonomiesRequest { + /** + * Inline source used for taxonomies import + */ + inlineSource?: Schema$GoogleCloudDatacatalogV1beta1InlineSource; + } + /** + * Response message for ImportTaxonomies. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1ImportTaxonomiesResponse { + /** + * Taxonomies that were imported. + */ + taxonomies?: Schema$GoogleCloudDatacatalogV1beta1Taxonomy[]; + } + /** + * Inline source used for taxonomies import. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1InlineSource { + /** + * Required. Taxonomies to be imported. + */ + taxonomies?: Schema$GoogleCloudDatacatalogV1beta1SerializedTaxonomy[]; + } + /** + * Response message for ListPolicyTags. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1ListPolicyTagsResponse { + /** + * Token used to retrieve the next page of results, or empty if there are no more results in the list. + */ + nextPageToken?: string | null; + /** + * The policy tags that are in the requested taxonomy. + */ + policyTags?: Schema$GoogleCloudDatacatalogV1beta1PolicyTag[]; + } + /** + * Response message for ListTags. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1ListTagsResponse { + /** + * Token to retrieve the next page of results. It is set to empty if no items remain in results. + */ + nextPageToken?: string | null; + /** + * Tag details. + */ + tags?: Schema$GoogleCloudDatacatalogV1beta1Tag[]; + } + /** + * Response message for ListTaxonomies. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1ListTaxonomiesResponse { + /** + * Token used to retrieve the next page of results, or empty if there are no more results in the list. + */ + nextPageToken?: string | null; + /** + * Taxonomies that the project contains. + */ + taxonomies?: Schema$GoogleCloudDatacatalogV1beta1Taxonomy[]; + } + /** + * Denotes one policy tag in a taxonomy (e.g. ssn). Policy Tags can be defined in a hierarchy. For example, consider the following hierachy: Geolocation | ------------------------------------ | | | LatLong City ZipCode PolicyTag "Geolocation" contains three child policy tags: "LatLong", "City", and "ZipCode". + */ + export interface Schema$GoogleCloudDatacatalogV1beta1PolicyTag { + /** + * Output only. Resource names of child policy tags of this policy tag. + */ + childPolicyTags?: string[] | null; + /** + * Description of this policy tag. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. If not set, defaults to an empty description. + */ + description?: string | null; + /** + * Required. User defined name of this policy tag. It must: be unique within the parent taxonomy; contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8. + */ + displayName?: string | null; + /** + * Output only. Resource name of this policy tag, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}". + */ + name?: string | null; + /** + * Resource name of this policy tag's parent policy tag (e.g. for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag). If empty, it means this policy tag is a top level policy tag (e.g. this field is empty for the "Geolocation" policy tag in the example above). If not set, defaults to an empty string. + */ + parentPolicyTag?: string | null; + } + /** + * Request message for RenameTagTemplateField. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest { + /** + * Required. The new ID of this tag template field. For example, `my_new_field`. + */ + newTagTemplateFieldId?: string | null; + } + /** + * Represents a schema (e.g. BigQuery, GoogleSQL, Avro schema). + */ + export interface Schema$GoogleCloudDatacatalogV1beta1Schema { + /** + * Required. Schema of columns. A maximum of 10,000 columns and sub-columns can be specified. + */ + columns?: Schema$GoogleCloudDatacatalogV1beta1ColumnSchema[]; + } + /** + * Request message for SearchCatalog. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1SearchCatalogRequest { + /** + * Specifies the ordering of results, currently supported case-sensitive choices are: * `relevance`, only supports desecending * `last_access_timestamp [asc|desc]`, defaults to descending if not specified * `last_modified_timestamp [asc|desc]`, defaults to descending if not specified If not specified, defaults to `relevance` descending. + */ + orderBy?: string | null; + /** + * Number of results in the search page. If <=0 then defaults to 10. Max limit for page_size is 1000. Throws an invalid argument for page_size > 1000. + */ + pageSize?: number | null; + /** + * Optional. Pagination token returned in an earlier SearchCatalogResponse.next_page_token, which indicates that this is a continuation of a prior SearchCatalogRequest call, and that the system should return the next page of data. If empty, the first page is returned. + */ + pageToken?: string | null; + /** + * Required. The query string in search query syntax. The query must be non-empty. Query strings can be simple as "x" or more qualified as: * name:x * column:x * description:y Note: Query tokens need to have a minimum of 3 characters for substring matching to work correctly. See [Data Catalog Search Syntax](/data-catalog/docs/how-to/search-reference) for more information. + */ + query?: string | null; + /** + * Required. The scope of this search request. + */ + scope?: Schema$GoogleCloudDatacatalogV1beta1SearchCatalogRequestScope; + } + export interface Schema$GoogleCloudDatacatalogV1beta1SearchCatalogRequestScope { + /** + * If `true`, include Google Cloud Platform (GCP) public datasets in the search results. Info on GCP public datasets is available at https://cloud.google.com/public-datasets/. By default, GCP public datasets are excluded. + */ + includeGcpPublicDatasets?: boolean | null; + /** + * Data Catalog tries to automatically choose the right corpus of data to search through. You can ensure an organization is included by adding it to `include_org_ids`. You can ensure a project's org is included with `include_project_ids`. You must specify at least one organization using `include_org_ids` or `include_project_ids` in all search requests. List of organization IDs to search within. To find your organization ID, follow instructions in https://cloud.google.com/resource-manager/docs/creating-managing-organization. + */ + includeOrgIds?: string[] | null; + /** + * List of project IDs to search within. To learn more about the distinction between project names/IDs/numbers, go to https://cloud.google.com/docs/overview/#projects. + */ + includeProjectIds?: string[] | null; + } + /** + * Response message for SearchCatalog. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1SearchCatalogResponse { + /** + * The token that can be used to retrieve the next page of results. + */ + nextPageToken?: string | null; + /** + * Search results. + */ + results?: Schema$GoogleCloudDatacatalogV1beta1SearchCatalogResult[]; + } + /** + * A result that appears in the response of a search request. Each result captures details of one entry that matches the search. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1SearchCatalogResult { + /** + * The full name of the cloud resource the entry belongs to. See: https://cloud.google.com/apis/design/resource_names#full_resource_name. Example: * `//bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId` + */ + linkedResource?: string | null; + /** + * The relative resource name of the resource in URL format. Examples: * `projects/{project_id}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}` * `projects/{project_id}/tagTemplates/{tag_template_id}` + */ + relativeResourceName?: string | null; + /** + * Sub-type of the search result. This is a dot-delimited description of the resource's full type, and is the same as the value callers would provide in the "type" search facet. Examples: `entry.table`, `entry.dataStream`, `tagTemplate`. + */ + searchResultSubtype?: string | null; + /** + * Type of the search result. This field can be used to determine which Get method to call to fetch the full resource. + */ + searchResultType?: string | null; + } + /** + * Message representing one policy tag when exported as a nested proto. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1SerializedPolicyTag { + /** + * Children of the policy tag if any. + */ + childPolicyTags?: Schema$GoogleCloudDatacatalogV1beta1SerializedPolicyTag[]; + /** + * Description of the serialized policy tag. The length of the description is limited to 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description. + */ + description?: string | null; + /** + * Required. Display name of the policy tag. Max 200 bytes when encoded in UTF-8. + */ + displayName?: string | null; + } + /** + * Message capturing a taxonomy and its policy tag hierarchy as a nested proto. Used for taxonomy import/export and mutation. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1SerializedTaxonomy { + /** + * Description of the serialized taxonomy. The length of the description is limited to 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description. + */ + description?: string | null; + /** + * Required. Display name of the taxonomy. Max 200 bytes when encoded in UTF-8. + */ + displayName?: string | null; + /** + * Top level policy tags associated with the taxonomy if any. + */ + policyTags?: Schema$GoogleCloudDatacatalogV1beta1SerializedPolicyTag[]; + } + /** + * Timestamps about this resource according to a particular system. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1SystemTimestamps { + /** + * The creation time of the resource within the given system. + */ + createTime?: string | null; + /** + * Output only. The expiration time of the resource within the given system. Currently only apllicable to BigQuery resources. + */ + expireTime?: string | null; + /** + * The last-modified time of the resource within the given system. + */ + updateTime?: string | null; + } + /** + * Normal BigQuery table spec. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1TableSpec { + /** + * Output only. If the table is a dated shard, i.e., with name pattern `[prefix]YYYYMMDD`, `grouped_entry` is the Data Catalog resource name of the date sharded grouped entry, for example, `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`. Otherwise, `grouped_entry` is empty. + */ + groupedEntry?: string | null; + } + /** + * Tags are used to attach custom metadata to Data Catalog resources. Tags conform to the specifications within their tag template. See [Data Catalog IAM](/data-catalog/docs/concepts/iam) for information on the permissions needed to create or view tags. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1Tag { + /** + * Resources like Entry can have schemas associated with them. This scope allows users to attach tags to an individual column based on that schema. For attaching a tag to a nested column, use `.` to separate the column names. Example: * `outer_column.inner_column` + */ + column?: string | null; + /** + * Required. This maps the ID of a tag field to the value of and additional information about that field. Valid field IDs are defined by the tag's template. A tag must have at least 1 field and at most 500 fields. + */ + fields?: { + [key: string]: Schema$GoogleCloudDatacatalogV1beta1TagField; + } | null; + /** + * The resource name of the tag in URL format. Example: * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} where `tag_id` is a system-generated identifier. Note that this Tag may not actually be stored in the location in this name. + */ + name?: string | null; + /** + * Required. The resource name of the tag template that this tag uses. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} This field cannot be modified after creation. + */ + template?: string | null; + /** + * Output only. The display name of the tag template. + */ + templateDisplayName?: string | null; + } + /** + * Contains the value and supporting information for a field within a Tag. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1TagField { + /** + * Holds the value for a tag field with boolean type. + */ + boolValue?: boolean | null; + /** + * Output only. The display name of this field. + */ + displayName?: string | null; + /** + * Holds the value for a tag field with double type. + */ + doubleValue?: number | null; + /** + * Holds the value for a tag field with enum type. This value must be one of the allowed values in the definition of this enum. + */ + enumValue?: Schema$GoogleCloudDatacatalogV1beta1TagFieldEnumValue; + /** + * Holds the value for a tag field with string type. + */ + stringValue?: string | null; + /** + * Holds the value for a tag field with timestamp type. + */ + timestampValue?: string | null; + } + /** + * Holds an enum value. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1TagFieldEnumValue { + /** + * The display name of the enum value. + */ + displayName?: string | null; + } + /** + * A tag template defines the schema of the tags used to attach to Data Catalog resources. It defines the mapping of accepted field names and types that can be used within the tag. The tag template also controls the access to the tag. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1TagTemplate { + /** + * The display name for this template. Defaults to an empty string. + */ + displayName?: string | null; + /** + * Required. Map of tag template field IDs to the settings for the field. This map is an exhaustive list of the allowed fields. This map must contain at least one field and at most 500 fields. The keys to this map are tag template field IDs. Field IDs can contain letters (both uppercase and lowercase), numbers (0-9) and underscores (_). Field IDs must be at least 1 character long and at most 64 characters long. Field IDs must start with a letter or underscore. + */ + fields?: { + [key: string]: Schema$GoogleCloudDatacatalogV1beta1TagTemplateField; + } | null; + /** + * The resource name of the tag template in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} Note that this TagTemplate and its child resources may not actually be stored in the location in this name. + */ + name?: string | null; + } + /** + * The template for an individual field within a tag template. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1TagTemplateField { + /** + * The display name for this field. Defaults to an empty string. + */ + displayName?: string | null; + /** + * Output only. The resource name of the tag template field in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field} Note that this TagTemplateField may not actually be stored in the location in this name. + */ + name?: string | null; + /** + * Required. The type of value this tag field can contain. + */ + type?: Schema$GoogleCloudDatacatalogV1beta1FieldType; + } + /** + * A taxonomy is a collection of policy tags that classify data along a common axis. For instance a data *sensitivity* taxonomy could contain policy tags denoting PII such as age, zipcode, and SSN. A data *origin* taxonomy could contain policy tags to distinguish user data, employee data, partner data, public data. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1Taxonomy { + /** + * Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list. + */ + activatedPolicyTypes?: string[] | null; + /** + * Optional. Description of this taxonomy. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. + */ + description?: string | null; + /** + * Required. User defined name of this taxonomy. It must: contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8. + */ + displayName?: string | null; + /** + * Output only. Resource name of this taxonomy, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{id}". + */ + name?: string | null; + } + /** + * Table view specification. + */ + export interface Schema$GoogleCloudDatacatalogV1beta1ViewSpec { + /** + * Output only. The query that defines the table view. + */ + viewQuery?: string | null; + } + /** + * Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions (defined by IAM or configured by users). A `binding` can optionally specify a `condition`, which is a logic expression that further constrains the role binding based on attributes about the request and/or target resource. **JSON Example** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ] } **YAML Example** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs). + */ + export interface Schema$Policy { + /** + * Associates a list of `members` to a `role`. Optionally may specify a `condition` that determines when binding is in effect. `bindings` with no members will result in an error. + */ + bindings?: Schema$Binding[]; + /** + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. + */ + etag?: string | null; + /** + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. + */ + version?: number | null; + } + /** + * Request message for `SetIamPolicy` method. + */ + export interface Schema$SetIamPolicyRequest { + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them. + */ + policy?: Schema$Policy; + } + /** + * Request message for `TestIamPermissions` method. + */ + export interface Schema$TestIamPermissionsRequest { + /** + * The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + */ + permissions?: string[] | null; + } + /** + * Response message for `TestIamPermissions` method. + */ + export interface Schema$TestIamPermissionsResponse { + /** + * A subset of `TestPermissionsRequest.permissions` that the caller is allowed. + */ + permissions?: string[] | null; + } + + export class Resource$Catalog { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * datacatalog.catalog.search + * @desc Searches Data Catalog for multiple resources like entries, tags that match a query. This is a custom method (https://cloud.google.com/apis/design/custom_methods) and does not return the complete resource, only the resource identifier and high level fields. Clients can subsequentally call `Get` methods. Note that searches do not have full recall. There may be results that match your query but are not returned, even in subsequent pages of results. These missing results may vary across repeated calls to search. Do not rely on this method if you need to guarantee full recall. See [Data Catalog Search Syntax](/data-catalog/docs/how-to/search-reference) for more information. + * @alias datacatalog.catalog.search + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {().GoogleCloudDatacatalogV1beta1SearchCatalogRequest} params.requestBody 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 + */ + search( + params?: Params$Resource$Catalog$Search, + options?: MethodOptions + ): GaxiosPromise; + search( + params: Params$Resource$Catalog$Search, + options: + | MethodOptions + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1SearchCatalogResponse + >, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1SearchCatalogResponse + > + ): void; + search( + params: Params$Resource$Catalog$Search, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1SearchCatalogResponse + > + ): void; + search( + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1SearchCatalogResponse + > + ): void; + search( + paramsOrCallback?: + | Params$Resource$Catalog$Search + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1SearchCatalogResponse + >, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1SearchCatalogResponse + >, + callback?: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1SearchCatalogResponse + > + ): void | GaxiosPromise< + Schema$GoogleCloudDatacatalogV1beta1SearchCatalogResponse + > { + let params = (paramsOrCallback || {}) as Params$Resource$Catalog$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Catalog$Search; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/catalog:search').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudDatacatalogV1beta1SearchCatalogResponse + >(parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudDatacatalogV1beta1SearchCatalogResponse + >(parameters); + } + } + } + + export interface Params$Resource$Catalog$Search extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudDatacatalogV1beta1SearchCatalogRequest; + } + + export class Resource$Entries { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * datacatalog.entries.lookup + * @desc Get an entry by target resource name. This method allows clients to use the resource name from the source Google Cloud Platform service to get the Data Catalog Entry. + * @alias datacatalog.entries.lookup + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.linkedResource The full name of the Google Cloud Platform resource the Data Catalog entry represents. See: https://cloud.google.com/apis/design/resource_names#full_resource_name. Full names are case-sensitive. Examples: * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId * //pubsub.googleapis.com/projects/projectId/topics/topicId + * @param {string=} params.sqlResource The SQL name of the entry. SQL names are case-sensitive. Examples: * `cloud_pubsub.project_id.topic_id` * ``pubsub.project_id.`topic.id.with.dots` `` * `bigquery.table.project_id.dataset_id.table_id` * `bigquery.dataset.project_id.dataset_id` * `datacatalog.project_id.location_id.entry_group_id.entry_id` `*_id`s shoud satisfy the standard SQL rules for identifiers. https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical. + * @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 + */ + lookup( + params?: Params$Resource$Entries$Lookup, + options?: MethodOptions + ): GaxiosPromise; + lookup( + params: Params$Resource$Entries$Lookup, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + lookup( + params: Params$Resource$Entries$Lookup, + callback: BodyResponseCallback + ): void; + lookup( + callback: BodyResponseCallback + ): void; + lookup( + paramsOrCallback?: + | Params$Resource$Entries$Lookup + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Entries$Lookup; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Entries$Lookup; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/entries:lookup').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + }, + options + ), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Entries$Lookup extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * The full name of the Google Cloud Platform resource the Data Catalog entry represents. See: https://cloud.google.com/apis/design/resource_names#full_resource_name. Full names are case-sensitive. Examples: * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId * //pubsub.googleapis.com/projects/projectId/topics/topicId + */ + linkedResource?: string; + /** + * The SQL name of the entry. SQL names are case-sensitive. Examples: * `cloud_pubsub.project_id.topic_id` * ``pubsub.project_id.`topic.id.with.dots` `` * `bigquery.table.project_id.dataset_id.table_id` * `bigquery.dataset.project_id.dataset_id` * `datacatalog.project_id.location_id.entry_group_id.entry_id` `*_id`s shoud satisfy the standard SQL rules for identifiers. https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical. + */ + sqlResource?: 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; + entryGroups: Resource$Projects$Locations$Entrygroups; + tagTemplates: Resource$Projects$Locations$Tagtemplates; + taxonomies: Resource$Projects$Locations$Taxonomies; + constructor(context: APIRequestContext) { + this.context = context; + this.entryGroups = new Resource$Projects$Locations$Entrygroups( + this.context + ); + this.tagTemplates = new Resource$Projects$Locations$Tagtemplates( + this.context + ); + this.taxonomies = new Resource$Projects$Locations$Taxonomies( + this.context + ); + } + } + + export class Resource$Projects$Locations$Entrygroups { + context: APIRequestContext; + entries: Resource$Projects$Locations$Entrygroups$Entries; + constructor(context: APIRequestContext) { + this.context = context; + this.entries = new Resource$Projects$Locations$Entrygroups$Entries( + this.context + ); + } + + /** + * datacatalog.projects.locations.entryGroups.create + * @desc Alpha feature. Creates an EntryGroup. The user should enable the Data Catalog API in the project identified by the `parent` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). + * @alias datacatalog.projects.locations.entryGroups.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.entryGroupId Required. The id of the entry group to create. The id must begin with a letter or underscore, contain only English letters, numbers and underscores, and be at most 64 characters. + * @param {string} params.parent Required. The name of the project this entry group is in. Example: * projects/{project_id}/locations/{location} Note that this EntryGroup and its child resources may not actually be stored in the location in this name. + * @param {().GoogleCloudDatacatalogV1beta1EntryGroup} params.requestBody 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$Entrygroups$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Projects$Locations$Entrygroups$Create, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1EntryGroup + > + ): void; + create( + params: Params$Resource$Projects$Locations$Entrygroups$Create, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1EntryGroup + > + ): void; + create( + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1EntryGroup + > + ): void; + create( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Entrygroups$Create + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1EntryGroup + > + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Entrygroups$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Entrygroups$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/entryGroups').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * datacatalog.projects.locations.entryGroups.delete + * @desc Alpha feature. Deletes an EntryGroup. Only entry groups that do not contain entries can be deleted. The user should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). + * @alias datacatalog.projects.locations.entryGroups.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. The name of the entry group. For example, `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`. + * @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$Entrygroups$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Entrygroups$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Entrygroups$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Entrygroups$Delete + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Entrygroups$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Entrygroups$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * datacatalog.projects.locations.entryGroups.get + * @desc Alpha feature. Gets an EntryGroup. + * @alias datacatalog.projects.locations.entryGroups.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. The name of the entry group. For example, `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`. + * @param {string=} params.readMask The fields to return. If not set or empty, all fields are returned. + * @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$Entrygroups$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Projects$Locations$Entrygroups$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1EntryGroup + > + ): void; + get( + params: Params$Resource$Projects$Locations$Entrygroups$Get, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1EntryGroup + > + ): void; + get( + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1EntryGroup + > + ): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Entrygroups$Get + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1EntryGroup + > + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Entrygroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Entrygroups$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * datacatalog.projects.locations.entryGroups.getIamPolicy + * @desc Gets the access control policy for a resource. A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it. Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method cannot be used to manage policies for BigQuery, Cloud Pub/Sub and any external Google Cloud Platform resources synced to Cloud Data Catalog. Callers must have following Google IAM permission - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag templates. - `datacatalog.entries.getIamPolicy` to get policies on entries. - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups. + * @alias datacatalog.projects.locations.entryGroups.getIamPolicy + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. + * @param {().GetIamPolicyRequest} params.requestBody 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 + */ + getIamPolicy( + params?: Params$Resource$Projects$Locations$Entrygroups$Getiampolicy, + options?: MethodOptions + ): GaxiosPromise; + getIamPolicy( + params: Params$Resource$Projects$Locations$Entrygroups$Getiampolicy, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + getIamPolicy( + params: Params$Resource$Projects$Locations$Entrygroups$Getiampolicy, + callback: BodyResponseCallback + ): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Entrygroups$Getiampolicy + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Entrygroups$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Entrygroups$Getiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * datacatalog.projects.locations.entryGroups.setIamPolicy + * @desc Sets the access control policy for a resource. Replaces any existing policy. Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method cannot be used to manage policies for BigQuery, Cloud Pub/Sub and any external Google Cloud Platform resources synced to Cloud Data Catalog. Callers must have following Google IAM permission - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag templates. - `datacatalog.entries.setIamPolicy` to set policies on entries. - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups. + * @alias datacatalog.projects.locations.entryGroups.setIamPolicy + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. + * @param {().SetIamPolicyRequest} params.requestBody 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 + */ + setIamPolicy( + params?: Params$Resource$Projects$Locations$Entrygroups$Setiampolicy, + options?: MethodOptions + ): GaxiosPromise; + setIamPolicy( + params: Params$Resource$Projects$Locations$Entrygroups$Setiampolicy, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + setIamPolicy( + params: Params$Resource$Projects$Locations$Entrygroups$Setiampolicy, + callback: BodyResponseCallback + ): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Entrygroups$Setiampolicy + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Entrygroups$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Entrygroups$Setiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * datacatalog.projects.locations.entryGroups.testIamPermissions + * @desc Returns the caller's permissions on a resource. If the resource does not exist, an empty set of permissions is returned (We don't return a `NOT_FOUND` error). Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method cannot be used to manage policies for BigQuery, Cloud Pub/Sub and any external Google Cloud Platform resources synced to Cloud Data Catalog. A caller is not required to have Google IAM permission to make this request. + * @alias datacatalog.projects.locations.entryGroups.testIamPermissions + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. + * @param {().TestIamPermissionsRequest} params.requestBody 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 + */ + testIamPermissions( + params?: Params$Resource$Projects$Locations$Entrygroups$Testiampermissions, + options?: MethodOptions + ): GaxiosPromise; + testIamPermissions( + params: Params$Resource$Projects$Locations$Entrygroups$Testiampermissions, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + testIamPermissions( + params: Params$Resource$Projects$Locations$Entrygroups$Testiampermissions, + callback: BodyResponseCallback + ): void; + testIamPermissions( + callback: BodyResponseCallback + ): void; + testIamPermissions( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Entrygroups$Testiampermissions + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Entrygroups$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Entrygroups$Testiampermissions; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Entrygroups$Create + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The id of the entry group to create. The id must begin with a letter or underscore, contain only English letters, numbers and underscores, and be at most 64 characters. + */ + entryGroupId?: string; + /** + * Required. The name of the project this entry group is in. Example: * projects/{project_id}/locations/{location} Note that this EntryGroup and its child resources may not actually be stored in the location in this name. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudDatacatalogV1beta1EntryGroup; + } + export interface Params$Resource$Projects$Locations$Entrygroups$Delete + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The name of the entry group. For example, `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Entrygroups$Get + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The name of the entry group. For example, `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`. + */ + name?: string; + /** + * The fields to return. If not set or empty, all fields are returned. + */ + readMask?: string; + } + export interface Params$Resource$Projects$Locations$Entrygroups$Getiampolicy + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GetIamPolicyRequest; + } + export interface Params$Resource$Projects$Locations$Entrygroups$Setiampolicy + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Locations$Entrygroups$Testiampermissions + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$TestIamPermissionsRequest; + } + + export class Resource$Projects$Locations$Entrygroups$Entries { + context: APIRequestContext; + tags: Resource$Projects$Locations$Entrygroups$Entries$Tags; + constructor(context: APIRequestContext) { + this.context = context; + this.tags = new Resource$Projects$Locations$Entrygroups$Entries$Tags( + this.context + ); + } + + /** + * datacatalog.projects.locations.entryGroups.entries.create + * @desc Alpha feature. Creates an entry. Currently only entries of 'FILESET' type can be created. The user should enable the Data Catalog API in the project identified by the `parent` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). + * @alias datacatalog.projects.locations.entryGroups.entries.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.entryId Required. The id of the entry to create. + * @param {string} params.parent Required. The name of the entry group this entry is in. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that this Entry and its child resources may not actually be stored in the location in this name. + * @param {().GoogleCloudDatacatalogV1beta1Entry} params.requestBody 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$Entrygroups$Entries$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Projects$Locations$Entrygroups$Entries$Create, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Projects$Locations$Entrygroups$Entries$Create, + callback: BodyResponseCallback + ): void; + create( + callback: BodyResponseCallback + ): void; + create( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Entrygroups$Entries$Create + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Entrygroups$Entries$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Entrygroups$Entries$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/entries').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * datacatalog.projects.locations.entryGroups.entries.delete + * @desc Alpha feature. Deletes an existing entry. Only entries created through CreateEntry method can be deleted. The user should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). + * @alias datacatalog.projects.locations.entryGroups.entries.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. The name of the entry. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} + * @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$Entrygroups$Entries$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Entrygroups$Entries$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Entrygroups$Entries$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Entrygroups$Entries$Delete + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Entrygroups$Entries$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Entrygroups$Entries$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * datacatalog.projects.locations.entryGroups.entries.get + * @desc Gets an entry. + * @alias datacatalog.projects.locations.entryGroups.entries.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. The name of the entry. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} Entry groups are logical groupings of entries. Currently, users cannot create/modify entry groups. They are created by Data Catalog; they include `@bigquery` for all BigQuery entries, and `@pubsub` for all Cloud Pub/Sub entries. + * @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$Entrygroups$Entries$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Projects$Locations$Entrygroups$Entries$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Entrygroups$Entries$Get, + callback: BodyResponseCallback + ): void; + get( + callback: BodyResponseCallback + ): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Entrygroups$Entries$Get + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Entrygroups$Entries$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Entrygroups$Entries$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * datacatalog.projects.locations.entryGroups.entries.getIamPolicy + * @desc Gets the access control policy for a resource. A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it. Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method cannot be used to manage policies for BigQuery, Cloud Pub/Sub and any external Google Cloud Platform resources synced to Cloud Data Catalog. Callers must have following Google IAM permission - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag templates. - `datacatalog.entries.getIamPolicy` to get policies on entries. - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups. + * @alias datacatalog.projects.locations.entryGroups.entries.getIamPolicy + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. + * @param {().GetIamPolicyRequest} params.requestBody 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 + */ + getIamPolicy( + params?: Params$Resource$Projects$Locations$Entrygroups$Entries$Getiampolicy, + options?: MethodOptions + ): GaxiosPromise; + getIamPolicy( + params: Params$Resource$Projects$Locations$Entrygroups$Entries$Getiampolicy, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + getIamPolicy( + params: Params$Resource$Projects$Locations$Entrygroups$Entries$Getiampolicy, + callback: BodyResponseCallback + ): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Entrygroups$Entries$Getiampolicy + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Entrygroups$Entries$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Entrygroups$Entries$Getiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * datacatalog.projects.locations.entryGroups.entries.patch + * @desc Updates an existing entry. The user should enable the Data Catalog API in the project identified by the `entry.name` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). + * @alias datacatalog.projects.locations.entryGroups.entries.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The Data Catalog resource name of the entry in URL format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} Note that this Entry and its child resources may not actually be stored in the location in this name. + * @param {string=} params.updateMask The fields to update on the entry. If absent or empty, all modifiable fields are updated. The following fields are modifiable: * For entries with type `DATA_STREAM`: * `schema` * For entries with type `FILESET` * `schema` * `display_name` * `description` * `gcs_fileset_spec` * `gcs_fileset_spec.file_patterns` + * @param {().GoogleCloudDatacatalogV1beta1Entry} params.requestBody 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 + */ + patch( + params?: Params$Resource$Projects$Locations$Entrygroups$Entries$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Projects$Locations$Entrygroups$Entries$Patch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Locations$Entrygroups$Entries$Patch, + callback: BodyResponseCallback + ): void; + patch( + callback: BodyResponseCallback + ): void; + patch( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Entrygroups$Entries$Patch + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Entrygroups$Entries$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Entrygroups$Entries$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * datacatalog.projects.locations.entryGroups.entries.setIamPolicy + * @desc Sets the access control policy for a resource. Replaces any existing policy. Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method cannot be used to manage policies for BigQuery, Cloud Pub/Sub and any external Google Cloud Platform resources synced to Cloud Data Catalog. Callers must have following Google IAM permission - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag templates. - `datacatalog.entries.setIamPolicy` to set policies on entries. - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups. + * @alias datacatalog.projects.locations.entryGroups.entries.setIamPolicy + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. + * @param {().SetIamPolicyRequest} params.requestBody 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 + */ + setIamPolicy( + params?: Params$Resource$Projects$Locations$Entrygroups$Entries$Setiampolicy, + options?: MethodOptions + ): GaxiosPromise; + setIamPolicy( + params: Params$Resource$Projects$Locations$Entrygroups$Entries$Setiampolicy, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + setIamPolicy( + params: Params$Resource$Projects$Locations$Entrygroups$Entries$Setiampolicy, + callback: BodyResponseCallback + ): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Entrygroups$Entries$Setiampolicy + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Entrygroups$Entries$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Entrygroups$Entries$Setiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * datacatalog.projects.locations.entryGroups.entries.testIamPermissions + * @desc Returns the caller's permissions on a resource. If the resource does not exist, an empty set of permissions is returned (We don't return a `NOT_FOUND` error). Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method cannot be used to manage policies for BigQuery, Cloud Pub/Sub and any external Google Cloud Platform resources synced to Cloud Data Catalog. A caller is not required to have Google IAM permission to make this request. + * @alias datacatalog.projects.locations.entryGroups.entries.testIamPermissions + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. + * @param {().TestIamPermissionsRequest} params.requestBody 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 + */ + testIamPermissions( + params?: Params$Resource$Projects$Locations$Entrygroups$Entries$Testiampermissions, + options?: MethodOptions + ): GaxiosPromise; + testIamPermissions( + params: Params$Resource$Projects$Locations$Entrygroups$Entries$Testiampermissions, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + testIamPermissions( + params: Params$Resource$Projects$Locations$Entrygroups$Entries$Testiampermissions, + callback: BodyResponseCallback + ): void; + testIamPermissions( + callback: BodyResponseCallback + ): void; + testIamPermissions( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Entrygroups$Entries$Testiampermissions + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Entrygroups$Entries$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Entrygroups$Entries$Testiampermissions; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Entrygroups$Entries$Create + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The id of the entry to create. + */ + entryId?: string; + /** + * Required. The name of the entry group this entry is in. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that this Entry and its child resources may not actually be stored in the location in this name. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudDatacatalogV1beta1Entry; + } + export interface Params$Resource$Projects$Locations$Entrygroups$Entries$Delete + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The name of the entry. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Entrygroups$Entries$Get + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The name of the entry. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} Entry groups are logical groupings of entries. Currently, users cannot create/modify entry groups. They are created by Data Catalog; they include `@bigquery` for all BigQuery entries, and `@pubsub` for all Cloud Pub/Sub entries. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Entrygroups$Entries$Getiampolicy + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GetIamPolicyRequest; + } + export interface Params$Resource$Projects$Locations$Entrygroups$Entries$Patch + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * The Data Catalog resource name of the entry in URL format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} Note that this Entry and its child resources may not actually be stored in the location in this name. + */ + name?: string; + /** + * The fields to update on the entry. If absent or empty, all modifiable fields are updated. The following fields are modifiable: * For entries with type `DATA_STREAM`: * `schema` * For entries with type `FILESET` * `schema` * `display_name` * `description` * `gcs_fileset_spec` * `gcs_fileset_spec.file_patterns` + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudDatacatalogV1beta1Entry; + } + export interface Params$Resource$Projects$Locations$Entrygroups$Entries$Setiampolicy + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Locations$Entrygroups$Entries$Testiampermissions + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$TestIamPermissionsRequest; + } + + export class Resource$Projects$Locations$Entrygroups$Entries$Tags { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * datacatalog.projects.locations.entryGroups.entries.tags.create + * @desc Creates a tag on an Entry. Note: The project identified by the `parent` parameter for the [tag](/data-catalog/docs/reference/rest/v1beta1/projects.locations.entryGroups.entries.tags/create#path-parameters) and the [tag template](/data-catalog/docs/reference/rest/v1beta1/projects.locations.tagTemplates/create#path-parameters) used to create the tag must be from the same organization. + * @alias datacatalog.projects.locations.entryGroups.entries.tags.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent Required. The name of the resource to attach this tag to. Tags can be attached to Entries. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} Note that this Tag and its child resources may not actually be stored in the location in this name. + * @param {().GoogleCloudDatacatalogV1beta1Tag} params.requestBody 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$Entrygroups$Entries$Tags$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$Create, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$Create, + callback: BodyResponseCallback + ): void; + create( + callback: BodyResponseCallback + ): void; + create( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$Create + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/tags').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * datacatalog.projects.locations.entryGroups.entries.tags.delete + * @desc Deletes a tag. + * @alias datacatalog.projects.locations.entryGroups.entries.tags.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. The name of the tag to delete. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} + * @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$Entrygroups$Entries$Tags$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$Delete + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * datacatalog.projects.locations.entryGroups.entries.tags.list + * @desc Lists the tags on an Entry. + * @alias datacatalog.projects.locations.entryGroups.entries.tags.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {integer=} params.pageSize The maximum number of tags to return. Default is 10. Max limit is 1000. + * @param {string=} params.pageToken Token that specifies which page is requested. If empty, the first page is returned. + * @param {string} params.parent Required. The name of the Data Catalog resource to list the tags of. The resource could be an Entry. + * @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$Entrygroups$Entries$Tags$List, + options?: MethodOptions + ): GaxiosPromise; + list( + params: Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$List, + options: + | MethodOptions + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ListTagsResponse + >, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ListTagsResponse + > + ): void; + list( + params: Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$List, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ListTagsResponse + > + ): void; + list( + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ListTagsResponse + > + ): void; + list( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$List + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ListTagsResponse + >, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ListTagsResponse + >, + callback?: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ListTagsResponse + > + ): void | GaxiosPromise< + Schema$GoogleCloudDatacatalogV1beta1ListTagsResponse + > { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/tags').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest< + Schema$GoogleCloudDatacatalogV1beta1ListTagsResponse + >(parameters); + } + } + + /** + * datacatalog.projects.locations.entryGroups.entries.tags.patch + * @desc Updates an existing tag. + * @alias datacatalog.projects.locations.entryGroups.entries.tags.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The resource name of the tag in URL format. Example: * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} where `tag_id` is a system-generated identifier. Note that this Tag may not actually be stored in the location in this name. + * @param {string=} params.updateMask The fields to update on the Tag. If absent or empty, all modifiable fields are updated. Currently the only modifiable field is the field `fields`. + * @param {().GoogleCloudDatacatalogV1beta1Tag} params.requestBody 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 + */ + patch( + params?: Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$Patch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$Patch, + callback: BodyResponseCallback + ): void; + patch( + callback: BodyResponseCallback + ): void; + patch( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$Patch + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$Create + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The name of the resource to attach this tag to. Tags can be attached to Entries. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} Note that this Tag and its child resources may not actually be stored in the location in this name. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudDatacatalogV1beta1Tag; + } + export interface Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$Delete + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The name of the tag to delete. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$List + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * The maximum number of tags to return. Default is 10. Max limit is 1000. + */ + pageSize?: number; + /** + * Token that specifies which page is requested. If empty, the first page is returned. + */ + pageToken?: string; + /** + * Required. The name of the Data Catalog resource to list the tags of. The resource could be an Entry. + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Entrygroups$Entries$Tags$Patch + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * The resource name of the tag in URL format. Example: * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} where `tag_id` is a system-generated identifier. Note that this Tag may not actually be stored in the location in this name. + */ + name?: string; + /** + * The fields to update on the Tag. If absent or empty, all modifiable fields are updated. Currently the only modifiable field is the field `fields`. + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudDatacatalogV1beta1Tag; + } + + export class Resource$Projects$Locations$Tagtemplates { + context: APIRequestContext; + fields: Resource$Projects$Locations$Tagtemplates$Fields; + constructor(context: APIRequestContext) { + this.context = context; + this.fields = new Resource$Projects$Locations$Tagtemplates$Fields( + this.context + ); + } + + /** + * datacatalog.projects.locations.tagTemplates.create + * @desc Creates a tag template. The user should enable the Data Catalog API in the project identified by the `parent` parameter (see [Data Catalog Resource Project](/data-catalog/docs/concepts/resource-project) for more information). + * @alias datacatalog.projects.locations.tagTemplates.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent Required. The name of the project and the location this template is in. Example: * projects/{project_id}/locations/{location} TagTemplate and its child resources may not actually be stored in the location in this name. + * @param {string=} params.tagTemplateId Required. The id of the tag template to create. + * @param {().GoogleCloudDatacatalogV1beta1TagTemplate} params.requestBody 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$Tagtemplates$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Projects$Locations$Tagtemplates$Create, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplate + > + ): void; + create( + params: Params$Resource$Projects$Locations$Tagtemplates$Create, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplate + > + ): void; + create( + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplate + > + ): void; + create( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Tagtemplates$Create + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplate + > + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Tagtemplates$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Tagtemplates$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/tagTemplates').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest< + Schema$GoogleCloudDatacatalogV1beta1TagTemplate + >(parameters); + } + } + + /** + * datacatalog.projects.locations.tagTemplates.delete + * @desc Deletes a tag template and all tags using the template. The user should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). + * @alias datacatalog.projects.locations.tagTemplates.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {boolean=} params.force Required. Currently, this field must always be set to `true`. This confirms the deletion of any possible tags using this template. `force = false` will be supported in the future. + * @param {string} params.name Required. The name of the tag template to delete. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} + * @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$Tagtemplates$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Tagtemplates$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Tagtemplates$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Tagtemplates$Delete + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Tagtemplates$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Tagtemplates$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * datacatalog.projects.locations.tagTemplates.get + * @desc Gets a tag template. + * @alias datacatalog.projects.locations.tagTemplates.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. The name of the tag template. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} + * @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$Tagtemplates$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Projects$Locations$Tagtemplates$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplate + > + ): void; + get( + params: Params$Resource$Projects$Locations$Tagtemplates$Get, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplate + > + ): void; + get( + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplate + > + ): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Tagtemplates$Get + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplate + > + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Tagtemplates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Tagtemplates$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest< + Schema$GoogleCloudDatacatalogV1beta1TagTemplate + >(parameters); + } + } + + /** + * datacatalog.projects.locations.tagTemplates.getIamPolicy + * @desc Gets the access control policy for a resource. A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it. Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method cannot be used to manage policies for BigQuery, Cloud Pub/Sub and any external Google Cloud Platform resources synced to Cloud Data Catalog. Callers must have following Google IAM permission - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag templates. - `datacatalog.entries.getIamPolicy` to get policies on entries. - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups. + * @alias datacatalog.projects.locations.tagTemplates.getIamPolicy + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. + * @param {().GetIamPolicyRequest} params.requestBody 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 + */ + getIamPolicy( + params?: Params$Resource$Projects$Locations$Tagtemplates$Getiampolicy, + options?: MethodOptions + ): GaxiosPromise; + getIamPolicy( + params: Params$Resource$Projects$Locations$Tagtemplates$Getiampolicy, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + getIamPolicy( + params: Params$Resource$Projects$Locations$Tagtemplates$Getiampolicy, + callback: BodyResponseCallback + ): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Tagtemplates$Getiampolicy + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Tagtemplates$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Tagtemplates$Getiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * datacatalog.projects.locations.tagTemplates.patch + * @desc Updates a tag template. This method cannot be used to update the fields of a template. The tag template fields are represented as separate resources and should be updated using their own create/update/delete methods. The user should enable the Data Catalog API in the project identified by the `tag_template.name` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). + * @alias datacatalog.projects.locations.tagTemplates.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The resource name of the tag template in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} Note that this TagTemplate and its child resources may not actually be stored in the location in this name. + * @param {string=} params.updateMask The field mask specifies the parts of the template to overwrite. Allowed fields: * `display_name` If absent or empty, all of the allowed fields above will be updated. + * @param {().GoogleCloudDatacatalogV1beta1TagTemplate} params.requestBody 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 + */ + patch( + params?: Params$Resource$Projects$Locations$Tagtemplates$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Projects$Locations$Tagtemplates$Patch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplate + > + ): void; + patch( + params: Params$Resource$Projects$Locations$Tagtemplates$Patch, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplate + > + ): void; + patch( + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplate + > + ): void; + patch( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Tagtemplates$Patch + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplate + > + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Tagtemplates$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Tagtemplates$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest< + Schema$GoogleCloudDatacatalogV1beta1TagTemplate + >(parameters); + } + } + + /** + * datacatalog.projects.locations.tagTemplates.setIamPolicy + * @desc Sets the access control policy for a resource. Replaces any existing policy. Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method cannot be used to manage policies for BigQuery, Cloud Pub/Sub and any external Google Cloud Platform resources synced to Cloud Data Catalog. Callers must have following Google IAM permission - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag templates. - `datacatalog.entries.setIamPolicy` to set policies on entries. - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups. + * @alias datacatalog.projects.locations.tagTemplates.setIamPolicy + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. + * @param {().SetIamPolicyRequest} params.requestBody 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 + */ + setIamPolicy( + params?: Params$Resource$Projects$Locations$Tagtemplates$Setiampolicy, + options?: MethodOptions + ): GaxiosPromise; + setIamPolicy( + params: Params$Resource$Projects$Locations$Tagtemplates$Setiampolicy, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + setIamPolicy( + params: Params$Resource$Projects$Locations$Tagtemplates$Setiampolicy, + callback: BodyResponseCallback + ): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Tagtemplates$Setiampolicy + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Tagtemplates$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Tagtemplates$Setiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * datacatalog.projects.locations.tagTemplates.testIamPermissions + * @desc Returns the caller's permissions on a resource. If the resource does not exist, an empty set of permissions is returned (We don't return a `NOT_FOUND` error). Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method cannot be used to manage policies for BigQuery, Cloud Pub/Sub and any external Google Cloud Platform resources synced to Cloud Data Catalog. A caller is not required to have Google IAM permission to make this request. + * @alias datacatalog.projects.locations.tagTemplates.testIamPermissions + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. + * @param {().TestIamPermissionsRequest} params.requestBody 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 + */ + testIamPermissions( + params?: Params$Resource$Projects$Locations$Tagtemplates$Testiampermissions, + options?: MethodOptions + ): GaxiosPromise; + testIamPermissions( + params: Params$Resource$Projects$Locations$Tagtemplates$Testiampermissions, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + testIamPermissions( + params: Params$Resource$Projects$Locations$Tagtemplates$Testiampermissions, + callback: BodyResponseCallback + ): void; + testIamPermissions( + callback: BodyResponseCallback + ): void; + testIamPermissions( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Tagtemplates$Testiampermissions + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Tagtemplates$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Tagtemplates$Testiampermissions; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Tagtemplates$Create + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The name of the project and the location this template is in. Example: * projects/{project_id}/locations/{location} TagTemplate and its child resources may not actually be stored in the location in this name. + */ + parent?: string; + /** + * Required. The id of the tag template to create. + */ + tagTemplateId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudDatacatalogV1beta1TagTemplate; + } + export interface Params$Resource$Projects$Locations$Tagtemplates$Delete + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Currently, this field must always be set to `true`. This confirms the deletion of any possible tags using this template. `force = false` will be supported in the future. + */ + force?: boolean; + /** + * Required. The name of the tag template to delete. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Tagtemplates$Get + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The name of the tag template. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Tagtemplates$Getiampolicy + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GetIamPolicyRequest; + } + export interface Params$Resource$Projects$Locations$Tagtemplates$Patch + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * The resource name of the tag template in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} Note that this TagTemplate and its child resources may not actually be stored in the location in this name. + */ + name?: string; + /** + * The field mask specifies the parts of the template to overwrite. Allowed fields: * `display_name` If absent or empty, all of the allowed fields above will be updated. + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudDatacatalogV1beta1TagTemplate; + } + export interface Params$Resource$Projects$Locations$Tagtemplates$Setiampolicy + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Locations$Tagtemplates$Testiampermissions + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$TestIamPermissionsRequest; + } + + export class Resource$Projects$Locations$Tagtemplates$Fields { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * datacatalog.projects.locations.tagTemplates.fields.create + * @desc Creates a field in a tag template. The user should enable the Data Catalog API in the project identified by the `parent` parameter (see [Data Catalog Resource Project](/data-catalog/docs/concepts/resource-project) for more information). + * @alias datacatalog.projects.locations.tagTemplates.fields.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent Required. The name of the project this template is in. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} Note that this TagTemplateField may not actually be stored in the location in this name. + * @param {string=} params.tagTemplateFieldId Required. The ID of the tag template field to create. Field ids can contain letters (both uppercase and lowercase), numbers (0-9), underscores (_) and dashes (-). Field IDs must be at least 1 character long and at most 128 characters long. Field IDs must also be unique within their template. + * @param {().GoogleCloudDatacatalogV1beta1TagTemplateField} params.requestBody 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$Tagtemplates$Fields$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Projects$Locations$Tagtemplates$Fields$Create, + options: + | MethodOptions + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + >, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + > + ): void; + create( + params: Params$Resource$Projects$Locations$Tagtemplates$Fields$Create, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + > + ): void; + create( + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + > + ): void; + create( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Tagtemplates$Fields$Create + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + >, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + >, + callback?: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + > + ): void | GaxiosPromise< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + > { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Tagtemplates$Fields$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Tagtemplates$Fields$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/fields').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + >(parameters); + } + } + + /** + * datacatalog.projects.locations.tagTemplates.fields.delete + * @desc Deletes a field in a tag template and all uses of that field. The user should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). + * @alias datacatalog.projects.locations.tagTemplates.fields.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {boolean=} params.force Required. Currently, this field must always be set to `true`. This confirms the deletion of this field from any tags using this field. `force = false` will be supported in the future. + * @param {string} params.name Required. The name of the tag template field to delete. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} + * @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$Tagtemplates$Fields$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Tagtemplates$Fields$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Tagtemplates$Fields$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Tagtemplates$Fields$Delete + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Tagtemplates$Fields$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Tagtemplates$Fields$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * datacatalog.projects.locations.tagTemplates.fields.patch + * @desc Updates a field in a tag template. This method cannot be used to update the field type. The user should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). + * @alias datacatalog.projects.locations.tagTemplates.fields.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. The name of the tag template field. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} + * @param {string=} params.updateMask The field mask specifies the parts of the template to be updated. Allowed fields: * `display_name` * `type.enum_type` If `update_mask` is not set or empty, all of the allowed fields above will be updated. When updating an enum type, the provided values will be merged with the existing values. Therefore, enum values can only be added, existing enum values cannot be deleted nor renamed. + * @param {().GoogleCloudDatacatalogV1beta1TagTemplateField} params.requestBody 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 + */ + patch( + params?: Params$Resource$Projects$Locations$Tagtemplates$Fields$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Projects$Locations$Tagtemplates$Fields$Patch, + options: + | MethodOptions + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + >, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + > + ): void; + patch( + params: Params$Resource$Projects$Locations$Tagtemplates$Fields$Patch, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + > + ): void; + patch( + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + > + ): void; + patch( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Tagtemplates$Fields$Patch + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + >, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + >, + callback?: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + > + ): void | GaxiosPromise< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + > { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Tagtemplates$Fields$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Tagtemplates$Fields$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + >(parameters); + } + } + + /** + * datacatalog.projects.locations.tagTemplates.fields.rename + * @desc Renames a field in a tag template. The user should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project](/data-catalog/docs/concepts/resource-project) for more information). + * @alias datacatalog.projects.locations.tagTemplates.fields.rename + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. The name of the tag template. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} + * @param {().GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest} params.requestBody 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 + */ + rename( + params?: Params$Resource$Projects$Locations$Tagtemplates$Fields$Rename, + options?: MethodOptions + ): GaxiosPromise; + rename( + params: Params$Resource$Projects$Locations$Tagtemplates$Fields$Rename, + options: + | MethodOptions + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + >, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + > + ): void; + rename( + params: Params$Resource$Projects$Locations$Tagtemplates$Fields$Rename, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + > + ): void; + rename( + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + > + ): void; + rename( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Tagtemplates$Fields$Rename + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + >, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + >, + callback?: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + > + ): void | GaxiosPromise< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + > { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Tagtemplates$Fields$Rename; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Tagtemplates$Fields$Rename; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}:rename').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest< + Schema$GoogleCloudDatacatalogV1beta1TagTemplateField + >(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Tagtemplates$Fields$Create + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The name of the project this template is in. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} Note that this TagTemplateField may not actually be stored in the location in this name. + */ + parent?: string; + /** + * Required. The ID of the tag template field to create. Field ids can contain letters (both uppercase and lowercase), numbers (0-9), underscores (_) and dashes (-). Field IDs must be at least 1 character long and at most 128 characters long. Field IDs must also be unique within their template. + */ + tagTemplateFieldId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudDatacatalogV1beta1TagTemplateField; + } + export interface Params$Resource$Projects$Locations$Tagtemplates$Fields$Delete + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Currently, this field must always be set to `true`. This confirms the deletion of this field from any tags using this field. `force = false` will be supported in the future. + */ + force?: boolean; + /** + * Required. The name of the tag template field to delete. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Tagtemplates$Fields$Patch + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The name of the tag template field. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} + */ + name?: string; + /** + * The field mask specifies the parts of the template to be updated. Allowed fields: * `display_name` * `type.enum_type` If `update_mask` is not set or empty, all of the allowed fields above will be updated. When updating an enum type, the provided values will be merged with the existing values. Therefore, enum values can only be added, existing enum values cannot be deleted nor renamed. + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudDatacatalogV1beta1TagTemplateField; + } + export interface Params$Resource$Projects$Locations$Tagtemplates$Fields$Rename + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The name of the tag template. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest; + } + + export class Resource$Projects$Locations$Taxonomies { + context: APIRequestContext; + policyTags: Resource$Projects$Locations$Taxonomies$Policytags; + constructor(context: APIRequestContext) { + this.context = context; + this.policyTags = new Resource$Projects$Locations$Taxonomies$Policytags( + this.context + ); + } + + /** + * datacatalog.projects.locations.taxonomies.create + * @desc Creates a taxonomy in the specified project. + * @alias datacatalog.projects.locations.taxonomies.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent Required. Resource name of the project that the taxonomy will belong to. + * @param {().GoogleCloudDatacatalogV1beta1Taxonomy} params.requestBody 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$Taxonomies$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Projects$Locations$Taxonomies$Create, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1Taxonomy + > + ): void; + create( + params: Params$Resource$Projects$Locations$Taxonomies$Create, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1Taxonomy + > + ): void; + create( + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1Taxonomy + > + ): void; + create( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Taxonomies$Create + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1Taxonomy + > + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Taxonomies$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Taxonomies$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/taxonomies').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * datacatalog.projects.locations.taxonomies.delete + * @desc Deletes a taxonomy. This operation will also delete all policy tags in this taxonomy along with their associated policies. + * @alias datacatalog.projects.locations.taxonomies.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of the taxonomy to be deleted. All policy tags in this taxonomy will also 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$Projects$Locations$Taxonomies$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Taxonomies$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Taxonomies$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Taxonomies$Delete + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Taxonomies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Taxonomies$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * datacatalog.projects.locations.taxonomies.export + * @desc Exports all taxonomies and their policy tags in a project. This method generates SerializedTaxonomy protos with nested policy tags that can be used as an input for future ImportTaxonomies calls. + * @alias datacatalog.projects.locations.taxonomies.export + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent Required. Resource name of the project that taxonomies to be exported will share. + * @param {boolean=} params.serializedTaxonomies Export taxonomies as serialized taxonomies. + * @param {string=} params.taxonomies Required. Resource names of the taxonomies to be exported. + * @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 + */ + export( + params?: Params$Resource$Projects$Locations$Taxonomies$Export, + options?: MethodOptions + ): GaxiosPromise< + Schema$GoogleCloudDatacatalogV1beta1ExportTaxonomiesResponse + >; + export( + params: Params$Resource$Projects$Locations$Taxonomies$Export, + options: + | MethodOptions + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ExportTaxonomiesResponse + >, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ExportTaxonomiesResponse + > + ): void; + export( + params: Params$Resource$Projects$Locations$Taxonomies$Export, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ExportTaxonomiesResponse + > + ): void; + export( + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ExportTaxonomiesResponse + > + ): void; + export( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Taxonomies$Export + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ExportTaxonomiesResponse + >, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ExportTaxonomiesResponse + >, + callback?: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ExportTaxonomiesResponse + > + ): void | GaxiosPromise< + Schema$GoogleCloudDatacatalogV1beta1ExportTaxonomiesResponse + > { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Taxonomies$Export; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Taxonomies$Export; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/taxonomies:export').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudDatacatalogV1beta1ExportTaxonomiesResponse + >(parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudDatacatalogV1beta1ExportTaxonomiesResponse + >(parameters); + } + } + + /** + * datacatalog.projects.locations.taxonomies.get + * @desc Gets a taxonomy. + * @alias datacatalog.projects.locations.taxonomies.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of the requested taxonomy. + * @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$Taxonomies$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Projects$Locations$Taxonomies$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1Taxonomy + > + ): void; + get( + params: Params$Resource$Projects$Locations$Taxonomies$Get, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1Taxonomy + > + ): void; + get( + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1Taxonomy + > + ): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Taxonomies$Get + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1Taxonomy + > + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Taxonomies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Taxonomies$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * datacatalog.projects.locations.taxonomies.getIamPolicy + * @desc Gets the IAM policy for a taxonomy or a policy tag. + * @alias datacatalog.projects.locations.taxonomies.getIamPolicy + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. + * @param {().GetIamPolicyRequest} params.requestBody 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 + */ + getIamPolicy( + params?: Params$Resource$Projects$Locations$Taxonomies$Getiampolicy, + options?: MethodOptions + ): GaxiosPromise; + getIamPolicy( + params: Params$Resource$Projects$Locations$Taxonomies$Getiampolicy, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + getIamPolicy( + params: Params$Resource$Projects$Locations$Taxonomies$Getiampolicy, + callback: BodyResponseCallback + ): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Taxonomies$Getiampolicy + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Taxonomies$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Taxonomies$Getiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * datacatalog.projects.locations.taxonomies.import + * @desc Imports all taxonomies and their policy tags to a project as new taxonomies. This method provides a bulk taxonomy / policy tag creation using nested proto structure. + * @alias datacatalog.projects.locations.taxonomies.import + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent Required. Resource name of project that the newly created taxonomies will belong to. + * @param {().GoogleCloudDatacatalogV1beta1ImportTaxonomiesRequest} params.requestBody 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 + */ + import( + params?: Params$Resource$Projects$Locations$Taxonomies$Import, + options?: MethodOptions + ): GaxiosPromise< + Schema$GoogleCloudDatacatalogV1beta1ImportTaxonomiesResponse + >; + import( + params: Params$Resource$Projects$Locations$Taxonomies$Import, + options: + | MethodOptions + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ImportTaxonomiesResponse + >, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ImportTaxonomiesResponse + > + ): void; + import( + params: Params$Resource$Projects$Locations$Taxonomies$Import, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ImportTaxonomiesResponse + > + ): void; + import( + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ImportTaxonomiesResponse + > + ): void; + import( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Taxonomies$Import + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ImportTaxonomiesResponse + >, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ImportTaxonomiesResponse + >, + callback?: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ImportTaxonomiesResponse + > + ): void | GaxiosPromise< + Schema$GoogleCloudDatacatalogV1beta1ImportTaxonomiesResponse + > { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Taxonomies$Import; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Taxonomies$Import; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/taxonomies:import').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudDatacatalogV1beta1ImportTaxonomiesResponse + >(parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudDatacatalogV1beta1ImportTaxonomiesResponse + >(parameters); + } + } + + /** + * datacatalog.projects.locations.taxonomies.list + * @desc Lists all taxonomies in a project in a particular location that the caller has permission to view. + * @alias datacatalog.projects.locations.taxonomies.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {integer=} params.pageSize The maximum number of items to return. Must be a value between 1 and 1000. If not set, defaults to 50. + * @param {string=} params.pageToken The next_page_token value returned from a previous list request, if any. If not set, defaults to an empty string. + * @param {string} params.parent Required. Resource name of the project to list the taxonomies of. + * @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$Taxonomies$List, + options?: MethodOptions + ): GaxiosPromise< + Schema$GoogleCloudDatacatalogV1beta1ListTaxonomiesResponse + >; + list( + params: Params$Resource$Projects$Locations$Taxonomies$List, + options: + | MethodOptions + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ListTaxonomiesResponse + >, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ListTaxonomiesResponse + > + ): void; + list( + params: Params$Resource$Projects$Locations$Taxonomies$List, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ListTaxonomiesResponse + > + ): void; + list( + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ListTaxonomiesResponse + > + ): void; + list( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Taxonomies$List + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ListTaxonomiesResponse + >, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ListTaxonomiesResponse + >, + callback?: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ListTaxonomiesResponse + > + ): void | GaxiosPromise< + Schema$GoogleCloudDatacatalogV1beta1ListTaxonomiesResponse + > { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Taxonomies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Taxonomies$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/taxonomies').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudDatacatalogV1beta1ListTaxonomiesResponse + >(parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudDatacatalogV1beta1ListTaxonomiesResponse + >(parameters); + } + } + + /** + * datacatalog.projects.locations.taxonomies.patch + * @desc Updates a taxonomy. + * @alias datacatalog.projects.locations.taxonomies.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Output only. Resource name of this taxonomy, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{id}". + * @param {string=} params.updateMask The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update. + * @param {().GoogleCloudDatacatalogV1beta1Taxonomy} params.requestBody 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 + */ + patch( + params?: Params$Resource$Projects$Locations$Taxonomies$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Projects$Locations$Taxonomies$Patch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1Taxonomy + > + ): void; + patch( + params: Params$Resource$Projects$Locations$Taxonomies$Patch, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1Taxonomy + > + ): void; + patch( + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1Taxonomy + > + ): void; + patch( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Taxonomies$Patch + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1Taxonomy + > + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Taxonomies$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Taxonomies$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * datacatalog.projects.locations.taxonomies.setIamPolicy + * @desc Sets the IAM policy for a taxonomy or a policy tag. + * @alias datacatalog.projects.locations.taxonomies.setIamPolicy + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. + * @param {().SetIamPolicyRequest} params.requestBody 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 + */ + setIamPolicy( + params?: Params$Resource$Projects$Locations$Taxonomies$Setiampolicy, + options?: MethodOptions + ): GaxiosPromise; + setIamPolicy( + params: Params$Resource$Projects$Locations$Taxonomies$Setiampolicy, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + setIamPolicy( + params: Params$Resource$Projects$Locations$Taxonomies$Setiampolicy, + callback: BodyResponseCallback + ): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Taxonomies$Setiampolicy + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Taxonomies$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Taxonomies$Setiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * datacatalog.projects.locations.taxonomies.testIamPermissions + * @desc Returns the permissions that a caller has on the specified taxonomy or policy tag. + * @alias datacatalog.projects.locations.taxonomies.testIamPermissions + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. + * @param {().TestIamPermissionsRequest} params.requestBody 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 + */ + testIamPermissions( + params?: Params$Resource$Projects$Locations$Taxonomies$Testiampermissions, + options?: MethodOptions + ): GaxiosPromise; + testIamPermissions( + params: Params$Resource$Projects$Locations$Taxonomies$Testiampermissions, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + testIamPermissions( + params: Params$Resource$Projects$Locations$Taxonomies$Testiampermissions, + callback: BodyResponseCallback + ): void; + testIamPermissions( + callback: BodyResponseCallback + ): void; + testIamPermissions( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Taxonomies$Testiampermissions + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Taxonomies$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Taxonomies$Testiampermissions; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Taxonomies$Create + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of the project that the taxonomy will belong to. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudDatacatalogV1beta1Taxonomy; + } + export interface Params$Resource$Projects$Locations$Taxonomies$Delete + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of the taxonomy to be deleted. All policy tags in this taxonomy will also be deleted. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Taxonomies$Export + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of the project that taxonomies to be exported will share. + */ + parent?: string; + /** + * Export taxonomies as serialized taxonomies. + */ + serializedTaxonomies?: boolean; + /** + * Required. Resource names of the taxonomies to be exported. + */ + taxonomies?: string[]; + } + export interface Params$Resource$Projects$Locations$Taxonomies$Get + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of the requested taxonomy. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Taxonomies$Getiampolicy + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GetIamPolicyRequest; + } + export interface Params$Resource$Projects$Locations$Taxonomies$Import + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of project that the newly created taxonomies will belong to. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudDatacatalogV1beta1ImportTaxonomiesRequest; + } + export interface Params$Resource$Projects$Locations$Taxonomies$List + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * The maximum number of items to return. Must be a value between 1 and 1000. If not set, defaults to 50. + */ + pageSize?: number; + /** + * The next_page_token value returned from a previous list request, if any. If not set, defaults to an empty string. + */ + pageToken?: string; + /** + * Required. Resource name of the project to list the taxonomies of. + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Taxonomies$Patch + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Output only. Resource name of this taxonomy, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{id}". + */ + name?: string; + /** + * The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update. + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudDatacatalogV1beta1Taxonomy; + } + export interface Params$Resource$Projects$Locations$Taxonomies$Setiampolicy + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Locations$Taxonomies$Testiampermissions + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$TestIamPermissionsRequest; + } + + export class Resource$Projects$Locations$Taxonomies$Policytags { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * datacatalog.projects.locations.taxonomies.policyTags.create + * @desc Creates a policy tag in the specified taxonomy. + * @alias datacatalog.projects.locations.taxonomies.policyTags.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent Required. Resource name of the taxonomy that the policy tag will belong to. + * @param {().GoogleCloudDatacatalogV1beta1PolicyTag} params.requestBody 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$Taxonomies$Policytags$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Projects$Locations$Taxonomies$Policytags$Create, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1PolicyTag + > + ): void; + create( + params: Params$Resource$Projects$Locations$Taxonomies$Policytags$Create, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1PolicyTag + > + ): void; + create( + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1PolicyTag + > + ): void; + create( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Taxonomies$Policytags$Create + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1PolicyTag + > + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Taxonomies$Policytags$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Taxonomies$Policytags$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/policyTags').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * datacatalog.projects.locations.taxonomies.policyTags.delete + * @desc Deletes a policy tag. Also deletes all of its descendant policy tags. + * @alias datacatalog.projects.locations.taxonomies.policyTags.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of the policy tag to be deleted. All of its descendant policy tags will also 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$Projects$Locations$Taxonomies$Policytags$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Taxonomies$Policytags$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Taxonomies$Policytags$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Taxonomies$Policytags$Delete + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Taxonomies$Policytags$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Taxonomies$Policytags$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * datacatalog.projects.locations.taxonomies.policyTags.get + * @desc Gets a policy tag. + * @alias datacatalog.projects.locations.taxonomies.policyTags.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of the requested policy tag. + * @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$Taxonomies$Policytags$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Projects$Locations$Taxonomies$Policytags$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1PolicyTag + > + ): void; + get( + params: Params$Resource$Projects$Locations$Taxonomies$Policytags$Get, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1PolicyTag + > + ): void; + get( + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1PolicyTag + > + ): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Taxonomies$Policytags$Get + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1PolicyTag + > + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Taxonomies$Policytags$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Taxonomies$Policytags$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * datacatalog.projects.locations.taxonomies.policyTags.getIamPolicy + * @desc Gets the IAM policy for a taxonomy or a policy tag. + * @alias datacatalog.projects.locations.taxonomies.policyTags.getIamPolicy + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. + * @param {().GetIamPolicyRequest} params.requestBody 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 + */ + getIamPolicy( + params?: Params$Resource$Projects$Locations$Taxonomies$Policytags$Getiampolicy, + options?: MethodOptions + ): GaxiosPromise; + getIamPolicy( + params: Params$Resource$Projects$Locations$Taxonomies$Policytags$Getiampolicy, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + getIamPolicy( + params: Params$Resource$Projects$Locations$Taxonomies$Policytags$Getiampolicy, + callback: BodyResponseCallback + ): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Taxonomies$Policytags$Getiampolicy + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Taxonomies$Policytags$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Taxonomies$Policytags$Getiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * datacatalog.projects.locations.taxonomies.policyTags.list + * @desc Lists all policy tags in a taxonomy. + * @alias datacatalog.projects.locations.taxonomies.policyTags.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {integer=} params.pageSize The maximum number of items to return. Must be a value between 1 and 1000. If not set, defaults to 50. + * @param {string=} params.pageToken The next_page_token value returned from a previous List request, if any. If not set, defaults to an empty string. + * @param {string} params.parent Required. Resource name of the taxonomy to list the policy tags of. + * @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$Taxonomies$Policytags$List, + options?: MethodOptions + ): GaxiosPromise< + Schema$GoogleCloudDatacatalogV1beta1ListPolicyTagsResponse + >; + list( + params: Params$Resource$Projects$Locations$Taxonomies$Policytags$List, + options: + | MethodOptions + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ListPolicyTagsResponse + >, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ListPolicyTagsResponse + > + ): void; + list( + params: Params$Resource$Projects$Locations$Taxonomies$Policytags$List, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ListPolicyTagsResponse + > + ): void; + list( + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ListPolicyTagsResponse + > + ): void; + list( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Taxonomies$Policytags$List + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ListPolicyTagsResponse + >, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ListPolicyTagsResponse + >, + callback?: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1ListPolicyTagsResponse + > + ): void | GaxiosPromise< + Schema$GoogleCloudDatacatalogV1beta1ListPolicyTagsResponse + > { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Taxonomies$Policytags$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Taxonomies$Policytags$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/policyTags').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudDatacatalogV1beta1ListPolicyTagsResponse + >(parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudDatacatalogV1beta1ListPolicyTagsResponse + >(parameters); + } + } + + /** + * datacatalog.projects.locations.taxonomies.policyTags.patch + * @desc Updates a policy tag. + * @alias datacatalog.projects.locations.taxonomies.policyTags.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Output only. Resource name of this policy tag, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}". + * @param {string=} params.updateMask The update mask applies to the resource. Only display_name, description and parent_policy_tag can be updated and thus can be listed in the mask. If update_mask is not provided, all allowed fields (i.e. display_name, description and parent) will be updated. For more information including the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update. + * @param {().GoogleCloudDatacatalogV1beta1PolicyTag} params.requestBody 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 + */ + patch( + params?: Params$Resource$Projects$Locations$Taxonomies$Policytags$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Projects$Locations$Taxonomies$Policytags$Patch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1PolicyTag + > + ): void; + patch( + params: Params$Resource$Projects$Locations$Taxonomies$Policytags$Patch, + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1PolicyTag + > + ): void; + patch( + callback: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1PolicyTag + > + ): void; + patch( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Taxonomies$Policytags$Patch + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GoogleCloudDatacatalogV1beta1PolicyTag + > + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Taxonomies$Policytags$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Taxonomies$Policytags$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * datacatalog.projects.locations.taxonomies.policyTags.setIamPolicy + * @desc Sets the IAM policy for a taxonomy or a policy tag. + * @alias datacatalog.projects.locations.taxonomies.policyTags.setIamPolicy + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. + * @param {().SetIamPolicyRequest} params.requestBody 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 + */ + setIamPolicy( + params?: Params$Resource$Projects$Locations$Taxonomies$Policytags$Setiampolicy, + options?: MethodOptions + ): GaxiosPromise; + setIamPolicy( + params: Params$Resource$Projects$Locations$Taxonomies$Policytags$Setiampolicy, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + setIamPolicy( + params: Params$Resource$Projects$Locations$Taxonomies$Policytags$Setiampolicy, + callback: BodyResponseCallback + ): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Taxonomies$Policytags$Setiampolicy + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Taxonomies$Policytags$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Taxonomies$Policytags$Setiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * datacatalog.projects.locations.taxonomies.policyTags.testIamPermissions + * @desc Returns the permissions that a caller has on the specified taxonomy or policy tag. + * @alias datacatalog.projects.locations.taxonomies.policyTags.testIamPermissions + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. + * @param {().TestIamPermissionsRequest} params.requestBody 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 + */ + testIamPermissions( + params?: Params$Resource$Projects$Locations$Taxonomies$Policytags$Testiampermissions, + options?: MethodOptions + ): GaxiosPromise; + testIamPermissions( + params: Params$Resource$Projects$Locations$Taxonomies$Policytags$Testiampermissions, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + testIamPermissions( + params: Params$Resource$Projects$Locations$Taxonomies$Policytags$Testiampermissions, + callback: BodyResponseCallback + ): void; + testIamPermissions( + callback: BodyResponseCallback + ): void; + testIamPermissions( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Taxonomies$Policytags$Testiampermissions + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Taxonomies$Policytags$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Taxonomies$Policytags$Testiampermissions; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Taxonomies$Policytags$Create + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of the taxonomy that the policy tag will belong to. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudDatacatalogV1beta1PolicyTag; + } + export interface Params$Resource$Projects$Locations$Taxonomies$Policytags$Delete + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of the policy tag to be deleted. All of its descendant policy tags will also be deleted. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Taxonomies$Policytags$Get + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of the requested policy tag. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Taxonomies$Policytags$Getiampolicy + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GetIamPolicyRequest; + } + export interface Params$Resource$Projects$Locations$Taxonomies$Policytags$List + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * The maximum number of items to return. Must be a value between 1 and 1000. If not set, defaults to 50. + */ + pageSize?: number; + /** + * The next_page_token value returned from a previous List request, if any. If not set, defaults to an empty string. + */ + pageToken?: string; + /** + * Required. Resource name of the taxonomy to list the policy tags of. + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Taxonomies$Policytags$Patch + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Output only. Resource name of this policy tag, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}". + */ + name?: string; + /** + * The update mask applies to the resource. Only display_name, description and parent_policy_tag can be updated and thus can be listed in the mask. If update_mask is not provided, all allowed fields (i.e. display_name, description and parent) will be updated. For more information including the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update. + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudDatacatalogV1beta1PolicyTag; + } + export interface Params$Resource$Projects$Locations$Taxonomies$Policytags$Setiampolicy + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Locations$Taxonomies$Policytags$Testiampermissions + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. + */ + resource?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$TestIamPermissionsRequest; + } +} diff --git a/src/apis/sqladmin/webpack.config.js b/src/apis/datacatalog/webpack.config.js similarity index 96% rename from src/apis/sqladmin/webpack.config.js rename to src/apis/datacatalog/webpack.config.js index 2c460089b38..d41f68c3acb 100644 --- a/src/apis/sqladmin/webpack.config.js +++ b/src/apis/datacatalog/webpack.config.js @@ -22,8 +22,8 @@ module.exports = { extensions: ['.ts', '.js', '.json'], }, output: { - library: 'Sqladmin', - filename: 'sqladmin.min.js', + library: 'Datacatalog', + filename: 'datacatalog.min.js', path: path.resolve(__dirname, 'dist'), }, node: { diff --git a/src/apis/dataflow/v1b3.ts b/src/apis/dataflow/v1b3.ts index d9c3480af38..8656b9d8111 100644 --- a/src/apis/dataflow/v1b3.ts +++ b/src/apis/dataflow/v1b3.ts @@ -3059,7 +3059,7 @@ export namespace dataflow_v1b3 { * * @param {object} params Parameters for request * @param {string} params.projectId The project to send the WorkerMessages to. - * @param {().SendWorkerMessagesRequest} params.resource Request body data + * @param {().SendWorkerMessagesRequest} params.requestBody 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 @@ -3252,7 +3252,7 @@ export namespace dataflow_v1b3 { * @param {string} params.projectId The ID of the Cloud Platform project that the job belongs to. * @param {string=} params.replaceJobId Deprecated. This field is now in the Job message. * @param {string=} params.view The level of information requested in response. - * @param {().Job} params.resource Request body data + * @param {().Job} params.requestBody 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 @@ -3557,7 +3557,7 @@ export namespace dataflow_v1b3 { * @param {string} params.jobId The job ID. * @param {string=} params.location The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. * @param {string} params.projectId The ID of the Cloud Platform project that the job belongs to. - * @param {().Job} params.resource Request body data + * @param {().Job} params.requestBody 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 @@ -3805,7 +3805,7 @@ export namespace dataflow_v1b3 { * @param {object} params Parameters for request * @param {string} params.jobId The job id. * @param {string} params.projectId The project id. - * @param {().GetDebugConfigRequest} params.resource Request body data + * @param {().GetDebugConfigRequest} params.requestBody 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 @@ -3885,7 +3885,7 @@ export namespace dataflow_v1b3 { * @param {object} params Parameters for request * @param {string} params.jobId The job id. * @param {string} params.projectId The project id. - * @param {().SendDebugCaptureRequest} params.resource Request body data + * @param {().SendDebugCaptureRequest} params.requestBody 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 @@ -4145,7 +4145,7 @@ export namespace dataflow_v1b3 { * @param {object} params Parameters for request * @param {string} params.jobId Identifies the workflow job this worker belongs to. * @param {string} params.projectId Identifies the project this worker belongs to. - * @param {().LeaseWorkItemRequest} params.resource Request body data + * @param {().LeaseWorkItemRequest} params.requestBody 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 @@ -4223,7 +4223,7 @@ export namespace dataflow_v1b3 { * @param {object} params Parameters for request * @param {string} params.jobId The job which the WorkItem is part of. * @param {string} params.projectId The project which owns the WorkItem's job. - * @param {().ReportWorkItemStatusRequest} params.resource Request body data + * @param {().ReportWorkItemStatusRequest} params.requestBody 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 @@ -4364,7 +4364,7 @@ export namespace dataflow_v1b3 { * @param {object} params Parameters for request * @param {string} params.location The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job. * @param {string} params.projectId The project to send the WorkerMessages to. - * @param {().SendWorkerMessagesRequest} params.resource Request body data + * @param {().SendWorkerMessagesRequest} params.requestBody 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 @@ -4488,7 +4488,7 @@ export namespace dataflow_v1b3 { * @param {string} params.projectId The ID of the Cloud Platform project that the job belongs to. * @param {string=} params.replaceJobId Deprecated. This field is now in the Job message. * @param {string=} params.view The level of information requested in response. - * @param {().Job} params.resource Request body data + * @param {().Job} params.requestBody 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 @@ -4792,7 +4792,7 @@ export namespace dataflow_v1b3 { * @param {string} params.jobId The job ID. * @param {string} params.location The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. * @param {string} params.projectId The ID of the Cloud Platform project that the job belongs to. - * @param {().Job} params.resource Request body data + * @param {().Job} params.requestBody 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 @@ -5009,7 +5009,7 @@ export namespace dataflow_v1b3 { * @param {string} params.jobId The job id. * @param {string} params.location The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. * @param {string} params.projectId The project id. - * @param {().GetDebugConfigRequest} params.resource Request body data + * @param {().GetDebugConfigRequest} params.requestBody 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 @@ -5090,7 +5090,7 @@ export namespace dataflow_v1b3 { * @param {string} params.jobId The job id. * @param {string} params.location The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. * @param {string} params.projectId The project id. - * @param {().SendDebugCaptureRequest} params.resource Request body data + * @param {().SendDebugCaptureRequest} params.requestBody 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 @@ -5360,7 +5360,7 @@ export namespace dataflow_v1b3 { * @param {string} params.jobId Identifies the workflow job this worker belongs to. * @param {string} params.location The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the WorkItem's job. * @param {string} params.projectId Identifies the project this worker belongs to. - * @param {().LeaseWorkItemRequest} params.resource Request body data + * @param {().LeaseWorkItemRequest} params.requestBody 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 @@ -5439,7 +5439,7 @@ export namespace dataflow_v1b3 { * @param {string} params.jobId The job which the WorkItem is part of. * @param {string} params.location The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the WorkItem's job. * @param {string} params.projectId The project which owns the WorkItem's job. - * @param {().ReportWorkItemStatusRequest} params.resource Request body data + * @param {().ReportWorkItemStatusRequest} params.requestBody 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 @@ -5686,7 +5686,7 @@ export namespace dataflow_v1b3 { * @param {object} params Parameters for request * @param {string} params.location The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. * @param {string} params.projectId Required. The ID of the Cloud Platform project that the job belongs to. - * @param {().CreateJobFromTemplateRequest} params.resource Request body data + * @param {().CreateJobFromTemplateRequest} params.requestBody 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 @@ -5841,7 +5841,7 @@ export namespace dataflow_v1b3 { * @param {string} params.location The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. * @param {string} params.projectId Required. The ID of the Cloud Platform project that the job belongs to. * @param {boolean=} params.validateOnly If true, the request is validated but not actually executed. Defaults to false. - * @param {().LaunchTemplateParameters} params.resource Request body data + * @param {().LaunchTemplateParameters} params.requestBody 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 @@ -6008,7 +6008,7 @@ export namespace dataflow_v1b3 { * * @param {object} params Parameters for request * @param {string} params.projectId Required. The ID of the Cloud Platform project that the job belongs to. - * @param {().CreateJobFromTemplateRequest} params.resource Request body data + * @param {().CreateJobFromTemplateRequest} params.requestBody 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 @@ -6163,7 +6163,7 @@ export namespace dataflow_v1b3 { * @param {string=} params.location The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. * @param {string} params.projectId Required. The ID of the Cloud Platform project that the job belongs to. * @param {boolean=} params.validateOnly If true, the request is validated but not actually executed. Defaults to false. - * @param {().LaunchTemplateParameters} params.resource Request body data + * @param {().LaunchTemplateParameters} params.requestBody 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 diff --git a/src/apis/datafusion/v1beta1.ts b/src/apis/datafusion/v1beta1.ts index 9141c7780a6..fa89f02b754 100644 --- a/src/apis/datafusion/v1beta1.ts +++ b/src/apis/datafusion/v1beta1.ts @@ -863,7 +863,7 @@ export namespace datafusion_v1beta1 { * @param {object} params Parameters for request * @param {string=} params.instanceId The name of the instance to create. * @param {string} params.parent The instance's project and location in the format projects/{project}/locations/{location}. - * @param {().Instance} params.resource Request body data + * @param {().Instance} params.requestBody 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 @@ -1232,7 +1232,7 @@ export namespace datafusion_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name Output only. The name of this instance is in the form of projects/{project}/locations/{location}/instances/{instance}. * @param {string=} params.updateMask Field mask is used to specify the fields that the update will overwrite in an instance resource. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask, all the supported fields (labels and options currently) will be overwritten. - * @param {().Instance} params.resource Request body data + * @param {().Instance} params.requestBody 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 @@ -1304,7 +1304,7 @@ export namespace datafusion_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the Data Fusion instance which need to be restarted in the form of projects/{project}/locations/{location}/instances/{instance} - * @param {().RestartInstanceRequest} params.resource Request body data + * @param {().RestartInstanceRequest} params.requestBody 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 @@ -1379,7 +1379,7 @@ export namespace datafusion_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -1452,7 +1452,7 @@ export namespace datafusion_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -1534,7 +1534,7 @@ export namespace datafusion_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the Data Fusion instance which need to be upgraded in the form of projects/{project}/locations/{location}/instances/{instance} Instance will be upgraded with the latest stable version of the Data Fusion. - * @param {().UpgradeInstanceRequest} params.resource Request body data + * @param {().UpgradeInstanceRequest} params.requestBody 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 @@ -1795,7 +1795,7 @@ export namespace datafusion_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the operation resource to be cancelled. - * @param {().CancelOperationRequest} params.resource Request body data + * @param {().CancelOperationRequest} params.requestBody 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 diff --git a/src/apis/dataproc/v1.ts b/src/apis/dataproc/v1.ts index 9b063b4eab3..6ed1727b353 100644 --- a/src/apis/dataproc/v1.ts +++ b/src/apis/dataproc/v1.ts @@ -633,7 +633,7 @@ export namespace dataproc_v1 { */ export interface Schema$InstanceGroupConfig { /** - * Optional. The Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release. + * Optional. The Compute Engine accelerator configuration for these instances. */ accelerators?: Schema$AcceleratorConfig[]; /** @@ -660,6 +660,10 @@ export namespace dataproc_v1 { * Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups. */ managedGroupConfig?: Schema$ManagedGroupConfig; + /** + * Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud Dataproc&rarr;Minimum CPU Platform. + */ + minCpuPlatform?: string | null; /** * Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1. */ @@ -734,6 +738,10 @@ export namespace dataproc_v1 { * Job is a Spark job. */ sparkJob?: Schema$SparkJob; + /** + * Job is a SparkR job. + */ + sparkRJob?: Schema$SparkRJob; /** * Job is a SparkSql job. */ @@ -1127,7 +1135,7 @@ export namespace dataproc_v1 { scriptVariables?: {[key: string]: string} | null; } /** - * Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.A Policy is a collection of bindings. A binding binds one or more members to a single role. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions (defined by IAM or configured by users). A binding can optionally specify a condition, which is a logic expression that further constrains the role binding based on attributes about the request and/or target resource.JSON Example { "bindings": [ { "role": "role/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ] } YAML Example bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') For a description of IAM and its features, see the IAM developer's guide (https://cloud.google.com/iam/docs). + * Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.A Policy is a collection of bindings. A binding binds one or more members to a single role. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions (defined by IAM or configured by users). A binding can optionally specify a condition, which is a logic expression that further constrains the role binding based on attributes about the request and/or target resource.JSON Example { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ] } YAML Example bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') For a description of IAM and its features, see the IAM developer's guide (https://cloud.google.com/iam/docs). */ export interface Schema$Policy { /** @@ -1270,6 +1278,35 @@ export namespace dataproc_v1 { */ properties?: {[key: string]: string} | null; } + /** + * A Cloud Dataproc job for running Apache SparkR (https://spark.apache.org/docs/latest/sparkr.html) applications on YARN. + */ + export interface Schema$SparkRJob { + /** + * Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip. + */ + archiveUris?: string[] | null; + /** + * Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission. + */ + args?: string[] | null; + /** + * Optional. HCFS URIs of files to be copied to the working directory of R drivers and distributed tasks. Useful for naively parallel tasks. + */ + fileUris?: string[] | null; + /** + * Optional. The runtime log config for job execution. + */ + loggingConfig?: Schema$LoggingConfig; + /** + * Required. The HCFS URI of the main R file to use as the driver. Must be a .R file. + */ + mainRFileUri?: string | null; + /** + * Optional. A mapping of property names to values, used to configure SparkR. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code. + */ + properties?: {[key: string]: string} | null; + } /** * A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. */ @@ -1573,7 +1610,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The "resource name" of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.create, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.autoscalingPolicies.create, the resource name of the location has the following format: projects/{project_id}/locations/{location} - * @param {().AutoscalingPolicy} params.resource Request body data + * @param {().AutoscalingPolicy} params.requestBody 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 @@ -1839,7 +1876,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -1991,7 +2028,7 @@ export namespace dataproc_v1 { /** * dataproc.projects.locations.autoscalingPolicies.setIamPolicy - * @desc Sets the access control policy on the specified resource. Replaces any existing policy. + * @desc Sets the access control policy on the specified resource. Replaces any existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED * @example * * // BEFORE RUNNING: * // --------------- @@ -2048,7 +2085,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -2172,7 +2209,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -2254,7 +2291,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.name Output only. The "resource name" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id} - * @param {().AutoscalingPolicy} params.resource Request body data + * @param {().AutoscalingPolicy} params.requestBody 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 @@ -2515,7 +2552,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,create, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.create, the resource name of the location has the following format: projects/{project_id}/locations/{location} - * @param {().WorkflowTemplate} params.resource Request body data + * @param {().WorkflowTemplate} params.requestBody 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 @@ -2876,7 +2913,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -3001,7 +3038,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id} - * @param {().InstantiateWorkflowTemplateRequest} params.resource Request body data + * @param {().InstantiateWorkflowTemplateRequest} params.requestBody 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 @@ -3129,7 +3166,7 @@ export namespace dataproc_v1 { * @param {object} params Parameters for request * @param {string} params.parent Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,instantiateinline, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.instantiateinline, the resource name of the location has the following format: projects/{project_id}/locations/{location} * @param {string=} params.requestId Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters. - * @param {().WorkflowTemplate} params.resource Request body data + * @param {().WorkflowTemplate} params.requestBody 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 @@ -3343,7 +3380,7 @@ export namespace dataproc_v1 { /** * dataproc.projects.locations.workflowTemplates.setIamPolicy - * @desc Sets the access control policy on the specified resource. Replaces any existing policy. + * @desc Sets the access control policy on the specified resource. Replaces any existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED * @example * * // BEFORE RUNNING: * // --------------- @@ -3400,7 +3437,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -3524,7 +3561,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -3659,7 +3696,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.name Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id} - * @param {().WorkflowTemplate} params.resource Request body data + * @param {().WorkflowTemplate} params.requestBody 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 @@ -3935,7 +3972,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The "resource name" of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.create, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.autoscalingPolicies.create, the resource name of the location has the following format: projects/{project_id}/locations/{location} - * @param {().AutoscalingPolicy} params.resource Request body data + * @param {().AutoscalingPolicy} params.requestBody 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 @@ -4201,7 +4238,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -4353,7 +4390,7 @@ export namespace dataproc_v1 { /** * dataproc.projects.regions.autoscalingPolicies.setIamPolicy - * @desc Sets the access control policy on the specified resource. Replaces any existing policy. + * @desc Sets the access control policy on the specified resource. Replaces any existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED * @example * * // BEFORE RUNNING: * // --------------- @@ -4410,7 +4447,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -4534,7 +4571,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -4616,7 +4653,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.name Output only. The "resource name" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id} - * @param {().AutoscalingPolicy} params.resource Request body data + * @param {().AutoscalingPolicy} params.requestBody 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 @@ -4880,7 +4917,7 @@ export namespace dataproc_v1 { * @param {string} params.projectId Required. The ID of the Google Cloud Platform project that the cluster belongs to. * @param {string} params.region Required. The Cloud Dataproc region in which to handle the request. * @param {string=} params.requestId Optional. A unique id used to identify the request. If the server receives two CreateClusterRequest requests with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters. - * @param {().Cluster} params.resource Request body data + * @param {().Cluster} params.requestBody 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 @@ -5142,7 +5179,7 @@ export namespace dataproc_v1 { * @param {string} params.clusterName Required. The cluster name. * @param {string} params.projectId Required. The ID of the Google Cloud Platform project that the cluster belongs to. * @param {string} params.region Required. The Cloud Dataproc region in which to handle the request. - * @param {().DiagnoseClusterRequest} params.resource Request body data + * @param {().DiagnoseClusterRequest} params.requestBody 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 @@ -5394,7 +5431,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -5670,7 +5707,7 @@ export namespace dataproc_v1 { * @param {string} params.region Required. The Cloud Dataproc region in which to handle the request. * @param {string=} params.requestId Optional. A unique id used to identify the request. If the server receives two UpdateClusterRequest requests with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters. * @param {string=} params.updateMask Required. Specifies the path, relative to Cluster, of the field to update. For example, to change the number of workers in a cluster to 5, the update_mask parameter would be specified as config.worker_config.num_instances, and the PATCH request body would specify the new value, as follows: { "config":{ "workerConfig":{ "numInstances":"5" } } } Similarly, to change the number of preemptible workers in a cluster to 5, the update_mask parameter would be config.secondary_worker_config.num_instances, and the PATCH request body would be set as follows: { "config":{ "secondaryWorkerConfig":{ "numInstances":"5" } } } Note: Currently, only the following fields can be updated:
              Mask Purpose
              labels Update labels
              config.worker_config.num_instances Resize primary worker group
              config.secondary_worker_config.num_instances Resize secondary worker group
              config.autoscaling_config.policy_uriUse, stop using, or change autoscaling policies
              - * @param {().Cluster} params.resource Request body data + * @param {().Cluster} params.requestBody 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 @@ -5739,7 +5776,7 @@ export namespace dataproc_v1 { /** * dataproc.projects.regions.clusters.setIamPolicy - * @desc Sets the access control policy on the specified resource. Replaces any existing policy. + * @desc Sets the access control policy on the specified resource. Replaces any existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED * @example * * // BEFORE RUNNING: * // --------------- @@ -5796,7 +5833,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -5920,7 +5957,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -6282,7 +6319,7 @@ export namespace dataproc_v1 { * @param {string} params.jobId Required. The job ID. * @param {string} params.projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param {string} params.region Required. The Cloud Dataproc region in which to handle the request. - * @param {().CancelJobRequest} params.resource Request body data + * @param {().CancelJobRequest} params.requestBody 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 @@ -6653,7 +6690,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -6927,7 +6964,7 @@ export namespace dataproc_v1 { * @param {string} params.projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param {string} params.region Required. The Cloud Dataproc region in which to handle the request. * @param {string=} params.updateMask Required. Specifies the path, relative to Job, of the field to update. For example, to update the labels of a Job the update_mask parameter would be specified as labels, and the PATCH request body would specify the new value. Note: Currently, labels is the only field that can be updated. - * @param {().Job} params.resource Request body data + * @param {().Job} params.requestBody 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 @@ -6993,7 +7030,7 @@ export namespace dataproc_v1 { /** * dataproc.projects.regions.jobs.setIamPolicy - * @desc Sets the access control policy on the specified resource. Replaces any existing policy. + * @desc Sets the access control policy on the specified resource. Replaces any existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED * @example * * // BEFORE RUNNING: * // --------------- @@ -7050,7 +7087,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -7177,7 +7214,7 @@ export namespace dataproc_v1 { * @param {object} params Parameters for request * @param {string} params.projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param {string} params.region Required. The Cloud Dataproc region in which to handle the request. - * @param {().SubmitJobRequest} params.resource Request body data + * @param {().SubmitJobRequest} params.requestBody 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 @@ -7300,7 +7337,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -7984,7 +8021,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -8186,7 +8223,7 @@ export namespace dataproc_v1 { /** * dataproc.projects.regions.operations.setIamPolicy - * @desc Sets the access control policy on the specified resource. Replaces any existing policy. + * @desc Sets the access control policy on the specified resource. Replaces any existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED * @example * * // BEFORE RUNNING: * // --------------- @@ -8243,7 +8280,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -8367,7 +8404,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -8620,7 +8657,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,create, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.create, the resource name of the location has the following format: projects/{project_id}/locations/{location} - * @param {().WorkflowTemplate} params.resource Request body data + * @param {().WorkflowTemplate} params.requestBody 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 @@ -8981,7 +9018,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -9106,7 +9143,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id} - * @param {().InstantiateWorkflowTemplateRequest} params.resource Request body data + * @param {().InstantiateWorkflowTemplateRequest} params.requestBody 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 @@ -9234,7 +9271,7 @@ export namespace dataproc_v1 { * @param {object} params Parameters for request * @param {string} params.parent Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,instantiateinline, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.instantiateinline, the resource name of the location has the following format: projects/{project_id}/locations/{location} * @param {string=} params.requestId Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters. - * @param {().WorkflowTemplate} params.resource Request body data + * @param {().WorkflowTemplate} params.requestBody 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 @@ -9448,7 +9485,7 @@ export namespace dataproc_v1 { /** * dataproc.projects.regions.workflowTemplates.setIamPolicy - * @desc Sets the access control policy on the specified resource. Replaces any existing policy. + * @desc Sets the access control policy on the specified resource. Replaces any existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED * @example * * // BEFORE RUNNING: * // --------------- @@ -9505,7 +9542,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -9629,7 +9666,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -9764,7 +9801,7 @@ export namespace dataproc_v1 { * * @param {object} params Parameters for request * @param {string} params.name Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id} - * @param {().WorkflowTemplate} params.resource Request body data + * @param {().WorkflowTemplate} params.requestBody 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 diff --git a/src/apis/dataproc/v1beta2.ts b/src/apis/dataproc/v1beta2.ts index e80c5d3efdd..f85263f1a30 100644 --- a/src/apis/dataproc/v1beta2.ts +++ b/src/apis/dataproc/v1beta2.ts @@ -654,7 +654,7 @@ export namespace dataproc_v1beta2 { */ export interface Schema$InstanceGroupConfig { /** - * Optional. The Compute Engine accelerator configuration for these instances.Beta Feature: This feature is still under development. It may be changed before final release. + * Optional. The Compute Engine accelerator configuration for these instances. */ accelerators?: Schema$AcceleratorConfig[]; /** @@ -1168,7 +1168,7 @@ export namespace dataproc_v1beta2 { scriptVariables?: {[key: string]: string} | null; } /** - * Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.A Policy is a collection of bindings. A binding binds one or more members to a single role. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions (defined by IAM or configured by users). A binding can optionally specify a condition, which is a logic expression that further constrains the role binding based on attributes about the request and/or target resource.JSON Example { "bindings": [ { "role": "role/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ] } YAML Example bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') For a description of IAM and its features, see the IAM developer's guide (https://cloud.google.com/iam/docs). + * Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.A Policy is a collection of bindings. A binding binds one or more members to a single role. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions (defined by IAM or configured by users). A binding can optionally specify a condition, which is a logic expression that further constrains the role binding based on attributes about the request and/or target resource.JSON Example { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ] } YAML Example bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') For a description of IAM and its features, see the IAM developer's guide (https://cloud.google.com/iam/docs). */ export interface Schema$Policy { /** @@ -1696,7 +1696,7 @@ export namespace dataproc_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The "resource name" of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.create, the resource name has the following format: projects/{project_id}/regions/{region} For projects.locations.autoscalingPolicies.create, the resource name has the following format: projects/{project_id}/locations/{location} - * @param {().AutoscalingPolicy} params.resource Request body data + * @param {().AutoscalingPolicy} params.requestBody 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 @@ -2063,13 +2063,13 @@ export namespace dataproc_v1beta2 { /** * dataproc.projects.locations.autoscalingPolicies.setIamPolicy - * @desc Sets the access control policy on the specified resource. Replaces any existing policy. + * @desc Sets the access control policy on the specified resource. Replaces any existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED * @alias dataproc.projects.locations.autoscalingPolicies.setIamPolicy * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -2142,7 +2142,7 @@ export namespace dataproc_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -2224,7 +2224,7 @@ export namespace dataproc_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.name Output only. The "resource name" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id} - * @param {().AutoscalingPolicy} params.resource Request body data + * @param {().AutoscalingPolicy} params.requestBody 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 @@ -2432,7 +2432,7 @@ export namespace dataproc_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,create, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.create, the resource name of the location has the following format: projects/{project_id}/locations/{location} - * @param {().WorkflowTemplate} params.resource Request body data + * @param {().WorkflowTemplate} params.requestBody 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 @@ -2722,7 +2722,7 @@ export namespace dataproc_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id} - * @param {().InstantiateWorkflowTemplateRequest} params.resource Request body data + * @param {().InstantiateWorkflowTemplateRequest} params.requestBody 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 @@ -2799,7 +2799,7 @@ export namespace dataproc_v1beta2 { * @param {string=} params.instanceId Deprecated. Please use request_id field instead. * @param {string} params.parent Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,instantiateinline, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.instantiateinline, the resource name of the location has the following format: projects/{project_id}/locations/{location} * @param {string=} params.requestId Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters. - * @param {().WorkflowTemplate} params.resource Request body data + * @param {().WorkflowTemplate} params.requestBody 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 @@ -2952,13 +2952,13 @@ export namespace dataproc_v1beta2 { /** * dataproc.projects.locations.workflowTemplates.setIamPolicy - * @desc Sets the access control policy on the specified resource. Replaces any existing policy. + * @desc Sets the access control policy on the specified resource. Replaces any existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED * @alias dataproc.projects.locations.workflowTemplates.setIamPolicy * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -3031,7 +3031,7 @@ export namespace dataproc_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -3113,7 +3113,7 @@ export namespace dataproc_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.name Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id} - * @param {().WorkflowTemplate} params.resource Request body data + * @param {().WorkflowTemplate} params.requestBody 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 @@ -3392,7 +3392,7 @@ export namespace dataproc_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The "resource name" of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies.create, the resource name has the following format: projects/{project_id}/regions/{region} For projects.locations.autoscalingPolicies.create, the resource name has the following format: projects/{project_id}/locations/{location} - * @param {().AutoscalingPolicy} params.resource Request body data + * @param {().AutoscalingPolicy} params.requestBody 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 @@ -3759,13 +3759,13 @@ export namespace dataproc_v1beta2 { /** * dataproc.projects.regions.autoscalingPolicies.setIamPolicy - * @desc Sets the access control policy on the specified resource. Replaces any existing policy. + * @desc Sets the access control policy on the specified resource. Replaces any existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED * @alias dataproc.projects.regions.autoscalingPolicies.setIamPolicy * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -3838,7 +3838,7 @@ export namespace dataproc_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -3920,7 +3920,7 @@ export namespace dataproc_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.name Output only. The "resource name" of the autoscaling policy, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For projects.locations.autoscalingPolicies, the resource name of the policy has the following format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id} - * @param {().AutoscalingPolicy} params.resource Request body data + * @param {().AutoscalingPolicy} params.requestBody 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 @@ -4130,7 +4130,7 @@ export namespace dataproc_v1beta2 { * @param {string} params.projectId Required. The ID of the Google Cloud Platform project that the cluster belongs to. * @param {string} params.region Required. The Cloud Dataproc region in which to handle the request. * @param {string=} params.requestId Optional. A unique id used to identify the request. If the server receives two CreateClusterRequest requests with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters. - * @param {().Cluster} params.resource Request body data + * @param {().Cluster} params.requestBody 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 @@ -4285,7 +4285,7 @@ export namespace dataproc_v1beta2 { * @param {string} params.clusterName Required. The cluster name. * @param {string} params.projectId Required. The ID of the Google Cloud Platform project that the cluster belongs to. * @param {string} params.region Required. The Cloud Dataproc region in which to handle the request. - * @param {().DiagnoseClusterRequest} params.resource Request body data + * @param {().DiagnoseClusterRequest} params.requestBody 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 @@ -4592,7 +4592,7 @@ export namespace dataproc_v1beta2 { * @param {string} params.region Required. The Cloud Dataproc region in which to handle the request. * @param {string=} params.requestId Optional. A unique id used to identify the request. If the server receives two UpdateClusterRequest requests with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters. * @param {string=} params.updateMask Required. Specifies the path, relative to Cluster, of the field to update. For example, to change the number of workers in a cluster to 5, the update_mask parameter would be specified as config.worker_config.num_instances, and the PATCH request body would specify the new value, as follows: { "config":{ "workerConfig":{ "numInstances":"5" } } } Similarly, to change the number of preemptible workers in a cluster to 5, the update_mask parameter would be config.secondary_worker_config.num_instances, and the PATCH request body would be set as follows: { "config":{ "secondaryWorkerConfig":{ "numInstances":"5" } } } Note: currently only the following fields can be updated:
              MaskPurpose
              labelsUpdates labels
              config.worker_config.num_instancesResize primary worker group
              config.secondary_worker_config.num_instancesResize secondary worker group
              config.lifecycle_config.auto_delete_ttlReset MAX TTL duration
              config.lifecycle_config.auto_delete_timeUpdate MAX TTL deletion timestamp
              config.lifecycle_config.idle_delete_ttlUpdate Idle TTL duration
              config.autoscaling_config.policy_uriUse, stop using, or change autoscaling policies
              - * @param {().Cluster} params.resource Request body data + * @param {().Cluster} params.requestBody 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 @@ -4661,13 +4661,13 @@ export namespace dataproc_v1beta2 { /** * dataproc.projects.regions.clusters.setIamPolicy - * @desc Sets the access control policy on the specified resource. Replaces any existing policy. + * @desc Sets the access control policy on the specified resource. Replaces any existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED * @alias dataproc.projects.regions.clusters.setIamPolicy * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -4740,7 +4740,7 @@ export namespace dataproc_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -5045,7 +5045,7 @@ export namespace dataproc_v1beta2 { * @param {string} params.jobId Required. The job ID. * @param {string} params.projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param {string} params.region Required. The Cloud Dataproc region in which to handle the request. - * @param {().CancelJobRequest} params.resource Request body data + * @param {().CancelJobRequest} params.requestBody 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 @@ -5421,7 +5421,7 @@ export namespace dataproc_v1beta2 { * @param {string} params.projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param {string} params.region Required. The Cloud Dataproc region in which to handle the request. * @param {string=} params.updateMask Required. Specifies the path, relative to Job, of the field to update. For example, to update the labels of a Job the update_mask parameter would be specified as labels, and the PATCH request body would specify the new value. Note: Currently, labels is the only field that can be updated. - * @param {().Job} params.resource Request body data + * @param {().Job} params.requestBody 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 @@ -5488,13 +5488,13 @@ export namespace dataproc_v1beta2 { /** * dataproc.projects.regions.jobs.setIamPolicy - * @desc Sets the access control policy on the specified resource. Replaces any existing policy. + * @desc Sets the access control policy on the specified resource. Replaces any existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED * @alias dataproc.projects.regions.jobs.setIamPolicy * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -5568,7 +5568,7 @@ export namespace dataproc_v1beta2 { * @param {object} params Parameters for request * @param {string} params.projectId Required. The ID of the Google Cloud Platform project that the job belongs to. * @param {string} params.region Required. The Cloud Dataproc region in which to handle the request. - * @param {().SubmitJobRequest} params.resource Request body data + * @param {().SubmitJobRequest} params.requestBody 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 @@ -5641,7 +5641,7 @@ export namespace dataproc_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -6287,13 +6287,13 @@ export namespace dataproc_v1beta2 { /** * dataproc.projects.regions.operations.setIamPolicy - * @desc Sets the access control policy on the specified resource. Replaces any existing policy. + * @desc Sets the access control policy on the specified resource. Replaces any existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED * @alias dataproc.projects.regions.operations.setIamPolicy * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -6366,7 +6366,7 @@ export namespace dataproc_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -6566,7 +6566,7 @@ export namespace dataproc_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,create, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.create, the resource name of the location has the following format: projects/{project_id}/locations/{location} - * @param {().WorkflowTemplate} params.resource Request body data + * @param {().WorkflowTemplate} params.requestBody 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 @@ -6856,7 +6856,7 @@ export namespace dataproc_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id} - * @param {().InstantiateWorkflowTemplateRequest} params.resource Request body data + * @param {().InstantiateWorkflowTemplateRequest} params.requestBody 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 @@ -6933,7 +6933,7 @@ export namespace dataproc_v1beta2 { * @param {string=} params.instanceId Deprecated. Please use request_id field instead. * @param {string} params.parent Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates,instantiateinline, the resource name of the region has the following format: projects/{project_id}/regions/{region} For projects.locations.workflowTemplates.instantiateinline, the resource name of the location has the following format: projects/{project_id}/locations/{location} * @param {string=} params.requestId Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters. - * @param {().WorkflowTemplate} params.resource Request body data + * @param {().WorkflowTemplate} params.requestBody 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 @@ -7086,13 +7086,13 @@ export namespace dataproc_v1beta2 { /** * dataproc.projects.regions.workflowTemplates.setIamPolicy - * @desc Sets the access control policy on the specified resource. Replaces any existing policy. + * @desc Sets the access control policy on the specified resource. Replaces any existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED * @alias dataproc.projects.regions.workflowTemplates.setIamPolicy * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -7165,7 +7165,7 @@ export namespace dataproc_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -7247,7 +7247,7 @@ export namespace dataproc_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.name Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id} For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id} - * @param {().WorkflowTemplate} params.resource Request body data + * @param {().WorkflowTemplate} params.requestBody 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 diff --git a/src/apis/datastore/v1.ts b/src/apis/datastore/v1.ts index 026037a41a9..f3d57173810 100644 --- a/src/apis/datastore/v1.ts +++ b/src/apis/datastore/v1.ts @@ -1103,7 +1103,7 @@ export namespace datastore_v1 { * * @param {object} params Parameters for request * @param {string} params.projectId The ID of the project against which to make the request. - * @param {().AllocateIdsRequest} params.resource Request body data + * @param {().AllocateIdsRequest} params.requestBody 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 @@ -1180,7 +1180,7 @@ export namespace datastore_v1 { * * @param {object} params Parameters for request * @param {string} params.projectId The ID of the project against which to make the request. - * @param {().BeginTransactionRequest} params.resource Request body data + * @param {().BeginTransactionRequest} params.requestBody 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 @@ -1258,7 +1258,7 @@ export namespace datastore_v1 { * * @param {object} params Parameters for request * @param {string} params.projectId The ID of the project against which to make the request. - * @param {().CommitRequest} params.resource Request body data + * @param {().CommitRequest} params.requestBody 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 @@ -1332,7 +1332,7 @@ export namespace datastore_v1 { * * @param {object} params Parameters for request * @param {string} params.projectId Project ID against which to make the request. - * @param {().GoogleDatastoreAdminV1ExportEntitiesRequest} params.resource Request body data + * @param {().GoogleDatastoreAdminV1ExportEntitiesRequest} params.requestBody 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 @@ -1413,7 +1413,7 @@ export namespace datastore_v1 { * * @param {object} params Parameters for request * @param {string} params.projectId Project ID against which to make the request. - * @param {().GoogleDatastoreAdminV1ImportEntitiesRequest} params.resource Request body data + * @param {().GoogleDatastoreAdminV1ImportEntitiesRequest} params.requestBody 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 @@ -1494,7 +1494,7 @@ export namespace datastore_v1 { * * @param {object} params Parameters for request * @param {string} params.projectId The ID of the project against which to make the request. - * @param {().LookupRequest} params.resource Request body data + * @param {().LookupRequest} params.requestBody 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 @@ -1568,7 +1568,7 @@ export namespace datastore_v1 { * * @param {object} params Parameters for request * @param {string} params.projectId The ID of the project against which to make the request. - * @param {().ReserveIdsRequest} params.resource Request body data + * @param {().ReserveIdsRequest} params.requestBody 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 @@ -1643,7 +1643,7 @@ export namespace datastore_v1 { * * @param {object} params Parameters for request * @param {string} params.projectId The ID of the project against which to make the request. - * @param {().RollbackRequest} params.resource Request body data + * @param {().RollbackRequest} params.requestBody 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 @@ -1718,7 +1718,7 @@ export namespace datastore_v1 { * * @param {object} params Parameters for request * @param {string} params.projectId The ID of the project against which to make the request. - * @param {().RunQueryRequest} params.resource Request body data + * @param {().RunQueryRequest} params.requestBody 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 @@ -1950,7 +1950,7 @@ export namespace datastore_v1 { * * @param {object} params Parameters for request * @param {string} params.projectId Project ID against which to make the request. - * @param {().GoogleDatastoreAdminV1Index} params.resource Request body data + * @param {().GoogleDatastoreAdminV1Index} params.requestBody 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 diff --git a/src/apis/datastore/v1beta1.ts b/src/apis/datastore/v1beta1.ts index f8eb5fdb22a..320f94ed150 100644 --- a/src/apis/datastore/v1beta1.ts +++ b/src/apis/datastore/v1beta1.ts @@ -443,7 +443,7 @@ export namespace datastore_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.projectId Project ID against which to make the request. - * @param {().GoogleDatastoreAdminV1beta1ExportEntitiesRequest} params.resource Request body data + * @param {().GoogleDatastoreAdminV1beta1ExportEntitiesRequest} params.requestBody 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 @@ -524,7 +524,7 @@ export namespace datastore_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.projectId Project ID against which to make the request. - * @param {().GoogleDatastoreAdminV1beta1ImportEntitiesRequest} params.resource Request body data + * @param {().GoogleDatastoreAdminV1beta1ImportEntitiesRequest} params.requestBody 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 diff --git a/src/apis/datastore/v1beta3.ts b/src/apis/datastore/v1beta3.ts index 39fdcb834ff..4c69d8f5544 100644 --- a/src/apis/datastore/v1beta3.ts +++ b/src/apis/datastore/v1beta3.ts @@ -951,7 +951,7 @@ export namespace datastore_v1beta3 { * * @param {object} params Parameters for request * @param {string} params.projectId The ID of the project against which to make the request. - * @param {().AllocateIdsRequest} params.resource Request body data + * @param {().AllocateIdsRequest} params.requestBody 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 @@ -1027,7 +1027,7 @@ export namespace datastore_v1beta3 { * * @param {object} params Parameters for request * @param {string} params.projectId The ID of the project against which to make the request. - * @param {().BeginTransactionRequest} params.resource Request body data + * @param {().BeginTransactionRequest} params.requestBody 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 @@ -1105,7 +1105,7 @@ export namespace datastore_v1beta3 { * * @param {object} params Parameters for request * @param {string} params.projectId The ID of the project against which to make the request. - * @param {().CommitRequest} params.resource Request body data + * @param {().CommitRequest} params.requestBody 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 @@ -1179,7 +1179,7 @@ export namespace datastore_v1beta3 { * * @param {object} params Parameters for request * @param {string} params.projectId The ID of the project against which to make the request. - * @param {().LookupRequest} params.resource Request body data + * @param {().LookupRequest} params.requestBody 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 @@ -1253,7 +1253,7 @@ export namespace datastore_v1beta3 { * * @param {object} params Parameters for request * @param {string} params.projectId The ID of the project against which to make the request. - * @param {().ReserveIdsRequest} params.resource Request body data + * @param {().ReserveIdsRequest} params.requestBody 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 @@ -1328,7 +1328,7 @@ export namespace datastore_v1beta3 { * * @param {object} params Parameters for request * @param {string} params.projectId The ID of the project against which to make the request. - * @param {().RollbackRequest} params.resource Request body data + * @param {().RollbackRequest} params.requestBody 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 @@ -1403,7 +1403,7 @@ export namespace datastore_v1beta3 { * * @param {object} params Parameters for request * @param {string} params.projectId The ID of the project against which to make the request. - * @param {().RunQueryRequest} params.resource Request body data + * @param {().RunQueryRequest} params.requestBody 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 diff --git a/src/apis/deploymentmanager/alpha.ts b/src/apis/deploymentmanager/alpha.ts index 460048b3ee5..8aa511e71d1 100644 --- a/src/apis/deploymentmanager/alpha.ts +++ b/src/apis/deploymentmanager/alpha.ts @@ -1384,7 +1384,7 @@ export namespace deploymentmanager_alpha { * * @param {object} params Parameters for request * @param {string} params.project The project ID for this request. - * @param {().CompositeType} params.resource Request body data + * @param {().CompositeType} params.requestBody 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 @@ -1545,7 +1545,7 @@ export namespace deploymentmanager_alpha { * @param {object} params Parameters for request * @param {string} params.compositeType The name of the composite type for this request. * @param {string} params.project The project ID for this request. - * @param {().CompositeType} params.resource Request body data + * @param {().CompositeType} params.requestBody 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 @@ -1621,7 +1621,7 @@ export namespace deploymentmanager_alpha { * @param {object} params Parameters for request * @param {string} params.compositeType The name of the composite type for this request. * @param {string} params.project The project ID for this request. - * @param {().CompositeType} params.resource Request body data + * @param {().CompositeType} params.requestBody 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 @@ -1824,7 +1824,7 @@ export namespace deploymentmanager_alpha { * @param {object} params Parameters for request * @param {string} params.deployment The name of the deployment for this request. * @param {string} params.project The project ID for this request. - * @param {().DeploymentsCancelPreviewRequest} params.resource Request body data + * @param {().DeploymentsCancelPreviewRequest} params.requestBody 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 @@ -2124,7 +2124,7 @@ export namespace deploymentmanager_alpha { * @param {string=} params.createPolicy Sets the policy to use for creating new resources. * @param {boolean=} params.preview If set to true, creates a deployment and creates "shell" resources but does not actually instantiate these resources. This allows you to preview what your deployment looks like. After previewing a deployment, you can deploy your resources by making a request with the update() method or you can use the cancelPreview() method to cancel the preview altogether. Note that the deployment will still exist after you cancel the preview and you must separately delete this deployment if you want to remove it. * @param {string} params.project The project ID for this request. - * @param {().Deployment} params.resource Request body data + * @param {().Deployment} params.requestBody 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 @@ -2282,7 +2282,7 @@ export namespace deploymentmanager_alpha { * @param {string} params.deployment The name of the deployment for this request. * @param {boolean=} params.preview If set to true, updates the deployment and creates and updates the "shell" resources but does not actually alter or instantiate these resources. This allows you to preview what your deployment will look like. You can use this intent to preview how an update would affect your deployment. You must provide a target.config with a configuration if this is set to true. After previewing a deployment, you can deploy your resources by making a request with the update() or you can cancelPreview() to remove the preview altogether. Note that the deployment will still exist after you cancel the preview and you must separately delete this deployment if you want to remove it. * @param {string} params.project The project ID for this request. - * @param {().Deployment} params.resource Request body data + * @param {().Deployment} params.requestBody 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 @@ -2358,7 +2358,7 @@ export namespace deploymentmanager_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetPolicyRequest} params.resource Request body data + * @param {().GlobalSetPolicyRequest} params.requestBody 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 @@ -2432,7 +2432,7 @@ export namespace deploymentmanager_alpha { * @param {object} params Parameters for request * @param {string} params.deployment The name of the deployment for this request. * @param {string} params.project The project ID for this request. - * @param {().DeploymentsStopRequest} params.resource Request body data + * @param {().DeploymentsStopRequest} params.requestBody 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 @@ -2507,7 +2507,7 @@ export namespace deploymentmanager_alpha { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -2590,7 +2590,7 @@ export namespace deploymentmanager_alpha { * @param {string} params.deployment The name of the deployment for this request. * @param {boolean=} params.preview If set to true, updates the deployment and creates and updates the "shell" resources but does not actually alter or instantiate these resources. This allows you to preview what your deployment will look like. You can use this intent to preview how an update would affect your deployment. You must provide a target.config with a configuration if this is set to true. After previewing a deployment, you can deploy your resources by making a request with the update() or you can cancelPreview() to remove the preview altogether. Note that the deployment will still exist after you cancel the preview and you must separately delete this deployment if you want to remove it. * @param {string} params.project The project ID for this request. - * @param {().Deployment} params.resource Request body data + * @param {().Deployment} params.requestBody 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 @@ -3774,7 +3774,7 @@ export namespace deploymentmanager_alpha { * * @param {object} params Parameters for request * @param {string} params.project The project ID for this request. - * @param {().TypeProvider} params.resource Request body data + * @param {().TypeProvider} params.requestBody 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 @@ -4023,7 +4023,7 @@ export namespace deploymentmanager_alpha { * @param {object} params Parameters for request * @param {string} params.project The project ID for this request. * @param {string} params.typeProvider The name of the type provider for this request. - * @param {().TypeProvider} params.resource Request body data + * @param {().TypeProvider} params.requestBody 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 @@ -4099,7 +4099,7 @@ export namespace deploymentmanager_alpha { * @param {object} params Parameters for request * @param {string} params.project The project ID for this request. * @param {string} params.typeProvider The name of the type provider for this request. - * @param {().TypeProvider} params.resource Request body data + * @param {().TypeProvider} params.requestBody 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 @@ -4499,7 +4499,7 @@ export namespace deploymentmanager_alpha { * * @param {object} params Parameters for request * @param {string} params.project The project ID for this request. - * @param {().Type} params.resource Request body data + * @param {().Type} params.requestBody 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 @@ -4651,7 +4651,7 @@ export namespace deploymentmanager_alpha { * @param {object} params Parameters for request * @param {string} params.project The project ID for this request. * @param {string} params.type The name of the type for this request. - * @param {().Type} params.resource Request body data + * @param {().Type} params.requestBody 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 @@ -4726,7 +4726,7 @@ export namespace deploymentmanager_alpha { * @param {object} params Parameters for request * @param {string} params.project The project ID for this request. * @param {string} params.type The name of the type for this request. - * @param {().Type} params.resource Request body data + * @param {().Type} params.requestBody 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 diff --git a/src/apis/deploymentmanager/v2.ts b/src/apis/deploymentmanager/v2.ts index 5e35668adc4..f84adeb299c 100644 --- a/src/apis/deploymentmanager/v2.ts +++ b/src/apis/deploymentmanager/v2.ts @@ -848,7 +848,7 @@ export namespace deploymentmanager_v2 { * @param {object} params Parameters for request * @param {string} params.deployment The name of the deployment for this request. * @param {string} params.project The project ID for this request. - * @param {().DeploymentsCancelPreviewRequest} params.resource Request body data + * @param {().DeploymentsCancelPreviewRequest} params.requestBody 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 @@ -1361,7 +1361,7 @@ export namespace deploymentmanager_v2 { * @param {string=} params.createPolicy Sets the policy to use for creating new resources. * @param {boolean=} params.preview If set to true, creates a deployment and creates "shell" resources but does not actually instantiate these resources. This allows you to preview what your deployment looks like. After previewing a deployment, you can deploy your resources by making a request with the update() method or you can use the cancelPreview() method to cancel the preview altogether. Note that the deployment will still exist after you cancel the preview and you must separately delete this deployment if you want to remove it. * @param {string} params.project The project ID for this request. - * @param {().Deployment} params.resource Request body data + * @param {().Deployment} params.requestBody 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 @@ -1640,7 +1640,7 @@ export namespace deploymentmanager_v2 { * @param {string} params.deployment The name of the deployment for this request. * @param {boolean=} params.preview If set to true, updates the deployment and creates and updates the "shell" resources but does not actually alter or instantiate these resources. This allows you to preview what your deployment will look like. You can use this intent to preview how an update would affect your deployment. You must provide a target.config with a configuration if this is set to true. After previewing a deployment, you can deploy your resources by making a request with the update() or you can cancelPreview() to remove the preview altogether. Note that the deployment will still exist after you cancel the preview and you must separately delete this deployment if you want to remove it. * @param {string} params.project The project ID for this request. - * @param {().Deployment} params.resource Request body data + * @param {().Deployment} params.requestBody 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 @@ -1773,7 +1773,7 @@ export namespace deploymentmanager_v2 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetPolicyRequest} params.resource Request body data + * @param {().GlobalSetPolicyRequest} params.requestBody 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 @@ -1904,7 +1904,7 @@ export namespace deploymentmanager_v2 { * @param {object} params Parameters for request * @param {string} params.deployment The name of the deployment for this request. * @param {string} params.project The project ID for this request. - * @param {().DeploymentsStopRequest} params.resource Request body data + * @param {().DeploymentsStopRequest} params.requestBody 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 @@ -2036,7 +2036,7 @@ export namespace deploymentmanager_v2 { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -2177,7 +2177,7 @@ export namespace deploymentmanager_v2 { * @param {string} params.deployment The name of the deployment for this request. * @param {boolean=} params.preview If set to true, updates the deployment and creates and updates the "shell" resources but does not actually alter or instantiate these resources. This allows you to preview what your deployment will look like. You can use this intent to preview how an update would affect your deployment. You must provide a target.config with a configuration if this is set to true. After previewing a deployment, you can deploy your resources by making a request with the update() or you can cancelPreview() to remove the preview altogether. Note that the deployment will still exist after you cancel the preview and you must separately delete this deployment if you want to remove it. * @param {string} params.project The project ID for this request. - * @param {().Deployment} params.resource Request body data + * @param {().Deployment} params.requestBody 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 diff --git a/src/apis/deploymentmanager/v2beta.ts b/src/apis/deploymentmanager/v2beta.ts index 31a5ae028cc..2be64dcffdb 100644 --- a/src/apis/deploymentmanager/v2beta.ts +++ b/src/apis/deploymentmanager/v2beta.ts @@ -1323,7 +1323,7 @@ export namespace deploymentmanager_v2beta { * * @param {object} params Parameters for request * @param {string} params.project The project ID for this request. - * @param {().CompositeType} params.resource Request body data + * @param {().CompositeType} params.requestBody 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 @@ -1484,7 +1484,7 @@ export namespace deploymentmanager_v2beta { * @param {object} params Parameters for request * @param {string} params.compositeType The name of the composite type for this request. * @param {string} params.project The project ID for this request. - * @param {().CompositeType} params.resource Request body data + * @param {().CompositeType} params.requestBody 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 @@ -1560,7 +1560,7 @@ export namespace deploymentmanager_v2beta { * @param {object} params Parameters for request * @param {string} params.compositeType The name of the composite type for this request. * @param {string} params.project The project ID for this request. - * @param {().CompositeType} params.resource Request body data + * @param {().CompositeType} params.requestBody 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 @@ -1763,7 +1763,7 @@ export namespace deploymentmanager_v2beta { * @param {object} params Parameters for request * @param {string} params.deployment The name of the deployment for this request. * @param {string} params.project The project ID for this request. - * @param {().DeploymentsCancelPreviewRequest} params.resource Request body data + * @param {().DeploymentsCancelPreviewRequest} params.requestBody 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 @@ -2063,7 +2063,7 @@ export namespace deploymentmanager_v2beta { * @param {string=} params.createPolicy Sets the policy to use for creating new resources. * @param {boolean=} params.preview If set to true, creates a deployment and creates "shell" resources but does not actually instantiate these resources. This allows you to preview what your deployment looks like. After previewing a deployment, you can deploy your resources by making a request with the update() method or you can use the cancelPreview() method to cancel the preview altogether. Note that the deployment will still exist after you cancel the preview and you must separately delete this deployment if you want to remove it. * @param {string} params.project The project ID for this request. - * @param {().Deployment} params.resource Request body data + * @param {().Deployment} params.requestBody 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 @@ -2221,7 +2221,7 @@ export namespace deploymentmanager_v2beta { * @param {string} params.deployment The name of the deployment for this request. * @param {boolean=} params.preview If set to true, updates the deployment and creates and updates the "shell" resources but does not actually alter or instantiate these resources. This allows you to preview what your deployment will look like. You can use this intent to preview how an update would affect your deployment. You must provide a target.config with a configuration if this is set to true. After previewing a deployment, you can deploy your resources by making a request with the update() or you can cancelPreview() to remove the preview altogether. Note that the deployment will still exist after you cancel the preview and you must separately delete this deployment if you want to remove it. * @param {string} params.project The project ID for this request. - * @param {().Deployment} params.resource Request body data + * @param {().Deployment} params.requestBody 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 @@ -2297,7 +2297,7 @@ export namespace deploymentmanager_v2beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().GlobalSetPolicyRequest} params.resource Request body data + * @param {().GlobalSetPolicyRequest} params.requestBody 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 @@ -2371,7 +2371,7 @@ export namespace deploymentmanager_v2beta { * @param {object} params Parameters for request * @param {string} params.deployment The name of the deployment for this request. * @param {string} params.project The project ID for this request. - * @param {().DeploymentsStopRequest} params.resource Request body data + * @param {().DeploymentsStopRequest} params.requestBody 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 @@ -2446,7 +2446,7 @@ export namespace deploymentmanager_v2beta { * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name or id of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().TestPermissionsRequest} params.requestBody 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 @@ -2529,7 +2529,7 @@ export namespace deploymentmanager_v2beta { * @param {string} params.deployment The name of the deployment for this request. * @param {boolean=} params.preview If set to true, updates the deployment and creates and updates the "shell" resources but does not actually alter or instantiate these resources. This allows you to preview what your deployment will look like. You can use this intent to preview how an update would affect your deployment. You must provide a target.config with a configuration if this is set to true. After previewing a deployment, you can deploy your resources by making a request with the update() or you can cancelPreview() to remove the preview altogether. Note that the deployment will still exist after you cancel the preview and you must separately delete this deployment if you want to remove it. * @param {string} params.project The project ID for this request. - * @param {().Deployment} params.resource Request body data + * @param {().Deployment} params.requestBody 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 @@ -3713,7 +3713,7 @@ export namespace deploymentmanager_v2beta { * * @param {object} params Parameters for request * @param {string} params.project The project ID for this request. - * @param {().TypeProvider} params.resource Request body data + * @param {().TypeProvider} params.requestBody 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 @@ -3962,7 +3962,7 @@ export namespace deploymentmanager_v2beta { * @param {object} params Parameters for request * @param {string} params.project The project ID for this request. * @param {string} params.typeProvider The name of the type provider for this request. - * @param {().TypeProvider} params.resource Request body data + * @param {().TypeProvider} params.requestBody 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 @@ -4038,7 +4038,7 @@ export namespace deploymentmanager_v2beta { * @param {object} params Parameters for request * @param {string} params.project The project ID for this request. * @param {string} params.typeProvider The name of the type provider for this request. - * @param {().TypeProvider} params.resource Request body data + * @param {().TypeProvider} params.requestBody 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 diff --git a/src/apis/dfareporting/index.ts b/src/apis/dfareporting/index.ts index b11b7b26daf..8e6c581edb1 100644 --- a/src/apis/dfareporting/index.ts +++ b/src/apis/dfareporting/index.ts @@ -14,19 +14,19 @@ /*! THIS FILE IS AUTO-GENERATED */ import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; -import {dfareporting_v3_3} from './v3.3'; +import {dfareporting_v3_4} from './v3.4'; export const VERSIONS = { - 'v3.3': dfareporting_v3_3.Dfareporting, + 'v3.4': dfareporting_v3_4.Dfareporting, }; -export function dfareporting(version: 'v3.3'): dfareporting_v3_3.Dfareporting; +export function dfareporting(version: 'v3.4'): dfareporting_v3_4.Dfareporting; export function dfareporting( - options: dfareporting_v3_3.Options -): dfareporting_v3_3.Dfareporting; -export function dfareporting( + options: dfareporting_v3_4.Options +): dfareporting_v3_4.Dfareporting; +export function dfareporting( this: GoogleConfigurable, - versionOrOptions: 'v3.3' | dfareporting_v3_3.Options + versionOrOptions: 'v3.4' | dfareporting_v3_4.Options ) { return getAPI('dfareporting', versionOrOptions, VERSIONS, this); } diff --git a/src/apis/dfareporting/v3.3.ts b/src/apis/dfareporting/v3.4.ts similarity index 96% rename from src/apis/dfareporting/v3.3.ts rename to src/apis/dfareporting/v3.4.ts index 1653eae424b..6c614cffd87 100644 --- a/src/apis/dfareporting/v3.3.ts +++ b/src/apis/dfareporting/v3.4.ts @@ -34,9 +34,9 @@ import {GaxiosPromise} from 'gaxios'; // tslint:disable: jsdoc-format // tslint:disable: no-namespace -export namespace dfareporting_v3_3 { +export namespace dfareporting_v3_4 { export interface Options extends GlobalOptions { - version: 'v3.3'; + version: 'v3.4'; } interface StandardParameters { @@ -77,12 +77,12 @@ export namespace dfareporting_v3_3 { * * @example * const {google} = require('googleapis'); - * const dfareporting = google.dfareporting('v3.3'); + * const dfareporting = google.dfareporting('v3.4'); * * @namespace dfareporting * @type {Function} - * @version v3.3 - * @variation v3.3 + * @version v3.4 + * @variation v3.4 * @param {object=} options Options for Dfareporting */ export class Dfareporting { @@ -110,6 +110,7 @@ export namespace dfareporting_v3_3 { creativeFieldValues: Resource$Creativefieldvalues; creativeGroups: Resource$Creativegroups; creatives: Resource$Creatives; + customEvents: Resource$Customevents; dimensionValues: Resource$Dimensionvalues; directorySites: Resource$Directorysites; dynamicTargetingKeys: Resource$Dynamictargetingkeys; @@ -185,6 +186,7 @@ export namespace dfareporting_v3_3 { this.creativeFieldValues = new Resource$Creativefieldvalues(this.context); this.creativeGroups = new Resource$Creativegroups(this.context); this.creatives = new Resource$Creatives(this.context); + this.customEvents = new Resource$Customevents(this.context); this.dimensionValues = new Resource$Dimensionvalues(this.context); this.directorySites = new Resource$Directorysites(this.context); this.dynamicTargetingKeys = new Resource$Dynamictargetingkeys( @@ -274,7 +276,7 @@ export namespace dfareporting_v3_3 { */ countryId?: string | null; /** - * ID of currency associated with this account. This is a required field. Acceptable values are: - "1" for USD - "2" for GBP - "3" for ESP - "4" for SEK - "5" for CAD - "6" for JPY - "7" for DEM - "8" for AUD - "9" for FRF - "10" for ITL - "11" for DKK - "12" for NOK - "13" for FIM - "14" for ZAR - "15" for IEP - "16" for NLG - "17" for EUR - "18" for KRW - "19" for TWD - "20" for SGD - "21" for CNY - "22" for HKD - "23" for NZD - "24" for MYR - "25" for BRL - "26" for PTE - "27" for MXP - "28" for CLP - "29" for TRY - "30" for ARS - "31" for PEN - "32" for ILS - "33" for CHF - "34" for VEF - "35" for COP - "36" for GTQ - "37" for PLN - "39" for INR - "40" for THB - "41" for IDR - "42" for CZK - "43" for RON - "44" for HUF - "45" for RUB - "46" for AED - "47" for BGN - "48" for HRK - "49" for MXN - "50" for NGN + * ID of currency associated with this account. This is a required field. Acceptable values are: - "1" for USD - "2" for GBP - "3" for ESP - "4" for SEK - "5" for CAD - "6" for JPY - "7" for DEM - "8" for AUD - "9" for FRF - "10" for ITL - "11" for DKK - "12" for NOK - "13" for FIM - "14" for ZAR - "15" for IEP - "16" for NLG - "17" for EUR - "18" for KRW - "19" for TWD - "20" for SGD - "21" for CNY - "22" for HKD - "23" for NZD - "24" for MYR - "25" for BRL - "26" for PTE - "27" for MXP - "28" for CLP - "29" for TRY - "30" for ARS - "31" for PEN - "32" for ILS - "33" for CHF - "34" for VEF - "35" for COP - "36" for GTQ - "37" for PLN - "39" for INR - "40" for THB - "41" for IDR - "42" for CZK - "43" for RON - "44" for HUF - "45" for RUB - "46" for AED - "47" for BGN - "48" for HRK - "49" for MXN - "50" for NGN - "51" for EGP */ currencyId?: string | null; /** @@ -912,6 +914,19 @@ export namespace dfareporting_v3_3 { */ nextPageToken?: string | null; } + /** + * Annotate a click event. + */ + export interface Schema$AnnotateClickEvent { + /** + * The Google click ID. Use this field to annotate the click associated with the gclid. + */ + gclid?: string | null; + /** + * Identifies what kind of resource this is. Value: the fixed string "dfareporting#annotateClickEvent". + */ + kind?: string | null; + } /** * Audience Segment. */ @@ -1135,6 +1150,35 @@ export namespace dfareporting_v3_3 { */ nextPageToken?: string | null; } + /** + * Campaign Manager IDs related to the custom event. + */ + export interface Schema$CampaignManagerIds { + /** + * Ad ID for Campaign Manager. + */ + adId?: string | null; + /** + * Campaign ID for Campaign Manager. + */ + campaignId?: string | null; + /** + * Creative ID for Campaign Manager. + */ + creativeId?: string | null; + /** + * Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaignManagerIds". + */ + kind?: string | null; + /** + * Placement ID for Campaign Manager. + */ + placementId?: string | null; + /** + * Site ID for Campaign Manager. + */ + siteId?: string | null; + } /** * Campaign List Response */ @@ -1483,7 +1527,7 @@ export namespace dfareporting_v3_3 { */ encryptedUserId?: string | null; /** - * A list of the alphanumeric encrypted user IDs. Any user ID with exposure prior to the conversion timestamp will be used in the inserted conversion. If no such user ID is found then the conversion will be rejected with NO_COOKIE_MATCH_FOUND error. When set, encryptionInfo should also be specified. This field may only be used when calling batchinsert; it is not supported by batchupdate. This field is mutually exclusive with encryptedUserId, matchId, mobileDeviceId and gclid. This or encryptedUserId or matchId or mobileDeviceId or gclid is a required field. + * A list of the alphanumeric encrypted user IDs. Any user ID with exposure prior to the conversion timestamp will be used in the inserted conversion. If no such user ID is found then the conversion will be rejected with INVALID_ARGUMENT error. When set, encryptionInfo should also be specified. This field may only be used when calling batchinsert; it is not supported by batchupdate. This field is mutually exclusive with encryptedUserId, matchId, mobileDeviceId and gclid. This or encryptedUserId or matchId or mobileDeviceId or gclid is a required field. */ encryptedUserIdCandidates?: string[] | null; /** @@ -2571,6 +2615,107 @@ export namespace dfareporting_v3_3 { */ overlapMetrics?: Schema$Metric[]; } + /** + * Experimental feature (no support provided) A custom event represents a third party impression, a third party click, an annotation on a first party impression, or an annotation on a first party click. + */ + export interface Schema$CustomEvent { + /** + * Annotate a click event. + */ + annotateClickEvent?: Schema$AnnotateClickEvent; + /** + * Custom variables associated with the event. + */ + customVariables?: Schema$CustomVariables[]; + /** + * The type of event. If INSERT, the fields in insertEvent need to be populated. If ANNOTATE_CLICK, the fields in annotateClickEvent need to be populated. A custom event cannot have both insertEvent and annotateClickEvent populated. + */ + eventType?: string | null; + /** + * Floodlight configuration ID of the advertiser the event is linked to. This is a required field. + */ + floodlightConfigurationId?: string | null; + /** + * Insert custom event. + */ + insertEvent?: Schema$InsertEvent; + /** + * Identifies what kind of resource this is. Value: the fixed string "dfareporting#customEvent". + */ + kind?: string | null; + /** + * The ordinal of this custom event. This is a required field. + */ + ordinal?: string | null; + /** + * The timestamp of this custom event, in Unix epoch micros. This is a required field. + */ + timestampMicros?: string | null; + } + /** + * The error code and description for a custom event that failed to insert. + */ + export interface Schema$CustomEventError { + /** + * The error code. + */ + code?: string | null; + /** + * Identifies what kind of resource this is. Value: the fixed string "dfareporting#customEventError". + */ + kind?: string | null; + /** + * A description of the error. + */ + message?: string | null; + } + /** + * Insert Custom Events Request. + */ + export interface Schema$CustomEventsBatchInsertRequest { + /** + * The set of custom events to insert. + */ + customEvents?: Schema$CustomEvent[]; + /** + * Identifies what kind of resource this is. Value: the fixed string "dfareporting#customEventsBatchInsertRequest". + */ + kind?: string | null; + } + /** + * Insert Custom Events Response. + */ + export interface Schema$CustomEventsBatchInsertResponse { + /** + * Indicates that some or all custom events failed to insert. + */ + hasFailures?: boolean | null; + /** + * Identifies what kind of resource this is. Value: the fixed string "dfareporting#customEventsBatchInsertResponse". + */ + kind?: string | null; + /** + * The insert status of each custom event. Statuses are returned in the same order that conversions are inserted. + */ + status?: Schema$CustomEventStatus[]; + } + /** + * The original custom event that was inserted and whether there were any errors. + */ + export interface Schema$CustomEventStatus { + /** + * The original custom event that was inserted. + */ + customEvent?: Schema$CustomEvent; + /** + * A list of errors related to this custom event. + */ + errors?: Schema$CustomEventError[]; + /** + * Identifies what kind of resource this is. Value: the fixed string "dfareporting#customEventStatus". + */ + kind?: string | null; + } /** * A custom floodlight variable. */ @@ -2601,6 +2746,23 @@ export namespace dfareporting_v3_3 { */ kind?: string | null; } + /** + * A custom variable. + */ + export interface Schema$CustomVariables { + /** + * The index of the custom variable. + */ + index?: string | null; + /** + * Identifies what kind of resource this is. Value: the fixed string "dfareporting#customVariables". + */ + kind?: string | null; + /** + * The value of the custom variable. The length of string must not exceed 50 characters. + */ + value?: string | null; + } /** * Custom Viewability Metric */ @@ -2945,6 +3107,35 @@ export namespace dfareporting_v3_3 { */ nextPageToken?: string | null; } + /** + * DV360 IDs related to the custom event. + */ + export interface Schema$DV3Ids { + /** + * Campaign ID for DV360. + */ + dvCampaignId?: string | null; + /** + * Creative ID for DV360. + */ + dvCreativeId?: string | null; + /** + * Insertion Order ID for DV360. + */ + dvInsertionOrderId?: string | null; + /** + * Line Item ID for DV360. + */ + dvLineItemId?: string | null; + /** + * Site ID for DV360. + */ + dvSiteId?: string | null; + /** + * Identifies what kind of resource this is. Value: the fixed string "dfareporting#dV3Ids". + */ + kind?: string | null; + } /** * Contains properties of a dynamic targeting key. Dynamic targeting keys are unique, user-friendly labels, created at the advertiser level in DCM, that can be assigned to ads, creatives, and placements and used for targeting with Studio dynamic creatives. Use these labels instead of numeric Campaign Manager IDs (such as placement IDs) to save time and avoid errors in your dynamic feeds. */ @@ -3284,10 +3475,6 @@ export namespace dfareporting_v3_3 { * The type of Floodlight tag this activity will generate. This is a required field. */ floodlightTagType?: string | null; - /** - * Whether this activity is archived. - */ - hidden?: boolean | null; /** * ID of this floodlight activity. This is a read-only, auto-generated field. */ @@ -3324,6 +3511,10 @@ export namespace dfareporting_v3_3 { * Whether this floodlight activity must be SSL-compliant. */ sslRequired?: boolean | null; + /** + * The status of the activity. This can only be set to ACTIVE or ARCHIVED_AND_DISABLED. The ARCHIVED status is no longer supported and cannot be set for Floodlight activities. The DISABLED_POLICY status indicates that a Floodlight activity is violating Google policy. Contact your account manager for more information. + */ + status?: string | null; /** * Subaccount ID of this floodlight activity. This is a read-only field that can be left blank. */ @@ -3635,6 +3826,35 @@ export namespace dfareporting_v3_3 { */ regions?: Schema$Region[]; } + /** + * Insert custom event. + */ + export interface Schema$InsertEvent { + /** + * Campaign Manager dimensions associated with the event. + */ + cmDimensions?: Schema$CampaignManagerIds; + /** + * DV360 dimensions associated with the event. + */ + dv3Dimensions?: Schema$DV3Ids; + /** + * The type of insert event. + */ + insertEventType?: string | null; + /** + * Identifies what kind of resource this is. Value: the fixed string "dfareporting#insertEvent". + */ + kind?: string | null; + /** + * The match ID field. A match ID is your own first-party identifier that has been synced with Google using the match ID feature in Floodlight. This field is mutually exclusive with mobileDeviceId, and at least one of the two fields is required. + */ + matchId?: string | null; + /** + * The mobile device ID. This field is mutually exclusive with matchId, and at least one of the two fields is required. + */ + mobileDeviceId?: string | null; + } /** * Represents a buy from the Planning inventory store. */ @@ -4980,10 +5200,6 @@ export namespace dfareporting_v3_3 { * Placement cap cost option. */ capCostOption?: string | null; - /** - * Whether cap costs are ignored by ad serving. - */ - disregardOverdelivery?: boolean | null; /** * Placement end date. This date must be later than, or the same day as, the placement start date, but not later than the campaign end date. If, for example, you set 6/25/2015 as both the start and end dates, the effective placement date is just that day only, 6/25/2015. The hours, minutes, and seconds of the end date should not be set, as doing so will result in an error. This field is required on insertion. */ @@ -5536,7 +5752,7 @@ export namespace dfareporting_v3_3 { */ lookbackConfiguration?: Schema$LookbackConfiguration; /** - * Report generation time zone ID of this account. This is a required field that can only be changed by a superuser. Acceptable values are: - "1" for "America/New_York" - "2" for "Europe/London" - "3" for "Europe/Paris" - "4" for "Africa/Johannesburg" - "5" for "Asia/Jerusalem" - "6" for "Asia/Shanghai" - "7" for "Asia/Hong_Kong" - "8" for "Asia/Tokyo" - "9" for "Australia/Sydney" - "10" for "Asia/Dubai" - "11" for "America/Los_Angeles" - "12" for "Pacific/Auckland" - "13" for "America/Sao_Paulo" + * Report generation time zone ID of this account. This is a required field that can only be changed by a superuser. Acceptable values are: - "1" for "America/New_York" - "2" for "Europe/London" - "3" for "Europe/Paris" - "4" for "Africa/Johannesburg" - "5" for "Asia/Jerusalem" - "6" for "Asia/Shanghai" - "7" for "Asia/Hong_Kong" - "8" for "Asia/Tokyo" - "9" for "Australia/Sydney" - "10" for "Asia/Dubai" - "11" for "America/Los_Angeles" - "12" for "Pacific/Auckland" - "13" for "America/Sao_Paulo" - "16" for "America/Asuncion" - "17" for "America/Chicago" - "18" for "America/Denver" - "19" for "America/St_Johns" - "20" for "Asia/Dhaka" - "21" for "Asia/Jakarta" - "22" for "Asia/Kabul" - "23" for "Asia/Karachi" - "24" for "Asia/Calcutta" - "25" for "Asia/Pyongyang" - "26" for "Asia/Rangoon" - "27" for "Atlantic/Cape_Verde" - "28" for "Atlantic/South_Georgia" - "29" for "Australia/Adelaide" - "30" for "Australia/Lord_Howe" - "31" for "Europe/Moscow" - "32" for "Pacific/Kiritimati" - "35" for "Pacific/Norfolk" - "36" for "Pacific/Tongatapu" */ reportGenerationTimeZoneId?: string | null; } @@ -6544,7 +6760,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}' + '/dfareporting/v3.4/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -6645,7 +6861,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountPermissionGroups/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/accountPermissionGroups/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -6725,7 +6941,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountPermissionGroups' + '/dfareporting/v3.4/userprofiles/{profileId}/accountPermissionGroups' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -6841,7 +7057,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountPermissions/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/accountPermissions/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -6919,7 +7135,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountPermissions' + '/dfareporting/v3.4/userprofiles/{profileId}/accountPermissions' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -7032,7 +7248,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accounts/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/accounts/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -7113,7 +7329,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/accounts' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/accounts' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -7140,7 +7356,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.id Account ID. * @param {string} params.profileId User profile ID associated with this request. - * @param {().Account} params.resource Request body data + * @param {().Account} params.requestBody 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 @@ -7185,7 +7401,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/accounts' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/accounts' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -7211,7 +7427,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().Account} params.resource Request body data + * @param {().Account} params.requestBody 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 @@ -7256,7 +7472,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/accounts' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/accounts' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -7429,7 +7645,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -7455,7 +7671,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().AccountUserProfile} params.resource Request body data + * @param {().AccountUserProfile} params.requestBody 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 @@ -7504,7 +7720,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles' + '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -7591,7 +7807,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles' + '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -7623,7 +7839,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.id User profile ID. * @param {string} params.profileId User profile ID associated with this request. - * @param {().AccountUserProfile} params.resource Request body data + * @param {().AccountUserProfile} params.requestBody 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 @@ -7672,7 +7888,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles' + '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -7698,7 +7914,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().AccountUserProfile} params.resource Request body data + * @param {().AccountUserProfile} params.requestBody 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 @@ -7747,7 +7963,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles' + '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -7945,7 +8161,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads/{id}' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -7971,7 +8187,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().Ad} params.resource Request body data + * @param {().Ad} params.requestBody 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 @@ -8016,7 +8232,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -8111,7 +8327,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -8138,7 +8354,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.id Ad ID. * @param {string} params.profileId User profile ID associated with this request. - * @param {().Ad} params.resource Request body data + * @param {().Ad} params.requestBody 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 @@ -8183,7 +8399,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -8209,7 +8425,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().Ad} params.resource Request body data + * @param {().Ad} params.requestBody 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 @@ -8254,7 +8470,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -8505,7 +8721,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, @@ -8580,7 +8796,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -8606,7 +8822,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().AdvertiserGroup} params.resource Request body data + * @param {().AdvertiserGroup} params.requestBody 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 @@ -8655,7 +8871,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups' + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -8739,7 +8955,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups' + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -8771,7 +8987,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.id Advertiser group ID. * @param {string} params.profileId User profile ID associated with this request. - * @param {().AdvertiserGroup} params.resource Request body data + * @param {().AdvertiserGroup} params.requestBody 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 @@ -8820,7 +9036,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups' + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -8846,7 +9062,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().AdvertiserGroup} params.resource Request body data + * @param {().AdvertiserGroup} params.requestBody 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 @@ -8895,7 +9111,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups' + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -9101,7 +9317,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -9127,7 +9343,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().LandingPage} params.resource Request body data + * @param {().LandingPage} params.requestBody 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 @@ -9176,7 +9392,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages' + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -9264,7 +9480,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages' + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -9296,7 +9512,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.id Landing page ID. * @param {string} params.profileId User profile ID associated with this request. - * @param {().LandingPage} params.resource Request body data + * @param {().LandingPage} params.requestBody 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 @@ -9345,7 +9561,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages' + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -9371,7 +9587,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().LandingPage} params.resource Request body data + * @param {().LandingPage} params.requestBody 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 @@ -9420,7 +9636,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages' + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -9625,7 +9841,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertisers/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/advertisers/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -9651,7 +9867,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().Advertiser} params.resource Request body data + * @param {().Advertiser} params.requestBody 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 @@ -9700,7 +9916,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertisers' + '/dfareporting/v3.4/userprofiles/{profileId}/advertisers' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -9787,7 +10003,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertisers' + '/dfareporting/v3.4/userprofiles/{profileId}/advertisers' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -9814,7 +10030,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.id Advertiser ID. * @param {string} params.profileId User profile ID associated with this request. - * @param {().Advertiser} params.resource Request body data + * @param {().Advertiser} params.requestBody 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 @@ -9863,7 +10079,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertisers' + '/dfareporting/v3.4/userprofiles/{profileId}/advertisers' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -9889,7 +10105,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().Advertiser} params.resource Request body data + * @param {().Advertiser} params.requestBody 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 @@ -9938,7 +10154,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/advertisers' + '/dfareporting/v3.4/userprofiles/{profileId}/advertisers' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -10149,7 +10365,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/browsers' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/browsers' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -10195,7 +10411,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.campaignId Campaign ID in this association. * @param {string} params.profileId User profile ID associated with this request. - * @param {().CampaignCreativeAssociation} params.resource Request body data + * @param {().CampaignCreativeAssociation} params.requestBody 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 @@ -10248,7 +10464,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations' + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -10341,7 +10557,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations' + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -10475,7 +10691,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/campaigns/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -10501,7 +10717,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().Campaign} params.resource Request body data + * @param {().Campaign} params.requestBody 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 @@ -10546,7 +10762,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -10633,7 +10849,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -10660,7 +10876,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.id Campaign ID. * @param {string} params.profileId User profile ID associated with this request. - * @param {().Campaign} params.resource Request body data + * @param {().Campaign} params.requestBody 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 @@ -10705,7 +10921,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -10731,7 +10947,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().Campaign} params.resource Request body data + * @param {().Campaign} params.requestBody 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 @@ -10776,7 +10992,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -10988,7 +11204,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/changeLogs/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/changeLogs/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -11017,7 +11233,7 @@ export namespace dfareporting_v3_3 { * @param {string=} params.ids Select only change logs with these IDs. * @param {string=} params.maxChangeTime Select only change logs whose change time is before the specified maxChangeTime.The time should be formatted as an RFC3339 date/time string. For example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In other words, the year, month, day, the letter T, the hour (24-hour clock system), minute, second, and then the time zone offset. * @param {integer=} params.maxResults Maximum number of results to return. - * @param {string=} params.minChangeTime Select only change logs whose change time is before the specified minChangeTime.The time should be formatted as an RFC3339 date/time string. For example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In other words, the year, month, day, the letter T, the hour (24-hour clock system), minute, second, and then the time zone offset. + * @param {string=} params.minChangeTime Select only change logs whose change time is after the specified minChangeTime.The time should be formatted as an RFC3339 date/time string. For example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In other words, the year, month, day, the letter T, the hour (24-hour clock system), minute, second, and then the time zone offset. * @param {string=} params.objectIds Select only change logs with these object IDs. * @param {string=} params.objectType Select only change logs with the specified object type. * @param {string=} params.pageToken Value of the nextPageToken from the previous result page. @@ -11072,7 +11288,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/changeLogs' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/changeLogs' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -11129,7 +11345,7 @@ export namespace dfareporting_v3_3 { */ maxResults?: number; /** - * Select only change logs whose change time is before the specified minChangeTime.The time should be formatted as an RFC3339 date/time string. For example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In other words, the year, month, day, the letter T, the hour (24-hour clock system), minute, second, and then the time zone offset. + * Select only change logs whose change time is after the specified minChangeTime.The time should be formatted as an RFC3339 date/time string. For example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In other words, the year, month, day, the letter T, the hour (24-hour clock system), minute, second, and then the time zone offset. */ minChangeTime?: string; /** @@ -11222,7 +11438,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/cities' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/cities' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -11332,7 +11548,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/connectionTypes/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/connectionTypes/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -11410,7 +11626,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/connectionTypes' + '/dfareporting/v3.4/userprofiles/{profileId}/connectionTypes' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -11522,7 +11738,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, @@ -11597,7 +11813,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -11623,7 +11839,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().ContentCategory} params.resource Request body data + * @param {().ContentCategory} params.requestBody 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 @@ -11672,7 +11888,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories' + '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -11756,7 +11972,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories' + '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -11788,7 +12004,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.id Content category ID. * @param {string} params.profileId User profile ID associated with this request. - * @param {().ContentCategory} params.resource Request body data + * @param {().ContentCategory} params.requestBody 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 @@ -11837,7 +12053,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories' + '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -11863,7 +12079,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().ContentCategory} params.resource Request body data + * @param {().ContentCategory} params.requestBody 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 @@ -11912,7 +12128,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories' + '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -12069,7 +12285,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().ConversionsBatchInsertRequest} params.resource Request body data + * @param {().ConversionsBatchInsertRequest} params.requestBody 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 @@ -12122,7 +12338,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/conversions/batchinsert' + '/dfareporting/v3.4/userprofiles/{profileId}/conversions/batchinsert' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -12153,7 +12369,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().ConversionsBatchUpdateRequest} params.resource Request body data + * @param {().ConversionsBatchUpdateRequest} params.requestBody 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 @@ -12206,7 +12422,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/conversions/batchupdate' + '/dfareporting/v3.4/userprofiles/{profileId}/conversions/batchupdate' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -12325,7 +12541,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/countries/{dartId}' + '/dfareporting/v3.4/userprofiles/{profileId}/countries/{dartId}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -12399,7 +12615,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/countries' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/countries' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -12460,7 +12676,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.advertiserId Advertiser ID of this creative. This is a required field. * @param {string} params.profileId User profile ID associated with this request. - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents @@ -12514,7 +12730,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets' + '/dfareporting/v3.4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -12523,7 +12739,7 @@ export namespace dfareporting_v3_3 { params, mediaUrl: ( rootUrl + - '/upload/dfareporting/v3.3/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets' + '/upload/dfareporting/v3.4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets' ).replace(/([^:]\/)\/+/g, '$1'), requiredParams: ['profileId', 'advertiserId'], pathParams: ['advertiserId', 'profileId'], @@ -12635,7 +12851,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, @@ -12710,7 +12926,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -12736,7 +12952,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().CreativeField} params.resource Request body data + * @param {().CreativeField} params.requestBody 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 @@ -12785,7 +13001,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields' + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -12870,7 +13086,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields' + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -12900,7 +13116,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.id Creative Field ID * @param {string} params.profileId User profile ID associated with this request. - * @param {().CreativeField} params.resource Request body data + * @param {().CreativeField} params.requestBody 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 @@ -12949,7 +13165,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields' + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -12975,7 +13191,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().CreativeField} params.resource Request body data + * @param {().CreativeField} params.requestBody 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 @@ -13024,7 +13240,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields' + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -13233,7 +13449,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, @@ -13309,7 +13525,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -13336,7 +13552,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.creativeFieldId Creative field ID for this creative field value. * @param {string} params.profileId User profile ID associated with this request. - * @param {().CreativeFieldValue} params.resource Request body data + * @param {().CreativeFieldValue} params.requestBody 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 @@ -13385,7 +13601,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues' + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -13470,7 +13686,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues' + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -13503,7 +13719,7 @@ export namespace dfareporting_v3_3 { * @param {string} params.creativeFieldId Creative field ID for this creative field value. * @param {string} params.id Creative Field Value ID * @param {string} params.profileId User profile ID associated with this request. - * @param {().CreativeFieldValue} params.resource Request body data + * @param {().CreativeFieldValue} params.requestBody 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 @@ -13552,7 +13768,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues' + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -13579,7 +13795,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.creativeFieldId Creative field ID for this creative field value. * @param {string} params.profileId User profile ID associated with this request. - * @param {().CreativeFieldValue} params.resource Request body data + * @param {().CreativeFieldValue} params.requestBody 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 @@ -13628,7 +13844,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues' + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -13858,7 +14074,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -13884,7 +14100,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().CreativeGroup} params.resource Request body data + * @param {().CreativeGroup} params.requestBody 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 @@ -13933,7 +14149,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups' + '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -14019,7 +14235,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups' + '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -14049,7 +14265,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.id Creative group ID. * @param {string} params.profileId User profile ID associated with this request. - * @param {().CreativeGroup} params.resource Request body data + * @param {().CreativeGroup} params.requestBody 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 @@ -14098,7 +14314,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups' + '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -14124,7 +14340,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().CreativeGroup} params.resource Request body data + * @param {().CreativeGroup} params.requestBody 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 @@ -14173,7 +14389,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups' + '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -14368,7 +14584,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/creatives/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/creatives/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -14394,7 +14610,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().Creative} params.resource Request body data + * @param {().Creative} params.requestBody 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 @@ -14439,7 +14655,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/creatives' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -14529,7 +14745,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/creatives' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -14556,7 +14772,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.id Creative ID. * @param {string} params.profileId User profile ID associated with this request. - * @param {().Creative} params.resource Request body data + * @param {().Creative} params.requestBody 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 @@ -14601,7 +14817,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/creatives' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -14627,7 +14843,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().Creative} params.resource Request body data + * @param {().Creative} params.requestBody 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 @@ -14672,7 +14888,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/creatives' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -14834,6 +15050,115 @@ export namespace dfareporting_v3_3 { requestBody?: Schema$Creative; } + export class Resource$Customevents { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * dfareporting.customEvents.batchinsert + * @desc Inserts custom events. + * @alias dfareporting.customEvents.batchinsert + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.profileId User profile ID associated with this request. + * @param {().CustomEventsBatchInsertRequest} params.requestBody 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 + */ + batchinsert( + params?: Params$Resource$Customevents$Batchinsert, + options?: MethodOptions + ): GaxiosPromise; + batchinsert( + params: Params$Resource$Customevents$Batchinsert, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + batchinsert( + params: Params$Resource$Customevents$Batchinsert, + callback: BodyResponseCallback + ): void; + batchinsert( + callback: BodyResponseCallback + ): void; + batchinsert( + paramsOrCallback?: + | Params$Resource$Customevents$Batchinsert + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Customevents$Batchinsert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customevents$Batchinsert; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/customEvents/batchinsert' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, + options + ), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Customevents$Batchinsert + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$CustomEventsBatchInsertRequest; + } + export class Resource$Dimensionvalues { context: APIRequestContext; constructor(context: APIRequestContext) { @@ -14850,7 +15175,7 @@ export namespace dfareporting_v3_3 { * @param {integer=} params.maxResults Maximum number of results to return. * @param {string=} params.pageToken The value of the nextToken from the previous result page. * @param {string} params.profileId The DFA user profile ID. - * @param {().DimensionValueRequest} params.resource Request body data + * @param {().DimensionValueRequest} params.requestBody 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 @@ -14899,7 +15224,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/dimensionvalues/query' + '/dfareporting/v3.4/userprofiles/{profileId}/dimensionvalues/query' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -15007,7 +15332,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/directorySites/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/directorySites/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -15033,7 +15358,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().DirectorySite} params.resource Request body data + * @param {().DirectorySite} params.requestBody 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 @@ -15082,7 +15407,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/directorySites' + '/dfareporting/v3.4/userprofiles/{profileId}/directorySites' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -15171,7 +15496,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/directorySites' + '/dfareporting/v3.4/userprofiles/{profileId}/directorySites' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -15346,7 +15671,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}' + '/dfareporting/v3.4/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, @@ -15372,7 +15697,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().DynamicTargetingKey} params.resource Request body data + * @param {().DynamicTargetingKey} params.requestBody 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 @@ -15421,7 +15746,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/dynamicTargetingKeys' + '/dfareporting/v3.4/userprofiles/{profileId}/dynamicTargetingKeys' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -15503,7 +15828,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/dynamicTargetingKeys' + '/dfareporting/v3.4/userprofiles/{profileId}/dynamicTargetingKeys' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -15657,7 +15982,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/eventTags/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, @@ -15729,7 +16054,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/eventTags/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -15755,7 +16080,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().EventTag} params.resource Request body data + * @param {().EventTag} params.requestBody 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 @@ -15800,7 +16125,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -15884,7 +16209,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -15911,7 +16236,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.id Event tag ID. * @param {string} params.profileId User profile ID associated with this request. - * @param {().EventTag} params.resource Request body data + * @param {().EventTag} params.requestBody 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 @@ -15956,7 +16281,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -15982,7 +16307,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().EventTag} params.resource Request body data + * @param {().EventTag} params.requestBody 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 @@ -16027,7 +16352,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -16239,7 +16564,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/reports/{reportId}/files/{fileId}' + rootUrl + '/dfareporting/v3.4/reports/{reportId}/files/{fileId}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -16314,7 +16639,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/files' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/files' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -16441,7 +16766,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, @@ -16528,7 +16853,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities/generatetag' + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities/generatetag' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -16608,7 +16933,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -16634,7 +16959,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().FloodlightActivity} params.resource Request body data + * @param {().FloodlightActivity} params.requestBody 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 @@ -16683,7 +17008,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities' + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -16774,7 +17099,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities' + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -16806,7 +17131,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.id Floodlight activity ID. * @param {string} params.profileId User profile ID associated with this request. - * @param {().FloodlightActivity} params.resource Request body data + * @param {().FloodlightActivity} params.requestBody 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 @@ -16855,7 +17180,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities' + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -16881,7 +17206,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().FloodlightActivity} params.resource Request body data + * @param {().FloodlightActivity} params.requestBody 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 @@ -16930,7 +17255,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities' + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -17182,7 +17507,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -17208,7 +17533,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().FloodlightActivityGroup} params.resource Request body data + * @param {().FloodlightActivityGroup} params.requestBody 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 @@ -17261,7 +17586,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups' + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -17356,7 +17681,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups' + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -17388,7 +17713,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.id Floodlight activity Group ID. * @param {string} params.profileId User profile ID associated with this request. - * @param {().FloodlightActivityGroup} params.resource Request body data + * @param {().FloodlightActivityGroup} params.requestBody 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 @@ -17439,7 +17764,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups' + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -17465,7 +17790,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().FloodlightActivityGroup} params.resource Request body data + * @param {().FloodlightActivityGroup} params.requestBody 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 @@ -17518,7 +17843,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups' + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -17722,7 +18047,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -17809,7 +18134,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations' + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -17841,7 +18166,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.id Floodlight configuration ID. * @param {string} params.profileId User profile ID associated with this request. - * @param {().FloodlightConfiguration} params.resource Request body data + * @param {().FloodlightConfiguration} params.requestBody 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 @@ -17892,7 +18217,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations' + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -17918,7 +18243,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().FloodlightConfiguration} params.resource Request body data + * @param {().FloodlightConfiguration} params.requestBody 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 @@ -17971,7 +18296,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations' + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -18125,7 +18450,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -18213,7 +18538,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/inventoryItems' + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/inventoryItems' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -18370,7 +18695,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/languages' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/languages' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -18461,7 +18786,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/metros' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/metros' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -18554,7 +18879,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/mobileApps/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/mobileApps/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -18633,7 +18958,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/mobileApps' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/mobileApps' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -18762,7 +19087,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/mobileCarriers/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/mobileCarriers/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -18840,7 +19165,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/mobileCarriers' + '/dfareporting/v3.4/userprofiles/{profileId}/mobileCarriers' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -18954,7 +19279,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystems/{dartId}' + '/dfareporting/v3.4/userprofiles/{profileId}/operatingSystems/{dartId}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -19032,7 +19357,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystems' + '/dfareporting/v3.4/userprofiles/{profileId}/operatingSystems' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -19150,7 +19475,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystemVersions/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/operatingSystemVersions/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -19230,7 +19555,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystemVersions' + '/dfareporting/v3.4/userprofiles/{profileId}/operatingSystemVersions' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -19347,7 +19672,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -19435,7 +19760,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orderDocuments' + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orderDocuments' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -19591,7 +19916,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orders/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orders/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -19672,7 +19997,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orders' + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orders' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -19817,7 +20142,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -19843,7 +20168,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().PlacementGroup} params.resource Request body data + * @param {().PlacementGroup} params.requestBody 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 @@ -19892,7 +20217,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups' + '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -19989,7 +20314,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups' + '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -20019,7 +20344,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.id Placement group ID. * @param {string} params.profileId User profile ID associated with this request. - * @param {().PlacementGroup} params.resource Request body data + * @param {().PlacementGroup} params.requestBody 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 @@ -20068,7 +20393,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups' + '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -20094,7 +20419,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().PlacementGroup} params.resource Request body data + * @param {().PlacementGroup} params.requestBody 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 @@ -20143,7 +20468,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups' + '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -20391,7 +20716,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placements/generatetags' + '/dfareporting/v3.4/userprofiles/{profileId}/placements/generatetags' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -20470,7 +20795,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placements/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/placements/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -20496,7 +20821,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().Placement} params.resource Request body data + * @param {().Placement} params.requestBody 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 @@ -20544,7 +20869,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/placements' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -20640,7 +20965,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/placements' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -20667,7 +20992,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.id Placement ID. * @param {string} params.profileId User profile ID associated with this request. - * @param {().Placement} params.resource Request body data + * @param {().Placement} params.requestBody 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 @@ -20714,7 +21039,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/placements' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -20740,7 +21065,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().Placement} params.resource Request body data + * @param {().Placement} params.requestBody 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 @@ -20788,7 +21113,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/placements' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -21061,7 +21386,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, @@ -21136,7 +21461,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -21162,7 +21487,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().PlacementStrategy} params.resource Request body data + * @param {().PlacementStrategy} params.requestBody 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 @@ -21211,7 +21536,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies' + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -21295,7 +21620,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies' + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -21327,7 +21652,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.id Placement strategy ID. * @param {string} params.profileId User profile ID associated with this request. - * @param {().PlacementStrategy} params.resource Request body data + * @param {().PlacementStrategy} params.requestBody 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 @@ -21376,7 +21701,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies' + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -21402,7 +21727,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().PlacementStrategy} params.resource Request body data + * @param {().PlacementStrategy} params.requestBody 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 @@ -21451,7 +21776,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies' + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -21657,7 +21982,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/platformTypes/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/platformTypes/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -21735,7 +22060,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/platformTypes' + '/dfareporting/v3.4/userprofiles/{profileId}/platformTypes' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -21848,7 +22173,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/postalCodes/{code}' + '/dfareporting/v3.4/userprofiles/{profileId}/postalCodes/{code}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -21923,7 +22248,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/postalCodes' + '/dfareporting/v3.4/userprofiles/{profileId}/postalCodes' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -22029,7 +22354,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/projects/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -22110,7 +22435,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/projects' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/projects' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -22244,7 +22569,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/regions' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/regions' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -22338,7 +22663,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -22364,7 +22689,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().RemarketingList} params.resource Request body data + * @param {().RemarketingList} params.requestBody 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 @@ -22413,7 +22738,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists' + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -22499,7 +22824,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists' + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -22531,7 +22856,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.id Remarketing list ID. * @param {string} params.profileId User profile ID associated with this request. - * @param {().RemarketingList} params.resource Request body data + * @param {().RemarketingList} params.requestBody 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 @@ -22580,7 +22905,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists' + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -22606,7 +22931,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().RemarketingList} params.resource Request body data + * @param {().RemarketingList} params.requestBody 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 @@ -22655,7 +22980,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists' + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -22855,7 +23180,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingListShares/{remarketingListId}' + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingListShares/{remarketingListId}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -22882,7 +23207,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. * @param {string} params.remarketingListId Remarketing list ID. - * @param {().RemarketingListShare} params.resource Request body data + * @param {().RemarketingListShare} params.requestBody 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 @@ -22933,7 +23258,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingListShares' + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingListShares' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -22959,7 +23284,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().RemarketingListShare} params.resource Request body data + * @param {().RemarketingListShare} params.requestBody 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 @@ -23010,7 +23335,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/remarketingListShares' + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingListShares' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -23150,7 +23475,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}' + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, @@ -23222,7 +23547,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}' + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -23248,7 +23573,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId The DFA user profile ID. - * @param {().Report} params.resource Request body data + * @param {().Report} params.requestBody 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 @@ -23293,7 +23618,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/reports' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/reports' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -23370,7 +23695,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/reports' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/reports' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -23388,79 +23713,6 @@ export namespace dfareporting_v3_3 { } } - /** - * dfareporting.reports.patch - * @desc Updates a report. This method supports patch semantics. - * @alias dfareporting.reports.patch - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.profileId The DFA user profile ID. - * @param {string} params.reportId The ID of the report. - * @param {().Report} 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 - */ - patch( - params?: Params$Resource$Reports$Patch, - options?: MethodOptions - ): GaxiosPromise; - patch( - params: Params$Resource$Reports$Patch, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - patch( - params: Params$Resource$Reports$Patch, - callback: BodyResponseCallback - ): void; - patch(callback: BodyResponseCallback): void; - patch( - paramsOrCallback?: - | Params$Resource$Reports$Patch - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Reports$Patch; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Reports$Patch; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, - options - ), - params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - /** * dfareporting.reports.run * @desc Runs a report. @@ -23516,7 +23768,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}/run' + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}/run' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -23543,7 +23795,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.profileId The DFA user profile ID. * @param {string} params.reportId The ID of the report. - * @param {().Report} params.resource Request body data + * @param {().Report} params.requestBody 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 @@ -23589,7 +23841,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}' + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -23685,26 +23937,6 @@ export namespace dfareporting_v3_3 { */ sortOrder?: string; } - export interface Params$Resource$Reports$Patch extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The DFA user profile ID. - */ - profileId?: string; - /** - * The ID of the report. - */ - reportId?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Report; - } export interface Params$Resource$Reports$Run extends StandardParameters { /** * Auth client or API Key for the request @@ -23759,7 +23991,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId The DFA user profile ID. - * @param {().Report} params.resource Request body data + * @param {().Report} params.requestBody 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 @@ -23808,7 +24040,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/compatiblefields/query' + '/dfareporting/v3.4/userprofiles/{profileId}/reports/compatiblefields/query' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -23907,7 +24139,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}/files/{fileId}' + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}/files/{fileId}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -23984,7 +24216,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}/files' + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}/files' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -24115,7 +24347,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites/{id}' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -24141,7 +24373,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().Site} params.resource Request body data + * @param {().Site} params.requestBody 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 @@ -24186,7 +24418,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -24273,7 +24505,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -24300,7 +24532,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.id Site ID. * @param {string} params.profileId User profile ID associated with this request. - * @param {().Site} params.resource Request body data + * @param {().Site} params.requestBody 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 @@ -24345,7 +24577,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -24371,7 +24603,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().Site} params.resource Request body data + * @param {().Site} params.requestBody 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 @@ -24416,7 +24648,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -24633,7 +24865,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sizes/{id}' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sizes/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -24659,7 +24891,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().Size} params.resource Request body data + * @param {().Size} params.requestBody 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 @@ -24704,7 +24936,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sizes' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sizes' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -24780,7 +25012,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sizes' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sizes' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -24920,7 +25152,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -24946,7 +25178,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().Subaccount} params.resource Request body data + * @param {().Subaccount} params.requestBody 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 @@ -24995,7 +25227,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts' + '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -25076,7 +25308,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts' + '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -25103,7 +25335,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.id Subaccount ID. * @param {string} params.profileId User profile ID associated with this request. - * @param {().Subaccount} params.resource Request body data + * @param {().Subaccount} params.requestBody 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 @@ -25152,7 +25384,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts' + '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -25178,7 +25410,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().Subaccount} params.resource Request body data + * @param {().Subaccount} params.requestBody 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 @@ -25227,7 +25459,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts' + '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -25417,7 +25649,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/targetableRemarketingLists/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/targetableRemarketingLists/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -25513,7 +25745,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/targetableRemarketingLists' + '/dfareporting/v3.4/userprofiles/{profileId}/targetableRemarketingLists' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -25657,7 +25889,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -25683,7 +25915,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().TargetingTemplate} params.resource Request body data + * @param {().TargetingTemplate} params.requestBody 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 @@ -25732,7 +25964,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates' + '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -25817,7 +26049,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates' + '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -25849,7 +26081,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.id Targeting template ID. * @param {string} params.profileId User profile ID associated with this request. - * @param {().TargetingTemplate} params.resource Request body data + * @param {().TargetingTemplate} params.requestBody 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 @@ -25898,7 +26130,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates' + '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -25924,7 +26156,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().TargetingTemplate} params.resource Request body data + * @param {().TargetingTemplate} params.requestBody 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 @@ -25973,7 +26205,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates' + '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -26164,7 +26396,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -26235,7 +26467,7 @@ export namespace dfareporting_v3_3 { const parameters = { options: Object.assign( { - url: (rootUrl + '/dfareporting/v3.3/userprofiles').replace( + url: (rootUrl + '/dfareporting/v3.4/userprofiles').replace( /([^:]\/)\/+/g, '$1' ), @@ -26340,7 +26572,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissionGroups/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissionGroups/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -26426,7 +26658,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissionGroups' + '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissionGroups' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -26542,7 +26774,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissions/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissions/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -26621,7 +26853,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissions' + '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissions' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -26738,7 +26970,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/userRoles/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE', }, @@ -26810,7 +27042,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/userRoles/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -26836,7 +27068,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().UserRole} params.resource Request body data + * @param {().UserRole} params.requestBody 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 @@ -26881,7 +27113,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -26963,7 +27195,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -26990,7 +27222,7 @@ export namespace dfareporting_v3_3 { * @param {object} params Parameters for request * @param {string} params.id User role ID. * @param {string} params.profileId User profile ID associated with this request. - * @param {().UserRole} params.resource Request body data + * @param {().UserRole} params.requestBody 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 @@ -27035,7 +27267,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PATCH', }, @@ -27061,7 +27293,7 @@ export namespace dfareporting_v3_3 { * * @param {object} params Parameters for request * @param {string} params.profileId User profile ID associated with this request. - * @param {().UserRole} params.resource Request body data + * @param {().UserRole} params.requestBody 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 @@ -27106,7 +27338,7 @@ export namespace dfareporting_v3_3 { options: Object.assign( { url: ( - rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles' + rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles' ).replace(/([^:]\/)\/+/g, '$1'), method: 'PUT', }, @@ -27313,7 +27545,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/videoFormats/{id}' + '/dfareporting/v3.4/userprofiles/{profileId}/videoFormats/{id}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -27389,7 +27621,7 @@ export namespace dfareporting_v3_3 { { url: ( rootUrl + - '/dfareporting/v3.3/userprofiles/{profileId}/videoFormats' + '/dfareporting/v3.4/userprofiles/{profileId}/videoFormats' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, diff --git a/src/apis/dlp/v2.ts b/src/apis/dlp/v2.ts index 33c7977dd14..725267c9328 100644 --- a/src/apis/dlp/v2.ts +++ b/src/apis/dlp/v2.ts @@ -137,6 +137,10 @@ export namespace dlp_v2 { * Publish summary to Cloud Security Command Center (Alpha). */ publishSummaryToCscc?: Schema$GooglePrivacyDlpV2PublishSummaryToCscc; + /** + * Enable Stackdriver metric dlp.googleapis.com/finding_count. + */ + publishToStackdriver?: Schema$GooglePrivacyDlpV2PublishToStackdriver; /** * Publish a notification to a pubsub topic. */ @@ -542,6 +546,10 @@ export namespace dlp_v2 { * The DeidentifyTemplate to create. */ deidentifyTemplate?: Schema$GooglePrivacyDlpV2DeidentifyTemplate; + /** + * The geographic location to store the deidentification template. Reserved for future extensions. + */ + locationId?: string | null; /** * The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: `[a-zA-Z\\d-_]+`. The maximum length is 100 characters. Can be empty to allow the system to generate one. */ @@ -556,6 +564,10 @@ export namespace dlp_v2 { * The job id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: `[a-zA-Z\\d-_]+`. The maximum length is 100 characters. Can be empty to allow the system to generate one. */ jobId?: string | null; + /** + * The geographic location to store and process the job. Reserved for future extensions. + */ + locationId?: string | null; riskJob?: Schema$GooglePrivacyDlpV2RiskAnalysisJobConfig; } /** @@ -566,6 +578,10 @@ export namespace dlp_v2 { * The InspectTemplate to create. */ inspectTemplate?: Schema$GooglePrivacyDlpV2InspectTemplate; + /** + * The geographic location to store the inspection template. Reserved for future extensions. + */ + locationId?: string | null; /** * The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: `[a-zA-Z\\d-_]+`. The maximum length is 100 characters. Can be empty to allow the system to generate one. */ @@ -579,6 +595,10 @@ export namespace dlp_v2 { * The JobTrigger to create. */ jobTrigger?: Schema$GooglePrivacyDlpV2JobTrigger; + /** + * The geographic location to store the job trigger. Reserved for future extensions. + */ + locationId?: string | null; /** * The trigger id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: `[a-zA-Z\\d-_]+`. The maximum length is 100 characters. Can be empty to allow the system to generate one. */ @@ -592,6 +612,10 @@ export namespace dlp_v2 { * Configuration of the storedInfoType to create. */ config?: Schema$GooglePrivacyDlpV2StoredInfoTypeConfig; + /** + * The geographic location to store the stored infoType. Reserved for future extensions. + */ + locationId?: string | null; /** * The storedInfoType ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: `[a-zA-Z\\d-_]+`. The maximum length is 100 characters. Can be empty to allow the system to generate one. */ @@ -645,11 +669,11 @@ export namespace dlp_v2 { */ cryptoKey?: Schema$GooglePrivacyDlpV2CryptoKey; /** - * This is supported by mapping these to the alphanumeric characters that the FFX mode natively supports. This happens before/after encryption/decryption. Each character listed must appear only once. Number of characters must be in the range [2, 62]. This must be encoded as ASCII. The order of characters does not matter. + * This is supported by mapping these to the alphanumeric characters that the FFX mode natively supports. This happens before/after encryption/decryption. Each character listed must appear only once. Number of characters must be in the range [2, 95]. This must be encoded as ASCII. The order of characters does not matter. */ customAlphabet?: string | null; /** - * The native way to select the alphabet. Must be in the range [2, 62]. + * The native way to select the alphabet. Must be in the range [2, 95]. */ radix?: number | null; /** @@ -721,11 +745,11 @@ export namespace dlp_v2 { */ export interface Schema$GooglePrivacyDlpV2DateShiftConfig { /** - * Points to the field that contains the context, for example, an entity id. If set, must also set method. If set, shift will be consistent for the given context. + * Points to the field that contains the context, for example, an entity id. If set, must also set cryptoKey. If set, shift will be consistent for the given context. */ context?: Schema$GooglePrivacyDlpV2FieldId; /** - * Causes the shift to be computed based on this key and the context. This results in the same shift for the same context and crypto_key. + * Causes the shift to be computed based on this key and the context. This results in the same shift for the same context and crypto_key. If set, must also set context. Can only be applied to table items. */ cryptoKey?: Schema$GooglePrivacyDlpV2CryptoKey; /** @@ -789,7 +813,7 @@ export namespace dlp_v2 { /** * The geographic location to process de-identification. Reserved for future extensions. */ - location?: string | null; + locationId?: string | null; } /** * Results of de-identifying a ContentItem. @@ -805,11 +829,11 @@ export namespace dlp_v2 { overview?: Schema$GooglePrivacyDlpV2TransformationOverview; } /** - * The DeidentifyTemplates contains instructions on how to deidentify content. See https://cloud.google.com/dlp/docs/concepts-templates to learn more. + * DeidentifyTemplates contains instructions on how to de-identify content. See https://cloud.google.com/dlp/docs/concepts-templates to learn more. */ export interface Schema$GooglePrivacyDlpV2DeidentifyTemplate { /** - * The creation timestamp of a inspectTemplate, output only field. + * The creation timestamp of an inspectTemplate, output only field. */ createTime?: string | null; /** @@ -829,7 +853,7 @@ export namespace dlp_v2 { */ name?: string | null; /** - * The last update timestamp of a inspectTemplate, output only field. + * The last update timestamp of an inspectTemplate, output only field. */ updateTime?: string | null; } @@ -1309,7 +1333,7 @@ export namespace dlp_v2 { /** * The geographic location to process content inspection. Reserved for future extensions. */ - location?: string | null; + locationId?: string | null; } /** * Results of inspecting an item. @@ -1395,7 +1419,7 @@ export namespace dlp_v2 { */ export interface Schema$GooglePrivacyDlpV2InspectTemplate { /** - * The creation timestamp of a inspectTemplate, output only field. + * The creation timestamp of an inspectTemplate, output only field. */ createTime?: string | null; /** @@ -1415,7 +1439,7 @@ export namespace dlp_v2 { */ name?: string | null; /** - * The last update timestamp of a inspectTemplate, output only field. + * The last update timestamp of an inspectTemplate, output only field. */ updateTime?: string | null; } @@ -1942,6 +1966,10 @@ export namespace dlp_v2 { */ topic?: string | null; } + /** + * Enable Stackdriver metric dlp.googleapis.com/finding_count. This will publish a metric to stack driver on each infotype requested and how many findings were found for it. CustomDetectors will be bucketed as 'Custom' under the Stackdriver label 'info_type'. + */ + export interface Schema$GooglePrivacyDlpV2PublishToStackdriver {} /** * A column with a semantic tag attached. */ @@ -2085,7 +2113,7 @@ export namespace dlp_v2 { /** * The geographic location to process the request. Reserved for future extensions. */ - location?: string | null; + locationId?: string | null; } /** * Results of redacting an image. @@ -2136,7 +2164,7 @@ export namespace dlp_v2 { /** * The geographic location to process content reidentification. Reserved for future extensions. */ - location?: string | null; + locationId?: string | null; /** * Configuration for the re-identification of the content item. This field shares the same proto message type that is used for de-identification, however its usage here is for the reversal of the previous de-identification. Re-identification is performed by examining the transformations used to de-identify the items and executing the reverse. This requires that only reversible transformations be provided here. The reversible transformations are: - `CryptoDeterministicConfig` - `CryptoReplaceFfxFpeConfig` */ @@ -2284,7 +2312,7 @@ export namespace dlp_v2 { pendingVersions?: Schema$GooglePrivacyDlpV2StoredInfoTypeVersion[]; } /** - * Configuration for a StoredInfoType. + * Configuration for stored infoT types. All fields and subfield are provided by the user. For more information, see https://cloud.google.com/dlp/docs/creating-custom-infotypes. */ export interface Schema$GooglePrivacyDlpV2StoredInfoTypeConfig { /** @@ -2661,7 +2689,7 @@ export namespace dlp_v2 { * @param {object} params Parameters for request * @param {string=} params.filter Optional filter to only return infoTypes supported by certain parts of the API. Defaults to supported_by=INSPECT. * @param {string=} params.languageCode Optional BCP-47 language code for localized infoType friendly names. If omitted, or if localized strings are not available, en-US strings will be returned. - * @param {string=} params.location The geographic location to list info types. Reserved for future extensions. + * @param {string=} params.locationId The geographic location to list info types. Reserved for future extensions. * @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 @@ -2759,7 +2787,7 @@ export namespace dlp_v2 { /** * The geographic location to list info types. Reserved for future extensions. */ - location?: string; + locationId?: string; } export class Resource$Locations { @@ -2786,7 +2814,7 @@ export namespace dlp_v2 { * @param {object} params Parameters for request * @param {string=} params.filter Optional filter to only return infoTypes supported by certain parts of the API. Defaults to supported_by=INSPECT. * @param {string=} params.languageCode Optional BCP-47 language code for localized infoType friendly names. If omitted, or if localized strings are not available, en-US strings will be returned. - * @param {string} params.location The geographic location to list info types. Reserved for future extensions. + * @param {string} params.locationId The geographic location to list info types. Reserved for future extensions. * @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 @@ -2845,7 +2873,7 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/locations/{location}/infoTypes').replace( + url: (rootUrl + '/v2/locations/{locationId}/infoTypes').replace( /([^:]\/)\/+/g, '$1' ), @@ -2854,8 +2882,8 @@ export namespace dlp_v2 { options ), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: ['locationId'], + pathParams: ['locationId'], context: this.context, }; if (callback) { @@ -2889,13 +2917,14 @@ export namespace dlp_v2 { /** * The geographic location to list info types. Reserved for future extensions. */ - location?: string; + locationId?: string; } export class Resource$Organizations { context: APIRequestContext; deidentifyTemplates: Resource$Organizations$Deidentifytemplates; inspectTemplates: Resource$Organizations$Inspecttemplates; + locations: Resource$Organizations$Locations; storedInfoTypes: Resource$Organizations$Storedinfotypes; constructor(context: APIRequestContext) { this.context = context; @@ -2905,6 +2934,7 @@ export namespace dlp_v2 { this.inspectTemplates = new Resource$Organizations$Inspecttemplates( this.context ); + this.locations = new Resource$Organizations$Locations(this.context); this.storedInfoTypes = new Resource$Organizations$Storedinfotypes( this.context ); @@ -2924,8 +2954,8 @@ export namespace dlp_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.parent The parent resource name, for example projects/my-project-id or organizations/my-org-id. - * @param {().GooglePrivacyDlpV2CreateDeidentifyTemplateRequest} params.resource Request body data + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * @param {().GooglePrivacyDlpV2CreateDeidentifyTemplateRequest} params.requestBody 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 @@ -3016,7 +3046,7 @@ export namespace dlp_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + * @param {string} params.name Required. Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. * @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 @@ -3087,7 +3117,7 @@ export namespace dlp_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + * @param {string} params.name Required. Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. * @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 @@ -3175,10 +3205,11 @@ export namespace dlp_v2 { * @memberOf! () * * @param {object} params Parameters for request + * @param {string=} params.locationId The geographic location where deidentifications templates will be retrieved from. Use `-` for all locations. Reserved for future extensions. * @param {string=} params.orderBy Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to time the template was created. - `update_time`: corresponds to time the template was last updated. - `name`: corresponds to template's name. - `display_name`: corresponds to template's display name. * @param {integer=} params.pageSize Optional size of the page, can be limited by server. If zero server returns a page of max size 100. * @param {string=} params.pageToken Optional page token to continue retrieval. Comes from previous call to `ListDeidentifyTemplates`. - * @param {string} params.parent The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. * @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 @@ -3276,8 +3307,8 @@ export namespace dlp_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. - * @param {().GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest} params.resource Request body data + * @param {string} params.name Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + * @param {().GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest} params.requestBody 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 @@ -3367,7 +3398,7 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. */ parent?: string; @@ -3384,7 +3415,7 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + * Required. Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. */ name?: string; } @@ -3396,7 +3427,7 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + * Required. Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. */ name?: string; } @@ -3407,6 +3438,10 @@ export namespace dlp_v2 { */ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + /** + * The geographic location where deidentifications templates will be retrieved from. Use `-` for all locations. Reserved for future extensions. + */ + locationId?: string; /** * Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to time the template was created. - `update_time`: corresponds to time the template was last updated. - `name`: corresponds to template's name. - `display_name`: corresponds to template's display name. */ @@ -3420,7 +3455,7 @@ export namespace dlp_v2 { */ pageToken?: string; /** - * The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. */ parent?: string; } @@ -3432,7 +3467,7 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + * Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. */ name?: string; @@ -3455,8 +3490,8 @@ export namespace dlp_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.parent The parent resource name, for example projects/my-project-id or organizations/my-org-id. - * @param {().GooglePrivacyDlpV2CreateInspectTemplateRequest} params.resource Request body data + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * @param {().GooglePrivacyDlpV2CreateInspectTemplateRequest} params.requestBody 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 @@ -3539,7 +3574,7 @@ export namespace dlp_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + * @param {string} params.name Required. Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. * @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 @@ -3610,7 +3645,7 @@ export namespace dlp_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + * @param {string} params.name Required. Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. * @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 @@ -3690,10 +3725,11 @@ export namespace dlp_v2 { * @memberOf! () * * @param {object} params Parameters for request + * @param {string=} params.locationId The geographic location where inspection templates will be retrieved from. Use `-` for all locations. Reserved for future extensions. * @param {string=} params.orderBy Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to time the template was created. - `update_time`: corresponds to time the template was last updated. - `name`: corresponds to template's name. - `display_name`: corresponds to template's display name. * @param {integer=} params.pageSize Optional size of the page, can be limited by server. If zero server returns a page of max size 100. * @param {string=} params.pageToken Optional page token to continue retrieval. Comes from previous call to `ListInspectTemplates`. - * @param {string} params.parent The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. * @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 @@ -3792,8 +3828,8 @@ export namespace dlp_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. - * @param {().GooglePrivacyDlpV2UpdateInspectTemplateRequest} params.resource Request body data + * @param {string} params.name Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + * @param {().GooglePrivacyDlpV2UpdateInspectTemplateRequest} params.requestBody 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 @@ -3875,7 +3911,7 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. */ parent?: string; @@ -3892,7 +3928,7 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + * Required. Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. */ name?: string; } @@ -3904,7 +3940,7 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + * Required. Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. */ name?: string; } @@ -3915,6 +3951,10 @@ export namespace dlp_v2 { */ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + /** + * The geographic location where inspection templates will be retrieved from. Use `-` for all locations. Reserved for future extensions. + */ + locationId?: string; /** * Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to time the template was created. - `update_time`: corresponds to time the template was last updated. - `name`: corresponds to template's name. - `display_name`: corresponds to template's display name. */ @@ -3928,7 +3968,7 @@ export namespace dlp_v2 { */ pageToken?: string; /** - * The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. */ parent?: string; } @@ -3940,7 +3980,7 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + * Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. */ name?: string; @@ -3950,59 +3990,87 @@ export namespace dlp_v2 { requestBody?: Schema$GooglePrivacyDlpV2UpdateInspectTemplateRequest; } - export class Resource$Organizations$Storedinfotypes { + export class Resource$Organizations$Locations { + context: APIRequestContext; + deidentifyTemplates: Resource$Organizations$Locations$Deidentifytemplates; + inspectTemplates: Resource$Organizations$Locations$Inspecttemplates; + storedInfoTypes: Resource$Organizations$Locations$Storedinfotypes; + constructor(context: APIRequestContext) { + this.context = context; + this.deidentifyTemplates = new Resource$Organizations$Locations$Deidentifytemplates( + this.context + ); + this.inspectTemplates = new Resource$Organizations$Locations$Inspecttemplates( + this.context + ); + this.storedInfoTypes = new Resource$Organizations$Locations$Storedinfotypes( + this.context + ); + } + } + + export class Resource$Organizations$Locations$Deidentifytemplates { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * dlp.organizations.storedInfoTypes.create - * @desc Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. - * @alias dlp.organizations.storedInfoTypes.create + * dlp.organizations.locations.deidentifyTemplates.create + * @desc Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * @alias dlp.organizations.locations.deidentifyTemplates.create * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.parent The parent resource name, for example projects/my-project-id or organizations/my-org-id. - * @param {().GooglePrivacyDlpV2CreateStoredInfoTypeRequest} params.resource Request body data + * @param {string} params.locationId The geographic location to store the deidentification template. Reserved for future extensions. + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * @param {().GooglePrivacyDlpV2CreateDeidentifyTemplateRequest} params.requestBody 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$Organizations$Storedinfotypes$Create, + params?: Params$Resource$Organizations$Locations$Deidentifytemplates$Create, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; create( - params: Params$Resource$Organizations$Storedinfotypes$Create, + params: Params$Resource$Organizations$Locations$Deidentifytemplates$Create, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > ): void; create( - params: Params$Resource$Organizations$Storedinfotypes$Create, - callback: BodyResponseCallback + params: Params$Resource$Organizations$Locations$Deidentifytemplates$Create, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > ): void; create( - callback: BodyResponseCallback + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > ): void; create( paramsOrCallback?: - | Params$Resource$Organizations$Storedinfotypes$Create - | BodyResponseCallback, + | Params$Resource$Organizations$Locations$Deidentifytemplates$Create + | BodyResponseCallback, optionsOrCallback?: | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { + | BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > + ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Storedinfotypes$Create; + {}) as Params$Resource$Organizations$Locations$Deidentifytemplates$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Storedinfotypes$Create; + params = {} as Params$Resource$Organizations$Locations$Deidentifytemplates$Create; options = {}; } @@ -4015,60 +4083,60 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: ( + rootUrl + + '/v2/{+parent}/locations/{locationId}/deidentifyTemplates' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * dlp.organizations.storedInfoTypes.delete - * @desc Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. - * @alias dlp.organizations.storedInfoTypes.delete + * dlp.organizations.locations.deidentifyTemplates.delete + * @desc Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * @alias dlp.organizations.locations.deidentifyTemplates.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Resource name of the organization and storedInfoType to be deleted, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + * @param {string} params.name Required. Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. * @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$Organizations$Storedinfotypes$Delete, + params?: Params$Resource$Organizations$Locations$Deidentifytemplates$Delete, options?: MethodOptions ): GaxiosPromise; delete( - params: Params$Resource$Organizations$Storedinfotypes$Delete, + params: Params$Resource$Organizations$Locations$Deidentifytemplates$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Organizations$Storedinfotypes$Delete, + params: Params$Resource$Organizations$Locations$Deidentifytemplates$Delete, callback: BodyResponseCallback ): void; delete(callback: BodyResponseCallback): void; delete( paramsOrCallback?: - | Params$Resource$Organizations$Storedinfotypes$Delete + | Params$Resource$Organizations$Locations$Deidentifytemplates$Delete | BodyResponseCallback, optionsOrCallback?: | MethodOptions @@ -4076,12 +4144,12 @@ export namespace dlp_v2 { callback?: BodyResponseCallback ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Storedinfotypes$Delete; + {}) as Params$Resource$Organizations$Locations$Deidentifytemplates$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Storedinfotypes$Delete; + params = {} as Params$Resource$Organizations$Locations$Deidentifytemplates$Delete; options = {}; } @@ -4112,51 +4180,59 @@ export namespace dlp_v2 { } /** - * dlp.organizations.storedInfoTypes.get - * @desc Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. - * @alias dlp.organizations.storedInfoTypes.get + * dlp.organizations.locations.deidentifyTemplates.get + * @desc Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * @alias dlp.organizations.locations.deidentifyTemplates.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Resource name of the organization and storedInfoType to be read, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + * @param {string} params.name Required. Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. * @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$Organizations$Storedinfotypes$Get, + params?: Params$Resource$Organizations$Locations$Deidentifytemplates$Get, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; get( - params: Params$Resource$Organizations$Storedinfotypes$Get, + params: Params$Resource$Organizations$Locations$Deidentifytemplates$Get, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > ): void; get( - params: Params$Resource$Organizations$Storedinfotypes$Get, - callback: BodyResponseCallback + params: Params$Resource$Organizations$Locations$Deidentifytemplates$Get, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > ): void; get( - callback: BodyResponseCallback + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > ): void; get( paramsOrCallback?: - | Params$Resource$Organizations$Storedinfotypes$Get - | BodyResponseCallback, + | Params$Resource$Organizations$Locations$Deidentifytemplates$Get + | BodyResponseCallback, optionsOrCallback?: | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { + | BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > + ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Storedinfotypes$Get; + {}) as Params$Resource$Organizations$Locations$Deidentifytemplates$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Storedinfotypes$Get; + params = {} as Params$Resource$Organizations$Locations$Deidentifytemplates$Get; options = {}; } @@ -4180,82 +4256,83 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * dlp.organizations.storedInfoTypes.list - * @desc Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. - * @alias dlp.organizations.storedInfoTypes.list + * dlp.organizations.locations.deidentifyTemplates.list + * @desc Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * @alias dlp.organizations.locations.deidentifyTemplates.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.orderBy Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name. + * @param {string} params.locationId The geographic location where deidentifications templates will be retrieved from. Use `-` for all locations. Reserved for future extensions. + * @param {string=} params.orderBy Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to time the template was created. - `update_time`: corresponds to time the template was last updated. - `name`: corresponds to template's name. - `display_name`: corresponds to template's display name. * @param {integer=} params.pageSize Optional size of the page, can be limited by server. If zero server returns a page of max size 100. - * @param {string=} params.pageToken Optional page token to continue retrieval. Comes from previous call to `ListStoredInfoTypes`. - * @param {string} params.parent The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * @param {string=} params.pageToken Optional page token to continue retrieval. Comes from previous call to `ListDeidentifyTemplates`. + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. * @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$Organizations$Storedinfotypes$List, + params?: Params$Resource$Organizations$Locations$Deidentifytemplates$List, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; list( - params: Params$Resource$Organizations$Storedinfotypes$List, + params: Params$Resource$Organizations$Locations$Deidentifytemplates$List, options: | MethodOptions | BodyResponseCallback< - Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse >, callback: BodyResponseCallback< - Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse > ): void; list( - params: Params$Resource$Organizations$Storedinfotypes$List, + params: Params$Resource$Organizations$Locations$Deidentifytemplates$List, callback: BodyResponseCallback< - Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse > ): void; list( callback: BodyResponseCallback< - Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse > ): void; list( paramsOrCallback?: - | Params$Resource$Organizations$Storedinfotypes$List + | Params$Resource$Organizations$Locations$Deidentifytemplates$List | BodyResponseCallback< - Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse >, optionsOrCallback?: | MethodOptions | BodyResponseCallback< - Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse >, callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse > ): void | GaxiosPromise< - Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse > { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Storedinfotypes$List; + {}) as Params$Resource$Organizations$Locations$Deidentifytemplates$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Storedinfotypes$List; + params = {} as Params$Resource$Organizations$Locations$Deidentifytemplates$List; options = {}; } @@ -4268,78 +4345,85 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: ( + rootUrl + + '/v2/{+parent}/locations/{locationId}/deidentifyTemplates' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], context: this.context, }; if (callback) { - createAPIRequest( - parameters, - callback - ); + createAPIRequest< + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse + >(parameters, callback); } else { return createAPIRequest< - Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse >(parameters); } } /** - * dlp.organizations.storedInfoTypes.patch - * @desc Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. - * @alias dlp.organizations.storedInfoTypes.patch + * dlp.organizations.locations.deidentifyTemplates.patch + * @desc Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * @alias dlp.organizations.locations.deidentifyTemplates.patch * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. - * @param {().GooglePrivacyDlpV2UpdateStoredInfoTypeRequest} params.resource Request body data + * @param {string} params.name Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + * @param {().GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest} params.requestBody 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 */ patch( - params?: Params$Resource$Organizations$Storedinfotypes$Patch, + params?: Params$Resource$Organizations$Locations$Deidentifytemplates$Patch, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; patch( - params: Params$Resource$Organizations$Storedinfotypes$Patch, + params: Params$Resource$Organizations$Locations$Deidentifytemplates$Patch, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > ): void; patch( - params: Params$Resource$Organizations$Storedinfotypes$Patch, - callback: BodyResponseCallback + params: Params$Resource$Organizations$Locations$Deidentifytemplates$Patch, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > ): void; patch( - callback: BodyResponseCallback + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > ): void; patch( paramsOrCallback?: - | Params$Resource$Organizations$Storedinfotypes$Patch - | BodyResponseCallback, + | Params$Resource$Organizations$Locations$Deidentifytemplates$Patch + | BodyResponseCallback, optionsOrCallback?: | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { + | BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > + ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Organizations$Storedinfotypes$Patch; + {}) as Params$Resource$Organizations$Locations$Deidentifytemplates$Patch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Organizations$Storedinfotypes$Patch; + params = {} as Params$Resource$Organizations$Locations$Deidentifytemplates$Patch; options = {}; } @@ -4363,19 +4447,19 @@ export namespace dlp_v2 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } } - export interface Params$Resource$Organizations$Storedinfotypes$Create + export interface Params$Resource$Organizations$Locations$Deidentifytemplates$Create extends StandardParameters { /** * Auth client or API Key for the request @@ -4383,16 +4467,20 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * The geographic location to store the deidentification template. Reserved for future extensions. + */ + locationId?: string; + /** + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. */ parent?: string; /** * Request body metadata */ - requestBody?: Schema$GooglePrivacyDlpV2CreateStoredInfoTypeRequest; + requestBody?: Schema$GooglePrivacyDlpV2CreateDeidentifyTemplateRequest; } - export interface Params$Resource$Organizations$Storedinfotypes$Delete + export interface Params$Resource$Organizations$Locations$Deidentifytemplates$Delete extends StandardParameters { /** * Auth client or API Key for the request @@ -4400,11 +4488,11 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Resource name of the organization and storedInfoType to be deleted, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + * Required. Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. */ name?: string; } - export interface Params$Resource$Organizations$Storedinfotypes$Get + export interface Params$Resource$Organizations$Locations$Deidentifytemplates$Get extends StandardParameters { /** * Auth client or API Key for the request @@ -4412,11 +4500,11 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Resource name of the organization and storedInfoType to be read, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + * Required. Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. */ name?: string; } - export interface Params$Resource$Organizations$Storedinfotypes$List + export interface Params$Resource$Organizations$Locations$Deidentifytemplates$List extends StandardParameters { /** * Auth client or API Key for the request @@ -4424,7 +4512,11 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name. + * The geographic location where deidentifications templates will be retrieved from. Use `-` for all locations. Reserved for future extensions. + */ + locationId?: string; + /** + * Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to time the template was created. - `update_time`: corresponds to time the template was last updated. - `name`: corresponds to template's name. - `display_name`: corresponds to template's display name. */ orderBy?: string; /** @@ -4432,15 +4524,15 @@ export namespace dlp_v2 { */ pageSize?: number; /** - * Optional page token to continue retrieval. Comes from previous call to `ListStoredInfoTypes`. + * Optional page token to continue retrieval. Comes from previous call to `ListDeidentifyTemplates`. */ pageToken?: string; /** - * The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. */ parent?: string; } - export interface Params$Resource$Organizations$Storedinfotypes$Patch + export interface Params$Resource$Organizations$Locations$Deidentifytemplates$Patch extends StandardParameters { /** * Auth client or API Key for the request @@ -4448,70 +4540,4268 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + * Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. */ name?: string; /** * Request body metadata */ - requestBody?: Schema$GooglePrivacyDlpV2UpdateStoredInfoTypeRequest; + requestBody?: Schema$GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest; } - export class Resource$Projects { + export class Resource$Organizations$Locations$Inspecttemplates { context: APIRequestContext; - content: Resource$Projects$Content; - deidentifyTemplates: Resource$Projects$Deidentifytemplates; - dlpJobs: Resource$Projects$Dlpjobs; - image: Resource$Projects$Image; - inspectTemplates: Resource$Projects$Inspecttemplates; - jobTriggers: Resource$Projects$Jobtriggers; - locations: Resource$Projects$Locations; - storedInfoTypes: Resource$Projects$Storedinfotypes; constructor(context: APIRequestContext) { this.context = context; - this.content = new Resource$Projects$Content(this.context); - this.deidentifyTemplates = new Resource$Projects$Deidentifytemplates( - this.context - ); - this.dlpJobs = new Resource$Projects$Dlpjobs(this.context); - this.image = new Resource$Projects$Image(this.context); - this.inspectTemplates = new Resource$Projects$Inspecttemplates( - this.context - ); - this.jobTriggers = new Resource$Projects$Jobtriggers(this.context); - this.locations = new Resource$Projects$Locations(this.context); - this.storedInfoTypes = new Resource$Projects$Storedinfotypes( + } + + /** + * dlp.organizations.locations.inspectTemplates.create + * @desc Creates an InspectTemplate for re-using frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * @alias dlp.organizations.locations.inspectTemplates.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.locationId The geographic location to store the inspection template. Reserved for future extensions. + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * @param {().GooglePrivacyDlpV2CreateInspectTemplateRequest} params.requestBody 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$Organizations$Locations$Inspecttemplates$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Organizations$Locations$Inspecttemplates$Create, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Organizations$Locations$Inspecttemplates$Create, + callback: BodyResponseCallback + ): void; + create( + callback: BodyResponseCallback + ): void; + create( + paramsOrCallback?: + | Params$Resource$Organizations$Locations$Inspecttemplates$Create + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Locations$Inspecttemplates$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Locations$Inspecttemplates$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + '/v2/{+parent}/locations/{locationId}/inspectTemplates' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * dlp.organizations.locations.inspectTemplates.delete + * @desc Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * @alias dlp.organizations.locations.inspectTemplates.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + * @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$Organizations$Locations$Inspecttemplates$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Organizations$Locations$Inspecttemplates$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Organizations$Locations$Inspecttemplates$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Organizations$Locations$Inspecttemplates$Delete + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Locations$Inspecttemplates$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Locations$Inspecttemplates$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * dlp.organizations.locations.inspectTemplates.get + * @desc Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * @alias dlp.organizations.locations.inspectTemplates.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + * @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$Organizations$Locations$Inspecttemplates$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Organizations$Locations$Inspecttemplates$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Organizations$Locations$Inspecttemplates$Get, + callback: BodyResponseCallback + ): void; + get( + callback: BodyResponseCallback + ): void; + get( + paramsOrCallback?: + | Params$Resource$Organizations$Locations$Inspecttemplates$Get + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Locations$Inspecttemplates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Locations$Inspecttemplates$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * dlp.organizations.locations.inspectTemplates.list + * @desc Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * @alias dlp.organizations.locations.inspectTemplates.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.locationId The geographic location where inspection templates will be retrieved from. Use `-` for all locations. Reserved for future extensions. + * @param {string=} params.orderBy Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to time the template was created. - `update_time`: corresponds to time the template was last updated. - `name`: corresponds to template's name. - `display_name`: corresponds to template's display name. + * @param {integer=} params.pageSize Optional size of the page, can be limited by server. If zero server returns a page of max size 100. + * @param {string=} params.pageToken Optional page token to continue retrieval. Comes from previous call to `ListInspectTemplates`. + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * @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$Organizations$Locations$Inspecttemplates$List, + options?: MethodOptions + ): GaxiosPromise; + list( + params: Params$Resource$Organizations$Locations$Inspecttemplates$List, + options: + | MethodOptions + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse + >, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse + > + ): void; + list( + params: Params$Resource$Organizations$Locations$Inspecttemplates$List, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse + > + ): void; + list( + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse + > + ): void; + list( + paramsOrCallback?: + | Params$Resource$Organizations$Locations$Inspecttemplates$List + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse + >, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse + >, + callback?: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse + > + ): void | GaxiosPromise< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse + > { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Locations$Inspecttemplates$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Locations$Inspecttemplates$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + '/v2/{+parent}/locations/{locationId}/inspectTemplates' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse + >(parameters); + } + } + + /** + * dlp.organizations.locations.inspectTemplates.patch + * @desc Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * @alias dlp.organizations.locations.inspectTemplates.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + * @param {().GooglePrivacyDlpV2UpdateInspectTemplateRequest} params.requestBody 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 + */ + patch( + params?: Params$Resource$Organizations$Locations$Inspecttemplates$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Organizations$Locations$Inspecttemplates$Patch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Organizations$Locations$Inspecttemplates$Patch, + callback: BodyResponseCallback + ): void; + patch( + callback: BodyResponseCallback + ): void; + patch( + paramsOrCallback?: + | Params$Resource$Organizations$Locations$Inspecttemplates$Patch + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Locations$Inspecttemplates$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Locations$Inspecttemplates$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Organizations$Locations$Inspecttemplates$Create + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * The geographic location to store the inspection template. Reserved for future extensions. + */ + locationId?: string; + /** + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2CreateInspectTemplateRequest; + } + export interface Params$Resource$Organizations$Locations$Inspecttemplates$Delete + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + */ + name?: string; + } + export interface Params$Resource$Organizations$Locations$Inspecttemplates$Get + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + */ + name?: string; + } + export interface Params$Resource$Organizations$Locations$Inspecttemplates$List + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * The geographic location where inspection templates will be retrieved from. Use `-` for all locations. Reserved for future extensions. + */ + locationId?: string; + /** + * Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to time the template was created. - `update_time`: corresponds to time the template was last updated. - `name`: corresponds to template's name. - `display_name`: corresponds to template's display name. + */ + orderBy?: string; + /** + * Optional size of the page, can be limited by server. If zero server returns a page of max size 100. + */ + pageSize?: number; + /** + * Optional page token to continue retrieval. Comes from previous call to `ListInspectTemplates`. + */ + pageToken?: string; + /** + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + */ + parent?: string; + } + export interface Params$Resource$Organizations$Locations$Inspecttemplates$Patch + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2UpdateInspectTemplateRequest; + } + + export class Resource$Organizations$Locations$Storedinfotypes { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * dlp.organizations.locations.storedInfoTypes.create + * @desc Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * @alias dlp.organizations.locations.storedInfoTypes.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.locationId The geographic location to store the stored infoType. Reserved for future extensions. + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * @param {().GooglePrivacyDlpV2CreateStoredInfoTypeRequest} params.requestBody 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$Organizations$Locations$Storedinfotypes$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Organizations$Locations$Storedinfotypes$Create, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Organizations$Locations$Storedinfotypes$Create, + callback: BodyResponseCallback + ): void; + create( + callback: BodyResponseCallback + ): void; + create( + paramsOrCallback?: + | Params$Resource$Organizations$Locations$Storedinfotypes$Create + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Locations$Storedinfotypes$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Locations$Storedinfotypes$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + '/v2/{+parent}/locations/{locationId}/storedInfoTypes' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * dlp.organizations.locations.storedInfoTypes.delete + * @desc Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * @alias dlp.organizations.locations.storedInfoTypes.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of the organization and storedInfoType to be deleted, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + * @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$Organizations$Locations$Storedinfotypes$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Organizations$Locations$Storedinfotypes$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Organizations$Locations$Storedinfotypes$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Organizations$Locations$Storedinfotypes$Delete + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Locations$Storedinfotypes$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Locations$Storedinfotypes$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * dlp.organizations.locations.storedInfoTypes.get + * @desc Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * @alias dlp.organizations.locations.storedInfoTypes.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of the organization and storedInfoType to be read, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + * @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$Organizations$Locations$Storedinfotypes$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Organizations$Locations$Storedinfotypes$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Organizations$Locations$Storedinfotypes$Get, + callback: BodyResponseCallback + ): void; + get( + callback: BodyResponseCallback + ): void; + get( + paramsOrCallback?: + | Params$Resource$Organizations$Locations$Storedinfotypes$Get + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Locations$Storedinfotypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Locations$Storedinfotypes$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * dlp.organizations.locations.storedInfoTypes.list + * @desc Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * @alias dlp.organizations.locations.storedInfoTypes.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.locationId The geographic location where stored infoTypes will be retrieved from. Use `-` for all locations. Reserved for future extensions. + * @param {string=} params.orderBy Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name. + * @param {integer=} params.pageSize Optional size of the page, can be limited by server. If zero server returns a page of max size 100. + * @param {string=} params.pageToken Optional page token to continue retrieval. Comes from previous call to `ListStoredInfoTypes`. + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * @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$Organizations$Locations$Storedinfotypes$List, + options?: MethodOptions + ): GaxiosPromise; + list( + params: Params$Resource$Organizations$Locations$Storedinfotypes$List, + options: + | MethodOptions + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + >, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + > + ): void; + list( + params: Params$Resource$Organizations$Locations$Storedinfotypes$List, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + > + ): void; + list( + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + > + ): void; + list( + paramsOrCallback?: + | Params$Resource$Organizations$Locations$Storedinfotypes$List + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + >, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + >, + callback?: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + > + ): void | GaxiosPromise< + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + > { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Locations$Storedinfotypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Locations$Storedinfotypes$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + '/v2/{+parent}/locations/{locationId}/storedInfoTypes' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest< + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + >(parameters); + } + } + + /** + * dlp.organizations.locations.storedInfoTypes.patch + * @desc Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * @alias dlp.organizations.locations.storedInfoTypes.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + * @param {().GooglePrivacyDlpV2UpdateStoredInfoTypeRequest} params.requestBody 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 + */ + patch( + params?: Params$Resource$Organizations$Locations$Storedinfotypes$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Organizations$Locations$Storedinfotypes$Patch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Organizations$Locations$Storedinfotypes$Patch, + callback: BodyResponseCallback + ): void; + patch( + callback: BodyResponseCallback + ): void; + patch( + paramsOrCallback?: + | Params$Resource$Organizations$Locations$Storedinfotypes$Patch + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Locations$Storedinfotypes$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Locations$Storedinfotypes$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Organizations$Locations$Storedinfotypes$Create + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * The geographic location to store the stored infoType. Reserved for future extensions. + */ + locationId?: string; + /** + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2CreateStoredInfoTypeRequest; + } + export interface Params$Resource$Organizations$Locations$Storedinfotypes$Delete + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of the organization and storedInfoType to be deleted, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + */ + name?: string; + } + export interface Params$Resource$Organizations$Locations$Storedinfotypes$Get + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of the organization and storedInfoType to be read, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + */ + name?: string; + } + export interface Params$Resource$Organizations$Locations$Storedinfotypes$List + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * The geographic location where stored infoTypes will be retrieved from. Use `-` for all locations. Reserved for future extensions. + */ + locationId?: string; + /** + * Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name. + */ + orderBy?: string; + /** + * Optional size of the page, can be limited by server. If zero server returns a page of max size 100. + */ + pageSize?: number; + /** + * Optional page token to continue retrieval. Comes from previous call to `ListStoredInfoTypes`. + */ + pageToken?: string; + /** + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + */ + parent?: string; + } + export interface Params$Resource$Organizations$Locations$Storedinfotypes$Patch + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2UpdateStoredInfoTypeRequest; + } + + export class Resource$Organizations$Storedinfotypes { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * dlp.organizations.storedInfoTypes.create + * @desc Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * @alias dlp.organizations.storedInfoTypes.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * @param {().GooglePrivacyDlpV2CreateStoredInfoTypeRequest} params.requestBody 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$Organizations$Storedinfotypes$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Organizations$Storedinfotypes$Create, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Organizations$Storedinfotypes$Create, + callback: BodyResponseCallback + ): void; + create( + callback: BodyResponseCallback + ): void; + create( + paramsOrCallback?: + | Params$Resource$Organizations$Storedinfotypes$Create + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Storedinfotypes$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Storedinfotypes$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * dlp.organizations.storedInfoTypes.delete + * @desc Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * @alias dlp.organizations.storedInfoTypes.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of the organization and storedInfoType to be deleted, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + * @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$Organizations$Storedinfotypes$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Organizations$Storedinfotypes$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Organizations$Storedinfotypes$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Organizations$Storedinfotypes$Delete + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Storedinfotypes$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Storedinfotypes$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * dlp.organizations.storedInfoTypes.get + * @desc Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * @alias dlp.organizations.storedInfoTypes.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of the organization and storedInfoType to be read, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + * @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$Organizations$Storedinfotypes$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Organizations$Storedinfotypes$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Organizations$Storedinfotypes$Get, + callback: BodyResponseCallback + ): void; + get( + callback: BodyResponseCallback + ): void; + get( + paramsOrCallback?: + | Params$Resource$Organizations$Storedinfotypes$Get + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Storedinfotypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Storedinfotypes$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * dlp.organizations.storedInfoTypes.list + * @desc Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * @alias dlp.organizations.storedInfoTypes.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.locationId The geographic location where stored infoTypes will be retrieved from. Use `-` for all locations. Reserved for future extensions. + * @param {string=} params.orderBy Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name. + * @param {integer=} params.pageSize Optional size of the page, can be limited by server. If zero server returns a page of max size 100. + * @param {string=} params.pageToken Optional page token to continue retrieval. Comes from previous call to `ListStoredInfoTypes`. + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * @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$Organizations$Storedinfotypes$List, + options?: MethodOptions + ): GaxiosPromise; + list( + params: Params$Resource$Organizations$Storedinfotypes$List, + options: + | MethodOptions + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + >, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + > + ): void; + list( + params: Params$Resource$Organizations$Storedinfotypes$List, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + > + ): void; + list( + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + > + ): void; + list( + paramsOrCallback?: + | Params$Resource$Organizations$Storedinfotypes$List + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + >, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + >, + callback?: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + > + ): void | GaxiosPromise< + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + > { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Storedinfotypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Storedinfotypes$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest< + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse + >(parameters); + } + } + + /** + * dlp.organizations.storedInfoTypes.patch + * @desc Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * @alias dlp.organizations.storedInfoTypes.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + * @param {().GooglePrivacyDlpV2UpdateStoredInfoTypeRequest} params.requestBody 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 + */ + patch( + params?: Params$Resource$Organizations$Storedinfotypes$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Organizations$Storedinfotypes$Patch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Organizations$Storedinfotypes$Patch, + callback: BodyResponseCallback + ): void; + patch( + callback: BodyResponseCallback + ): void; + patch( + paramsOrCallback?: + | Params$Resource$Organizations$Storedinfotypes$Patch + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Organizations$Storedinfotypes$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Storedinfotypes$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Organizations$Storedinfotypes$Create + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2CreateStoredInfoTypeRequest; + } + export interface Params$Resource$Organizations$Storedinfotypes$Delete + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of the organization and storedInfoType to be deleted, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + */ + name?: string; + } + export interface Params$Resource$Organizations$Storedinfotypes$Get + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of the organization and storedInfoType to be read, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + */ + name?: string; + } + export interface Params$Resource$Organizations$Storedinfotypes$List + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * The geographic location where stored infoTypes will be retrieved from. Use `-` for all locations. Reserved for future extensions. + */ + locationId?: string; + /** + * Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name. + */ + orderBy?: string; + /** + * Optional size of the page, can be limited by server. If zero server returns a page of max size 100. + */ + pageSize?: number; + /** + * Optional page token to continue retrieval. Comes from previous call to `ListStoredInfoTypes`. + */ + pageToken?: string; + /** + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + */ + parent?: string; + } + export interface Params$Resource$Organizations$Storedinfotypes$Patch + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2UpdateStoredInfoTypeRequest; + } + + export class Resource$Projects { + context: APIRequestContext; + content: Resource$Projects$Content; + deidentifyTemplates: Resource$Projects$Deidentifytemplates; + dlpJobs: Resource$Projects$Dlpjobs; + image: Resource$Projects$Image; + inspectTemplates: Resource$Projects$Inspecttemplates; + jobTriggers: Resource$Projects$Jobtriggers; + locations: Resource$Projects$Locations; + storedInfoTypes: Resource$Projects$Storedinfotypes; + constructor(context: APIRequestContext) { + this.context = context; + this.content = new Resource$Projects$Content(this.context); + this.deidentifyTemplates = new Resource$Projects$Deidentifytemplates( + this.context + ); + this.dlpJobs = new Resource$Projects$Dlpjobs(this.context); + this.image = new Resource$Projects$Image(this.context); + this.inspectTemplates = new Resource$Projects$Inspecttemplates( + this.context + ); + this.jobTriggers = new Resource$Projects$Jobtriggers(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.storedInfoTypes = new Resource$Projects$Storedinfotypes( + this.context + ); + } + } + + export class Resource$Projects$Content { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * dlp.projects.content.deidentify + * @desc De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. + * @alias dlp.projects.content.deidentify + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent The parent resource name, for example projects/my-project-id. + * @param {().GooglePrivacyDlpV2DeidentifyContentRequest} params.requestBody 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 + */ + deidentify( + params?: Params$Resource$Projects$Content$Deidentify, + options?: MethodOptions + ): GaxiosPromise; + deidentify( + params: Params$Resource$Projects$Content$Deidentify, + options: + | MethodOptions + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyContentResponse + >, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyContentResponse + > + ): void; + deidentify( + params: Params$Resource$Projects$Content$Deidentify, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyContentResponse + > + ): void; + deidentify( + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyContentResponse + > + ): void; + deidentify( + paramsOrCallback?: + | Params$Resource$Projects$Content$Deidentify + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyContentResponse + >, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyContentResponse + >, + callback?: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyContentResponse + > + ): void | GaxiosPromise< + Schema$GooglePrivacyDlpV2DeidentifyContentResponse + > { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Content$Deidentify; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Content$Deidentify; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/content:deidentify').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest< + Schema$GooglePrivacyDlpV2DeidentifyContentResponse + >(parameters); + } + } + + /** + * dlp.projects.content.inspect + * @desc Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text, + * @alias dlp.projects.content.inspect + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent The parent resource name, for example projects/my-project-id. + * @param {().GooglePrivacyDlpV2InspectContentRequest} params.requestBody 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 + */ + inspect( + params?: Params$Resource$Projects$Content$Inspect, + options?: MethodOptions + ): GaxiosPromise; + inspect( + params: Params$Resource$Projects$Content$Inspect, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2InspectContentResponse + > + ): void; + inspect( + params: Params$Resource$Projects$Content$Inspect, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2InspectContentResponse + > + ): void; + inspect( + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2InspectContentResponse + > + ): void; + inspect( + paramsOrCallback?: + | Params$Resource$Projects$Content$Inspect + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GooglePrivacyDlpV2InspectContentResponse + > + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Content$Inspect; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Content$Inspect; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/content:inspect').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest< + Schema$GooglePrivacyDlpV2InspectContentResponse + >(parameters); + } + } + + /** + * dlp.projects.content.reidentify + * @desc Re-identifies content that has been de-identified. See https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example to learn more. + * @alias dlp.projects.content.reidentify + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent Required. The parent resource name. + * @param {().GooglePrivacyDlpV2ReidentifyContentRequest} params.requestBody 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 + */ + reidentify( + params?: Params$Resource$Projects$Content$Reidentify, + options?: MethodOptions + ): GaxiosPromise; + reidentify( + params: Params$Resource$Projects$Content$Reidentify, + options: + | MethodOptions + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2ReidentifyContentResponse + >, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ReidentifyContentResponse + > + ): void; + reidentify( + params: Params$Resource$Projects$Content$Reidentify, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ReidentifyContentResponse + > + ): void; + reidentify( + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ReidentifyContentResponse + > + ): void; + reidentify( + paramsOrCallback?: + | Params$Resource$Projects$Content$Reidentify + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2ReidentifyContentResponse + >, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2ReidentifyContentResponse + >, + callback?: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ReidentifyContentResponse + > + ): void | GaxiosPromise< + Schema$GooglePrivacyDlpV2ReidentifyContentResponse + > { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Content$Reidentify; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Content$Reidentify; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/content:reidentify').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest< + Schema$GooglePrivacyDlpV2ReidentifyContentResponse + >(parameters); + } + } + } + + export interface Params$Resource$Projects$Content$Deidentify + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * The parent resource name, for example projects/my-project-id. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2DeidentifyContentRequest; + } + export interface Params$Resource$Projects$Content$Inspect + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * The parent resource name, for example projects/my-project-id. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2InspectContentRequest; + } + export interface Params$Resource$Projects$Content$Reidentify + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The parent resource name. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2ReidentifyContentRequest; + } + + export class Resource$Projects$Deidentifytemplates { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * dlp.projects.deidentifyTemplates.create + * @desc Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * @alias dlp.projects.deidentifyTemplates.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * @param {().GooglePrivacyDlpV2CreateDeidentifyTemplateRequest} params.requestBody 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$Deidentifytemplates$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Projects$Deidentifytemplates$Create, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > + ): void; + create( + params: Params$Resource$Projects$Deidentifytemplates$Create, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > + ): void; + create( + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > + ): void; + create( + paramsOrCallback?: + | Params$Resource$Projects$Deidentifytemplates$Create + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Deidentifytemplates$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Deidentifytemplates$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * dlp.projects.deidentifyTemplates.delete + * @desc Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * @alias dlp.projects.deidentifyTemplates.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + * @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$Deidentifytemplates$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Projects$Deidentifytemplates$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Deidentifytemplates$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Projects$Deidentifytemplates$Delete + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Deidentifytemplates$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Deidentifytemplates$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * dlp.projects.deidentifyTemplates.get + * @desc Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * @alias dlp.projects.deidentifyTemplates.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + * @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$Deidentifytemplates$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Projects$Deidentifytemplates$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > + ): void; + get( + params: Params$Resource$Projects$Deidentifytemplates$Get, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > + ): void; + get( + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > + ): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Deidentifytemplates$Get + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Deidentifytemplates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Deidentifytemplates$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * dlp.projects.deidentifyTemplates.list + * @desc Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * @alias dlp.projects.deidentifyTemplates.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.locationId The geographic location where deidentifications templates will be retrieved from. Use `-` for all locations. Reserved for future extensions. + * @param {string=} params.orderBy Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to time the template was created. - `update_time`: corresponds to time the template was last updated. - `name`: corresponds to template's name. - `display_name`: corresponds to template's display name. + * @param {integer=} params.pageSize Optional size of the page, can be limited by server. If zero server returns a page of max size 100. + * @param {string=} params.pageToken Optional page token to continue retrieval. Comes from previous call to `ListDeidentifyTemplates`. + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * @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$Deidentifytemplates$List, + options?: MethodOptions + ): GaxiosPromise; + list( + params: Params$Resource$Projects$Deidentifytemplates$List, + options: + | MethodOptions + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse + >, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse + > + ): void; + list( + params: Params$Resource$Projects$Deidentifytemplates$List, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse + > + ): void; + list( + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse + > + ): void; + list( + paramsOrCallback?: + | Params$Resource$Projects$Deidentifytemplates$List + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse + >, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse + >, + callback?: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse + > + ): void | GaxiosPromise< + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse + > { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Deidentifytemplates$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Deidentifytemplates$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest< + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse + >(parameters, callback); + } else { + return createAPIRequest< + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse + >(parameters); + } + } + + /** + * dlp.projects.deidentifyTemplates.patch + * @desc Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + * @alias dlp.projects.deidentifyTemplates.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + * @param {().GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest} params.requestBody 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 + */ + patch( + params?: Params$Resource$Projects$Deidentifytemplates$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Projects$Deidentifytemplates$Patch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > + ): void; + patch( + params: Params$Resource$Projects$Deidentifytemplates$Patch, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > + ): void; + patch( + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > + ): void; + patch( + paramsOrCallback?: + | Params$Resource$Projects$Deidentifytemplates$Patch + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyTemplate + > + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Deidentifytemplates$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Deidentifytemplates$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Projects$Deidentifytemplates$Create + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2CreateDeidentifyTemplateRequest; + } + export interface Params$Resource$Projects$Deidentifytemplates$Delete + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + */ + name?: string; + } + export interface Params$Resource$Projects$Deidentifytemplates$Get + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + */ + name?: string; + } + export interface Params$Resource$Projects$Deidentifytemplates$List + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * The geographic location where deidentifications templates will be retrieved from. Use `-` for all locations. Reserved for future extensions. + */ + locationId?: string; + /** + * Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to time the template was created. - `update_time`: corresponds to time the template was last updated. - `name`: corresponds to template's name. - `display_name`: corresponds to template's display name. + */ + orderBy?: string; + /** + * Optional size of the page, can be limited by server. If zero server returns a page of max size 100. + */ + pageSize?: number; + /** + * Optional page token to continue retrieval. Comes from previous call to `ListDeidentifyTemplates`. + */ + pageToken?: string; + /** + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + */ + parent?: string; + } + export interface Params$Resource$Projects$Deidentifytemplates$Patch + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest; + } + + export class Resource$Projects$Dlpjobs { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * dlp.projects.dlpJobs.cancel + * @desc Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * @alias dlp.projects.dlpJobs.cancel + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. The name of the DlpJob resource to be cancelled. + * @param {().GooglePrivacyDlpV2CancelDlpJobRequest} params.requestBody 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 + */ + cancel( + params?: Params$Resource$Projects$Dlpjobs$Cancel, + options?: MethodOptions + ): GaxiosPromise; + cancel( + params: Params$Resource$Projects$Dlpjobs$Cancel, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + cancel( + params: Params$Resource$Projects$Dlpjobs$Cancel, + callback: BodyResponseCallback + ): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: + | Params$Resource$Projects$Dlpjobs$Cancel + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Dlpjobs$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Dlpjobs$Cancel; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+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); + } + } + + /** + * dlp.projects.dlpJobs.create + * @desc Creates a new job to inspect storage or calculate risk metrics. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. + * @alias dlp.projects.dlpJobs.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id. + * @param {().GooglePrivacyDlpV2CreateDlpJobRequest} params.requestBody 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$Dlpjobs$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Projects$Dlpjobs$Create, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Projects$Dlpjobs$Create, + callback: BodyResponseCallback + ): void; + create( + callback: BodyResponseCallback + ): void; + create( + paramsOrCallback?: + | Params$Resource$Projects$Dlpjobs$Create + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Dlpjobs$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Dlpjobs$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/dlpJobs').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * dlp.projects.dlpJobs.delete + * @desc Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be cancelled if possible. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * @alias dlp.projects.dlpJobs.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. The name of the DlpJob 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$Projects$Dlpjobs$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Projects$Dlpjobs$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Dlpjobs$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Projects$Dlpjobs$Delete + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Dlpjobs$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Dlpjobs$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * dlp.projects.dlpJobs.get + * @desc Gets the latest state of a long-running DlpJob. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * @alias dlp.projects.dlpJobs.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. The name of the DlpJob 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$Dlpjobs$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Projects$Dlpjobs$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Dlpjobs$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Dlpjobs$Get + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Dlpjobs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Dlpjobs$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * dlp.projects.dlpJobs.list + * @desc Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * @alias dlp.projects.dlpJobs.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.filter Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of ` `. * Supported fields/values for inspect jobs: - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - `trigger_name` - The resource name of the trigger that created job. - 'end_time` - Corresponds to time the job finished. - 'start_time` - Corresponds to time the job finished. * Supported fields for risk analysis jobs: - `state` - RUNNING|CANCELED|FINISHED|FAILED - 'end_time` - Corresponds to time the job finished. - 'start_time` - Corresponds to time the job finished. * The operator must be `=` or `!=`. Examples: * inspected_storage = cloud_storage AND state = done * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = done OR state = canceled) * end_time > \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters. + * @param {string=} params.locationId The geographic location where jobs will be retrieved from. Use `-` for all locations. Reserved for future extensions. + * @param {string=} params.orderBy Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc, end_time asc, create_time desc` Supported fields are: - `create_time`: corresponds to time the job was created. - `end_time`: corresponds to time the job ended. - `name`: corresponds to job's name. - `state`: corresponds to `state` + * @param {integer=} params.pageSize The standard list page size. + * @param {string=} params.pageToken The standard list page token. + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id. + * @param {string=} params.type The type of job. Defaults to `DlpJobType.INSPECT` + * @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$Dlpjobs$List, + options?: MethodOptions + ): GaxiosPromise; + list( + params: Params$Resource$Projects$Dlpjobs$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListDlpJobsResponse + > + ): void; + list( + params: Params$Resource$Projects$Dlpjobs$List, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListDlpJobsResponse + > + ): void; + list( + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListDlpJobsResponse + > + ): void; + list( + paramsOrCallback?: + | Params$Resource$Projects$Dlpjobs$List + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListDlpJobsResponse + > + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Dlpjobs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Dlpjobs$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/dlpJobs').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$Dlpjobs$Cancel + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The name of the DlpJob resource to be cancelled. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2CancelDlpJobRequest; + } + export interface Params$Resource$Projects$Dlpjobs$Create + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The parent resource name, for example projects/my-project-id. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2CreateDlpJobRequest; + } + export interface Params$Resource$Projects$Dlpjobs$Delete + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The name of the DlpJob resource to be deleted. + */ + name?: string; + } + export interface Params$Resource$Projects$Dlpjobs$Get + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The name of the DlpJob resource. + */ + name?: string; + } + export interface Params$Resource$Projects$Dlpjobs$List + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of ` `. * Supported fields/values for inspect jobs: - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - `trigger_name` - The resource name of the trigger that created job. - 'end_time` - Corresponds to time the job finished. - 'start_time` - Corresponds to time the job finished. * Supported fields for risk analysis jobs: - `state` - RUNNING|CANCELED|FINISHED|FAILED - 'end_time` - Corresponds to time the job finished. - 'start_time` - Corresponds to time the job finished. * The operator must be `=` or `!=`. Examples: * inspected_storage = cloud_storage AND state = done * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = done OR state = canceled) * end_time > \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters. + */ + filter?: string; + /** + * The geographic location where jobs will be retrieved from. Use `-` for all locations. Reserved for future extensions. + */ + locationId?: string; + /** + * Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc, end_time asc, create_time desc` Supported fields are: - `create_time`: corresponds to time the job was created. - `end_time`: corresponds to time the job ended. - `name`: corresponds to job's name. - `state`: corresponds to `state` + */ + orderBy?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + /** + * Required. The parent resource name, for example projects/my-project-id. + */ + parent?: string; + /** + * The type of job. Defaults to `DlpJobType.INSPECT` + */ + type?: string; + } + + export class Resource$Projects$Image { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * dlp.projects.image.redact + * @desc Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. + * @alias dlp.projects.image.redact + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent The parent resource name, for example projects/my-project-id. + * @param {().GooglePrivacyDlpV2RedactImageRequest} params.requestBody 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 + */ + redact( + params?: Params$Resource$Projects$Image$Redact, + options?: MethodOptions + ): GaxiosPromise; + redact( + params: Params$Resource$Projects$Image$Redact, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2RedactImageResponse + > + ): void; + redact( + params: Params$Resource$Projects$Image$Redact, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2RedactImageResponse + > + ): void; + redact( + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2RedactImageResponse + > + ): void; + redact( + paramsOrCallback?: + | Params$Resource$Projects$Image$Redact + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GooglePrivacyDlpV2RedactImageResponse + > + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Image$Redact; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Image$Redact; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/image:redact').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Projects$Image$Redact + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * The parent resource name, for example projects/my-project-id. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2RedactImageRequest; + } + + export class Resource$Projects$Inspecttemplates { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * dlp.projects.inspectTemplates.create + * @desc Creates an InspectTemplate for re-using frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * @alias dlp.projects.inspectTemplates.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * @param {().GooglePrivacyDlpV2CreateInspectTemplateRequest} params.requestBody 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$Inspecttemplates$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Projects$Inspecttemplates$Create, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Projects$Inspecttemplates$Create, + callback: BodyResponseCallback + ): void; + create( + callback: BodyResponseCallback + ): void; + create( + paramsOrCallback?: + | Params$Resource$Projects$Inspecttemplates$Create + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Inspecttemplates$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Inspecttemplates$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * dlp.projects.inspectTemplates.delete + * @desc Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * @alias dlp.projects.inspectTemplates.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + * @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$Inspecttemplates$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Projects$Inspecttemplates$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Inspecttemplates$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Projects$Inspecttemplates$Delete + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Inspecttemplates$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Inspecttemplates$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * dlp.projects.inspectTemplates.get + * @desc Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * @alias dlp.projects.inspectTemplates.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + * @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$Inspecttemplates$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Projects$Inspecttemplates$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Inspecttemplates$Get, + callback: BodyResponseCallback + ): void; + get( + callback: BodyResponseCallback + ): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Inspecttemplates$Get + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Inspecttemplates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Inspecttemplates$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * dlp.projects.inspectTemplates.list + * @desc Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * @alias dlp.projects.inspectTemplates.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.locationId The geographic location where inspection templates will be retrieved from. Use `-` for all locations. Reserved for future extensions. + * @param {string=} params.orderBy Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to time the template was created. - `update_time`: corresponds to time the template was last updated. - `name`: corresponds to template's name. - `display_name`: corresponds to template's display name. + * @param {integer=} params.pageSize Optional size of the page, can be limited by server. If zero server returns a page of max size 100. + * @param {string=} params.pageToken Optional page token to continue retrieval. Comes from previous call to `ListInspectTemplates`. + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * @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$Inspecttemplates$List, + options?: MethodOptions + ): GaxiosPromise; + list( + params: Params$Resource$Projects$Inspecttemplates$List, + options: + | MethodOptions + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse + >, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse + > + ): void; + list( + params: Params$Resource$Projects$Inspecttemplates$List, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse + > + ): void; + list( + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse + > + ): void; + list( + paramsOrCallback?: + | Params$Resource$Projects$Inspecttemplates$List + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse + >, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse + >, + callback?: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse + > + ): void | GaxiosPromise< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse + > { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Inspecttemplates$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Inspecttemplates$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse + >(parameters); + } + } + + /** + * dlp.projects.inspectTemplates.patch + * @desc Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * @alias dlp.projects.inspectTemplates.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + * @param {().GooglePrivacyDlpV2UpdateInspectTemplateRequest} params.requestBody 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 + */ + patch( + params?: Params$Resource$Projects$Inspecttemplates$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Projects$Inspecttemplates$Patch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Inspecttemplates$Patch, + callback: BodyResponseCallback + ): void; + patch( + callback: BodyResponseCallback + ): void; + patch( + paramsOrCallback?: + | Params$Resource$Projects$Inspecttemplates$Patch + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Inspecttemplates$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Inspecttemplates$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Projects$Inspecttemplates$Create + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2CreateInspectTemplateRequest; + } + export interface Params$Resource$Projects$Inspecttemplates$Delete + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + */ + name?: string; + } + export interface Params$Resource$Projects$Inspecttemplates$Get + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + */ + name?: string; + } + export interface Params$Resource$Projects$Inspecttemplates$List + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * The geographic location where inspection templates will be retrieved from. Use `-` for all locations. Reserved for future extensions. + */ + locationId?: string; + /** + * Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to time the template was created. - `update_time`: corresponds to time the template was last updated. - `name`: corresponds to template's name. - `display_name`: corresponds to template's display name. + */ + orderBy?: string; + /** + * Optional size of the page, can be limited by server. If zero server returns a page of max size 100. + */ + pageSize?: number; + /** + * Optional page token to continue retrieval. Comes from previous call to `ListInspectTemplates`. + */ + pageToken?: string; + /** + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + */ + parent?: string; + } + export interface Params$Resource$Projects$Inspecttemplates$Patch + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2UpdateInspectTemplateRequest; + } + + export class Resource$Projects$Jobtriggers { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * dlp.projects.jobTriggers.activate + * @desc Activate a job trigger. Causes the immediate execute of a trigger instead of waiting on the trigger event to occur. + * @alias dlp.projects.jobTriggers.activate + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of the trigger to activate, for example `projects/dlp-test-project/jobTriggers/53234423`. + * @param {().GooglePrivacyDlpV2ActivateJobTriggerRequest} params.requestBody 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 + */ + activate( + params?: Params$Resource$Projects$Jobtriggers$Activate, + options?: MethodOptions + ): GaxiosPromise; + activate( + params: Params$Resource$Projects$Jobtriggers$Activate, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + activate( + params: Params$Resource$Projects$Jobtriggers$Activate, + callback: BodyResponseCallback + ): void; + activate( + callback: BodyResponseCallback + ): void; + activate( + paramsOrCallback?: + | Params$Resource$Projects$Jobtriggers$Activate + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Jobtriggers$Activate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobtriggers$Activate; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}:activate').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * dlp.projects.jobTriggers.create + * @desc Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * @alias dlp.projects.jobTriggers.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id. + * @param {().GooglePrivacyDlpV2CreateJobTriggerRequest} params.requestBody 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$Jobtriggers$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Projects$Jobtriggers$Create, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Projects$Jobtriggers$Create, + callback: BodyResponseCallback + ): void; + create( + callback: BodyResponseCallback + ): void; + create( + paramsOrCallback?: + | Params$Resource$Projects$Jobtriggers$Create + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Jobtriggers$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobtriggers$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/jobTriggers').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * dlp.projects.jobTriggers.delete + * @desc Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * @alias dlp.projects.jobTriggers.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. + * @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$Jobtriggers$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Projects$Jobtriggers$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Jobtriggers$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Projects$Jobtriggers$Delete + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Jobtriggers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobtriggers$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * dlp.projects.jobTriggers.get + * @desc Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * @alias dlp.projects.jobTriggers.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. + * @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$Jobtriggers$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Projects$Jobtriggers$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Jobtriggers$Get, + callback: BodyResponseCallback + ): void; + get( + callback: BodyResponseCallback + ): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Jobtriggers$Get + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Jobtriggers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobtriggers$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * dlp.projects.jobTriggers.list + * @desc Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * @alias dlp.projects.jobTriggers.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.filter Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of ` `. * Supported fields/values for inspect jobs: - `status` - HEALTHY|PAUSED|CANCELLED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by quotation marks. Nanoseconds are ignored. - 'error_count' - Number of errors that have occurred while running. * The operator must be `=` or `!=` for status and inspected_storage. Examples: * inspected_storage = cloud_storage AND status = HEALTHY * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) * last_run_time > \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters. + * @param {string=} params.locationId The geographic location where job triggers will be retrieved from. Use `-` for all locations. Reserved for future extensions. + * @param {string=} params.orderBy Optional comma separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to time the JobTrigger was created. - `update_time`: corresponds to time the JobTrigger was last updated. - `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: corresponds to JobTrigger's name. - `display_name`: corresponds to JobTrigger's display name. - `status`: corresponds to JobTrigger's status. + * @param {integer=} params.pageSize Optional size of the page, can be limited by a server. + * @param {string=} params.pageToken Optional page token to continue retrieval. Comes from previous call to ListJobTriggers. `order_by` field must not change for subsequent calls. + * @param {string} params.parent Required. The parent resource name, for example `projects/my-project-id`. + * @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$Jobtriggers$List, + options?: MethodOptions + ): GaxiosPromise; + list( + params: Params$Resource$Projects$Jobtriggers$List, + options: + | MethodOptions + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListJobTriggersResponse + >, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListJobTriggersResponse + > + ): void; + list( + params: Params$Resource$Projects$Jobtriggers$List, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListJobTriggersResponse + > + ): void; + list( + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListJobTriggersResponse + > + ): void; + list( + paramsOrCallback?: + | Params$Resource$Projects$Jobtriggers$List + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListJobTriggersResponse + >, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListJobTriggersResponse + >, + callback?: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListJobTriggersResponse + > + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Jobtriggers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobtriggers$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+parent}/jobTriggers').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest< + Schema$GooglePrivacyDlpV2ListJobTriggersResponse + >(parameters); + } + } + + /** + * dlp.projects.jobTriggers.patch + * @desc Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * @alias dlp.projects.jobTriggers.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. + * @param {().GooglePrivacyDlpV2UpdateJobTriggerRequest} params.requestBody 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 + */ + patch( + params?: Params$Resource$Projects$Jobtriggers$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Projects$Jobtriggers$Patch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Jobtriggers$Patch, + callback: BodyResponseCallback + ): void; + patch( + callback: BodyResponseCallback + ): void; + patch( + paramsOrCallback?: + | Params$Resource$Projects$Jobtriggers$Patch + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Jobtriggers$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobtriggers$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Projects$Jobtriggers$Activate + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of the trigger to activate, for example `projects/dlp-test-project/jobTriggers/53234423`. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2ActivateJobTriggerRequest; + } + export interface Params$Resource$Projects$Jobtriggers$Create + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The parent resource name, for example projects/my-project-id. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2CreateJobTriggerRequest; + } + export interface Params$Resource$Projects$Jobtriggers$Delete + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. + */ + name?: string; + } + export interface Params$Resource$Projects$Jobtriggers$Get + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. + */ + name?: string; + } + export interface Params$Resource$Projects$Jobtriggers$List + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of ` `. * Supported fields/values for inspect jobs: - `status` - HEALTHY|PAUSED|CANCELLED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by quotation marks. Nanoseconds are ignored. - 'error_count' - Number of errors that have occurred while running. * The operator must be `=` or `!=` for status and inspected_storage. Examples: * inspected_storage = cloud_storage AND status = HEALTHY * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) * last_run_time > \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters. + */ + filter?: string; + /** + * The geographic location where job triggers will be retrieved from. Use `-` for all locations. Reserved for future extensions. + */ + locationId?: string; + /** + * Optional comma separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to time the JobTrigger was created. - `update_time`: corresponds to time the JobTrigger was last updated. - `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: corresponds to JobTrigger's name. - `display_name`: corresponds to JobTrigger's display name. - `status`: corresponds to JobTrigger's status. + */ + orderBy?: string; + /** + * Optional size of the page, can be limited by a server. + */ + pageSize?: number; + /** + * Optional page token to continue retrieval. Comes from previous call to ListJobTriggers. `order_by` field must not change for subsequent calls. + */ + pageToken?: string; + /** + * Required. The parent resource name, for example `projects/my-project-id`. + */ + parent?: string; + } + export interface Params$Resource$Projects$Jobtriggers$Patch + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2UpdateJobTriggerRequest; + } + + export class Resource$Projects$Locations { + context: APIRequestContext; + content: Resource$Projects$Locations$Content; + deidentifyTemplates: Resource$Projects$Locations$Deidentifytemplates; + dlpJobs: Resource$Projects$Locations$Dlpjobs; + image: Resource$Projects$Locations$Image; + inspectTemplates: Resource$Projects$Locations$Inspecttemplates; + jobTriggers: Resource$Projects$Locations$Jobtriggers; + storedInfoTypes: Resource$Projects$Locations$Storedinfotypes; + constructor(context: APIRequestContext) { + this.context = context; + this.content = new Resource$Projects$Locations$Content(this.context); + this.deidentifyTemplates = new Resource$Projects$Locations$Deidentifytemplates( + this.context + ); + this.dlpJobs = new Resource$Projects$Locations$Dlpjobs(this.context); + this.image = new Resource$Projects$Locations$Image(this.context); + this.inspectTemplates = new Resource$Projects$Locations$Inspecttemplates( + this.context + ); + this.jobTriggers = new Resource$Projects$Locations$Jobtriggers( + this.context + ); + this.storedInfoTypes = new Resource$Projects$Locations$Storedinfotypes( this.context ); } } - export class Resource$Projects$Content { + export class Resource$Projects$Locations$Content { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * dlp.projects.content.deidentify + * dlp.projects.locations.content.deidentify * @desc De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. - * @alias dlp.projects.content.deidentify + * @alias dlp.projects.locations.content.deidentify * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.locationId The geographic location to process de-identification. Reserved for future extensions. * @param {string} params.parent The parent resource name, for example projects/my-project-id. - * @param {().GooglePrivacyDlpV2DeidentifyContentRequest} params.resource Request body data + * @param {().GooglePrivacyDlpV2DeidentifyContentRequest} params.requestBody 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 */ deidentify( - params?: Params$Resource$Projects$Content$Deidentify, + params?: Params$Resource$Projects$Locations$Content$Deidentify, options?: MethodOptions ): GaxiosPromise; deidentify( - params: Params$Resource$Projects$Content$Deidentify, + params: Params$Resource$Projects$Locations$Content$Deidentify, options: | MethodOptions | BodyResponseCallback< @@ -4522,7 +8812,7 @@ export namespace dlp_v2 { > ): void; deidentify( - params: Params$Resource$Projects$Content$Deidentify, + params: Params$Resource$Projects$Locations$Content$Deidentify, callback: BodyResponseCallback< Schema$GooglePrivacyDlpV2DeidentifyContentResponse > @@ -4534,7 +8824,7 @@ export namespace dlp_v2 { ): void; deidentify( paramsOrCallback?: - | Params$Resource$Projects$Content$Deidentify + | Params$Resource$Projects$Locations$Content$Deidentify | BodyResponseCallback< Schema$GooglePrivacyDlpV2DeidentifyContentResponse >, @@ -4550,12 +8840,12 @@ export namespace dlp_v2 { Schema$GooglePrivacyDlpV2DeidentifyContentResponse > { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Content$Deidentify; + {}) as Params$Resource$Projects$Locations$Content$Deidentify; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Content$Deidentify; + params = {} as Params$Resource$Projects$Locations$Content$Deidentify; options = {}; } @@ -4568,17 +8858,17 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/content:deidentify').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: ( + rootUrl + + '/v2/{+parent}/locations/{locationId}/content:deidentify' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], context: this.context, }; if (callback) { @@ -4594,24 +8884,25 @@ export namespace dlp_v2 { } /** - * dlp.projects.content.inspect + * dlp.projects.locations.content.inspect * @desc Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text, - * @alias dlp.projects.content.inspect + * @alias dlp.projects.locations.content.inspect * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.locationId The geographic location to process content inspection. Reserved for future extensions. * @param {string} params.parent The parent resource name, for example projects/my-project-id. - * @param {().GooglePrivacyDlpV2InspectContentRequest} params.resource Request body data + * @param {().GooglePrivacyDlpV2InspectContentRequest} params.requestBody 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 */ inspect( - params?: Params$Resource$Projects$Content$Inspect, + params?: Params$Resource$Projects$Locations$Content$Inspect, options?: MethodOptions ): GaxiosPromise; inspect( - params: Params$Resource$Projects$Content$Inspect, + params: Params$Resource$Projects$Locations$Content$Inspect, options: | MethodOptions | BodyResponseCallback, @@ -4620,7 +8911,7 @@ export namespace dlp_v2 { > ): void; inspect( - params: Params$Resource$Projects$Content$Inspect, + params: Params$Resource$Projects$Locations$Content$Inspect, callback: BodyResponseCallback< Schema$GooglePrivacyDlpV2InspectContentResponse > @@ -4632,7 +8923,7 @@ export namespace dlp_v2 { ): void; inspect( paramsOrCallback?: - | Params$Resource$Projects$Content$Inspect + | Params$Resource$Projects$Locations$Content$Inspect | BodyResponseCallback, optionsOrCallback?: | MethodOptions @@ -4642,12 +8933,12 @@ export namespace dlp_v2 { > ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Content$Inspect; + {}) as Params$Resource$Projects$Locations$Content$Inspect; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Content$Inspect; + params = {} as Params$Resource$Projects$Locations$Content$Inspect; options = {}; } @@ -4660,17 +8951,16 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/content:inspect').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: ( + rootUrl + '/v2/{+parent}/locations/{locationId}/content:inspect' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], context: this.context, }; if (callback) { @@ -4686,24 +8976,25 @@ export namespace dlp_v2 { } /** - * dlp.projects.content.reidentify + * dlp.projects.locations.content.reidentify * @desc Re-identifies content that has been de-identified. See https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example to learn more. - * @alias dlp.projects.content.reidentify + * @alias dlp.projects.locations.content.reidentify * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.parent The parent resource name. - * @param {().GooglePrivacyDlpV2ReidentifyContentRequest} params.resource Request body data + * @param {string} params.locationId The geographic location to process content reidentification. Reserved for future extensions. + * @param {string} params.parent Required. The parent resource name. + * @param {().GooglePrivacyDlpV2ReidentifyContentRequest} params.requestBody 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 */ reidentify( - params?: Params$Resource$Projects$Content$Reidentify, + params?: Params$Resource$Projects$Locations$Content$Reidentify, options?: MethodOptions ): GaxiosPromise; reidentify( - params: Params$Resource$Projects$Content$Reidentify, + params: Params$Resource$Projects$Locations$Content$Reidentify, options: | MethodOptions | BodyResponseCallback< @@ -4714,7 +9005,7 @@ export namespace dlp_v2 { > ): void; reidentify( - params: Params$Resource$Projects$Content$Reidentify, + params: Params$Resource$Projects$Locations$Content$Reidentify, callback: BodyResponseCallback< Schema$GooglePrivacyDlpV2ReidentifyContentResponse > @@ -4726,7 +9017,7 @@ export namespace dlp_v2 { ): void; reidentify( paramsOrCallback?: - | Params$Resource$Projects$Content$Reidentify + | Params$Resource$Projects$Locations$Content$Reidentify | BodyResponseCallback< Schema$GooglePrivacyDlpV2ReidentifyContentResponse >, @@ -4742,12 +9033,12 @@ export namespace dlp_v2 { Schema$GooglePrivacyDlpV2ReidentifyContentResponse > { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Content$Reidentify; + {}) as Params$Resource$Projects$Locations$Content$Reidentify; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Content$Reidentify; + params = {} as Params$Resource$Projects$Locations$Content$Reidentify; options = {}; } @@ -4758,19 +9049,19 @@ export namespace dlp_v2 { const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2/{+parent}/content:reidentify').replace( - /([^:]\/)\/+/g, - '$1' - ), + options: Object.assign( + { + url: ( + rootUrl + + '/v2/{+parent}/locations/{locationId}/content:reidentify' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], context: this.context, }; if (callback) { @@ -4786,13 +9077,17 @@ export namespace dlp_v2 { } } - export interface Params$Resource$Projects$Content$Deidentify + export interface Params$Resource$Projects$Locations$Content$Deidentify extends StandardParameters { /** * Auth client or API Key for the request */ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + /** + * The geographic location to process de-identification. Reserved for future extensions. + */ + locationId?: string; /** * The parent resource name, for example projects/my-project-id. */ @@ -4803,13 +9098,17 @@ export namespace dlp_v2 { */ requestBody?: Schema$GooglePrivacyDlpV2DeidentifyContentRequest; } - export interface Params$Resource$Projects$Content$Inspect + export interface Params$Resource$Projects$Locations$Content$Inspect extends StandardParameters { /** * Auth client or API Key for the request */ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + /** + * The geographic location to process content inspection. Reserved for future extensions. + */ + locationId?: string; /** * The parent resource name, for example projects/my-project-id. */ @@ -4820,7 +9119,7 @@ export namespace dlp_v2 { */ requestBody?: Schema$GooglePrivacyDlpV2InspectContentRequest; } - export interface Params$Resource$Projects$Content$Reidentify + export interface Params$Resource$Projects$Locations$Content$Reidentify extends StandardParameters { /** * Auth client or API Key for the request @@ -4828,7 +9127,11 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * The parent resource name. + * The geographic location to process content reidentification. Reserved for future extensions. + */ + locationId?: string; + /** + * Required. The parent resource name. */ parent?: string; @@ -4838,31 +9141,32 @@ export namespace dlp_v2 { requestBody?: Schema$GooglePrivacyDlpV2ReidentifyContentRequest; } - export class Resource$Projects$Deidentifytemplates { + export class Resource$Projects$Locations$Deidentifytemplates { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * dlp.projects.deidentifyTemplates.create + * dlp.projects.locations.deidentifyTemplates.create * @desc Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. - * @alias dlp.projects.deidentifyTemplates.create + * @alias dlp.projects.locations.deidentifyTemplates.create * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.parent The parent resource name, for example projects/my-project-id or organizations/my-org-id. - * @param {().GooglePrivacyDlpV2CreateDeidentifyTemplateRequest} params.resource Request body data + * @param {string} params.locationId The geographic location to store the deidentification template. Reserved for future extensions. + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * @param {().GooglePrivacyDlpV2CreateDeidentifyTemplateRequest} params.requestBody 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$Deidentifytemplates$Create, + params?: Params$Resource$Projects$Locations$Deidentifytemplates$Create, options?: MethodOptions ): GaxiosPromise; create( - params: Params$Resource$Projects$Deidentifytemplates$Create, + params: Params$Resource$Projects$Locations$Deidentifytemplates$Create, options: | MethodOptions | BodyResponseCallback, @@ -4871,7 +9175,7 @@ export namespace dlp_v2 { > ): void; create( - params: Params$Resource$Projects$Deidentifytemplates$Create, + params: Params$Resource$Projects$Locations$Deidentifytemplates$Create, callback: BodyResponseCallback< Schema$GooglePrivacyDlpV2DeidentifyTemplate > @@ -4883,7 +9187,7 @@ export namespace dlp_v2 { ): void; create( paramsOrCallback?: - | Params$Resource$Projects$Deidentifytemplates$Create + | Params$Resource$Projects$Locations$Deidentifytemplates$Create | BodyResponseCallback, optionsOrCallback?: | MethodOptions @@ -4893,12 +9197,12 @@ export namespace dlp_v2 { > ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Deidentifytemplates$Create; + {}) as Params$Resource$Projects$Locations$Deidentifytemplates$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Deidentifytemplates$Create; + params = {} as Params$Resource$Projects$Locations$Deidentifytemplates$Create; options = {}; } @@ -4911,17 +9215,17 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: ( + rootUrl + + '/v2/{+parent}/locations/{locationId}/deidentifyTemplates' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], context: this.context, }; if (callback) { @@ -4937,34 +9241,34 @@ export namespace dlp_v2 { } /** - * dlp.projects.deidentifyTemplates.delete + * dlp.projects.locations.deidentifyTemplates.delete * @desc Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. - * @alias dlp.projects.deidentifyTemplates.delete + * @alias dlp.projects.locations.deidentifyTemplates.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + * @param {string} params.name Required. Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. * @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$Deidentifytemplates$Delete, + params?: Params$Resource$Projects$Locations$Deidentifytemplates$Delete, options?: MethodOptions ): GaxiosPromise; delete( - params: Params$Resource$Projects$Deidentifytemplates$Delete, + params: Params$Resource$Projects$Locations$Deidentifytemplates$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Projects$Deidentifytemplates$Delete, + params: Params$Resource$Projects$Locations$Deidentifytemplates$Delete, callback: BodyResponseCallback ): void; delete(callback: BodyResponseCallback): void; delete( paramsOrCallback?: - | Params$Resource$Projects$Deidentifytemplates$Delete + | Params$Resource$Projects$Locations$Deidentifytemplates$Delete | BodyResponseCallback, optionsOrCallback?: | MethodOptions @@ -4972,12 +9276,12 @@ export namespace dlp_v2 { callback?: BodyResponseCallback ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Deidentifytemplates$Delete; + {}) as Params$Resource$Projects$Locations$Deidentifytemplates$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Deidentifytemplates$Delete; + params = {} as Params$Resource$Projects$Locations$Deidentifytemplates$Delete; options = {}; } @@ -5008,23 +9312,23 @@ export namespace dlp_v2 { } /** - * dlp.projects.deidentifyTemplates.get + * dlp.projects.locations.deidentifyTemplates.get * @desc Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. - * @alias dlp.projects.deidentifyTemplates.get + * @alias dlp.projects.locations.deidentifyTemplates.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + * @param {string} params.name Required. Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. * @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$Deidentifytemplates$Get, + params?: Params$Resource$Projects$Locations$Deidentifytemplates$Get, options?: MethodOptions ): GaxiosPromise; get( - params: Params$Resource$Projects$Deidentifytemplates$Get, + params: Params$Resource$Projects$Locations$Deidentifytemplates$Get, options: | MethodOptions | BodyResponseCallback, @@ -5033,7 +9337,7 @@ export namespace dlp_v2 { > ): void; get( - params: Params$Resource$Projects$Deidentifytemplates$Get, + params: Params$Resource$Projects$Locations$Deidentifytemplates$Get, callback: BodyResponseCallback< Schema$GooglePrivacyDlpV2DeidentifyTemplate > @@ -5045,7 +9349,7 @@ export namespace dlp_v2 { ): void; get( paramsOrCallback?: - | Params$Resource$Projects$Deidentifytemplates$Get + | Params$Resource$Projects$Locations$Deidentifytemplates$Get | BodyResponseCallback, optionsOrCallback?: | MethodOptions @@ -5055,12 +9359,12 @@ export namespace dlp_v2 { > ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Deidentifytemplates$Get; + {}) as Params$Resource$Projects$Locations$Deidentifytemplates$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Deidentifytemplates$Get; + params = {} as Params$Resource$Projects$Locations$Deidentifytemplates$Get; options = {}; } @@ -5096,26 +9400,27 @@ export namespace dlp_v2 { } /** - * dlp.projects.deidentifyTemplates.list + * dlp.projects.locations.deidentifyTemplates.list * @desc Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. - * @alias dlp.projects.deidentifyTemplates.list + * @alias dlp.projects.locations.deidentifyTemplates.list * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.locationId The geographic location where deidentifications templates will be retrieved from. Use `-` for all locations. Reserved for future extensions. * @param {string=} params.orderBy Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to time the template was created. - `update_time`: corresponds to time the template was last updated. - `name`: corresponds to template's name. - `display_name`: corresponds to template's display name. * @param {integer=} params.pageSize Optional size of the page, can be limited by server. If zero server returns a page of max size 100. * @param {string=} params.pageToken Optional page token to continue retrieval. Comes from previous call to `ListDeidentifyTemplates`. - * @param {string} params.parent The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. * @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$Deidentifytemplates$List, + params?: Params$Resource$Projects$Locations$Deidentifytemplates$List, options?: MethodOptions ): GaxiosPromise; list( - params: Params$Resource$Projects$Deidentifytemplates$List, + params: Params$Resource$Projects$Locations$Deidentifytemplates$List, options: | MethodOptions | BodyResponseCallback< @@ -5126,7 +9431,7 @@ export namespace dlp_v2 { > ): void; list( - params: Params$Resource$Projects$Deidentifytemplates$List, + params: Params$Resource$Projects$Locations$Deidentifytemplates$List, callback: BodyResponseCallback< Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse > @@ -5138,7 +9443,7 @@ export namespace dlp_v2 { ): void; list( paramsOrCallback?: - | Params$Resource$Projects$Deidentifytemplates$List + | Params$Resource$Projects$Locations$Deidentifytemplates$List | BodyResponseCallback< Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse >, @@ -5154,12 +9459,12 @@ export namespace dlp_v2 { Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse > { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Deidentifytemplates$List; + {}) as Params$Resource$Projects$Locations$Deidentifytemplates$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Deidentifytemplates$List; + params = {} as Params$Resource$Projects$Locations$Deidentifytemplates$List; options = {}; } @@ -5172,17 +9477,17 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: ( + rootUrl + + '/v2/{+parent}/locations/{locationId}/deidentifyTemplates' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], context: this.context, }; if (callback) { @@ -5197,24 +9502,24 @@ export namespace dlp_v2 { } /** - * dlp.projects.deidentifyTemplates.patch + * dlp.projects.locations.deidentifyTemplates.patch * @desc Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. - * @alias dlp.projects.deidentifyTemplates.patch + * @alias dlp.projects.locations.deidentifyTemplates.patch * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. - * @param {().GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest} params.resource Request body data + * @param {string} params.name Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + * @param {().GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest} params.requestBody 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 */ patch( - params?: Params$Resource$Projects$Deidentifytemplates$Patch, + params?: Params$Resource$Projects$Locations$Deidentifytemplates$Patch, options?: MethodOptions ): GaxiosPromise; patch( - params: Params$Resource$Projects$Deidentifytemplates$Patch, + params: Params$Resource$Projects$Locations$Deidentifytemplates$Patch, options: | MethodOptions | BodyResponseCallback, @@ -5223,7 +9528,7 @@ export namespace dlp_v2 { > ): void; patch( - params: Params$Resource$Projects$Deidentifytemplates$Patch, + params: Params$Resource$Projects$Locations$Deidentifytemplates$Patch, callback: BodyResponseCallback< Schema$GooglePrivacyDlpV2DeidentifyTemplate > @@ -5235,7 +9540,7 @@ export namespace dlp_v2 { ): void; patch( paramsOrCallback?: - | Params$Resource$Projects$Deidentifytemplates$Patch + | Params$Resource$Projects$Locations$Deidentifytemplates$Patch | BodyResponseCallback, optionsOrCallback?: | MethodOptions @@ -5245,12 +9550,12 @@ export namespace dlp_v2 { > ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Deidentifytemplates$Patch; + {}) as Params$Resource$Projects$Locations$Deidentifytemplates$Patch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Deidentifytemplates$Patch; + params = {} as Params$Resource$Projects$Locations$Deidentifytemplates$Patch; options = {}; } @@ -5286,7 +9591,7 @@ export namespace dlp_v2 { } } - export interface Params$Resource$Projects$Deidentifytemplates$Create + export interface Params$Resource$Projects$Locations$Deidentifytemplates$Create extends StandardParameters { /** * Auth client or API Key for the request @@ -5294,7 +9599,11 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * The geographic location to store the deidentification template. Reserved for future extensions. + */ + locationId?: string; + /** + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. */ parent?: string; @@ -5303,7 +9612,7 @@ export namespace dlp_v2 { */ requestBody?: Schema$GooglePrivacyDlpV2CreateDeidentifyTemplateRequest; } - export interface Params$Resource$Projects$Deidentifytemplates$Delete + export interface Params$Resource$Projects$Locations$Deidentifytemplates$Delete extends StandardParameters { /** * Auth client or API Key for the request @@ -5311,11 +9620,11 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + * Required. Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. */ name?: string; } - export interface Params$Resource$Projects$Deidentifytemplates$Get + export interface Params$Resource$Projects$Locations$Deidentifytemplates$Get extends StandardParameters { /** * Auth client or API Key for the request @@ -5323,17 +9632,21 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + * Required. Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. */ name?: string; } - export interface Params$Resource$Projects$Deidentifytemplates$List + export interface Params$Resource$Projects$Locations$Deidentifytemplates$List extends StandardParameters { /** * Auth client or API Key for the request */ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + /** + * The geographic location where deidentifications templates will be retrieved from. Use `-` for all locations. Reserved for future extensions. + */ + locationId?: string; /** * Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to time the template was created. - `update_time`: corresponds to time the template was last updated. - `name`: corresponds to template's name. - `display_name`: corresponds to template's display name. */ @@ -5347,11 +9660,11 @@ export namespace dlp_v2 { */ pageToken?: string; /** - * The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. */ parent?: string; } - export interface Params$Resource$Projects$Deidentifytemplates$Patch + export interface Params$Resource$Projects$Locations$Deidentifytemplates$Patch extends StandardParameters { /** * Auth client or API Key for the request @@ -5359,7 +9672,7 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. + * Required. Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. */ name?: string; @@ -5369,42 +9682,42 @@ export namespace dlp_v2 { requestBody?: Schema$GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest; } - export class Resource$Projects$Dlpjobs { + export class Resource$Projects$Locations$Dlpjobs { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * dlp.projects.dlpJobs.cancel + * dlp.projects.locations.dlpJobs.cancel * @desc Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - * @alias dlp.projects.dlpJobs.cancel + * @alias dlp.projects.locations.dlpJobs.cancel * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name of the DlpJob resource to be cancelled. - * @param {().GooglePrivacyDlpV2CancelDlpJobRequest} params.resource Request body data + * @param {string} params.name Required. The name of the DlpJob resource to be cancelled. + * @param {().GooglePrivacyDlpV2CancelDlpJobRequest} params.requestBody 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 */ cancel( - params?: Params$Resource$Projects$Dlpjobs$Cancel, + params?: Params$Resource$Projects$Locations$Dlpjobs$Cancel, options?: MethodOptions ): GaxiosPromise; cancel( - params: Params$Resource$Projects$Dlpjobs$Cancel, + params: Params$Resource$Projects$Locations$Dlpjobs$Cancel, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; cancel( - params: Params$Resource$Projects$Dlpjobs$Cancel, + params: Params$Resource$Projects$Locations$Dlpjobs$Cancel, callback: BodyResponseCallback ): void; cancel(callback: BodyResponseCallback): void; cancel( paramsOrCallback?: - | Params$Resource$Projects$Dlpjobs$Cancel + | Params$Resource$Projects$Locations$Dlpjobs$Cancel | BodyResponseCallback, optionsOrCallback?: | MethodOptions @@ -5412,12 +9725,12 @@ export namespace dlp_v2 { callback?: BodyResponseCallback ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Dlpjobs$Cancel; + {}) as Params$Resource$Projects$Locations$Dlpjobs$Cancel; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Dlpjobs$Cancel; + params = {} as Params$Resource$Projects$Locations$Dlpjobs$Cancel; options = {}; } @@ -5448,31 +9761,32 @@ export namespace dlp_v2 { } /** - * dlp.projects.dlpJobs.create + * dlp.projects.locations.dlpJobs.create * @desc Creates a new job to inspect storage or calculate risk metrics. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. - * @alias dlp.projects.dlpJobs.create + * @alias dlp.projects.locations.dlpJobs.create * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.parent The parent resource name, for example projects/my-project-id. - * @param {().GooglePrivacyDlpV2CreateDlpJobRequest} params.resource Request body data + * @param {string} params.locationId The geographic location to store and process the job. Reserved for future extensions. + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id. + * @param {().GooglePrivacyDlpV2CreateDlpJobRequest} params.requestBody 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$Dlpjobs$Create, + params?: Params$Resource$Projects$Locations$Dlpjobs$Create, options?: MethodOptions ): GaxiosPromise; create( - params: Params$Resource$Projects$Dlpjobs$Create, + params: Params$Resource$Projects$Locations$Dlpjobs$Create, options: | MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; create( - params: Params$Resource$Projects$Dlpjobs$Create, + params: Params$Resource$Projects$Locations$Dlpjobs$Create, callback: BodyResponseCallback ): void; create( @@ -5480,7 +9794,7 @@ export namespace dlp_v2 { ): void; create( paramsOrCallback?: - | Params$Resource$Projects$Dlpjobs$Create + | Params$Resource$Projects$Locations$Dlpjobs$Create | BodyResponseCallback, optionsOrCallback?: | MethodOptions @@ -5488,12 +9802,12 @@ export namespace dlp_v2 { callback?: BodyResponseCallback ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Dlpjobs$Create; + {}) as Params$Resource$Projects$Locations$Dlpjobs$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Dlpjobs$Create; + params = {} as Params$Resource$Projects$Locations$Dlpjobs$Create; options = {}; } @@ -5506,17 +9820,16 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/dlpJobs').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: ( + rootUrl + '/v2/{+parent}/locations/{locationId}/dlpJobs' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], context: this.context, }; if (callback) { @@ -5527,34 +9840,34 @@ export namespace dlp_v2 { } /** - * dlp.projects.dlpJobs.delete + * dlp.projects.locations.dlpJobs.delete * @desc Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be cancelled if possible. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - * @alias dlp.projects.dlpJobs.delete + * @alias dlp.projects.locations.dlpJobs.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name of the DlpJob resource to be deleted. + * @param {string} params.name Required. The name of the DlpJob 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$Projects$Dlpjobs$Delete, + params?: Params$Resource$Projects$Locations$Dlpjobs$Delete, options?: MethodOptions ): GaxiosPromise; delete( - params: Params$Resource$Projects$Dlpjobs$Delete, + params: Params$Resource$Projects$Locations$Dlpjobs$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Projects$Dlpjobs$Delete, + params: Params$Resource$Projects$Locations$Dlpjobs$Delete, callback: BodyResponseCallback ): void; delete(callback: BodyResponseCallback): void; delete( paramsOrCallback?: - | Params$Resource$Projects$Dlpjobs$Delete + | Params$Resource$Projects$Locations$Dlpjobs$Delete | BodyResponseCallback, optionsOrCallback?: | MethodOptions @@ -5562,12 +9875,12 @@ export namespace dlp_v2 { callback?: BodyResponseCallback ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Dlpjobs$Delete; + {}) as Params$Resource$Projects$Locations$Dlpjobs$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Dlpjobs$Delete; + params = {} as Params$Resource$Projects$Locations$Dlpjobs$Delete; options = {}; } @@ -5598,36 +9911,36 @@ export namespace dlp_v2 { } /** - * dlp.projects.dlpJobs.get + * dlp.projects.locations.dlpJobs.get * @desc Gets the latest state of a long-running DlpJob. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - * @alias dlp.projects.dlpJobs.get + * @alias dlp.projects.locations.dlpJobs.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name of the DlpJob resource. + * @param {string} params.name Required. The name of the DlpJob 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$Dlpjobs$Get, + params?: Params$Resource$Projects$Locations$Dlpjobs$Get, options?: MethodOptions ): GaxiosPromise; get( - params: Params$Resource$Projects$Dlpjobs$Get, + params: Params$Resource$Projects$Locations$Dlpjobs$Get, options: | MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Dlpjobs$Get, + params: Params$Resource$Projects$Locations$Dlpjobs$Get, callback: BodyResponseCallback ): void; get(callback: BodyResponseCallback): void; get( paramsOrCallback?: - | Params$Resource$Projects$Dlpjobs$Get + | Params$Resource$Projects$Locations$Dlpjobs$Get | BodyResponseCallback, optionsOrCallback?: | MethodOptions @@ -5635,12 +9948,12 @@ export namespace dlp_v2 { callback?: BodyResponseCallback ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Dlpjobs$Get; + {}) as Params$Resource$Projects$Locations$Dlpjobs$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Dlpjobs$Get; + params = {} as Params$Resource$Projects$Locations$Dlpjobs$Get; options = {}; } @@ -5671,28 +9984,29 @@ export namespace dlp_v2 { } /** - * dlp.projects.dlpJobs.list + * dlp.projects.locations.dlpJobs.list * @desc Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. - * @alias dlp.projects.dlpJobs.list + * @alias dlp.projects.locations.dlpJobs.list * @memberOf! () * * @param {object} params Parameters for request * @param {string=} params.filter Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of ` `. * Supported fields/values for inspect jobs: - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - `trigger_name` - The resource name of the trigger that created job. - 'end_time` - Corresponds to time the job finished. - 'start_time` - Corresponds to time the job finished. * Supported fields for risk analysis jobs: - `state` - RUNNING|CANCELED|FINISHED|FAILED - 'end_time` - Corresponds to time the job finished. - 'start_time` - Corresponds to time the job finished. * The operator must be `=` or `!=`. Examples: * inspected_storage = cloud_storage AND state = done * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = done OR state = canceled) * end_time > \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters. + * @param {string} params.locationId The geographic location where jobs will be retrieved from. Use `-` for all locations. Reserved for future extensions. * @param {string=} params.orderBy Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc, end_time asc, create_time desc` Supported fields are: - `create_time`: corresponds to time the job was created. - `end_time`: corresponds to time the job ended. - `name`: corresponds to job's name. - `state`: corresponds to `state` * @param {integer=} params.pageSize The standard list page size. * @param {string=} params.pageToken The standard list page token. - * @param {string} params.parent The parent resource name, for example projects/my-project-id. + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id. * @param {string=} params.type The type of job. Defaults to `DlpJobType.INSPECT` * @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$Dlpjobs$List, + params?: Params$Resource$Projects$Locations$Dlpjobs$List, options?: MethodOptions ): GaxiosPromise; list( - params: Params$Resource$Projects$Dlpjobs$List, + params: Params$Resource$Projects$Locations$Dlpjobs$List, options: | MethodOptions | BodyResponseCallback, @@ -5701,7 +10015,7 @@ export namespace dlp_v2 { > ): void; list( - params: Params$Resource$Projects$Dlpjobs$List, + params: Params$Resource$Projects$Locations$Dlpjobs$List, callback: BodyResponseCallback< Schema$GooglePrivacyDlpV2ListDlpJobsResponse > @@ -5713,7 +10027,7 @@ export namespace dlp_v2 { ): void; list( paramsOrCallback?: - | Params$Resource$Projects$Dlpjobs$List + | Params$Resource$Projects$Locations$Dlpjobs$List | BodyResponseCallback, optionsOrCallback?: | MethodOptions @@ -5723,12 +10037,12 @@ export namespace dlp_v2 { > ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Dlpjobs$List; + {}) as Params$Resource$Projects$Locations$Dlpjobs$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Dlpjobs$List; + params = {} as Params$Resource$Projects$Locations$Dlpjobs$List; options = {}; } @@ -5741,17 +10055,16 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/dlpJobs').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: ( + rootUrl + '/v2/{+parent}/locations/{locationId}/dlpJobs' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], context: this.context, }; if (callback) { @@ -5767,7 +10080,7 @@ export namespace dlp_v2 { } } - export interface Params$Resource$Projects$Dlpjobs$Cancel + export interface Params$Resource$Projects$Locations$Dlpjobs$Cancel extends StandardParameters { /** * Auth client or API Key for the request @@ -5775,7 +10088,7 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * The name of the DlpJob resource to be cancelled. + * Required. The name of the DlpJob resource to be cancelled. */ name?: string; @@ -5784,7 +10097,7 @@ export namespace dlp_v2 { */ requestBody?: Schema$GooglePrivacyDlpV2CancelDlpJobRequest; } - export interface Params$Resource$Projects$Dlpjobs$Create + export interface Params$Resource$Projects$Locations$Dlpjobs$Create extends StandardParameters { /** * Auth client or API Key for the request @@ -5792,7 +10105,11 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * The parent resource name, for example projects/my-project-id. + * The geographic location to store and process the job. Reserved for future extensions. + */ + locationId?: string; + /** + * Required. The parent resource name, for example projects/my-project-id. */ parent?: string; @@ -5801,7 +10118,7 @@ export namespace dlp_v2 { */ requestBody?: Schema$GooglePrivacyDlpV2CreateDlpJobRequest; } - export interface Params$Resource$Projects$Dlpjobs$Delete + export interface Params$Resource$Projects$Locations$Dlpjobs$Delete extends StandardParameters { /** * Auth client or API Key for the request @@ -5809,11 +10126,11 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * The name of the DlpJob resource to be deleted. + * Required. The name of the DlpJob resource to be deleted. */ name?: string; } - export interface Params$Resource$Projects$Dlpjobs$Get + export interface Params$Resource$Projects$Locations$Dlpjobs$Get extends StandardParameters { /** * Auth client or API Key for the request @@ -5821,11 +10138,11 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * The name of the DlpJob resource. + * Required. The name of the DlpJob resource. */ name?: string; } - export interface Params$Resource$Projects$Dlpjobs$List + export interface Params$Resource$Projects$Locations$Dlpjobs$List extends StandardParameters { /** * Auth client or API Key for the request @@ -5836,6 +10153,10 @@ export namespace dlp_v2 { * Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of ` `. * Supported fields/values for inspect jobs: - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - `trigger_name` - The resource name of the trigger that created job. - 'end_time` - Corresponds to time the job finished. - 'start_time` - Corresponds to time the job finished. * Supported fields for risk analysis jobs: - `state` - RUNNING|CANCELED|FINISHED|FAILED - 'end_time` - Corresponds to time the job finished. - 'start_time` - Corresponds to time the job finished. * The operator must be `=` or `!=`. Examples: * inspected_storage = cloud_storage AND state = done * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = done OR state = canceled) * end_time > \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters. */ filter?: string; + /** + * The geographic location where jobs will be retrieved from. Use `-` for all locations. Reserved for future extensions. + */ + locationId?: string; /** * Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc, end_time asc, create_time desc` Supported fields are: - `create_time`: corresponds to time the job was created. - `end_time`: corresponds to time the job ended. - `name`: corresponds to job's name. - `state`: corresponds to `state` */ @@ -5849,7 +10170,7 @@ export namespace dlp_v2 { */ pageToken?: string; /** - * The parent resource name, for example projects/my-project-id. + * Required. The parent resource name, for example projects/my-project-id. */ parent?: string; /** @@ -5858,31 +10179,32 @@ export namespace dlp_v2 { type?: string; } - export class Resource$Projects$Image { + export class Resource$Projects$Locations$Image { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * dlp.projects.image.redact + * dlp.projects.locations.image.redact * @desc Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. - * @alias dlp.projects.image.redact + * @alias dlp.projects.locations.image.redact * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.locationId The geographic location to process the request. Reserved for future extensions. * @param {string} params.parent The parent resource name, for example projects/my-project-id. - * @param {().GooglePrivacyDlpV2RedactImageRequest} params.resource Request body data + * @param {().GooglePrivacyDlpV2RedactImageRequest} params.requestBody 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 */ redact( - params?: Params$Resource$Projects$Image$Redact, + params?: Params$Resource$Projects$Locations$Image$Redact, options?: MethodOptions ): GaxiosPromise; redact( - params: Params$Resource$Projects$Image$Redact, + params: Params$Resource$Projects$Locations$Image$Redact, options: | MethodOptions | BodyResponseCallback, @@ -5891,7 +10213,7 @@ export namespace dlp_v2 { > ): void; redact( - params: Params$Resource$Projects$Image$Redact, + params: Params$Resource$Projects$Locations$Image$Redact, callback: BodyResponseCallback< Schema$GooglePrivacyDlpV2RedactImageResponse > @@ -5903,7 +10225,7 @@ export namespace dlp_v2 { ): void; redact( paramsOrCallback?: - | Params$Resource$Projects$Image$Redact + | Params$Resource$Projects$Locations$Image$Redact | BodyResponseCallback, optionsOrCallback?: | MethodOptions @@ -5913,12 +10235,12 @@ export namespace dlp_v2 { > ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Image$Redact; + {}) as Params$Resource$Projects$Locations$Image$Redact; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Image$Redact; + params = {} as Params$Resource$Projects$Locations$Image$Redact; options = {}; } @@ -5931,17 +10253,16 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/image:redact').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: ( + rootUrl + '/v2/{+parent}/locations/{locationId}/image:redact' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], context: this.context, }; if (callback) { @@ -5957,13 +10278,17 @@ export namespace dlp_v2 { } } - export interface Params$Resource$Projects$Image$Redact + export interface Params$Resource$Projects$Locations$Image$Redact extends StandardParameters { /** * Auth client or API Key for the request */ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + /** + * The geographic location to process the request. Reserved for future extensions. + */ + locationId?: string; /** * The parent resource name, for example projects/my-project-id. */ @@ -5975,38 +10300,39 @@ export namespace dlp_v2 { requestBody?: Schema$GooglePrivacyDlpV2RedactImageRequest; } - export class Resource$Projects$Inspecttemplates { + export class Resource$Projects$Locations$Inspecttemplates { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * dlp.projects.inspectTemplates.create + * dlp.projects.locations.inspectTemplates.create * @desc Creates an InspectTemplate for re-using frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. - * @alias dlp.projects.inspectTemplates.create + * @alias dlp.projects.locations.inspectTemplates.create * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.parent The parent resource name, for example projects/my-project-id or organizations/my-org-id. - * @param {().GooglePrivacyDlpV2CreateInspectTemplateRequest} params.resource Request body data + * @param {string} params.locationId The geographic location to store the inspection template. Reserved for future extensions. + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * @param {().GooglePrivacyDlpV2CreateInspectTemplateRequest} params.requestBody 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$Inspecttemplates$Create, + params?: Params$Resource$Projects$Locations$Inspecttemplates$Create, options?: MethodOptions ): GaxiosPromise; create( - params: Params$Resource$Projects$Inspecttemplates$Create, + params: Params$Resource$Projects$Locations$Inspecttemplates$Create, options: | MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; create( - params: Params$Resource$Projects$Inspecttemplates$Create, + params: Params$Resource$Projects$Locations$Inspecttemplates$Create, callback: BodyResponseCallback ): void; create( @@ -6014,7 +10340,7 @@ export namespace dlp_v2 { ): void; create( paramsOrCallback?: - | Params$Resource$Projects$Inspecttemplates$Create + | Params$Resource$Projects$Locations$Inspecttemplates$Create | BodyResponseCallback, optionsOrCallback?: | MethodOptions @@ -6022,12 +10348,12 @@ export namespace dlp_v2 { callback?: BodyResponseCallback ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Inspecttemplates$Create; + {}) as Params$Resource$Projects$Locations$Inspecttemplates$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Inspecttemplates$Create; + params = {} as Params$Resource$Projects$Locations$Inspecttemplates$Create; options = {}; } @@ -6040,17 +10366,16 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: ( + rootUrl + '/v2/{+parent}/locations/{locationId}/inspectTemplates' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], context: this.context, }; if (callback) { @@ -6066,34 +10391,34 @@ export namespace dlp_v2 { } /** - * dlp.projects.inspectTemplates.delete + * dlp.projects.locations.inspectTemplates.delete * @desc Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. - * @alias dlp.projects.inspectTemplates.delete + * @alias dlp.projects.locations.inspectTemplates.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + * @param {string} params.name Required. Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. * @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$Inspecttemplates$Delete, + params?: Params$Resource$Projects$Locations$Inspecttemplates$Delete, options?: MethodOptions ): GaxiosPromise; delete( - params: Params$Resource$Projects$Inspecttemplates$Delete, + params: Params$Resource$Projects$Locations$Inspecttemplates$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Projects$Inspecttemplates$Delete, + params: Params$Resource$Projects$Locations$Inspecttemplates$Delete, callback: BodyResponseCallback ): void; delete(callback: BodyResponseCallback): void; delete( paramsOrCallback?: - | Params$Resource$Projects$Inspecttemplates$Delete + | Params$Resource$Projects$Locations$Inspecttemplates$Delete | BodyResponseCallback, optionsOrCallback?: | MethodOptions @@ -6101,12 +10426,12 @@ export namespace dlp_v2 { callback?: BodyResponseCallback ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Inspecttemplates$Delete; + {}) as Params$Resource$Projects$Locations$Inspecttemplates$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Inspecttemplates$Delete; + params = {} as Params$Resource$Projects$Locations$Inspecttemplates$Delete; options = {}; } @@ -6137,30 +10462,30 @@ export namespace dlp_v2 { } /** - * dlp.projects.inspectTemplates.get + * dlp.projects.locations.inspectTemplates.get * @desc Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. - * @alias dlp.projects.inspectTemplates.get + * @alias dlp.projects.locations.inspectTemplates.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + * @param {string} params.name Required. Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. * @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$Inspecttemplates$Get, + params?: Params$Resource$Projects$Locations$Inspecttemplates$Get, options?: MethodOptions ): GaxiosPromise; get( - params: Params$Resource$Projects$Inspecttemplates$Get, + params: Params$Resource$Projects$Locations$Inspecttemplates$Get, options: | MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Inspecttemplates$Get, + params: Params$Resource$Projects$Locations$Inspecttemplates$Get, callback: BodyResponseCallback ): void; get( @@ -6168,7 +10493,7 @@ export namespace dlp_v2 { ): void; get( paramsOrCallback?: - | Params$Resource$Projects$Inspecttemplates$Get + | Params$Resource$Projects$Locations$Inspecttemplates$Get | BodyResponseCallback, optionsOrCallback?: | MethodOptions @@ -6176,12 +10501,12 @@ export namespace dlp_v2 { callback?: BodyResponseCallback ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Inspecttemplates$Get; + {}) as Params$Resource$Projects$Locations$Inspecttemplates$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Inspecttemplates$Get; + params = {} as Params$Resource$Projects$Locations$Inspecttemplates$Get; options = {}; } @@ -6217,26 +10542,27 @@ export namespace dlp_v2 { } /** - * dlp.projects.inspectTemplates.list + * dlp.projects.locations.inspectTemplates.list * @desc Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. - * @alias dlp.projects.inspectTemplates.list + * @alias dlp.projects.locations.inspectTemplates.list * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.locationId The geographic location where inspection templates will be retrieved from. Use `-` for all locations. Reserved for future extensions. * @param {string=} params.orderBy Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to time the template was created. - `update_time`: corresponds to time the template was last updated. - `name`: corresponds to template's name. - `display_name`: corresponds to template's display name. * @param {integer=} params.pageSize Optional size of the page, can be limited by server. If zero server returns a page of max size 100. * @param {string=} params.pageToken Optional page token to continue retrieval. Comes from previous call to `ListInspectTemplates`. - * @param {string} params.parent The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. * @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$Inspecttemplates$List, + params?: Params$Resource$Projects$Locations$Inspecttemplates$List, options?: MethodOptions ): GaxiosPromise; list( - params: Params$Resource$Projects$Inspecttemplates$List, + params: Params$Resource$Projects$Locations$Inspecttemplates$List, options: | MethodOptions | BodyResponseCallback< @@ -6247,7 +10573,7 @@ export namespace dlp_v2 { > ): void; list( - params: Params$Resource$Projects$Inspecttemplates$List, + params: Params$Resource$Projects$Locations$Inspecttemplates$List, callback: BodyResponseCallback< Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse > @@ -6259,7 +10585,7 @@ export namespace dlp_v2 { ): void; list( paramsOrCallback?: - | Params$Resource$Projects$Inspecttemplates$List + | Params$Resource$Projects$Locations$Inspecttemplates$List | BodyResponseCallback< Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse >, @@ -6275,12 +10601,12 @@ export namespace dlp_v2 { Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse > { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Inspecttemplates$List; + {}) as Params$Resource$Projects$Locations$Inspecttemplates$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Inspecttemplates$List; + params = {} as Params$Resource$Projects$Locations$Inspecttemplates$List; options = {}; } @@ -6293,17 +10619,16 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: ( + rootUrl + '/v2/{+parent}/locations/{locationId}/inspectTemplates' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], context: this.context, }; if (callback) { @@ -6319,31 +10644,31 @@ export namespace dlp_v2 { } /** - * dlp.projects.inspectTemplates.patch + * dlp.projects.locations.inspectTemplates.patch * @desc Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. - * @alias dlp.projects.inspectTemplates.patch + * @alias dlp.projects.locations.inspectTemplates.patch * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. - * @param {().GooglePrivacyDlpV2UpdateInspectTemplateRequest} params.resource Request body data + * @param {string} params.name Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + * @param {().GooglePrivacyDlpV2UpdateInspectTemplateRequest} params.requestBody 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 */ patch( - params?: Params$Resource$Projects$Inspecttemplates$Patch, + params?: Params$Resource$Projects$Locations$Inspecttemplates$Patch, options?: MethodOptions ): GaxiosPromise; patch( - params: Params$Resource$Projects$Inspecttemplates$Patch, + params: Params$Resource$Projects$Locations$Inspecttemplates$Patch, options: | MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; patch( - params: Params$Resource$Projects$Inspecttemplates$Patch, + params: Params$Resource$Projects$Locations$Inspecttemplates$Patch, callback: BodyResponseCallback ): void; patch( @@ -6351,7 +10676,7 @@ export namespace dlp_v2 { ): void; patch( paramsOrCallback?: - | Params$Resource$Projects$Inspecttemplates$Patch + | Params$Resource$Projects$Locations$Inspecttemplates$Patch | BodyResponseCallback, optionsOrCallback?: | MethodOptions @@ -6359,12 +10684,12 @@ export namespace dlp_v2 { callback?: BodyResponseCallback ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Inspecttemplates$Patch; + {}) as Params$Resource$Projects$Locations$Inspecttemplates$Patch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Inspecttemplates$Patch; + params = {} as Params$Resource$Projects$Locations$Inspecttemplates$Patch; options = {}; } @@ -6400,7 +10725,7 @@ export namespace dlp_v2 { } } - export interface Params$Resource$Projects$Inspecttemplates$Create + export interface Params$Resource$Projects$Locations$Inspecttemplates$Create extends StandardParameters { /** * Auth client or API Key for the request @@ -6408,7 +10733,11 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * The geographic location to store the inspection template. Reserved for future extensions. + */ + locationId?: string; + /** + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. */ parent?: string; @@ -6417,7 +10746,7 @@ export namespace dlp_v2 { */ requestBody?: Schema$GooglePrivacyDlpV2CreateInspectTemplateRequest; } - export interface Params$Resource$Projects$Inspecttemplates$Delete + export interface Params$Resource$Projects$Locations$Inspecttemplates$Delete extends StandardParameters { /** * Auth client or API Key for the request @@ -6425,11 +10754,11 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + * Required. Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. */ name?: string; } - export interface Params$Resource$Projects$Inspecttemplates$Get + export interface Params$Resource$Projects$Locations$Inspecttemplates$Get extends StandardParameters { /** * Auth client or API Key for the request @@ -6437,17 +10766,21 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + * Required. Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. */ name?: string; } - export interface Params$Resource$Projects$Inspecttemplates$List + export interface Params$Resource$Projects$Locations$Inspecttemplates$List extends StandardParameters { /** * Auth client or API Key for the request */ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + /** + * The geographic location where inspection templates will be retrieved from. Use `-` for all locations. Reserved for future extensions. + */ + locationId?: string; /** * Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to time the template was created. - `update_time`: corresponds to time the template was last updated. - `name`: corresponds to template's name. - `display_name`: corresponds to template's display name. */ @@ -6461,11 +10794,11 @@ export namespace dlp_v2 { */ pageToken?: string; /** - * The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. */ parent?: string; } - export interface Params$Resource$Projects$Inspecttemplates$Patch + export interface Params$Resource$Projects$Locations$Inspecttemplates$Patch extends StandardParameters { /** * Auth client or API Key for the request @@ -6473,7 +10806,7 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. + * Required. Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. */ name?: string; @@ -6483,38 +10816,38 @@ export namespace dlp_v2 { requestBody?: Schema$GooglePrivacyDlpV2UpdateInspectTemplateRequest; } - export class Resource$Projects$Jobtriggers { + export class Resource$Projects$Locations$Jobtriggers { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * dlp.projects.jobTriggers.activate + * dlp.projects.locations.jobTriggers.activate * @desc Activate a job trigger. Causes the immediate execute of a trigger instead of waiting on the trigger event to occur. - * @alias dlp.projects.jobTriggers.activate + * @alias dlp.projects.locations.jobTriggers.activate * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Resource name of the trigger to activate, for example `projects/dlp-test-project/jobTriggers/53234423`. - * @param {().GooglePrivacyDlpV2ActivateJobTriggerRequest} params.resource Request body data + * @param {string} params.name Required. Resource name of the trigger to activate, for example `projects/dlp-test-project/jobTriggers/53234423`. + * @param {().GooglePrivacyDlpV2ActivateJobTriggerRequest} params.requestBody 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 */ activate( - params?: Params$Resource$Projects$Jobtriggers$Activate, + params?: Params$Resource$Projects$Locations$Jobtriggers$Activate, options?: MethodOptions ): GaxiosPromise; activate( - params: Params$Resource$Projects$Jobtriggers$Activate, + params: Params$Resource$Projects$Locations$Jobtriggers$Activate, options: | MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; activate( - params: Params$Resource$Projects$Jobtriggers$Activate, + params: Params$Resource$Projects$Locations$Jobtriggers$Activate, callback: BodyResponseCallback ): void; activate( @@ -6522,7 +10855,7 @@ export namespace dlp_v2 { ): void; activate( paramsOrCallback?: - | Params$Resource$Projects$Jobtriggers$Activate + | Params$Resource$Projects$Locations$Jobtriggers$Activate | BodyResponseCallback, optionsOrCallback?: | MethodOptions @@ -6530,12 +10863,12 @@ export namespace dlp_v2 { callback?: BodyResponseCallback ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Jobtriggers$Activate; + {}) as Params$Resource$Projects$Locations$Jobtriggers$Activate; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Jobtriggers$Activate; + params = {} as Params$Resource$Projects$Locations$Jobtriggers$Activate; options = {}; } @@ -6569,31 +10902,32 @@ export namespace dlp_v2 { } /** - * dlp.projects.jobTriggers.create + * dlp.projects.locations.jobTriggers.create * @desc Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - * @alias dlp.projects.jobTriggers.create + * @alias dlp.projects.locations.jobTriggers.create * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.parent The parent resource name, for example projects/my-project-id. - * @param {().GooglePrivacyDlpV2CreateJobTriggerRequest} params.resource Request body data + * @param {string} params.locationId The geographic location to store the job trigger. Reserved for future extensions. + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id. + * @param {().GooglePrivacyDlpV2CreateJobTriggerRequest} params.requestBody 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$Jobtriggers$Create, + params?: Params$Resource$Projects$Locations$Jobtriggers$Create, options?: MethodOptions ): GaxiosPromise; create( - params: Params$Resource$Projects$Jobtriggers$Create, + params: Params$Resource$Projects$Locations$Jobtriggers$Create, options: | MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; create( - params: Params$Resource$Projects$Jobtriggers$Create, + params: Params$Resource$Projects$Locations$Jobtriggers$Create, callback: BodyResponseCallback ): void; create( @@ -6601,7 +10935,7 @@ export namespace dlp_v2 { ): void; create( paramsOrCallback?: - | Params$Resource$Projects$Jobtriggers$Create + | Params$Resource$Projects$Locations$Jobtriggers$Create | BodyResponseCallback, optionsOrCallback?: | MethodOptions @@ -6609,12 +10943,12 @@ export namespace dlp_v2 { callback?: BodyResponseCallback ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Jobtriggers$Create; + {}) as Params$Resource$Projects$Locations$Jobtriggers$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Jobtriggers$Create; + params = {} as Params$Resource$Projects$Locations$Jobtriggers$Create; options = {}; } @@ -6627,17 +10961,16 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/jobTriggers').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: ( + rootUrl + '/v2/{+parent}/locations/{locationId}/jobTriggers' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], context: this.context, }; if (callback) { @@ -6653,34 +10986,34 @@ export namespace dlp_v2 { } /** - * dlp.projects.jobTriggers.delete + * dlp.projects.locations.jobTriggers.delete * @desc Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - * @alias dlp.projects.jobTriggers.delete + * @alias dlp.projects.locations.jobTriggers.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. + * @param {string} params.name Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. * @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$Jobtriggers$Delete, + params?: Params$Resource$Projects$Locations$Jobtriggers$Delete, options?: MethodOptions ): GaxiosPromise; delete( - params: Params$Resource$Projects$Jobtriggers$Delete, + params: Params$Resource$Projects$Locations$Jobtriggers$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Projects$Jobtriggers$Delete, + params: Params$Resource$Projects$Locations$Jobtriggers$Delete, callback: BodyResponseCallback ): void; delete(callback: BodyResponseCallback): void; delete( paramsOrCallback?: - | Params$Resource$Projects$Jobtriggers$Delete + | Params$Resource$Projects$Locations$Jobtriggers$Delete | BodyResponseCallback, optionsOrCallback?: | MethodOptions @@ -6688,12 +11021,12 @@ export namespace dlp_v2 { callback?: BodyResponseCallback ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Jobtriggers$Delete; + {}) as Params$Resource$Projects$Locations$Jobtriggers$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Jobtriggers$Delete; + params = {} as Params$Resource$Projects$Locations$Jobtriggers$Delete; options = {}; } @@ -6724,30 +11057,30 @@ export namespace dlp_v2 { } /** - * dlp.projects.jobTriggers.get + * dlp.projects.locations.jobTriggers.get * @desc Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - * @alias dlp.projects.jobTriggers.get + * @alias dlp.projects.locations.jobTriggers.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. + * @param {string} params.name Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. * @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$Jobtriggers$Get, + params?: Params$Resource$Projects$Locations$Jobtriggers$Get, options?: MethodOptions ): GaxiosPromise; get( - params: Params$Resource$Projects$Jobtriggers$Get, + params: Params$Resource$Projects$Locations$Jobtriggers$Get, options: | MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Jobtriggers$Get, + params: Params$Resource$Projects$Locations$Jobtriggers$Get, callback: BodyResponseCallback ): void; get( @@ -6755,7 +11088,7 @@ export namespace dlp_v2 { ): void; get( paramsOrCallback?: - | Params$Resource$Projects$Jobtriggers$Get + | Params$Resource$Projects$Locations$Jobtriggers$Get | BodyResponseCallback, optionsOrCallback?: | MethodOptions @@ -6763,12 +11096,12 @@ export namespace dlp_v2 { callback?: BodyResponseCallback ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Jobtriggers$Get; + {}) as Params$Resource$Projects$Locations$Jobtriggers$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Jobtriggers$Get; + params = {} as Params$Resource$Projects$Locations$Jobtriggers$Get; options = {}; } @@ -6804,27 +11137,28 @@ export namespace dlp_v2 { } /** - * dlp.projects.jobTriggers.list + * dlp.projects.locations.jobTriggers.list * @desc Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - * @alias dlp.projects.jobTriggers.list + * @alias dlp.projects.locations.jobTriggers.list * @memberOf! () * * @param {object} params Parameters for request * @param {string=} params.filter Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of ` `. * Supported fields/values for inspect jobs: - `status` - HEALTHY|PAUSED|CANCELLED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by quotation marks. Nanoseconds are ignored. - 'error_count' - Number of errors that have occurred while running. * The operator must be `=` or `!=` for status and inspected_storage. Examples: * inspected_storage = cloud_storage AND status = HEALTHY * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) * last_run_time > \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters. + * @param {string} params.locationId The geographic location where job triggers will be retrieved from. Use `-` for all locations. Reserved for future extensions. * @param {string=} params.orderBy Optional comma separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to time the JobTrigger was created. - `update_time`: corresponds to time the JobTrigger was last updated. - `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: corresponds to JobTrigger's name. - `display_name`: corresponds to JobTrigger's display name. - `status`: corresponds to JobTrigger's status. * @param {integer=} params.pageSize Optional size of the page, can be limited by a server. * @param {string=} params.pageToken Optional page token to continue retrieval. Comes from previous call to ListJobTriggers. `order_by` field must not change for subsequent calls. - * @param {string} params.parent The parent resource name, for example `projects/my-project-id`. + * @param {string} params.parent Required. The parent resource name, for example `projects/my-project-id`. * @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$Jobtriggers$List, + params?: Params$Resource$Projects$Locations$Jobtriggers$List, options?: MethodOptions ): GaxiosPromise; list( - params: Params$Resource$Projects$Jobtriggers$List, + params: Params$Resource$Projects$Locations$Jobtriggers$List, options: | MethodOptions | BodyResponseCallback< @@ -6835,7 +11169,7 @@ export namespace dlp_v2 { > ): void; list( - params: Params$Resource$Projects$Jobtriggers$List, + params: Params$Resource$Projects$Locations$Jobtriggers$List, callback: BodyResponseCallback< Schema$GooglePrivacyDlpV2ListJobTriggersResponse > @@ -6847,7 +11181,7 @@ export namespace dlp_v2 { ): void; list( paramsOrCallback?: - | Params$Resource$Projects$Jobtriggers$List + | Params$Resource$Projects$Locations$Jobtriggers$List | BodyResponseCallback< Schema$GooglePrivacyDlpV2ListJobTriggersResponse >, @@ -6861,12 +11195,12 @@ export namespace dlp_v2 { > ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Jobtriggers$List; + {}) as Params$Resource$Projects$Locations$Jobtriggers$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Jobtriggers$List; + params = {} as Params$Resource$Projects$Locations$Jobtriggers$List; options = {}; } @@ -6879,17 +11213,16 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v2/{+parent}/jobTriggers').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: ( + rootUrl + '/v2/{+parent}/locations/{locationId}/jobTriggers' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], context: this.context, }; if (callback) { @@ -6905,31 +11238,31 @@ export namespace dlp_v2 { } /** - * dlp.projects.jobTriggers.patch + * dlp.projects.locations.jobTriggers.patch * @desc Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. - * @alias dlp.projects.jobTriggers.patch + * @alias dlp.projects.locations.jobTriggers.patch * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. - * @param {().GooglePrivacyDlpV2UpdateJobTriggerRequest} params.resource Request body data + * @param {string} params.name Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. + * @param {().GooglePrivacyDlpV2UpdateJobTriggerRequest} params.requestBody 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 */ patch( - params?: Params$Resource$Projects$Jobtriggers$Patch, + params?: Params$Resource$Projects$Locations$Jobtriggers$Patch, options?: MethodOptions ): GaxiosPromise; patch( - params: Params$Resource$Projects$Jobtriggers$Patch, + params: Params$Resource$Projects$Locations$Jobtriggers$Patch, options: | MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; patch( - params: Params$Resource$Projects$Jobtriggers$Patch, + params: Params$Resource$Projects$Locations$Jobtriggers$Patch, callback: BodyResponseCallback ): void; patch( @@ -6937,7 +11270,7 @@ export namespace dlp_v2 { ): void; patch( paramsOrCallback?: - | Params$Resource$Projects$Jobtriggers$Patch + | Params$Resource$Projects$Locations$Jobtriggers$Patch | BodyResponseCallback, optionsOrCallback?: | MethodOptions @@ -6945,12 +11278,12 @@ export namespace dlp_v2 { callback?: BodyResponseCallback ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Jobtriggers$Patch; + {}) as Params$Resource$Projects$Locations$Jobtriggers$Patch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Jobtriggers$Patch; + params = {} as Params$Resource$Projects$Locations$Jobtriggers$Patch; options = {}; } @@ -6986,7 +11319,7 @@ export namespace dlp_v2 { } } - export interface Params$Resource$Projects$Jobtriggers$Activate + export interface Params$Resource$Projects$Locations$Jobtriggers$Activate extends StandardParameters { /** * Auth client or API Key for the request @@ -6994,7 +11327,7 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Resource name of the trigger to activate, for example `projects/dlp-test-project/jobTriggers/53234423`. + * Required. Resource name of the trigger to activate, for example `projects/dlp-test-project/jobTriggers/53234423`. */ name?: string; @@ -7003,7 +11336,7 @@ export namespace dlp_v2 { */ requestBody?: Schema$GooglePrivacyDlpV2ActivateJobTriggerRequest; } - export interface Params$Resource$Projects$Jobtriggers$Create + export interface Params$Resource$Projects$Locations$Jobtriggers$Create extends StandardParameters { /** * Auth client or API Key for the request @@ -7011,7 +11344,11 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * The parent resource name, for example projects/my-project-id. + * The geographic location to store the job trigger. Reserved for future extensions. + */ + locationId?: string; + /** + * Required. The parent resource name, for example projects/my-project-id. */ parent?: string; @@ -7020,7 +11357,7 @@ export namespace dlp_v2 { */ requestBody?: Schema$GooglePrivacyDlpV2CreateJobTriggerRequest; } - export interface Params$Resource$Projects$Jobtriggers$Delete + export interface Params$Resource$Projects$Locations$Jobtriggers$Delete extends StandardParameters { /** * Auth client or API Key for the request @@ -7028,11 +11365,11 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. + * Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. */ name?: string; } - export interface Params$Resource$Projects$Jobtriggers$Get + export interface Params$Resource$Projects$Locations$Jobtriggers$Get extends StandardParameters { /** * Auth client or API Key for the request @@ -7040,11 +11377,11 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. + * Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. */ name?: string; } - export interface Params$Resource$Projects$Jobtriggers$List + export interface Params$Resource$Projects$Locations$Jobtriggers$List extends StandardParameters { /** * Auth client or API Key for the request @@ -7055,6 +11392,10 @@ export namespace dlp_v2 { * Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of ` `. * Supported fields/values for inspect jobs: - `status` - HEALTHY|PAUSED|CANCELLED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by quotation marks. Nanoseconds are ignored. - 'error_count' - Number of errors that have occurred while running. * The operator must be `=` or `!=` for status and inspected_storage. Examples: * inspected_storage = cloud_storage AND status = HEALTHY * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) * last_run_time > \"2017-12-12T00:00:00+00:00\" The length of this field should be no more than 500 characters. */ filter?: string; + /** + * The geographic location where job triggers will be retrieved from. Use `-` for all locations. Reserved for future extensions. + */ + locationId?: string; /** * Optional comma separated list of triggeredJob fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc,update_time, create_time desc` Supported fields are: - `create_time`: corresponds to time the JobTrigger was created. - `update_time`: corresponds to time the JobTrigger was last updated. - `last_run_time`: corresponds to the last time the JobTrigger ran. - `name`: corresponds to JobTrigger's name. - `display_name`: corresponds to JobTrigger's display name. - `status`: corresponds to JobTrigger's status. */ @@ -7068,11 +11409,11 @@ export namespace dlp_v2 { */ pageToken?: string; /** - * The parent resource name, for example `projects/my-project-id`. + * Required. The parent resource name, for example `projects/my-project-id`. */ parent?: string; } - export interface Params$Resource$Projects$Jobtriggers$Patch + export interface Params$Resource$Projects$Locations$Jobtriggers$Patch extends StandardParameters { /** * Auth client or API Key for the request @@ -7080,7 +11421,7 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. + * Required. Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. */ name?: string; @@ -7090,87 +11431,60 @@ export namespace dlp_v2 { requestBody?: Schema$GooglePrivacyDlpV2UpdateJobTriggerRequest; } - export class Resource$Projects$Locations { - context: APIRequestContext; - content: Resource$Projects$Locations$Content; - image: Resource$Projects$Locations$Image; - constructor(context: APIRequestContext) { - this.context = context; - this.content = new Resource$Projects$Locations$Content(this.context); - this.image = new Resource$Projects$Locations$Image(this.context); - } - } - - export class Resource$Projects$Locations$Content { + export class Resource$Projects$Locations$Storedinfotypes { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * dlp.projects.locations.content.deidentify - * @desc De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. - * @alias dlp.projects.locations.content.deidentify + * dlp.projects.locations.storedInfoTypes.create + * @desc Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * @alias dlp.projects.locations.storedInfoTypes.create * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.location The geographic location to process de-identification. Reserved for future extensions. - * @param {string} params.parent The parent resource name, for example projects/my-project-id. - * @param {().GooglePrivacyDlpV2DeidentifyContentRequest} params.resource Request body data + * @param {string} params.locationId The geographic location to store the stored infoType. Reserved for future extensions. + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * @param {().GooglePrivacyDlpV2CreateStoredInfoTypeRequest} params.requestBody 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 */ - deidentify( - params?: Params$Resource$Projects$Locations$Content$Deidentify, + create( + params?: Params$Resource$Projects$Locations$Storedinfotypes$Create, options?: MethodOptions - ): GaxiosPromise; - deidentify( - params: Params$Resource$Projects$Locations$Content$Deidentify, + ): GaxiosPromise; + create( + params: Params$Resource$Projects$Locations$Storedinfotypes$Create, options: | MethodOptions - | BodyResponseCallback< - Schema$GooglePrivacyDlpV2DeidentifyContentResponse - >, - callback: BodyResponseCallback< - Schema$GooglePrivacyDlpV2DeidentifyContentResponse - > + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - deidentify( - params: Params$Resource$Projects$Locations$Content$Deidentify, - callback: BodyResponseCallback< - Schema$GooglePrivacyDlpV2DeidentifyContentResponse - > + create( + params: Params$Resource$Projects$Locations$Storedinfotypes$Create, + callback: BodyResponseCallback ): void; - deidentify( - callback: BodyResponseCallback< - Schema$GooglePrivacyDlpV2DeidentifyContentResponse - > + create( + callback: BodyResponseCallback ): void; - deidentify( + create( paramsOrCallback?: - | Params$Resource$Projects$Locations$Content$Deidentify - | BodyResponseCallback< - Schema$GooglePrivacyDlpV2DeidentifyContentResponse - >, + | Params$Resource$Projects$Locations$Storedinfotypes$Create + | BodyResponseCallback, optionsOrCallback?: | MethodOptions - | BodyResponseCallback< - Schema$GooglePrivacyDlpV2DeidentifyContentResponse - >, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2DeidentifyContentResponse - > - ): void | GaxiosPromise< - Schema$GooglePrivacyDlpV2DeidentifyContentResponse - > { + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Content$Deidentify; + {}) as Params$Resource$Projects$Locations$Storedinfotypes$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Content$Deidentify; + params = {} as Params$Resource$Projects$Locations$Storedinfotypes$Create; options = {}; } @@ -7184,85 +11498,146 @@ export namespace dlp_v2 { options: Object.assign( { url: ( - rootUrl + '/v2/{+parent}/locations/{location}/content:deidentify' + rootUrl + '/v2/{+parent}/locations/{locationId}/storedInfoTypes' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options ), params, - requiredParams: ['parent', 'location'], - pathParams: ['location', 'parent'], + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback ); } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2DeidentifyContentResponse - >(parameters); + return createAPIRequest( + parameters + ); } } /** - * dlp.projects.locations.content.inspect - * @desc Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text, - * @alias dlp.projects.locations.content.inspect + * dlp.projects.locations.storedInfoTypes.delete + * @desc Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * @alias dlp.projects.locations.storedInfoTypes.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.location The geographic location to process content inspection. Reserved for future extensions. - * @param {string} params.parent The parent resource name, for example projects/my-project-id. - * @param {().GooglePrivacyDlpV2InspectContentRequest} params.resource Request body data + * @param {string} params.name Required. Resource name of the organization and storedInfoType to be deleted, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. * @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 */ - inspect( - params?: Params$Resource$Projects$Locations$Content$Inspect, + delete( + params?: Params$Resource$Projects$Locations$Storedinfotypes$Delete, options?: MethodOptions - ): GaxiosPromise; - inspect( - params: Params$Resource$Projects$Locations$Content$Inspect, + ): GaxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Storedinfotypes$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Storedinfotypes$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Storedinfotypes$Delete + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Storedinfotypes$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Storedinfotypes$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * dlp.projects.locations.storedInfoTypes.get + * @desc Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * @alias dlp.projects.locations.storedInfoTypes.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. Resource name of the organization and storedInfoType to be read, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + * @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$Storedinfotypes$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Projects$Locations$Storedinfotypes$Get, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback< - Schema$GooglePrivacyDlpV2InspectContentResponse - > + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - inspect( - params: Params$Resource$Projects$Locations$Content$Inspect, - callback: BodyResponseCallback< - Schema$GooglePrivacyDlpV2InspectContentResponse - > + get( + params: Params$Resource$Projects$Locations$Storedinfotypes$Get, + callback: BodyResponseCallback ): void; - inspect( - callback: BodyResponseCallback< - Schema$GooglePrivacyDlpV2InspectContentResponse - > + get( + callback: BodyResponseCallback ): void; - inspect( + get( paramsOrCallback?: - | Params$Resource$Projects$Locations$Content$Inspect - | BodyResponseCallback, + | Params$Resource$Projects$Locations$Storedinfotypes$Get + | BodyResponseCallback, optionsOrCallback?: | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2InspectContentResponse - > - ): void | GaxiosPromise { + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Content$Inspect; + {}) as Params$Resource$Projects$Locations$Storedinfotypes$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Content$Inspect; + params = {} as Params$Resource$Projects$Locations$Storedinfotypes$Get; options = {}; } @@ -7275,94 +11650,94 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: ( - rootUrl + '/v2/{+parent}/locations/{location}/content:inspect' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options ), params, - requiredParams: ['parent', 'location'], - pathParams: ['location', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback ); } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2InspectContentResponse - >(parameters); + return createAPIRequest( + parameters + ); } } /** - * dlp.projects.locations.content.reidentify - * @desc Re-identifies content that has been de-identified. See https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example to learn more. - * @alias dlp.projects.locations.content.reidentify + * dlp.projects.locations.storedInfoTypes.list + * @desc Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * @alias dlp.projects.locations.storedInfoTypes.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.location The geographic location to process content reidentification. Reserved for future extensions. - * @param {string} params.parent The parent resource name. - * @param {().GooglePrivacyDlpV2ReidentifyContentRequest} params.resource Request body data + * @param {string} params.locationId The geographic location where stored infoTypes will be retrieved from. Use `-` for all locations. Reserved for future extensions. + * @param {string=} params.orderBy Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name. + * @param {integer=} params.pageSize Optional size of the page, can be limited by server. If zero server returns a page of max size 100. + * @param {string=} params.pageToken Optional page token to continue retrieval. Comes from previous call to `ListStoredInfoTypes`. + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. * @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 */ - reidentify( - params?: Params$Resource$Projects$Locations$Content$Reidentify, + list( + params?: Params$Resource$Projects$Locations$Storedinfotypes$List, options?: MethodOptions - ): GaxiosPromise; - reidentify( - params: Params$Resource$Projects$Locations$Content$Reidentify, + ): GaxiosPromise; + list( + params: Params$Resource$Projects$Locations$Storedinfotypes$List, options: | MethodOptions | BodyResponseCallback< - Schema$GooglePrivacyDlpV2ReidentifyContentResponse + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse >, callback: BodyResponseCallback< - Schema$GooglePrivacyDlpV2ReidentifyContentResponse + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse > ): void; - reidentify( - params: Params$Resource$Projects$Locations$Content$Reidentify, + list( + params: Params$Resource$Projects$Locations$Storedinfotypes$List, callback: BodyResponseCallback< - Schema$GooglePrivacyDlpV2ReidentifyContentResponse + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse > ): void; - reidentify( + list( callback: BodyResponseCallback< - Schema$GooglePrivacyDlpV2ReidentifyContentResponse + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse > ): void; - reidentify( + list( paramsOrCallback?: - | Params$Resource$Projects$Locations$Content$Reidentify + | Params$Resource$Projects$Locations$Storedinfotypes$List | BodyResponseCallback< - Schema$GooglePrivacyDlpV2ReidentifyContentResponse + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse >, optionsOrCallback?: | MethodOptions | BodyResponseCallback< - Schema$GooglePrivacyDlpV2ReidentifyContentResponse + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse >, callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2ReidentifyContentResponse + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse > ): void | GaxiosPromise< - Schema$GooglePrivacyDlpV2ReidentifyContentResponse + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse > { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Content$Reidentify; + {}) as Params$Resource$Projects$Locations$Storedinfotypes$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Content$Reidentify; + params = {} as Params$Resource$Projects$Locations$Storedinfotypes$List; options = {}; } @@ -7376,156 +11751,76 @@ export namespace dlp_v2 { options: Object.assign( { url: ( - rootUrl + '/v2/{+parent}/locations/{location}/content:reidentify' + rootUrl + '/v2/{+parent}/locations/{locationId}/storedInfoTypes' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + method: 'GET', }, options ), params, - requiredParams: ['parent', 'location'], - pathParams: ['location', 'parent'], + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback ); } else { return createAPIRequest< - Schema$GooglePrivacyDlpV2ReidentifyContentResponse + Schema$GooglePrivacyDlpV2ListStoredInfoTypesResponse >(parameters); } } - } - - export interface Params$Resource$Projects$Locations$Content$Deidentify - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The geographic location to process de-identification. Reserved for future extensions. - */ - location?: string; - /** - * The parent resource name, for example projects/my-project-id. - */ - parent?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$GooglePrivacyDlpV2DeidentifyContentRequest; - } - export interface Params$Resource$Projects$Locations$Content$Inspect - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The geographic location to process content inspection. Reserved for future extensions. - */ - location?: string; - /** - * The parent resource name, for example projects/my-project-id. - */ - parent?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$GooglePrivacyDlpV2InspectContentRequest; - } - export interface Params$Resource$Projects$Locations$Content$Reidentify - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The geographic location to process content reidentification. Reserved for future extensions. - */ - location?: string; - /** - * The parent resource name. - */ - parent?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$GooglePrivacyDlpV2ReidentifyContentRequest; - } - - export class Resource$Projects$Locations$Image { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * dlp.projects.locations.image.redact - * @desc Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. - * @alias dlp.projects.locations.image.redact + * dlp.projects.locations.storedInfoTypes.patch + * @desc Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * @alias dlp.projects.locations.storedInfoTypes.patch * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.location The geographic location to process the request. Reserved for future extensions. - * @param {string} params.parent The parent resource name, for example projects/my-project-id. - * @param {().GooglePrivacyDlpV2RedactImageRequest} params.resource Request body data + * @param {string} params.name Required. Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + * @param {().GooglePrivacyDlpV2UpdateStoredInfoTypeRequest} params.requestBody 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 */ - redact( - params?: Params$Resource$Projects$Locations$Image$Redact, + patch( + params?: Params$Resource$Projects$Locations$Storedinfotypes$Patch, options?: MethodOptions - ): GaxiosPromise; - redact( - params: Params$Resource$Projects$Locations$Image$Redact, + ): GaxiosPromise; + patch( + params: Params$Resource$Projects$Locations$Storedinfotypes$Patch, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback< - Schema$GooglePrivacyDlpV2RedactImageResponse - > + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - redact( - params: Params$Resource$Projects$Locations$Image$Redact, - callback: BodyResponseCallback< - Schema$GooglePrivacyDlpV2RedactImageResponse - > + patch( + params: Params$Resource$Projects$Locations$Storedinfotypes$Patch, + callback: BodyResponseCallback ): void; - redact( - callback: BodyResponseCallback< - Schema$GooglePrivacyDlpV2RedactImageResponse - > + patch( + callback: BodyResponseCallback ): void; - redact( + patch( paramsOrCallback?: - | Params$Resource$Projects$Locations$Image$Redact - | BodyResponseCallback, + | Params$Resource$Projects$Locations$Storedinfotypes$Patch + | BodyResponseCallback, optionsOrCallback?: | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2RedactImageResponse - > - ): void | GaxiosPromise { + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Image$Redact; + {}) as Params$Resource$Projects$Locations$Storedinfotypes$Patch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Image$Redact; + params = {} as Params$Resource$Projects$Locations$Storedinfotypes$Patch; options = {}; } @@ -7538,32 +11833,30 @@ export namespace dlp_v2 { const parameters = { options: Object.assign( { - url: ( - rootUrl + '/v2/{+parent}/locations/{location}/image:redact' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', }, options ), params, - requiredParams: ['parent', 'location'], - pathParams: ['location', 'parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } } - export interface Params$Resource$Projects$Locations$Image$Redact + export interface Params$Resource$Projects$Locations$Storedinfotypes$Create extends StandardParameters { /** * Auth client or API Key for the request @@ -7571,18 +11864,87 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * The geographic location to process the request. Reserved for future extensions. + * The geographic location to store the stored infoType. Reserved for future extensions. */ - location?: string; + locationId?: string; /** - * The parent resource name, for example projects/my-project-id. + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. */ parent?: string; /** * Request body metadata */ - requestBody?: Schema$GooglePrivacyDlpV2RedactImageRequest; + requestBody?: Schema$GooglePrivacyDlpV2CreateStoredInfoTypeRequest; + } + export interface Params$Resource$Projects$Locations$Storedinfotypes$Delete + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of the organization and storedInfoType to be deleted, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Storedinfotypes$Get + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of the organization and storedInfoType to be read, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Storedinfotypes$List + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * The geographic location where stored infoTypes will be retrieved from. Use `-` for all locations. Reserved for future extensions. + */ + locationId?: string; + /** + * Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name. + */ + orderBy?: string; + /** + * Optional size of the page, can be limited by server. If zero server returns a page of max size 100. + */ + pageSize?: number; + /** + * Optional page token to continue retrieval. Comes from previous call to `ListStoredInfoTypes`. + */ + pageToken?: string; + /** + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Storedinfotypes$Patch + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GooglePrivacyDlpV2UpdateStoredInfoTypeRequest; } export class Resource$Projects$Storedinfotypes { @@ -7598,8 +11960,8 @@ export namespace dlp_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.parent The parent resource name, for example projects/my-project-id or organizations/my-org-id. - * @param {().GooglePrivacyDlpV2CreateStoredInfoTypeRequest} params.resource Request body data + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * @param {().GooglePrivacyDlpV2CreateStoredInfoTypeRequest} params.requestBody 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 @@ -7682,7 +12044,7 @@ export namespace dlp_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Resource name of the organization and storedInfoType to be deleted, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + * @param {string} params.name Required. Resource name of the organization and storedInfoType to be deleted, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. * @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 @@ -7753,7 +12115,7 @@ export namespace dlp_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Resource name of the organization and storedInfoType to be read, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + * @param {string} params.name Required. Resource name of the organization and storedInfoType to be read, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. * @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 @@ -7833,10 +12195,11 @@ export namespace dlp_v2 { * @memberOf! () * * @param {object} params Parameters for request + * @param {string=} params.locationId The geographic location where stored infoTypes will be retrieved from. Use `-` for all locations. Reserved for future extensions. * @param {string=} params.orderBy Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name. * @param {integer=} params.pageSize Optional size of the page, can be limited by server. If zero server returns a page of max size 100. * @param {string=} params.pageToken Optional page token to continue retrieval. Comes from previous call to `ListStoredInfoTypes`. - * @param {string} params.parent The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * @param {string} params.parent Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. * @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 @@ -7935,8 +12298,8 @@ export namespace dlp_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. - * @param {().GooglePrivacyDlpV2UpdateStoredInfoTypeRequest} params.resource Request body data + * @param {string} params.name Required. Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + * @param {().GooglePrivacyDlpV2UpdateStoredInfoTypeRequest} params.requestBody 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 @@ -8018,7 +12381,7 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. */ parent?: string; @@ -8035,7 +12398,7 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Resource name of the organization and storedInfoType to be deleted, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + * Required. Resource name of the organization and storedInfoType to be deleted, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. */ name?: string; } @@ -8047,7 +12410,7 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Resource name of the organization and storedInfoType to be read, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + * Required. Resource name of the organization and storedInfoType to be read, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. */ name?: string; } @@ -8058,6 +12421,10 @@ export namespace dlp_v2 { */ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + /** + * The geographic location where stored infoTypes will be retrieved from. Use `-` for all locations. Reserved for future extensions. + */ + locationId?: string; /** * Optional comma separated list of fields to order by, followed by `asc` or `desc` postfix. This list is case-insensitive, default sorting order is ascending, redundant space characters are insignificant. Example: `name asc, display_name, create_time desc` Supported fields are: - `create_time`: corresponds to time the most recent version of the resource was created. - `state`: corresponds to the state of the resource. - `name`: corresponds to resource name. - `display_name`: corresponds to info type's display name. */ @@ -8071,7 +12438,7 @@ export namespace dlp_v2 { */ pageToken?: string; /** - * The parent resource name, for example projects/my-project-id or organizations/my-org-id. + * Required. The parent resource name, for example projects/my-project-id or organizations/my-org-id. */ parent?: string; } @@ -8083,7 +12450,7 @@ export namespace dlp_v2 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. + * Required. Resource name of organization and storedInfoType to be updated, for example `organizations/433245324/storedInfoTypes/432452342` or projects/project-id/storedInfoTypes/432452342. */ name?: string; diff --git a/src/apis/dns/v1.ts b/src/apis/dns/v1.ts index ae6915af8f8..d0c1f7ce3bf 100644 --- a/src/apis/dns/v1.ts +++ b/src/apis/dns/v1.ts @@ -767,7 +767,7 @@ export namespace dns_v1 { * @param {string=} params.clientOperationId For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. * @param {string} params.managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or id. * @param {string} params.project Identifies the project addressed by this request. - * @param {().Change} params.resource Request body data + * @param {().Change} params.requestBody 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 @@ -1692,7 +1692,7 @@ export namespace dns_v1 { * @param {object} params Parameters for request * @param {string=} params.clientOperationId For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. * @param {string} params.project Identifies the project addressed by this request. - * @param {().ManagedZone} params.resource Request body data + * @param {().ManagedZone} params.requestBody 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 @@ -2161,7 +2161,7 @@ export namespace dns_v1 { * @param {string=} params.clientOperationId For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. * @param {string} params.managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or id. * @param {string} params.project Identifies the project addressed by this request. - * @param {().ManagedZone} params.resource Request body data + * @param {().ManagedZone} params.requestBody 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 @@ -2237,7 +2237,7 @@ export namespace dns_v1 { * @param {string=} params.clientOperationId For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. * @param {string} params.managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or id. * @param {string} params.project Identifies the project addressed by this request. - * @param {().ManagedZone} params.resource Request body data + * @param {().ManagedZone} params.requestBody 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 @@ -2454,7 +2454,7 @@ export namespace dns_v1 { * @param {object} params Parameters for request * @param {string=} params.clientOperationId For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. * @param {string} params.project Identifies the project addressed by this request. - * @param {().Policy} params.resource Request body data + * @param {().Policy} params.requestBody 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 @@ -2749,7 +2749,7 @@ export namespace dns_v1 { * @param {string=} params.clientOperationId For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. * @param {string} params.policy User given friendly name of the policy addressed by this request. * @param {string} params.project Identifies the project addressed by this request. - * @param {().Policy} params.resource Request body data + * @param {().Policy} params.requestBody 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 @@ -2826,7 +2826,7 @@ export namespace dns_v1 { * @param {string=} params.clientOperationId For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. * @param {string} params.policy User given friendly name of the policy addressed by this request. * @param {string} params.project Identifies the project addressed by this request. - * @param {().Policy} params.resource Request body data + * @param {().Policy} params.requestBody 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 diff --git a/src/apis/dns/v1beta2.ts b/src/apis/dns/v1beta2.ts index 86cbbf369c3..14c5b654773 100644 --- a/src/apis/dns/v1beta2.ts +++ b/src/apis/dns/v1beta2.ts @@ -318,6 +318,10 @@ export namespace dns_v1beta2 { * For privately visible zones, the set of Virtual Private Cloud resources that the zone is visible from. */ privateVisibilityConfig?: Schema$ManagedZonePrivateVisibilityConfig; + /** + * The presence of this field indicates that this is a managed reverse lookup zone and Cloud DNS will resolve reverse lookup queries using automatically configured records for VPC resources. This only applies to networks listed under private_visibility_config. + */ + reverseLookupConfig?: Schema$ManagedZoneReverseLookupConfig; /** * The zone's visibility: public zones are exposed to the Internet, while private zones are visible only to Virtual Private Cloud resources. */ @@ -352,6 +356,10 @@ export namespace dns_v1beta2 { targetNameServers?: Schema$ManagedZoneForwardingConfigNameServerTarget[]; } export interface Schema$ManagedZoneForwardingConfigNameServerTarget { + /** + * Forwarding path for this NameServerTarget, if unset or set to DEFAULT, Cloud DNS will make forwarding decision based on address ranges, i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go to the Internet. When set to PRIVATE, Cloud DNS will always send queries through VPC for this target + */ + forwardingPath?: string | null; /** * IPv4 address of a target name server. */ @@ -420,6 +428,12 @@ export namespace dns_v1beta2 { */ networkUrl?: string | null; } + export interface Schema$ManagedZoneReverseLookupConfig { + /** + * Identifies what kind of resource this is. Value: the fixed string "dns#managedZoneReverseLookupConfig". + */ + kind?: string | null; + } export interface Schema$ManagedZonesListResponse { header?: Schema$ResponseHeader; /** @@ -563,6 +577,10 @@ export namespace dns_v1beta2 { targetNameServers?: Schema$PolicyAlternativeNameServerConfigTargetNameServer[]; } export interface Schema$PolicyAlternativeNameServerConfigTargetNameServer { + /** + * Forwarding path for this TargetNameServer, if unset or set to DEFAULT, Cloud DNS will make forwarding decision based on address ranges, i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go to the Internet. When set to PRIVATE, Cloud DNS will always send queries through VPC for this target + */ + forwardingPath?: string | null; /** * IPv4 address to forward to. */ @@ -738,7 +756,7 @@ export namespace dns_v1beta2 { * @param {string=} params.clientOperationId For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. * @param {string} params.managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or id. * @param {string} params.project Identifies the project addressed by this request. - * @param {().Change} params.resource Request body data + * @param {().Change} params.requestBody 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 @@ -1487,7 +1505,7 @@ export namespace dns_v1beta2 { * @param {object} params Parameters for request * @param {string=} params.clientOperationId For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. * @param {string} params.project Identifies the project addressed by this request. - * @param {().ManagedZone} params.resource Request body data + * @param {().ManagedZone} params.requestBody 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 @@ -1790,7 +1808,7 @@ export namespace dns_v1beta2 { * @param {string=} params.clientOperationId For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. * @param {string} params.managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or id. * @param {string} params.project Identifies the project addressed by this request. - * @param {().ManagedZone} params.resource Request body data + * @param {().ManagedZone} params.requestBody 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 @@ -1867,7 +1885,7 @@ export namespace dns_v1beta2 { * @param {string=} params.clientOperationId For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. * @param {string} params.managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or id. * @param {string} params.project Identifies the project addressed by this request. - * @param {().ManagedZone} params.resource Request body data + * @param {().ManagedZone} params.requestBody 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 @@ -2085,7 +2103,7 @@ export namespace dns_v1beta2 { * @param {object} params Parameters for request * @param {string=} params.clientOperationId For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. * @param {string} params.project Identifies the project addressed by this request. - * @param {().Policy} params.resource Request body data + * @param {().Policy} params.requestBody 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 @@ -2380,7 +2398,7 @@ export namespace dns_v1beta2 { * @param {string=} params.clientOperationId For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. * @param {string} params.policy User given friendly name of the policy addressed by this request. * @param {string} params.project Identifies the project addressed by this request. - * @param {().Policy} params.resource Request body data + * @param {().Policy} params.requestBody 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 @@ -2457,7 +2475,7 @@ export namespace dns_v1beta2 { * @param {string=} params.clientOperationId For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. * @param {string} params.policy User given friendly name of the policy addressed by this request. * @param {string} params.project Identifies the project addressed by this request. - * @param {().Policy} params.resource Request body data + * @param {().Policy} params.requestBody 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 diff --git a/src/apis/dns/v2beta1.ts b/src/apis/dns/v2beta1.ts index e4d0f16803f..d742c25baf2 100644 --- a/src/apis/dns/v2beta1.ts +++ b/src/apis/dns/v2beta1.ts @@ -763,7 +763,7 @@ export namespace dns_v2beta1 { * @param {string=} params.clientOperationId For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. * @param {string} params.managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or id. * @param {string} params.project Identifies the project addressed by this request. - * @param {().Change} params.resource Request body data + * @param {().Change} params.requestBody 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 @@ -1904,7 +1904,7 @@ export namespace dns_v2beta1 { * @param {object} params Parameters for request * @param {string=} params.clientOperationId For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. * @param {string} params.project Identifies the project addressed by this request. - * @param {().ManagedZone} params.resource Request body data + * @param {().ManagedZone} params.requestBody 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 @@ -2415,7 +2415,7 @@ export namespace dns_v2beta1 { * @param {string=} params.clientOperationId For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. * @param {string} params.managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or id. * @param {string} params.project Identifies the project addressed by this request. - * @param {().ManagedZone} params.resource Request body data + * @param {().ManagedZone} params.requestBody 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 @@ -2546,7 +2546,7 @@ export namespace dns_v2beta1 { * @param {string=} params.clientOperationId For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. * @param {string} params.managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or id. * @param {string} params.project Identifies the project addressed by this request. - * @param {().ManagedZone} params.resource Request body data + * @param {().ManagedZone} params.requestBody 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 @@ -2764,7 +2764,7 @@ export namespace dns_v2beta1 { * @param {object} params Parameters for request * @param {string=} params.clientOperationId For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. * @param {string} params.project Identifies the project addressed by this request. - * @param {().Policy} params.resource Request body data + * @param {().Policy} params.requestBody 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 @@ -3059,7 +3059,7 @@ export namespace dns_v2beta1 { * @param {string=} params.clientOperationId For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. * @param {string} params.policy User given friendly name of the policy addressed by this request. * @param {string} params.project Identifies the project addressed by this request. - * @param {().Policy} params.resource Request body data + * @param {().Policy} params.requestBody 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 @@ -3136,7 +3136,7 @@ export namespace dns_v2beta1 { * @param {string=} params.clientOperationId For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. * @param {string} params.policy User given friendly name of the policy addressed by this request. * @param {string} params.project Identifies the project addressed by this request. - * @param {().Policy} params.resource Request body data + * @param {().Policy} params.requestBody 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 diff --git a/src/apis/docs/v1.ts b/src/apis/docs/v1.ts index 44c36d050de..7aacfe11a4e 100644 --- a/src/apis/docs/v1.ts +++ b/src/apis/docs/v1.ts @@ -266,7 +266,7 @@ export namespace docs_v1 { textStyle?: Schema$TextStyle; } /** - * Creates a Footer. The new footer will be applied to SectionStyle or the DocumentStyle. If a footer of the specified type already exists then a 400 bad request error will be returned. + * Creates a Footer. The new footer will be applied to the DocumentStyle. If a footer of the specified type already exists then a 400 bad request error will be returned. */ export interface Schema$CreateFooterRequest { /** @@ -284,7 +284,7 @@ export namespace docs_v1 { footerId?: string | null; } /** - * Creates a Header. The new header will be applied to SectionStyle or the DocumentStyle. If a header of the specified type already exists then a 400 bad request error will be returned. + * Creates a Header. The new header will be applied to the DocumentStyle. If a header of the specified type already exists then a 400 bad request error will be returned. */ export interface Schema$CreateHeaderRequest { /** @@ -2968,7 +2968,7 @@ export namespace docs_v1 { * * @param {object} params Parameters for request * @param {string} params.documentId The ID of the document to update. - * @param {().BatchUpdateDocumentRequest} params.resource Request body data + * @param {().BatchUpdateDocumentRequest} params.requestBody 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 @@ -3049,7 +3049,7 @@ export namespace docs_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Document} params.resource Request body data + * @param {().Document} params.requestBody 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 diff --git a/src/apis/doubleclickbidmanager/index.ts b/src/apis/doubleclickbidmanager/index.ts index e6cd0e715ad..66c464bc00e 100644 --- a/src/apis/doubleclickbidmanager/index.ts +++ b/src/apis/doubleclickbidmanager/index.ts @@ -14,12 +14,20 @@ /*! THIS FILE IS AUTO-GENERATED */ import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; +import {doubleclickbidmanager_v1_1} from './v1.1'; import {doubleclickbidmanager_v1} from './v1'; export const VERSIONS = { + 'v1.1': doubleclickbidmanager_v1_1.Doubleclickbidmanager, v1: doubleclickbidmanager_v1.Doubleclickbidmanager, }; +export function doubleclickbidmanager( + version: 'v1.1' +): doubleclickbidmanager_v1_1.Doubleclickbidmanager; +export function doubleclickbidmanager( + options: doubleclickbidmanager_v1_1.Options +): doubleclickbidmanager_v1_1.Doubleclickbidmanager; export function doubleclickbidmanager( version: 'v1' ): doubleclickbidmanager_v1.Doubleclickbidmanager; @@ -27,10 +35,16 @@ export function doubleclickbidmanager( options: doubleclickbidmanager_v1.Options ): doubleclickbidmanager_v1.Doubleclickbidmanager; export function doubleclickbidmanager< - T = doubleclickbidmanager_v1.Doubleclickbidmanager + T = + | doubleclickbidmanager_v1_1.Doubleclickbidmanager + | doubleclickbidmanager_v1.Doubleclickbidmanager >( this: GoogleConfigurable, - versionOrOptions: 'v1' | doubleclickbidmanager_v1.Options + versionOrOptions: + | 'v1.1' + | doubleclickbidmanager_v1_1.Options + | 'v1' + | doubleclickbidmanager_v1.Options ) { return getAPI('doubleclickbidmanager', versionOrOptions, VERSIONS, this); } diff --git a/src/apis/doubleclickbidmanager/v1.1.ts b/src/apis/doubleclickbidmanager/v1.1.ts new file mode 100644 index 00000000000..ea1eaf57f64 --- /dev/null +++ b/src/apis/doubleclickbidmanager/v1.1.ts @@ -0,0 +1,1357 @@ +// 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 doubleclickbidmanager_v1_1 { + export interface Options extends GlobalOptions { + version: 'v1.1'; + } + + 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; + } + + /** + * DoubleClick Bid Manager API + * + * API for viewing and managing your reports in DoubleClick Bid Manager. + * + * @example + * const {google} = require('googleapis'); + * const doubleclickbidmanager = google.doubleclickbidmanager('v1.1'); + * + * @namespace doubleclickbidmanager + * @type {Function} + * @version v1.1 + * @variation v1.1 + * @param {object=} options Options for Doubleclickbidmanager + */ + export class Doubleclickbidmanager { + context: APIRequestContext; + lineitems: Resource$Lineitems; + queries: Resource$Queries; + reports: Resource$Reports; + sdf: Resource$Sdf; + + constructor(options: GlobalOptions, google?: GoogleConfigurable) { + this.context = { + _options: options || {}, + google, + }; + + this.lineitems = new Resource$Lineitems(this.context); + this.queries = new Resource$Queries(this.context); + this.reports = new Resource$Reports(this.context); + this.sdf = new Resource$Sdf(this.context); + } + } + + /** + * Request to fetch stored line items. + */ + export interface Schema$DownloadLineItemsRequest { + /** + * File specification (column names, types, order) in which the line items will be returned. Default to EWF. + */ + fileSpec?: string | null; + /** + * Ids of the specified filter type used to filter line items to fetch. If omitted, all the line items will be returned. + */ + filterIds?: string[] | null; + /** + * Filter type used to filter line items to fetch. + */ + filterType?: string | null; + /** + * Format in which the line items will be returned. Default to CSV. + */ + format?: string | null; + } + /** + * Download line items response. + */ + export interface Schema$DownloadLineItemsResponse { + /** + * Retrieved line items in CSV format. For more information about file formats, see Entity Write File Format. + */ + lineItems?: string | null; + } + /** + * Request to fetch stored inventory sources, campaigns, insertion orders, line items, TrueView ad groups and ads. + */ + export interface Schema$DownloadRequest { + /** + * File types that will be returned. If INVENTORY_SOURCE is requested, no other file types may be requested. Acceptable values are: - "AD" - "AD_GROUP" - "CAMPAIGN" - "INSERTION_ORDER" - "INVENTORY_SOURCE" - "LINE_ITEM" + */ + fileTypes?: string[] | null; + /** + * The IDs of the specified filter type. This is used to filter entities to fetch. At least one ID must be specified. + */ + filterIds?: string[] | null; + /** + * Filter type used to filter entities to fetch. PARTNER_ID and INVENTORY_SOURCE_ID may only be used when downloading inventory sources. + */ + filterType?: string | null; + /** + * SDF Version (column names, types, order) in which the entities will be returned. Default to 3.1. + */ + version?: string | null; + } + /** + * Download response. + */ + export interface Schema$DownloadResponse { + /** + * Retrieved ad groups in SDF format. + */ + adGroups?: string | null; + /** + * Retrieved ads in SDF format. + */ + ads?: string | null; + /** + * Retrieved campaigns in SDF format. + */ + campaigns?: string | null; + /** + * Retrieved insertion orders in SDF format. + */ + insertionOrders?: string | null; + inventorySources?: string | null; + /** + * Retrieved line items in SDF format. + */ + lineItems?: string | null; + } + /** + * Filter used to match traffic data in your report. + */ + export interface Schema$FilterPair { + /** + * Filter type. + */ + type?: string | null; + /** + * Filter value. + */ + value?: string | null; + } + /** + * List queries response. + */ + export interface Schema$ListQueriesResponse { + /** + * Identifies what kind of resource this is. Value: the fixed string "doubleclickbidmanager#listQueriesResponse". + */ + kind?: string | null; + /** + * Next page's pagination token if one exists. + */ + nextPageToken?: string | null; + /** + * Retrieved queries. + */ + queries?: Schema$Query[]; + } + /** + * List reports response. + */ + export interface Schema$ListReportsResponse { + /** + * Identifies what kind of resource this is. Value: the fixed string "doubleclickbidmanager#listReportsResponse". + */ + kind?: string | null; + /** + * Next page's pagination token if one exists. + */ + nextPageToken?: string | null; + /** + * Retrieved reports. + */ + reports?: Schema$Report[]; + } + /** + * Parameters of a query or report. + */ + export interface Schema$Parameters { + /** + * Filters used to match traffic data in your report. + */ + filters?: Schema$FilterPair[]; + /** + * Data is grouped by the filters listed in this field. + */ + groupBys?: string[] | null; + /** + * Deprecated. This field is no longer in use. + */ + includeInviteData?: boolean | null; + /** + * Metrics to include as columns in your report. + */ + metrics?: string[] | null; + /** + * Report type. + */ + type?: string | null; + } + /** + * Represents a query. + */ + export interface Schema$Query { + /** + * Identifies what kind of resource this is. Value: the fixed string "doubleclickbidmanager#query". + */ + kind?: string | null; + /** + * Query metadata. + */ + metadata?: Schema$QueryMetadata; + /** + * Query parameters. + */ + params?: Schema$Parameters; + /** + * Query ID. + */ + queryId?: string | null; + /** + * The ending time for the data that is shown in the report. Note, reportDataEndTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise. + */ + reportDataEndTimeMs?: string | null; + /** + * The starting time for the data that is shown in the report. Note, reportDataStartTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise. + */ + reportDataStartTimeMs?: string | null; + /** + * Information on how often and when to run a query. + */ + schedule?: Schema$QuerySchedule; + /** + * Canonical timezone code for report data time. Defaults to America/New_York. + */ + timezoneCode?: string | null; + } + /** + * Query metadata. + */ + export interface Schema$QueryMetadata { + /** + * Range of report data. + */ + dataRange?: string | null; + /** + * Format of the generated report. + */ + format?: string | null; + /** + * The path to the location in Google Cloud Storage where the latest report is stored. + */ + googleCloudStoragePathForLatestReport?: string | null; + /** + * The path in Google Drive for the latest report. + */ + googleDrivePathForLatestReport?: string | null; + /** + * The time when the latest report started to run. + */ + latestReportRunTimeMs?: string | null; + /** + * Locale of the generated reports. Valid values are cs CZECH de GERMAN en ENGLISH es SPANISH fr FRENCH it ITALIAN ja JAPANESE ko KOREAN pl POLISH pt-BR BRAZILIAN_PORTUGUESE ru RUSSIAN tr TURKISH uk UKRAINIAN zh-CN CHINA_CHINESE zh-TW TAIWAN_CHINESE An locale string not in the list above will generate reports in English. + */ + locale?: string | null; + /** + * Number of reports that have been generated for the query. + */ + reportCount?: number | null; + /** + * Whether the latest report is currently running. + */ + running?: boolean | null; + /** + * Whether to send an email notification when a report is ready. Default to false. + */ + sendNotification?: boolean | null; + /** + * List of email addresses which are sent email notifications when the report is finished. Separate from sendNotification. + */ + shareEmailAddress?: string[] | null; + /** + * Query title. It is used to name the reports generated from this query. + */ + title?: string | null; + } + /** + * Information on how frequently and when to run a query. + */ + export interface Schema$QuerySchedule { + /** + * Datetime to periodically run the query until. + */ + endTimeMs?: string | null; + /** + * How often the query is run. + */ + frequency?: string | null; + /** + * Time of day at which a new report will be generated, represented as minutes past midnight. Range is 0 to 1439. Only applies to scheduled reports. + */ + nextRunMinuteOfDay?: number | null; + /** + * Canonical timezone code for report generation time. Defaults to America/New_York. + */ + nextRunTimezoneCode?: string | null; + } + /** + * Represents a report. + */ + export interface Schema$Report { + /** + * Key used to identify a report. + */ + key?: Schema$ReportKey; + /** + * Report metadata. + */ + metadata?: Schema$ReportMetadata; + /** + * Report parameters. + */ + params?: Schema$Parameters; + } + /** + * An explanation of a report failure. + */ + export interface Schema$ReportFailure { + /** + * Error code that shows why the report was not created. + */ + errorCode?: string | null; + } + /** + * Key used to identify a report. + */ + export interface Schema$ReportKey { + /** + * Query ID. + */ + queryId?: string | null; + /** + * Report ID. + */ + reportId?: string | null; + } + /** + * Report metadata. + */ + export interface Schema$ReportMetadata { + /** + * The path to the location in Google Cloud Storage where the report is stored. + */ + googleCloudStoragePath?: string | null; + /** + * The ending time for the data that is shown in the report. + */ + reportDataEndTimeMs?: string | null; + /** + * The starting time for the data that is shown in the report. + */ + reportDataStartTimeMs?: string | null; + /** + * Report status. + */ + status?: Schema$ReportStatus; + } + /** + * Report status. + */ + export interface Schema$ReportStatus { + /** + * If the report failed, this records the cause. + */ + failure?: Schema$ReportFailure; + /** + * The time when this report either completed successfully or failed. + */ + finishTimeMs?: string | null; + /** + * The file type of the report. + */ + format?: string | null; + /** + * The state of the report. + */ + state?: string | null; + } + /** + * Represents the upload status of a row in the request. + */ + export interface Schema$RowStatus { + /** + * Whether the stored entity is changed as a result of upload. + */ + changed?: boolean | null; + /** + * Entity Id. + */ + entityId?: string | null; + /** + * Entity name. + */ + entityName?: string | null; + /** + * Reasons why the entity can't be uploaded. + */ + errors?: string[] | null; + /** + * Whether the entity is persisted. + */ + persisted?: boolean | null; + /** + * Row number. + */ + rowNumber?: number | null; + } + /** + * Request to run a stored query to generate a report. + */ + export interface Schema$RunQueryRequest { + /** + * Report data range used to generate the report. + */ + dataRange?: string | null; + /** + * The ending time for the data that is shown in the report. Note, reportDataEndTimeMs is required if dataRange is CUSTOM_DATES and ignored otherwise. + */ + reportDataEndTimeMs?: string | null; + /** + * The starting time for the data that is shown in the report. Note, reportDataStartTimeMs is required if dataRange is CUSTOM_DATES and ignored otherwise. + */ + reportDataStartTimeMs?: string | null; + /** + * Canonical timezone code for report data time. Defaults to America/New_York. + */ + timezoneCode?: string | null; + } + /** + * Request to upload line items. + */ + export interface Schema$UploadLineItemsRequest { + /** + * Set to true to get upload status without actually persisting the line items. + */ + dryRun?: boolean | null; + /** + * Format the line items are in. Default to CSV. + */ + format?: string | null; + /** + * Line items in CSV to upload. Refer to Entity Write File Format for more information on file format. + */ + lineItems?: string | null; + } + /** + * Upload line items response. + */ + export interface Schema$UploadLineItemsResponse { + /** + * Status of upload. + */ + uploadStatus?: Schema$UploadStatus; + } + /** + * Represents the status of upload. + */ + export interface Schema$UploadStatus { + /** + * Reasons why upload can't be completed. + */ + errors?: string[] | null; + /** + * Per-row upload status. + */ + rowStatus?: Schema$RowStatus[]; + } + + export class Resource$Lineitems { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * doubleclickbidmanager.lineitems.downloadlineitems + * @desc Retrieves line items in CSV format. TrueView line items are not supported. + * @alias doubleclickbidmanager.lineitems.downloadlineitems + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {().DownloadLineItemsRequest} params.requestBody 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 + */ + downloadlineitems( + params?: Params$Resource$Lineitems$Downloadlineitems, + options?: MethodOptions + ): GaxiosPromise; + downloadlineitems( + params: Params$Resource$Lineitems$Downloadlineitems, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + downloadlineitems( + params: Params$Resource$Lineitems$Downloadlineitems, + callback: BodyResponseCallback + ): void; + downloadlineitems( + callback: BodyResponseCallback + ): void; + downloadlineitems( + paramsOrCallback?: + | Params$Resource$Lineitems$Downloadlineitems + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Lineitems$Downloadlineitems; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Lineitems$Downloadlineitems; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/doubleclickbidmanager/v1.1/lineitems/downloadlineitems' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, + options + ), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * doubleclickbidmanager.lineitems.uploadlineitems + * @desc Uploads line items in CSV format. TrueView line items are not supported. + * @alias doubleclickbidmanager.lineitems.uploadlineitems + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {().UploadLineItemsRequest} params.requestBody 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 + */ + uploadlineitems( + params?: Params$Resource$Lineitems$Uploadlineitems, + options?: MethodOptions + ): GaxiosPromise; + uploadlineitems( + params: Params$Resource$Lineitems$Uploadlineitems, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + uploadlineitems( + params: Params$Resource$Lineitems$Uploadlineitems, + callback: BodyResponseCallback + ): void; + uploadlineitems( + callback: BodyResponseCallback + ): void; + uploadlineitems( + paramsOrCallback?: + | Params$Resource$Lineitems$Uploadlineitems + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Lineitems$Uploadlineitems; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Lineitems$Uploadlineitems; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + '/doubleclickbidmanager/v1.1/lineitems/uploadlineitems' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, + options + ), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Lineitems$Downloadlineitems + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Request body metadata + */ + requestBody?: Schema$DownloadLineItemsRequest; + } + export interface Params$Resource$Lineitems$Uploadlineitems + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Request body metadata + */ + requestBody?: Schema$UploadLineItemsRequest; + } + + export class Resource$Queries { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * doubleclickbidmanager.queries.createquery + * @desc Creates a query. + * @alias doubleclickbidmanager.queries.createquery + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {().Query} params.requestBody 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 + */ + createquery( + params?: Params$Resource$Queries$Createquery, + options?: MethodOptions + ): GaxiosPromise; + createquery( + params: Params$Resource$Queries$Createquery, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + createquery( + params: Params$Resource$Queries$Createquery, + callback: BodyResponseCallback + ): void; + createquery(callback: BodyResponseCallback): void; + createquery( + paramsOrCallback?: + | Params$Resource$Queries$Createquery + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Queries$Createquery; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Queries$Createquery; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/doubleclickbidmanager/v1.1/query').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * doubleclickbidmanager.queries.deletequery + * @desc Deletes a stored query as well as the associated stored reports. + * @alias doubleclickbidmanager.queries.deletequery + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.queryId Query ID to delete. + * @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 + */ + deletequery( + params?: Params$Resource$Queries$Deletequery, + options?: MethodOptions + ): GaxiosPromise; + deletequery( + params: Params$Resource$Queries$Deletequery, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + deletequery( + params: Params$Resource$Queries$Deletequery, + callback: BodyResponseCallback + ): void; + deletequery(callback: BodyResponseCallback): void; + deletequery( + paramsOrCallback?: + | Params$Resource$Queries$Deletequery + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Queries$Deletequery; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Queries$Deletequery; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + '/doubleclickbidmanager/v1.1/query/{queryId}' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, + options + ), + params, + requiredParams: ['queryId'], + pathParams: ['queryId'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * doubleclickbidmanager.queries.getquery + * @desc Retrieves a stored query. + * @alias doubleclickbidmanager.queries.getquery + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.queryId Query ID to retrieve. + * @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 + */ + getquery( + params?: Params$Resource$Queries$Getquery, + options?: MethodOptions + ): GaxiosPromise; + getquery( + params: Params$Resource$Queries$Getquery, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + getquery( + params: Params$Resource$Queries$Getquery, + callback: BodyResponseCallback + ): void; + getquery(callback: BodyResponseCallback): void; + getquery( + paramsOrCallback?: + | Params$Resource$Queries$Getquery + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Queries$Getquery; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Queries$Getquery; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + '/doubleclickbidmanager/v1.1/query/{queryId}' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['queryId'], + pathParams: ['queryId'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * doubleclickbidmanager.queries.listqueries + * @desc Retrieves stored queries. + * @alias doubleclickbidmanager.queries.listqueries + * @memberOf! () + * + * @param {object=} params Parameters for request + * @param {integer=} params.pageSize Maximum number of results per page. Must be between 1 and 100. Defaults to 100 if unspecified. + * @param {string=} params.pageToken Optional pagination 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 + */ + listqueries( + params?: Params$Resource$Queries$Listqueries, + options?: MethodOptions + ): GaxiosPromise; + listqueries( + params: Params$Resource$Queries$Listqueries, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + listqueries( + params: Params$Resource$Queries$Listqueries, + callback: BodyResponseCallback + ): void; + listqueries( + callback: BodyResponseCallback + ): void; + listqueries( + paramsOrCallback?: + | Params$Resource$Queries$Listqueries + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Queries$Listqueries; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Queries$Listqueries; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/doubleclickbidmanager/v1.1/queries').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + }, + options + ), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * doubleclickbidmanager.queries.runquery + * @desc Runs a stored query to generate a report. + * @alias doubleclickbidmanager.queries.runquery + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.queryId Query ID to run. + * @param {().RunQueryRequest} params.requestBody 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 + */ + runquery( + params?: Params$Resource$Queries$Runquery, + options?: MethodOptions + ): GaxiosPromise; + runquery( + params: Params$Resource$Queries$Runquery, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + runquery( + params: Params$Resource$Queries$Runquery, + callback: BodyResponseCallback + ): void; + runquery(callback: BodyResponseCallback): void; + runquery( + paramsOrCallback?: + | Params$Resource$Queries$Runquery + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Queries$Runquery; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Queries$Runquery; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + '/doubleclickbidmanager/v1.1/query/{queryId}' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, + options + ), + params, + requiredParams: ['queryId'], + pathParams: ['queryId'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Queries$Createquery + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Request body metadata + */ + requestBody?: Schema$Query; + } + export interface Params$Resource$Queries$Deletequery + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Query ID to delete. + */ + queryId?: string; + } + export interface Params$Resource$Queries$Getquery extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Query ID to retrieve. + */ + queryId?: string; + } + export interface Params$Resource$Queries$Listqueries + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Maximum number of results per page. Must be between 1 and 100. Defaults to 100 if unspecified. + */ + pageSize?: number; + /** + * Optional pagination token. + */ + pageToken?: string; + } + export interface Params$Resource$Queries$Runquery extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Query ID to run. + */ + queryId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$RunQueryRequest; + } + + export class Resource$Reports { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * doubleclickbidmanager.reports.listreports + * @desc Retrieves stored reports. + * @alias doubleclickbidmanager.reports.listreports + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {integer=} params.pageSize Maximum number of results per page. Must be between 1 and 100. Defaults to 100 if unspecified. + * @param {string=} params.pageToken Optional pagination token. + * @param {string} params.queryId Query ID with which the reports are associated. + * @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 + */ + listreports( + params?: Params$Resource$Reports$Listreports, + options?: MethodOptions + ): GaxiosPromise; + listreports( + params: Params$Resource$Reports$Listreports, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + listreports( + params: Params$Resource$Reports$Listreports, + callback: BodyResponseCallback + ): void; + listreports( + callback: BodyResponseCallback + ): void; + listreports( + paramsOrCallback?: + | Params$Resource$Reports$Listreports + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Reports$Listreports; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Listreports; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + '/doubleclickbidmanager/v1.1/queries/{queryId}/reports' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['queryId'], + pathParams: ['queryId'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Reports$Listreports + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Maximum number of results per page. Must be between 1 and 100. Defaults to 100 if unspecified. + */ + pageSize?: number; + /** + * Optional pagination token. + */ + pageToken?: string; + /** + * Query ID with which the reports are associated. + */ + queryId?: string; + } + + export class Resource$Sdf { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * doubleclickbidmanager.sdf.download + * @desc Retrieves entities in SDF format. + * @alias doubleclickbidmanager.sdf.download + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {().DownloadRequest} params.requestBody 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 + */ + download( + params?: Params$Resource$Sdf$Download, + options?: MethodOptions + ): GaxiosPromise; + download( + params: Params$Resource$Sdf$Download, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + download( + params: Params$Resource$Sdf$Download, + callback: BodyResponseCallback + ): void; + download(callback: BodyResponseCallback): void; + download( + paramsOrCallback?: + | Params$Resource$Sdf$Download + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Sdf$Download; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sdf$Download; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/doubleclickbidmanager/v1.1/sdf/download').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Sdf$Download extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Request body metadata + */ + requestBody?: Schema$DownloadRequest; + } +} diff --git a/src/apis/doubleclickbidmanager/v1.ts b/src/apis/doubleclickbidmanager/v1.ts index 6b3e4be0d6b..1cc98be373d 100644 --- a/src/apis/doubleclickbidmanager/v1.ts +++ b/src/apis/doubleclickbidmanager/v1.ts @@ -537,7 +537,7 @@ export namespace doubleclickbidmanager_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().DownloadLineItemsRequest} params.resource Request body data + * @param {().DownloadLineItemsRequest} params.requestBody 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 @@ -617,7 +617,7 @@ export namespace doubleclickbidmanager_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().UploadLineItemsRequest} params.resource Request body data + * @param {().UploadLineItemsRequest} params.requestBody 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 @@ -726,7 +726,7 @@ export namespace doubleclickbidmanager_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Query} params.resource Request body data + * @param {().Query} params.requestBody 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 @@ -1015,7 +1015,7 @@ export namespace doubleclickbidmanager_v1 { * * @param {object} params Parameters for request * @param {string} params.queryId Query ID to run. - * @param {().RunQueryRequest} params.resource Request body data + * @param {().RunQueryRequest} params.requestBody 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 @@ -1246,7 +1246,7 @@ export namespace doubleclickbidmanager_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().DownloadRequest} params.resource Request body data + * @param {().DownloadRequest} params.requestBody 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 diff --git a/src/apis/doubleclicksearch/v2.ts b/src/apis/doubleclicksearch/v2.ts index f489596f4e5..01f4e037028 100644 --- a/src/apis/doubleclicksearch/v2.ts +++ b/src/apis/doubleclicksearch/v2.ts @@ -632,7 +632,7 @@ export namespace doubleclicksearch_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().ConversionList} params.resource Request body data + * @param {().ConversionList} params.requestBody 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 @@ -713,7 +713,7 @@ export namespace doubleclicksearch_v2 { * @param {integer} params.rowCount The number of conversions to return per call. * @param {integer} params.startDate First date (inclusive) on which to retrieve conversions. Format is yyyymmdd. * @param {integer} params.startRow The 0-based starting index for retrieving conversions results. - * @param {().ConversionList} params.resource Request body data + * @param {().ConversionList} params.requestBody 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 @@ -794,7 +794,7 @@ export namespace doubleclicksearch_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().ConversionList} params.resource Request body data + * @param {().ConversionList} params.requestBody 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 @@ -868,7 +868,7 @@ export namespace doubleclicksearch_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().UpdateAvailabilityRequest} params.resource Request body data + * @param {().UpdateAvailabilityRequest} params.requestBody 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 @@ -1083,7 +1083,7 @@ export namespace doubleclicksearch_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().ReportRequest} params.resource Request body data + * @param {().ReportRequest} params.requestBody 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 @@ -1297,7 +1297,7 @@ export namespace doubleclicksearch_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().ReportRequest} params.resource Request body data + * @param {().ReportRequest} params.requestBody 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 diff --git a/src/apis/drive/v2.ts b/src/apis/drive/v2.ts index 7342a753f31..599dfd04d8b 100644 --- a/src/apis/drive/v2.ts +++ b/src/apis/drive/v2.ts @@ -2210,7 +2210,7 @@ export namespace drive_v2 { * @param {boolean=} params.supportsAllDrives Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives. * @param {boolean=} params.supportsTeamDrives Deprecated use supportsAllDrives instead. * @param {string=} params.teamDriveId Deprecated use driveId instead. - * @param {().Channel} params.resource Request body data + * @param {().Channel} params.requestBody 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 @@ -2463,7 +2463,7 @@ export namespace drive_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Channel} params.resource Request body data + * @param {().Channel} params.requestBody 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 @@ -2700,7 +2700,7 @@ export namespace drive_v2 { * @param {string} params.folderId The ID of the folder. * @param {boolean=} params.supportsAllDrives Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives. * @param {boolean=} params.supportsTeamDrives Deprecated use supportsAllDrives instead. - * @param {().ChildReference} params.resource Request body data + * @param {().ChildReference} params.requestBody 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 @@ -3083,7 +3083,7 @@ export namespace drive_v2 { * * @param {object} params Parameters for request * @param {string} params.fileId The ID of the file. - * @param {().Comment} params.resource Request body data + * @param {().Comment} params.requestBody 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 @@ -3233,7 +3233,7 @@ export namespace drive_v2 { * @param {object} params Parameters for request * @param {string} params.commentId The ID of the comment. * @param {string} params.fileId The ID of the file. - * @param {().Comment} params.resource Request body data + * @param {().Comment} params.requestBody 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 @@ -3305,7 +3305,7 @@ export namespace drive_v2 { * @param {object} params Parameters for request * @param {string} params.commentId The ID of the comment. * @param {string} params.fileId The ID of the file. - * @param {().Comment} params.resource Request body data + * @param {().Comment} params.requestBody 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 @@ -3715,7 +3715,7 @@ export namespace drive_v2 { * * @param {object} params Parameters for request * @param {string} params.requestId An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a shared drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same shared drive. If the shared drive already exists a 409 error will be returned. - * @param {().Drive} params.resource Request body data + * @param {().Drive} params.requestBody 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 @@ -3929,7 +3929,7 @@ export namespace drive_v2 { * @param {object} params Parameters for request * @param {string} params.driveId The ID of the shared drive. * @param {boolean=} params.useDomainAdminAccess Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs. - * @param {().Drive} params.resource Request body data + * @param {().Drive} params.requestBody 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 @@ -4125,7 +4125,7 @@ export namespace drive_v2 { * @param {string=} params.timedTextLanguage The language of the timed text. * @param {string=} params.timedTextTrackName The timed text track name. * @param {string=} params.visibility The visibility of the new file. This parameter is only relevant when the source is not a native Google Doc and convert=false. - * @param {().File} params.resource Request body data + * @param {().File} params.requestBody 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 @@ -4573,7 +4573,7 @@ export namespace drive_v2 { * @param {string=} params.timedTextTrackName The timed text track name. * @param {boolean=} params.useContentAsIndexableText Whether to use the content as indexable text. * @param {string=} params.visibility The visibility of the new file. This parameter is only relevant when convert=false. - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents @@ -4745,7 +4745,7 @@ export namespace drive_v2 { * @param {string=} params.timedTextTrackName The timed text track name. * @param {boolean=} params.updateViewedDate Whether to update the view date after successfully updating the file. * @param {boolean=} params.useContentAsIndexableText Whether to use the content as indexable text. - * @param {().File} params.resource Request body data + * @param {().File} params.requestBody 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 @@ -5051,7 +5051,7 @@ export namespace drive_v2 { * @param {string=} params.timedTextTrackName The timed text track name. * @param {boolean=} params.updateViewedDate Whether to update the view date after successfully updating the file. * @param {boolean=} params.useContentAsIndexableText Whether to use the content as indexable text. - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents @@ -5136,7 +5136,7 @@ export namespace drive_v2 { * @param {boolean=} params.supportsAllDrives Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives. * @param {boolean=} params.supportsTeamDrives Deprecated use supportsAllDrives instead. * @param {boolean=} params.updateViewedDate Deprecated: Use files.update with modifiedDateBehavior=noChange, updateViewedDate=true and an empty request body. - * @param {().Channel} params.resource Request body data + * @param {().Channel} params.requestBody 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 @@ -5899,7 +5899,7 @@ export namespace drive_v2 { * @param {string} params.fileId The ID of the file. * @param {boolean=} params.supportsAllDrives Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives. * @param {boolean=} params.supportsTeamDrives Deprecated use supportsAllDrives instead. - * @param {().ParentReference} params.resource Request body data + * @param {().ParentReference} params.requestBody 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 @@ -6349,7 +6349,7 @@ export namespace drive_v2 { * @param {boolean=} params.supportsAllDrives Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives. * @param {boolean=} params.supportsTeamDrives Deprecated use supportsAllDrives instead. * @param {boolean=} params.useDomainAdminAccess Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs. - * @param {().Permission} params.resource Request body data + * @param {().Permission} params.requestBody 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 @@ -6508,7 +6508,7 @@ export namespace drive_v2 { * @param {boolean=} params.supportsTeamDrives Deprecated use supportsAllDrives instead. * @param {boolean=} params.transferOwnership Whether changing a role to 'owner' downgrades the current owners to writers. Does nothing if the specified role is not 'owner'. * @param {boolean=} params.useDomainAdminAccess Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs. - * @param {().Permission} params.resource Request body data + * @param {().Permission} params.requestBody 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 @@ -6588,7 +6588,7 @@ export namespace drive_v2 { * @param {boolean=} params.supportsTeamDrives Deprecated use supportsAllDrives instead. * @param {boolean=} params.transferOwnership Whether changing a role to 'owner' downgrades the current owners to writers. Does nothing if the specified role is not 'owner'. * @param {boolean=} params.useDomainAdminAccess Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs. - * @param {().Permission} params.resource Request body data + * @param {().Permission} params.requestBody 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 @@ -7032,7 +7032,7 @@ export namespace drive_v2 { * * @param {object} params Parameters for request * @param {string} params.fileId The ID of the file. - * @param {().Property} params.resource Request body data + * @param {().Property} params.requestBody 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 @@ -7180,7 +7180,7 @@ export namespace drive_v2 { * @param {string} params.fileId The ID of the file. * @param {string} params.propertyKey The key of the property. * @param {string=} params.visibility The visibility of the property. Allowed values are PRIVATE and PUBLIC. (Default: PRIVATE) - * @param {().Property} params.resource Request body data + * @param {().Property} params.requestBody 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 @@ -7253,7 +7253,7 @@ export namespace drive_v2 { * @param {string} params.fileId The ID of the file. * @param {string} params.propertyKey The key of the property. * @param {string=} params.visibility The visibility of the property. Allowed values are PRIVATE and PUBLIC. (Default: PRIVATE) - * @param {().Property} params.resource Request body data + * @param {().Property} params.requestBody 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 @@ -7802,7 +7802,7 @@ export namespace drive_v2 { * @param {object} params Parameters for request * @param {string} params.commentId The ID of the comment. * @param {string} params.fileId The ID of the file. - * @param {().CommentReply} params.resource Request body data + * @param {().CommentReply} params.requestBody 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 @@ -7953,7 +7953,7 @@ export namespace drive_v2 { * @param {string} params.commentId The ID of the comment. * @param {string} params.fileId The ID of the file. * @param {string} params.replyId The ID of the reply. - * @param {().CommentReply} params.resource Request body data + * @param {().CommentReply} params.requestBody 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 @@ -8029,7 +8029,7 @@ export namespace drive_v2 { * @param {string} params.commentId The ID of the comment. * @param {string} params.fileId The ID of the file. * @param {string} params.replyId The ID of the reply. - * @param {().CommentReply} params.resource Request body data + * @param {().CommentReply} params.requestBody 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 @@ -8466,7 +8466,7 @@ export namespace drive_v2 { * @param {object} params Parameters for request * @param {string} params.fileId The ID for the file. * @param {string} params.revisionId The ID for the revision. - * @param {().Revision} params.resource Request body data + * @param {().Revision} params.requestBody 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 @@ -8538,7 +8538,7 @@ export namespace drive_v2 { * @param {object} params Parameters for request * @param {string} params.fileId The ID for the file. * @param {string} params.revisionId The ID for the revision. - * @param {().Revision} params.resource Request body data + * @param {().Revision} params.requestBody 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 @@ -8852,7 +8852,7 @@ export namespace drive_v2 { * * @param {object} params Parameters for request * @param {string} params.requestId An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a Team Drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same Team Drive. If the Team Drive already exists a 409 error will be returned. - * @param {().TeamDrive} params.resource Request body data + * @param {().TeamDrive} params.requestBody 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 @@ -9004,7 +9004,7 @@ export namespace drive_v2 { * @param {object} params Parameters for request * @param {string} params.teamDriveId The ID of the Team Drive * @param {boolean=} params.useDomainAdminAccess Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs. - * @param {().TeamDrive} params.resource Request body data + * @param {().TeamDrive} params.requestBody 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 diff --git a/src/apis/drive/v3.ts b/src/apis/drive/v3.ts index edb80b0b836..f020f3e0c1d 100644 --- a/src/apis/drive/v3.ts +++ b/src/apis/drive/v3.ts @@ -803,7 +803,7 @@ export namespace drive_v3 { */ deleted?: boolean | null; /** - * A displayable name for users, groups or domains. + * The "pretty" name of the value of the permission. The following is a list of examples for each type of permission: - user - User's full name, as defined for their Google account, such as "Joe Smith." - group - Name of the Google Group, such as "The Company Administrators." - domain - String domain name, such as "thecompany.com." - anyone - No displayName is present. */ displayName?: string | null; /** @@ -819,7 +819,7 @@ export namespace drive_v3 { */ expirationTime?: string | null; /** - * The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId. + * The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId. IDs should be treated as opaque values. */ id?: string | null; /** @@ -853,7 +853,7 @@ export namespace drive_v3 { teamDrivePermissionType?: string; }> | null; /** - * The type of the grantee. Valid values are: - user - group - domain - anyone + * The type of the grantee. Valid values are: - user - group - domain - anyone When creating a permission, if type is user or group, you must provide an emailAddress for the user or group. When type is domain, you must provide a domain. There isn't extra information required for a anyone type. */ type?: string | null; } @@ -1404,7 +1404,7 @@ export namespace drive_v3 { * @param {boolean=} params.supportsAllDrives Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives. * @param {boolean=} params.supportsTeamDrives Deprecated use supportsAllDrives instead. * @param {string=} params.teamDriveId Deprecated use driveId instead. - * @param {().Channel} params.resource Request body data + * @param {().Channel} params.requestBody 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 @@ -1622,7 +1622,7 @@ export namespace drive_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Channel} params.resource Request body data + * @param {().Channel} params.requestBody 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 @@ -1713,7 +1713,7 @@ export namespace drive_v3 { * * @param {object} params Parameters for request * @param {string} params.fileId The ID of the file. - * @param {().Comment} params.resource Request body data + * @param {().Comment} params.requestBody 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 @@ -2006,7 +2006,7 @@ export namespace drive_v3 { * @param {object} params Parameters for request * @param {string} params.commentId The ID of the comment. * @param {string} params.fileId The ID of the file. - * @param {().Comment} params.resource Request body data + * @param {().Comment} params.requestBody 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 @@ -2182,7 +2182,7 @@ export namespace drive_v3 { * * @param {object} params Parameters for request * @param {string} params.requestId An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a shared drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same shared drive. If the shared drive already exists a 409 error will be returned. - * @param {().Drive} params.resource Request body data + * @param {().Drive} params.requestBody 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 @@ -2610,7 +2610,7 @@ export namespace drive_v3 { * @param {object} params Parameters for request * @param {string} params.driveId The ID of the shared drive. * @param {boolean=} params.useDomainAdminAccess Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs. - * @param {().Drive} params.resource Request body data + * @param {().Drive} params.requestBody 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 @@ -2802,7 +2802,7 @@ export namespace drive_v3 { * @param {string=} params.ocrLanguage A language hint for OCR processing during image import (ISO 639-1 code). * @param {boolean=} params.supportsAllDrives Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives. * @param {boolean=} params.supportsTeamDrives Deprecated use supportsAllDrives instead. - * @param {().File} params.resource Request body data + * @param {().File} params.requestBody 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 @@ -2879,7 +2879,7 @@ export namespace drive_v3 { * @param {boolean=} params.supportsAllDrives Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives. * @param {boolean=} params.supportsTeamDrives Deprecated use supportsAllDrives instead. * @param {boolean=} params.useContentAsIndexableText Whether to use the uploaded content as indexable text. - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents @@ -3406,7 +3406,7 @@ export namespace drive_v3 { * @param {boolean=} params.supportsAllDrives Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives. * @param {boolean=} params.supportsTeamDrives Deprecated use supportsAllDrives instead. * @param {boolean=} params.useContentAsIndexableText Whether to use the uploaded content as indexable text. - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents @@ -3488,7 +3488,7 @@ export namespace drive_v3 { * @param {string} params.fileId The ID of the file. * @param {boolean=} params.supportsAllDrives Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives. * @param {boolean=} params.supportsTeamDrives Deprecated use supportsAllDrives instead. - * @param {().Channel} params.resource Request body data + * @param {().Channel} params.requestBody 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 @@ -3886,7 +3886,7 @@ export namespace drive_v3 { * @param {boolean=} params.supportsTeamDrives Deprecated use supportsAllDrives instead. * @param {boolean=} params.transferOwnership Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. * @param {boolean=} params.useDomainAdminAccess Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs. - * @param {().Permission} params.resource Request body data + * @param {().Permission} params.requestBody 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 @@ -4196,7 +4196,7 @@ export namespace drive_v3 { * @param {boolean=} params.supportsTeamDrives Deprecated use supportsAllDrives instead. * @param {boolean=} params.transferOwnership Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. * @param {boolean=} params.useDomainAdminAccess Issue the request as a domain administrator; if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs. - * @param {().Permission} params.resource Request body data + * @param {().Permission} params.requestBody 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 @@ -4447,7 +4447,7 @@ export namespace drive_v3 { * @param {object} params Parameters for request * @param {string} params.commentId The ID of the comment. * @param {string} params.fileId The ID of the file. - * @param {().Reply} params.resource Request body data + * @param {().Reply} params.requestBody 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 @@ -4743,7 +4743,7 @@ export namespace drive_v3 { * @param {string} params.commentId The ID of the comment. * @param {string} params.fileId The ID of the file. * @param {string} params.replyId The ID of the reply. - * @param {().Reply} params.resource Request body data + * @param {().Reply} params.requestBody 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 @@ -5155,7 +5155,7 @@ export namespace drive_v3 { * @param {object} params Parameters for request * @param {string} params.fileId The ID of the file. * @param {string} params.revisionId The ID of the revision. - * @param {().Revision} params.resource Request body data + * @param {().Revision} params.requestBody 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 @@ -5307,7 +5307,7 @@ export namespace drive_v3 { * * @param {object} params Parameters for request * @param {string} params.requestId An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a Team Drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same Team Drive. If the Team Drive already exists a 409 error will be returned. - * @param {().TeamDrive} params.resource Request body data + * @param {().TeamDrive} params.requestBody 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 @@ -5605,7 +5605,7 @@ export namespace drive_v3 { * @param {object} params Parameters for request * @param {string} params.teamDriveId The ID of the Team Drive * @param {boolean=} params.useDomainAdminAccess Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs. - * @param {().TeamDrive} params.resource Request body data + * @param {().TeamDrive} params.requestBody 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 diff --git a/src/apis/driveactivity/v2.ts b/src/apis/driveactivity/v2.ts index c03ae5cd15b..4183e0cac73 100644 --- a/src/apis/driveactivity/v2.ts +++ b/src/apis/driveactivity/v2.ts @@ -871,7 +871,7 @@ export namespace driveactivity_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().QueryDriveActivityRequest} params.resource Request body data + * @param {().QueryDriveActivityRequest} params.requestBody 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 diff --git a/src/apis/factchecktools/v1alpha1.ts b/src/apis/factchecktools/v1alpha1.ts index 6b92d32a562..ed5540964ef 100644 --- a/src/apis/factchecktools/v1alpha1.ts +++ b/src/apis/factchecktools/v1alpha1.ts @@ -502,7 +502,7 @@ export namespace factchecktools_v1alpha1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage} params.resource Request body data + * @param {().GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage} params.requestBody 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 @@ -869,7 +869,7 @@ export namespace factchecktools_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.name The name of this `ClaimReview` markup page resource, in the form of `pages/{page_id}`. Except for update requests, this field is output-only and should not be set by the user. - * @param {().GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage} params.resource Request body data + * @param {().GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage} params.requestBody 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 diff --git a/src/apis/fcm/v1.ts b/src/apis/fcm/v1.ts index 6a0c55c10a5..5fe051fe1ca 100644 --- a/src/apis/fcm/v1.ts +++ b/src/apis/fcm/v1.ts @@ -127,6 +127,10 @@ export namespace fcm_v1 { * Arbitrary key/value payload. If present, it will override google.firebase.fcm.v1.Message.data. */ data?: {[key: string]: string} | null; + /** + * If set to true, messages will be allowed to be delivered to the app while the device is in direct boot mode. See [Support Direct Boot mode](https://developer.android.com/training/articles/direct-boot). + */ + directBootOk?: boolean | null; /** * Options for features provided by the FCM SDK for Android. */ @@ -439,6 +443,10 @@ export namespace fcm_v1 { * Options for features provided by the FCM SDK for Web. */ export interface Schema$WebpushFcmOptions { + /** + * Label associated with the message's analytics data. + */ + analyticsLabel?: string | null; /** * The link to open when the user clicks on the notification. For all URL values, HTTPS is required. */ @@ -468,7 +476,7 @@ export namespace fcm_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. It contains the Firebase project id (i.e. the unique identifier for your Firebase project), in the format of `projects/{project_id}`. For legacy support, the numeric project number with no padding is also supported in the format of `projects/{project_number}`. - * @param {().SendMessageRequest} params.resource Request body data + * @param {().SendMessageRequest} params.requestBody 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 diff --git a/src/apis/file/v1.ts b/src/apis/file/v1.ts index a8a349d1522..7615ffc083d 100644 --- a/src/apis/file/v1.ts +++ b/src/apis/file/v1.ts @@ -760,7 +760,7 @@ export namespace file_v1 { * @param {object} params Parameters for request * @param {string=} params.instanceId The name of the instance to create. The name must be unique for the specified project and location. * @param {string} params.parent The instance's project and location, in the format projects/{project_id}/locations/{location}. In Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. - * @param {().Instance} params.resource Request body data + * @param {().Instance} params.requestBody 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 @@ -1056,7 +1056,7 @@ export namespace file_v1 { * @param {object} params Parameters for request * @param {string} params.name Output only. The resource name of the instance, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}. * @param {string=} params.updateMask Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields: "description" "file_shares" "labels" - * @param {().Instance} params.resource Request body data + * @param {().Instance} params.requestBody 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 @@ -1230,7 +1230,7 @@ export namespace file_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the operation resource to be cancelled. - * @param {().CancelOperationRequest} params.resource Request body data + * @param {().CancelOperationRequest} params.requestBody 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 diff --git a/src/apis/file/v1beta1.ts b/src/apis/file/v1beta1.ts index 04949018a2d..39451c19680 100644 --- a/src/apis/file/v1beta1.ts +++ b/src/apis/file/v1beta1.ts @@ -760,7 +760,7 @@ export namespace file_v1beta1 { * @param {object} params Parameters for request * @param {string=} params.instanceId The name of the instance to create. The name must be unique for the specified project and location. * @param {string} params.parent The instance's project and location, in the format projects/{project_id}/locations/{location}. In Cloud Filestore, locations map to GCP zones, for example **us-west1-b**. - * @param {().Instance} params.resource Request body data + * @param {().Instance} params.requestBody 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 @@ -1056,7 +1056,7 @@ export namespace file_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name Output only. The resource name of the instance, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}. * @param {string=} params.updateMask Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields: "description" "file_shares" "labels" - * @param {().Instance} params.resource Request body data + * @param {().Instance} params.requestBody 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 @@ -1230,7 +1230,7 @@ export namespace file_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the operation resource to be cancelled. - * @param {().CancelOperationRequest} params.resource Request body data + * @param {().CancelOperationRequest} params.requestBody 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 diff --git a/src/apis/firebase/v1beta1.ts b/src/apis/firebase/v1beta1.ts index 2c7eef1be29..b93af7347f7 100644 --- a/src/apis/firebase/v1beta1.ts +++ b/src/apis/firebase/v1beta1.ts @@ -415,7 +415,7 @@ export namespace firebase_v1beta1 { */ export interface Schema$Location { /** - * The ID of the default GCP resource location. It must be one of the available [GCP resource locations](https://firebase.google.com/docs/projects/locations). + * The ID of the GCP resource location. It will be one of the available [GCP resource locations](https://firebase.google.com/docs/projects/locations#types). */ locationId?: string | null; } @@ -866,7 +866,7 @@ export namespace firebase_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.project The resource name of the GCP `Project` to which Firebase resources will be added, in the format:
              projects/projectId After calling `AddFirebase`, the [`projectId`](https://cloud.google.com/resource-manager/reference/rest/v1/projects#Project.FIELDS.project_id) of the GCP `Project` is also the `projectId` of the FirebaseProject. - * @param {().AddFirebaseRequest} params.resource Request body data + * @param {().AddFirebaseRequest} params.requestBody 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 @@ -941,7 +941,7 @@ export namespace firebase_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent The parent `FirebaseProject` to link to an existing Google Analytics account, in the format:
              projects/projectId - * @param {().AddGoogleAnalyticsRequest} params.resource Request body data + * @param {().AddGoogleAnalyticsRequest} params.requestBody 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 @@ -1313,7 +1313,7 @@ export namespace firebase_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name The fully qualified resource name of the Project, in the format:
              projects/projectId * @param {string=} params.updateMask Specifies which fields to update.

              If this list is empty, then no state will be updated.
              Note that the fields `name`, `project_id`, and `project_number` are all immutable. - * @param {().FirebaseProject} params.resource Request body data + * @param {().FirebaseProject} params.requestBody 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 @@ -1384,7 +1384,7 @@ export namespace firebase_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent The parent `FirebaseProject` to unlink from its Google Analytics account, in the format:
              projects/projectId - * @param {().RemoveAnalyticsRequest} params.resource Request body data + * @param {().RemoveAnalyticsRequest} params.requestBody 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 @@ -1691,7 +1691,7 @@ export namespace firebase_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent The parent Project for which to list Apps, in the format:
              projects/projectId - * @param {().AndroidApp} params.resource Request body data + * @param {().AndroidApp} params.requestBody 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 @@ -1987,7 +1987,7 @@ export namespace firebase_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name The fully qualified resource name of the App, in the format:
              projects/projectId/androidApps/appId * @param {string=} params.updateMask Specifies which fields to update.
              Note that the fields `name`, `appId`, `projectId`, and `packageName` are all immutable. - * @param {().AndroidApp} params.resource Request body data + * @param {().AndroidApp} params.requestBody 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 @@ -2149,7 +2149,7 @@ export namespace firebase_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent The parent App to which a SHA certificate will be added, in the format:
              projects/projectId/androidApps/appId
              As an appId is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format:
              projects/-/androidApps/appId - * @param {().ShaCertificate} params.resource Request body data + * @param {().ShaCertificate} params.requestBody 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 @@ -2417,7 +2417,7 @@ export namespace firebase_v1beta1 { /** * firebase.projects.availableLocations.list - * @desc Returns a list of valid Google Cloud Platform (GCP) resource locations for the specified Project (including a FirebaseProject).

              The default GCP resource location of a project defines the geographical location where project resources, such as Cloud Firestore, will be provisioned by default.

              The returned list are the available [GCP resource locations](https://firebase.google.com/docs/projects/locations).

              This call checks for any location restrictions for the specified Project and, thus, might return a subset of all possible GCP resource locations. To list all GCP resource locations (regardless of any restrictions), call the endpoint without specifying a `projectId` (that is, `/v1beta1/{parent=projects/-}/listAvailableLocations`).

              To call `ListAvailableLocations` with a specified project, a member must be at minimum a Viewer of the project. Calls without a specified project do not require any specific project permissions. + * @desc Returns a list of valid Google Cloud Platform (GCP) resource locations for the specified Project (including a FirebaseProject).

              One of these locations can be selected as the Project's [_default_ GCP resource location](https://firebase.google.com/docs/projects/locations), which is the geographical location where project resources, such as Cloud Firestore, will be provisioned by default. However, if the default GCP resource location has already been set for the Project, then this setting cannot be changed.

              This call checks for any location restrictions for the specified Project and, thus, might return a subset of all possible GCP resource locations. To list all GCP resource locations (regardless of any restrictions), call the endpoint without specifying a `projectId` (that is, `/v1beta1/{parent=projects/-}/listAvailableLocations`).

              To call `ListAvailableLocations` with a specified project, a member must be at minimum a Viewer of the project. Calls without a specified project do not require any specific project permissions. * @alias firebase.projects.availableLocations.list * @memberOf! () * @@ -2536,7 +2536,7 @@ export namespace firebase_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent The resource name of the Project for which the default GCP resource location will be set, in the format:
              projects/projectId - * @param {().FinalizeDefaultLocationRequest} params.resource Request body data + * @param {().FinalizeDefaultLocationRequest} params.requestBody 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 @@ -2635,7 +2635,7 @@ export namespace firebase_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent The parent Project for which to list Apps, in the format:
              projects/projectId - * @param {().IosApp} params.resource Request body data + * @param {().IosApp} params.requestBody 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 @@ -2927,7 +2927,7 @@ export namespace firebase_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name The fully qualified resource name of the App, in the format:
              projects/projectId/iosApps/appId * @param {string=} params.updateMask Specifies which fields to update.
              Note that the fields `name`, `appId`, `projectId`, and `bundleId` are all immutable. - * @param {().IosApp} params.resource Request body data + * @param {().IosApp} params.requestBody 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 @@ -3087,7 +3087,7 @@ export namespace firebase_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent The parent Project for which to list Apps, in the format:
              projects/projectId - * @param {().WebApp} params.resource Request body data + * @param {().WebApp} params.requestBody 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 @@ -3379,7 +3379,7 @@ export namespace firebase_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name The fully qualified resource name of the App, for example:
              projects/projectId/webApps/appId * @param {string=} params.updateMask Specifies which fields to update.
              Note that the fields `name`, `appId`, and `projectId` are all immutable. - * @param {().WebApp} params.resource Request body data + * @param {().WebApp} params.requestBody 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 diff --git a/src/apis/firebasedynamiclinks/v1.ts b/src/apis/firebasedynamiclinks/v1.ts index 45352a47b97..69507dc96b0 100644 --- a/src/apis/firebasedynamiclinks/v1.ts +++ b/src/apis/firebasedynamiclinks/v1.ts @@ -688,7 +688,7 @@ export namespace firebasedynamiclinks_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().CreateManagedShortLinkRequest} params.resource Request body data + * @param {().CreateManagedShortLinkRequest} params.requestBody 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 @@ -792,7 +792,7 @@ export namespace firebasedynamiclinks_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().CreateShortDynamicLinkRequest} params.resource Request body data + * @param {().CreateShortDynamicLinkRequest} params.requestBody 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 @@ -969,7 +969,7 @@ export namespace firebasedynamiclinks_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().GetIosPostInstallAttributionRequest} params.resource Request body data + * @param {().GetIosPostInstallAttributionRequest} params.requestBody 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 @@ -1061,7 +1061,7 @@ export namespace firebasedynamiclinks_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().GetIosReopenAttributionRequest} params.resource Request body data + * @param {().GetIosReopenAttributionRequest} params.requestBody 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 diff --git a/src/apis/firebasehosting/v1beta1.ts b/src/apis/firebasehosting/v1beta1.ts index 5e926a74292..3174d2a2de8 100644 --- a/src/apis/firebasehosting/v1beta1.ts +++ b/src/apis/firebasehosting/v1beta1.ts @@ -297,6 +297,16 @@ export namespace firebasehosting_v1beta1 { */ nextPageToken?: string | null; } + export interface Schema$ListVersionsResponse { + /** + * The pagination token, if more results exist + */ + nextPageToken?: string | null; + /** + * The list of versions, if any exist. + */ + versions?: Schema$Version[]; + } export interface Schema$PopulateVersionFilesRequest { /** * A set of file paths to the hashes corresponding to assets that should be added to the version. Note that a file path to an empty hash will remove the path from the version. Calculate a hash by Gzipping the file then taking the SHA256 hash of the newly compressed file. @@ -610,7 +620,7 @@ export namespace firebasehosting_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name Required. The site for which to update the SiteConfig, in the format: sites/site-name/config * @param {string=} params.updateMask A set of field names from your [site configuration](../sites.SiteConfig) that you want to update.
              A field will be overwritten if, and only if, it's in the mask.
              If a mask is not provided then a default mask of only [`max_versions`](../sites.SiteConfig.max_versions) will be used. - * @param {().SiteConfig} params.resource Request body data + * @param {().SiteConfig} params.requestBody 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 @@ -723,7 +733,7 @@ export namespace firebasehosting_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The parent to create the domain association for, in the format: sites/site-name - * @param {().Domain} params.resource Request body data + * @param {().Domain} params.requestBody 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 @@ -1014,7 +1024,7 @@ export namespace firebasehosting_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The name of the domain association to update or create, if an association doesn't already exist. - * @param {().Domain} params.resource Request body data + * @param {().Domain} params.requestBody 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 @@ -1172,7 +1182,7 @@ export namespace firebasehosting_v1beta1 { * @param {object} params Parameters for request * @param {string} params.parent The site that the release belongs to, in the format: sites/site-name * @param {string=} params.versionName The unique identifier for a version, in the format: /sites/site-name/versions/versionID The site-name in this version identifier must match the site-name in the `parent` parameter.

              This query parameter must be empty if the `type` field in the request body is `SITE_DISABLE`. - * @param {().Release} params.resource Request body data + * @param {().Release} params.requestBody 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 @@ -1378,7 +1388,7 @@ export namespace firebasehosting_v1beta1 { * @param {string} params.parent Required. The parent to create the version for, in the format: sites/site-name * @param {string=} params.sizeBytes The self-reported size of the version. This value is used for a pre-emptive quota check for legacy version uploads. * @param {string=} params.versionId A unique id for the new version. This is only specified for legacy version creations. - * @param {().Version} params.resource Request body data + * @param {().Version} params.requestBody 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 @@ -1514,6 +1524,86 @@ export namespace firebasehosting_v1beta1 { } } + /** + * firebasehosting.sites.versions.list + * @desc Lists the versions that have been created on the specified site. Will include filtering in the future. + * @alias firebasehosting.sites.versions.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.filter The filter string used to return a subset of versions in the response. Currently supported fields for filtering are: name, status, and create_time. Filter processing will be implemented in accordance with go/filtering. + * @param {integer=} params.pageSize The maximum number of versions to return. The service may return fewer than this value. If unspecified, at most 25 versions will be returned. The maximum value is 100; values above 100 will be coerced to 100 + * @param {string=} params.pageToken The next_page_token from a previous request, if provided. + * @param {string} params.parent Required. The parent for which to list files, in the format: sites/site-name + * @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$Sites$Versions$List, + options?: MethodOptions + ): GaxiosPromise; + list( + params: Params$Resource$Sites$Versions$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Sites$Versions$List, + callback: BodyResponseCallback + ): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + | Params$Resource$Sites$Versions$List + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Sites$Versions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sites$Versions$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/versions').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + /** * firebasehosting.sites.versions.patch * @desc Updates the specified metadata for a version. Note that this method will fail with `FAILED_PRECONDITION` in the event of an invalid state transition. The only valid transition for a version is currently from a `CREATED` status to a `FINALIZED` status. Use [`DeleteVersion`](../sites.versions/delete) to set the status of a version to `DELETED`. @@ -1523,7 +1613,7 @@ export namespace firebasehosting_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name The unique identifier for a version, in the format: sites/site-name/versions/versionID This name is provided in the response body when you call the [`CreateVersion`](../sites.versions/create) endpoint. * @param {string=} params.updateMask A set of field names from your [version](../sites.versions) that you want to update.
              A field will be overwritten if, and only if, it's in the mask.
              If a mask is not provided then a default mask of only [`status`](../sites.versions#Version.FIELDS.status) will be used. - * @param {().Version} params.resource Request body data + * @param {().Version} params.requestBody 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 @@ -1594,7 +1684,7 @@ export namespace firebasehosting_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The version to add files to, in the format: sites/site-name/versions/versionID - * @param {().PopulateVersionFilesRequest} params.resource Request body data + * @param {().PopulateVersionFilesRequest} params.requestBody 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 @@ -1709,6 +1799,30 @@ export namespace firebasehosting_v1beta1 { */ name?: string; } + export interface Params$Resource$Sites$Versions$List + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * The filter string used to return a subset of versions in the response. Currently supported fields for filtering are: name, status, and create_time. Filter processing will be implemented in accordance with go/filtering. + */ + filter?: string; + /** + * The maximum number of versions to return. The service may return fewer than this value. If unspecified, at most 25 versions will be returned. The maximum value is 100; values above 100 will be coerced to 100 + */ + pageSize?: number; + /** + * The next_page_token from a previous request, if provided. + */ + pageToken?: string; + /** + * Required. The parent for which to list files, in the format: sites/site-name + */ + parent?: string; + } export interface Params$Resource$Sites$Versions$Patch extends StandardParameters { /** diff --git a/src/apis/firebaserules/v1.ts b/src/apis/firebaserules/v1.ts index 6677dcc8616..fce9b454b8b 100644 --- a/src/apis/firebaserules/v1.ts +++ b/src/apis/firebaserules/v1.ts @@ -251,6 +251,15 @@ export namespace firebaserules_v1 { */ rulesets?: Schema$Ruleset[]; } + /** + * Metadata for a Ruleset. + */ + export interface Schema$Metadata { + /** + * Services that this ruleset has declarations for (e.g., "cloud.firestore"). There may be 0+ of these. + */ + services?: string[] | null; + } /** * `Release` is a named reference to a `Ruleset`. Once a `Release` refers to a `Ruleset`, rules-enabled services will be able to enforce the `Ruleset`. */ @@ -293,6 +302,10 @@ export namespace firebaserules_v1 { * Time the `Ruleset` was created. Output only. */ createTime?: string | null; + /** + * The metadata for this ruleset. Output only. + */ + metadata?: Schema$Metadata; /** * Name of the `Ruleset`. The ruleset_id is auto generated by the service. Format: `projects/{project_id}/rulesets/{ruleset_id}` Output only. */ @@ -458,7 +471,7 @@ export namespace firebaserules_v1 { * * @param {object} params Parameters for request * @param {string} params.name Tests may either provide `source` or a `Ruleset` resource name. For tests against `source`, the resource name must refer to the project: Format: `projects/{project_id}` For tests against a `Ruleset`, this must be the `Ruleset` resource name: Format: `projects/{project_id}/rulesets/{ruleset_id}` - * @param {().TestRulesetRequest} params.resource Request body data + * @param {().TestRulesetRequest} params.requestBody 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 @@ -554,7 +567,7 @@ export namespace firebaserules_v1 { * * @param {object} params Parameters for request * @param {string} params.name Resource name for the project which owns this `Release`. Format: `projects/{project_id}` - * @param {().Release} params.resource Request body data + * @param {().Release} params.requestBody 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 @@ -933,7 +946,7 @@ export namespace firebaserules_v1 { * * @param {object} params Parameters for request * @param {string} params.name Resource name for the project which owns this `Release`. Format: `projects/{project_id}` - * @param {().UpdateReleaseRequest} params.resource Request body data + * @param {().UpdateReleaseRequest} params.requestBody 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 @@ -1110,7 +1123,7 @@ export namespace firebaserules_v1 { * * @param {object} params Parameters for request * @param {string} params.name Resource name for Project which owns this `Ruleset`. Format: `projects/{project_id}` - * @param {().Ruleset} params.resource Request body data + * @param {().Ruleset} params.requestBody 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 diff --git a/src/apis/firestore/v1.ts b/src/apis/firestore/v1.ts index a46574ef6b3..79a9fda1a5e 100644 --- a/src/apis/firestore/v1.ts +++ b/src/apis/firestore/v1.ts @@ -1336,7 +1336,7 @@ export namespace firestore_v1 { * * @param {object} params Parameters for request * @param {string} params.name Database to export. Should be of the form: `projects/{project_id}/databases/{database_id}`. - * @param {().GoogleFirestoreAdminV1ExportDocumentsRequest} params.resource Request body data + * @param {().GoogleFirestoreAdminV1ExportDocumentsRequest} params.requestBody 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 @@ -1418,7 +1418,7 @@ export namespace firestore_v1 { * * @param {object} params Parameters for request * @param {string} params.name Database to import into. Should be of the form: `projects/{project_id}/databases/{database_id}`. - * @param {().GoogleFirestoreAdminV1ImportDocumentsRequest} params.resource Request body data + * @param {().GoogleFirestoreAdminV1ImportDocumentsRequest} params.requestBody 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 @@ -1730,7 +1730,7 @@ export namespace firestore_v1 { * @param {object} params Parameters for request * @param {string} params.name A field name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` A field path may be a simple field name, e.g. `address` or a path to fields within map_value , e.g. `address.city`, or a special field path. The only valid special field is `*`, which represents any field. Field paths may be quoted using ` (backtick). The only character that needs to be escaped within a quoted field path is the backtick character itself, escaped using a backslash. Special characters in field paths that must be quoted include: `*`, `.`, ``` (backtick), `[`, `]`, as well as any ascii symbolic characters. Examples: (Note: Comments here are written in markdown syntax, so there is an additional layer of backticks to represent a code block) `\`address.city\`` represents a field named `address.city`, not the map key `city` in the field `address`. `\`*\`` represents a field named `*`, not any field. A special `Field` contains the default indexing settings for all fields. This field's resource name is: `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/x` Indexes defined on this `Field` will be applied to all fields which do not have their own `Field` index configuration. * @param {string=} params.updateMask A mask, relative to the field. If specified, only configuration specified by this field_mask will be updated in the field. - * @param {().GoogleFirestoreAdminV1Field} params.resource Request body data + * @param {().GoogleFirestoreAdminV1Field} params.requestBody 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 @@ -1874,7 +1874,7 @@ export namespace firestore_v1 { * * @param {object} params Parameters for request * @param {string} params.parent A parent name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` - * @param {().GoogleFirestoreAdminV1Index} params.resource Request body data + * @param {().GoogleFirestoreAdminV1Index} params.requestBody 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 @@ -2276,7 +2276,7 @@ export namespace firestore_v1 { * * @param {object} params Parameters for request * @param {string} params.database The database name. In the format: `projects/{project_id}/databases/{database_id}`. - * @param {().BatchGetDocumentsRequest} params.resource Request body data + * @param {().BatchGetDocumentsRequest} params.requestBody 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 @@ -2358,7 +2358,7 @@ export namespace firestore_v1 { * * @param {object} params Parameters for request * @param {string} params.database The database name. In the format: `projects/{project_id}/databases/{database_id}`. - * @param {().BeginTransactionRequest} params.resource Request body data + * @param {().BeginTransactionRequest} params.requestBody 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 @@ -2436,7 +2436,7 @@ export namespace firestore_v1 { * * @param {object} params Parameters for request * @param {string} params.database The database name. In the format: `projects/{project_id}/databases/{database_id}`. - * @param {().CommitRequest} params.resource Request body data + * @param {().CommitRequest} params.requestBody 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 @@ -2514,7 +2514,7 @@ export namespace firestore_v1 { * @param {string=} params.documentId The client-assigned document ID to use for this document. Optional. If not specified, an ID will be assigned by the service. * @param {string=} params.mask.fieldPaths The list of field paths in the mask. See Document.fields for a field path syntax reference. * @param {string} params.parent The parent resource. For example: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}` - * @param {().Document} params.resource Request body data + * @param {().Document} params.requestBody 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 @@ -2814,7 +2814,7 @@ export namespace firestore_v1 { * * @param {object} params Parameters for request * @param {string} params.parent The parent document. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` - * @param {().ListCollectionIdsRequest} params.resource Request body data + * @param {().ListCollectionIdsRequest} params.requestBody 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 @@ -2896,7 +2896,7 @@ export namespace firestore_v1 { * * @param {object} params Parameters for request * @param {string} params.database The database name. In the format: `projects/{project_id}/databases/{database_id}`. - * @param {().ListenRequest} params.resource Request body data + * @param {().ListenRequest} params.requestBody 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 @@ -2975,7 +2975,7 @@ export namespace firestore_v1 { * @param {string=} params.mask.fieldPaths The list of field paths in the mask. See Document.fields for a field path syntax reference. * @param {string} params.name The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`. * @param {string=} params.updateMask.fieldPaths The list of field paths in the mask. See Document.fields for a field path syntax reference. - * @param {().Document} params.resource Request body data + * @param {().Document} params.requestBody 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 @@ -3045,7 +3045,7 @@ export namespace firestore_v1 { * * @param {object} params Parameters for request * @param {string} params.database The database name. In the format: `projects/{project_id}/databases/{database_id}`. - * @param {().RollbackRequest} params.resource Request body data + * @param {().RollbackRequest} params.requestBody 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 @@ -3118,7 +3118,7 @@ export namespace firestore_v1 { * * @param {object} params Parameters for request * @param {string} params.parent The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` - * @param {().RunQueryRequest} params.resource Request body data + * @param {().RunQueryRequest} params.requestBody 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 @@ -3193,7 +3193,7 @@ export namespace firestore_v1 { * * @param {object} params Parameters for request * @param {string} params.database The database name. In the format: `projects/{project_id}/databases/{database_id}`. This is only required in the first message. - * @param {().WriteRequest} params.resource Request body data + * @param {().WriteRequest} params.requestBody 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 @@ -3562,7 +3562,7 @@ export namespace firestore_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the operation resource to be cancelled. - * @param {().GoogleLongrunningCancelOperationRequest} params.resource Request body data + * @param {().GoogleLongrunningCancelOperationRequest} params.requestBody 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 diff --git a/src/apis/firestore/v1beta1.ts b/src/apis/firestore/v1beta1.ts index 683714d9026..71b758d7c2f 100644 --- a/src/apis/firestore/v1beta1.ts +++ b/src/apis/firestore/v1beta1.ts @@ -1176,7 +1176,7 @@ export namespace firestore_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Database to export. Should be of the form: `projects/{project_id}/databases/{database_id}`. - * @param {().GoogleFirestoreAdminV1beta1ExportDocumentsRequest} params.resource Request body data + * @param {().GoogleFirestoreAdminV1beta1ExportDocumentsRequest} params.requestBody 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 @@ -1258,7 +1258,7 @@ export namespace firestore_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Database to import into. Should be of the form: `projects/{project_id}/databases/{database_id}`. - * @param {().GoogleFirestoreAdminV1beta1ImportDocumentsRequest} params.resource Request body data + * @param {().GoogleFirestoreAdminV1beta1ImportDocumentsRequest} params.requestBody 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 @@ -1382,7 +1382,7 @@ export namespace firestore_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.database The database name. In the format: `projects/{project_id}/databases/{database_id}`. - * @param {().BatchGetDocumentsRequest} params.resource Request body data + * @param {().BatchGetDocumentsRequest} params.requestBody 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 @@ -1464,7 +1464,7 @@ export namespace firestore_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.database The database name. In the format: `projects/{project_id}/databases/{database_id}`. - * @param {().BeginTransactionRequest} params.resource Request body data + * @param {().BeginTransactionRequest} params.requestBody 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 @@ -1542,7 +1542,7 @@ export namespace firestore_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.database The database name. In the format: `projects/{project_id}/databases/{database_id}`. - * @param {().CommitRequest} params.resource Request body data + * @param {().CommitRequest} params.requestBody 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 @@ -1620,7 +1620,7 @@ export namespace firestore_v1beta1 { * @param {string=} params.documentId The client-assigned document ID to use for this document. Optional. If not specified, an ID will be assigned by the service. * @param {string=} params.mask.fieldPaths The list of field paths in the mask. See Document.fields for a field path syntax reference. * @param {string} params.parent The parent resource. For example: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}` - * @param {().Document} params.resource Request body data + * @param {().Document} params.requestBody 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 @@ -1920,7 +1920,7 @@ export namespace firestore_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent The parent document. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` - * @param {().ListCollectionIdsRequest} params.resource Request body data + * @param {().ListCollectionIdsRequest} params.requestBody 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 @@ -2002,7 +2002,7 @@ export namespace firestore_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.database The database name. In the format: `projects/{project_id}/databases/{database_id}`. - * @param {().ListenRequest} params.resource Request body data + * @param {().ListenRequest} params.requestBody 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 @@ -2081,7 +2081,7 @@ export namespace firestore_v1beta1 { * @param {string=} params.mask.fieldPaths The list of field paths in the mask. See Document.fields for a field path syntax reference. * @param {string} params.name The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`. * @param {string=} params.updateMask.fieldPaths The list of field paths in the mask. See Document.fields for a field path syntax reference. - * @param {().Document} params.resource Request body data + * @param {().Document} params.requestBody 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 @@ -2151,7 +2151,7 @@ export namespace firestore_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.database The database name. In the format: `projects/{project_id}/databases/{database_id}`. - * @param {().RollbackRequest} params.resource Request body data + * @param {().RollbackRequest} params.requestBody 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 @@ -2224,7 +2224,7 @@ export namespace firestore_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` - * @param {().RunQueryRequest} params.resource Request body data + * @param {().RunQueryRequest} params.requestBody 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 @@ -2299,7 +2299,7 @@ export namespace firestore_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.database The database name. In the format: `projects/{project_id}/databases/{database_id}`. This is only required in the first message. - * @param {().WriteRequest} params.resource Request body data + * @param {().WriteRequest} params.requestBody 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 @@ -2668,7 +2668,7 @@ export namespace firestore_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent The name of the database this index will apply to. For example: `projects/{project_id}/databases/{database_id}` - * @param {().GoogleFirestoreAdminV1beta1Index} params.resource Request body data + * @param {().GoogleFirestoreAdminV1beta1Index} params.requestBody 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 diff --git a/src/apis/firestore/v1beta2.ts b/src/apis/firestore/v1beta2.ts index 4ebd0feab61..5eb24597b3a 100644 --- a/src/apis/firestore/v1beta2.ts +++ b/src/apis/firestore/v1beta2.ts @@ -476,7 +476,7 @@ export namespace firestore_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.name Database to export. Should be of the form: `projects/{project_id}/databases/{database_id}`. - * @param {().GoogleFirestoreAdminV1beta2ExportDocumentsRequest} params.resource Request body data + * @param {().GoogleFirestoreAdminV1beta2ExportDocumentsRequest} params.requestBody 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 @@ -558,7 +558,7 @@ export namespace firestore_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.name Database to import into. Should be of the form: `projects/{project_id}/databases/{database_id}`. - * @param {().GoogleFirestoreAdminV1beta2ImportDocumentsRequest} params.resource Request body data + * @param {().GoogleFirestoreAdminV1beta2ImportDocumentsRequest} params.requestBody 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 @@ -880,7 +880,7 @@ export namespace firestore_v1beta2 { * @param {object} params Parameters for request * @param {string} params.name A field name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` A field path may be a simple field name, e.g. `address` or a path to fields within map_value , e.g. `address.city`, or a special field path. The only valid special field is `*`, which represents any field. Field paths may be quoted using ` (backtick). The only character that needs to be escaped within a quoted field path is the backtick character itself, escaped using a backslash. Special characters in field paths that must be quoted include: `*`, `.`, ``` (backtick), `[`, `]`, as well as any ascii symbolic characters. Examples: (Note: Comments here are written in markdown syntax, so there is an additional layer of backticks to represent a code block) `\`address.city\`` represents a field named `address.city`, not the map key `city` in the field `address`. `\`*\`` represents a field named `*`, not any field. A special `Field` contains the default indexing settings for all fields. This field's resource name is: `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/x` Indexes defined on this `Field` will be applied to all fields which do not have their own `Field` index configuration. * @param {string=} params.updateMask A mask, relative to the field. If specified, only configuration specified by this field_mask will be updated in the field. - * @param {().GoogleFirestoreAdminV1beta2Field} params.resource Request body data + * @param {().GoogleFirestoreAdminV1beta2Field} params.requestBody 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 @@ -1024,7 +1024,7 @@ export namespace firestore_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.parent A parent name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}` - * @param {().GoogleFirestoreAdminV1beta2Index} params.resource Request body data + * @param {().GoogleFirestoreAdminV1beta2Index} params.requestBody 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 diff --git a/src/apis/fitness/v1.ts b/src/apis/fitness/v1.ts index 7d46730d204..91f38c16fbb 100644 --- a/src/apis/fitness/v1.ts +++ b/src/apis/fitness/v1.ts @@ -523,7 +523,7 @@ export namespace fitness_v1 { * * @param {object} params Parameters for request * @param {string} params.userId Aggregate data for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. - * @param {().AggregateRequest} params.resource Request body data + * @param {().AggregateRequest} params.requestBody 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 @@ -628,7 +628,7 @@ export namespace fitness_v1 { * * @param {object} params Parameters for request * @param {string} params.userId Create the data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. - * @param {().DataSource} params.resource Request body data + * @param {().DataSource} params.requestBody 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 @@ -929,7 +929,7 @@ export namespace fitness_v1 { * @param {object} params Parameters for request * @param {string} params.dataSourceId The data stream ID of the data source to update. * @param {string} params.userId Update the data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. - * @param {().DataSource} params.resource Request body data + * @param {().DataSource} params.requestBody 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 @@ -1370,7 +1370,7 @@ export namespace fitness_v1 { * @param {string} params.datasetId Dataset identifier that is a composite of the minimum data point start time and maximum data point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" where startTime and endTime are 64 bit integers. * @param {string} params.dataSourceId The data stream ID of the data source that created the dataset. * @param {string} params.userId Patch a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. - * @param {().Dataset} params.resource Request body data + * @param {().Dataset} params.requestBody 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 @@ -1691,7 +1691,7 @@ export namespace fitness_v1 { * @param {string=} params.currentTimeMillis The client's current time in milliseconds since epoch. * @param {string} params.sessionId The ID of the session to be created. * @param {string} params.userId Create sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. - * @param {().Session} params.resource Request body data + * @param {().Session} params.requestBody 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 diff --git a/src/apis/fusiontables/v1.ts b/src/apis/fusiontables/v1.ts index 14993ce786a..b284f19741e 100644 --- a/src/apis/fusiontables/v1.ts +++ b/src/apis/fusiontables/v1.ts @@ -744,7 +744,7 @@ export namespace fusiontables_v1 { * * @param {object} params Parameters for request * @param {string} params.tableId Table for which a new column is being added. - * @param {().Column} params.resource Request body data + * @param {().Column} params.requestBody 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 @@ -890,7 +890,7 @@ export namespace fusiontables_v1 { * @param {object} params Parameters for request * @param {string} params.columnId Name or identifier for the column that is being updated. * @param {string} params.tableId Table for which the column is being updated. - * @param {().Column} params.resource Request body data + * @param {().Column} params.requestBody 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 @@ -962,7 +962,7 @@ export namespace fusiontables_v1 { * @param {object} params Parameters for request * @param {string} params.columnId Name or identifier for the column that is being updated. * @param {string} params.tableId Table for which the column is being updated. - * @param {().Column} params.resource Request body data + * @param {().Column} params.requestBody 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 @@ -1486,7 +1486,7 @@ export namespace fusiontables_v1 { * * @param {object} params Parameters for request * @param {string} params.tableId Table for which a new style is being added - * @param {().StyleSetting} params.resource Request body data + * @param {().StyleSetting} params.requestBody 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 @@ -1636,7 +1636,7 @@ export namespace fusiontables_v1 { * @param {object} params Parameters for request * @param {integer} params.styleId Identifier (within a table) for the style being updated. * @param {string} params.tableId Table whose style is being updated. - * @param {().StyleSetting} params.resource Request body data + * @param {().StyleSetting} params.requestBody 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 @@ -1710,7 +1710,7 @@ export namespace fusiontables_v1 { * @param {object} params Parameters for request * @param {integer} params.styleId Identifier (within a table) for the style being updated. * @param {string} params.tableId Table whose style is being updated. - * @param {().StyleSetting} params.resource Request body data + * @param {().StyleSetting} params.requestBody 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 @@ -2272,7 +2272,7 @@ export namespace fusiontables_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Table} params.resource Request body data + * @param {().Table} params.requestBody 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 @@ -2419,7 +2419,7 @@ export namespace fusiontables_v1 { * @param {object} params Parameters for request * @param {boolean=} params.replaceViewDefinition Should the view definition also be updated? The specified view definition replaces the existing one. Only a view can be updated with a new definition. * @param {string} params.tableId ID of the table that is being updated. - * @param {().Table} params.resource Request body data + * @param {().Table} params.requestBody 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 @@ -2492,7 +2492,7 @@ export namespace fusiontables_v1 { * @param {object} params Parameters for request * @param {boolean=} params.replaceViewDefinition Should the view definition also be updated? The specified view definition replaces the existing one. Only a view can be updated with a new definition. * @param {string} params.tableId ID of the table that is being updated. - * @param {().Table} params.resource Request body data + * @param {().Table} params.requestBody 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 @@ -3177,7 +3177,7 @@ export namespace fusiontables_v1 { * * @param {object} params Parameters for request * @param {string} params.tableId Table for which a new template is being created - * @param {().Template} params.resource Request body data + * @param {().Template} params.requestBody 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 @@ -3323,7 +3323,7 @@ export namespace fusiontables_v1 { * @param {object} params Parameters for request * @param {string} params.tableId Table to which the updated template belongs * @param {integer} params.templateId Identifier for the template that is being updated - * @param {().Template} params.resource Request body data + * @param {().Template} params.requestBody 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 @@ -3396,7 +3396,7 @@ export namespace fusiontables_v1 { * @param {object} params Parameters for request * @param {string} params.tableId Table to which the updated template belongs * @param {integer} params.templateId Identifier for the template that is being updated - * @param {().Template} params.resource Request body data + * @param {().Template} params.requestBody 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 diff --git a/src/apis/fusiontables/v2.ts b/src/apis/fusiontables/v2.ts index 324db6936c0..ab8b6860e0b 100644 --- a/src/apis/fusiontables/v2.ts +++ b/src/apis/fusiontables/v2.ts @@ -776,7 +776,7 @@ export namespace fusiontables_v2 { * * @param {object} params Parameters for request * @param {string} params.tableId Table for which a new column is being added. - * @param {().Column} params.resource Request body data + * @param {().Column} params.requestBody 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 @@ -922,7 +922,7 @@ export namespace fusiontables_v2 { * @param {object} params Parameters for request * @param {string} params.columnId Name or identifier for the column that is being updated. * @param {string} params.tableId Table for which the column is being updated. - * @param {().Column} params.resource Request body data + * @param {().Column} params.requestBody 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 @@ -994,7 +994,7 @@ export namespace fusiontables_v2 { * @param {object} params Parameters for request * @param {string} params.columnId Name or identifier for the column that is being updated. * @param {string} params.tableId Table for which the column is being updated. - * @param {().Column} params.resource Request body data + * @param {().Column} params.requestBody 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 @@ -1518,7 +1518,7 @@ export namespace fusiontables_v2 { * * @param {object} params Parameters for request * @param {string} params.tableId Table for which a new style is being added - * @param {().StyleSetting} params.resource Request body data + * @param {().StyleSetting} params.requestBody 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 @@ -1668,7 +1668,7 @@ export namespace fusiontables_v2 { * @param {object} params Parameters for request * @param {integer} params.styleId Identifier (within a table) for the style being updated. * @param {string} params.tableId Table whose style is being updated. - * @param {().StyleSetting} params.resource Request body data + * @param {().StyleSetting} params.requestBody 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 @@ -1742,7 +1742,7 @@ export namespace fusiontables_v2 { * @param {object} params Parameters for request * @param {integer} params.styleId Identifier (within a table) for the style being updated. * @param {string} params.tableId Table whose style is being updated. - * @param {().StyleSetting} params.resource Request body data + * @param {().StyleSetting} params.requestBody 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 @@ -2304,7 +2304,7 @@ export namespace fusiontables_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Table} params.resource Request body data + * @param {().Table} params.requestBody 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 @@ -2451,7 +2451,7 @@ export namespace fusiontables_v2 { * @param {object} params Parameters for request * @param {boolean=} params.replaceViewDefinition Whether the view definition is also updated. The specified view definition replaces the existing one. Only a view can be updated with a new definition. * @param {string} params.tableId ID of the table that is being updated. - * @param {().Table} params.resource Request body data + * @param {().Table} params.requestBody 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 @@ -2677,7 +2677,7 @@ export namespace fusiontables_v2 { * @param {object} params Parameters for request * @param {boolean=} params.replaceViewDefinition Whether the view definition is also updated. The specified view definition replaces the existing one. Only a view can be updated with a new definition. * @param {string} params.tableId ID of the table that is being updated. - * @param {().Table} params.resource Request body data + * @param {().Table} params.requestBody 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 @@ -3421,7 +3421,7 @@ export namespace fusiontables_v2 { * * @param {object} params Parameters for request * @param {string} params.tableId Table for which a new template is being created - * @param {().Template} params.resource Request body data + * @param {().Template} params.requestBody 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 @@ -3567,7 +3567,7 @@ export namespace fusiontables_v2 { * @param {object} params Parameters for request * @param {string} params.tableId Table to which the updated template belongs * @param {integer} params.templateId Identifier for the template that is being updated - * @param {().Template} params.resource Request body data + * @param {().Template} params.requestBody 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 @@ -3640,7 +3640,7 @@ export namespace fusiontables_v2 { * @param {object} params Parameters for request * @param {string} params.tableId Table to which the updated template belongs * @param {integer} params.templateId Identifier for the template that is being updated - * @param {().Template} params.resource Request body data + * @param {().Template} params.requestBody 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 diff --git a/src/apis/games/v1.ts b/src/apis/games/v1.ts index 9737a7f185c..88e7e6709f1 100644 --- a/src/apis/games/v1.ts +++ b/src/apis/games/v1.ts @@ -2906,7 +2906,7 @@ export namespace games_v1 { * * @param {object} params Parameters for request * @param {string=} params.builtinGameId Override used only by built-in games in Play Games application. - * @param {().AchievementUpdateMultipleRequest} params.resource Request body data + * @param {().AchievementUpdateMultipleRequest} params.requestBody 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 @@ -3545,7 +3545,7 @@ export namespace games_v1 { * * @param {object} params Parameters for request * @param {string=} params.language The preferred language to use for strings returned by this method. - * @param {().EventRecordRequest} params.resource Request body data + * @param {().EventRecordRequest} params.requestBody 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 @@ -4266,7 +4266,7 @@ export namespace games_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().PushTokenId} params.resource Request body data + * @param {().PushTokenId} params.requestBody 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 @@ -4338,7 +4338,7 @@ export namespace games_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().PushToken} params.resource Request body data + * @param {().PushToken} params.requestBody 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 @@ -4537,7 +4537,7 @@ export namespace games_v1 { * * @param {object} params Parameters for request * @param {string=} params.language The preferred language to use for strings returned by this method. - * @param {().RoomCreateRequest} params.resource Request body data + * @param {().RoomCreateRequest} params.requestBody 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 @@ -4825,7 +4825,7 @@ export namespace games_v1 { * @param {object} params Parameters for request * @param {string=} params.language The preferred language to use for strings returned by this method. * @param {string} params.roomId The ID of the room. - * @param {().RoomJoinRequest} params.resource Request body data + * @param {().RoomJoinRequest} params.requestBody 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 @@ -4898,7 +4898,7 @@ export namespace games_v1 { * @param {object} params Parameters for request * @param {string=} params.language The preferred language to use for strings returned by this method. * @param {string} params.roomId The ID of the room. - * @param {().RoomLeaveRequest} params.resource Request body data + * @param {().RoomLeaveRequest} params.requestBody 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 @@ -5041,7 +5041,7 @@ export namespace games_v1 { * @param {object} params Parameters for request * @param {string=} params.language The preferred language to use for strings returned by this method. * @param {string} params.roomId The ID of the room. - * @param {().RoomP2PStatuses} params.resource Request body data + * @param {().RoomP2PStatuses} params.requestBody 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 @@ -5583,7 +5583,7 @@ export namespace games_v1 { * * @param {object} params Parameters for request * @param {string=} params.language The preferred language to use for strings returned by this method. - * @param {().PlayerScoreSubmissionList} params.resource Request body data + * @param {().PlayerScoreSubmissionList} params.requestBody 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 @@ -6083,7 +6083,7 @@ export namespace games_v1 { * * @param {object} params Parameters for request * @param {string=} params.language The preferred language to use for strings returned by this method. - * @param {().TurnBasedMatchCreateRequest} params.resource Request body data + * @param {().TurnBasedMatchCreateRequest} params.requestBody 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 @@ -6304,7 +6304,7 @@ export namespace games_v1 { * @param {object} params Parameters for request * @param {string=} params.language The preferred language to use for strings returned by this method. * @param {string} params.matchId The ID of the match. - * @param {().TurnBasedMatchResults} params.resource Request body data + * @param {().TurnBasedMatchResults} params.requestBody 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 @@ -6912,7 +6912,7 @@ export namespace games_v1 { * @param {object} params Parameters for request * @param {string=} params.language The preferred language to use for strings returned by this method. * @param {string} params.matchId The ID of the match. - * @param {().TurnBasedMatchTurn} params.resource Request body data + * @param {().TurnBasedMatchTurn} params.requestBody 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 diff --git a/src/apis/gamesConfiguration/v1configuration.ts b/src/apis/gamesConfiguration/v1configuration.ts index bc4c0e9d5eb..f30a22bbb82 100644 --- a/src/apis/gamesConfiguration/v1configuration.ts +++ b/src/apis/gamesConfiguration/v1configuration.ts @@ -531,7 +531,7 @@ export namespace gamesConfiguration_v1configuration { * * @param {object} params Parameters for request * @param {string} params.applicationId The application ID from the Google Play developer console. - * @param {().AchievementConfiguration} params.resource Request body data + * @param {().AchievementConfiguration} params.requestBody 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 @@ -703,7 +703,7 @@ export namespace gamesConfiguration_v1configuration { * * @param {object} params Parameters for request * @param {string} params.achievementId The ID of the achievement used by this method. - * @param {().AchievementConfiguration} params.resource Request body data + * @param {().AchievementConfiguration} params.requestBody 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 @@ -781,7 +781,7 @@ export namespace gamesConfiguration_v1configuration { * * @param {object} params Parameters for request * @param {string} params.achievementId The ID of the achievement used by this method. - * @param {().AchievementConfiguration} params.resource Request body data + * @param {().AchievementConfiguration} params.requestBody 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 @@ -1229,7 +1229,7 @@ export namespace gamesConfiguration_v1configuration { * * @param {object} params Parameters for request * @param {string} params.applicationId The application ID from the Google Play developer console. - * @param {().LeaderboardConfiguration} params.resource Request body data + * @param {().LeaderboardConfiguration} params.requestBody 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 @@ -1401,7 +1401,7 @@ export namespace gamesConfiguration_v1configuration { * * @param {object} params Parameters for request * @param {string} params.leaderboardId The ID of the leaderboard. - * @param {().LeaderboardConfiguration} params.resource Request body data + * @param {().LeaderboardConfiguration} params.requestBody 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 @@ -1479,7 +1479,7 @@ export namespace gamesConfiguration_v1configuration { * * @param {object} params Parameters for request * @param {string} params.leaderboardId The ID of the leaderboard. - * @param {().LeaderboardConfiguration} params.resource Request body data + * @param {().LeaderboardConfiguration} params.requestBody 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 diff --git a/src/apis/gamesManagement/v1management.ts b/src/apis/gamesManagement/v1management.ts index 3331233987f..811edf0e0b8 100644 --- a/src/apis/gamesManagement/v1management.ts +++ b/src/apis/gamesManagement/v1management.ts @@ -676,7 +676,7 @@ export namespace gamesManagement_v1management { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AchievementResetMultipleForAllRequest} params.resource Request body data + * @param {().AchievementResetMultipleForAllRequest} params.requestBody 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 @@ -1192,7 +1192,7 @@ export namespace gamesManagement_v1management { * @memberOf! () * * @param {object} params Parameters for request - * @param {().EventsResetMultipleForAllRequest} params.resource Request body data + * @param {().EventsResetMultipleForAllRequest} params.requestBody 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 @@ -1960,7 +1960,7 @@ export namespace gamesManagement_v1management { * @memberOf! () * * @param {object} params Parameters for request - * @param {().ScoresResetMultipleForAllRequest} params.resource Request body data + * @param {().ScoresResetMultipleForAllRequest} params.requestBody 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 diff --git a/src/apis/genomics/v1.ts b/src/apis/genomics/v1.ts index 3b28be3f1e3..606a41811e5 100644 --- a/src/apis/genomics/v1.ts +++ b/src/apis/genomics/v1.ts @@ -479,7 +479,7 @@ export namespace genomics_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the operation resource to be cancelled. - * @param {().CancelOperationRequest} params.resource Request body data + * @param {().CancelOperationRequest} params.requestBody 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 diff --git a/src/apis/genomics/v1alpha2.ts b/src/apis/genomics/v1alpha2.ts index fe47d49dfd0..39a8c3e0f0d 100644 --- a/src/apis/genomics/v1alpha2.ts +++ b/src/apis/genomics/v1alpha2.ts @@ -771,7 +771,7 @@ export namespace genomics_v1alpha2 { * * @param {object} params Parameters for request * @param {string} params.name The name of the operation resource to be cancelled. - * @param {().CancelOperationRequest} params.resource Request body data + * @param {().CancelOperationRequest} params.requestBody 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 @@ -1199,7 +1199,7 @@ export namespace genomics_v1alpha2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Pipeline} params.resource Request body data + * @param {().Pipeline} params.requestBody 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 @@ -1804,7 +1804,7 @@ export namespace genomics_v1alpha2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().RunPipelineRequest} params.resource Request body data + * @param {().RunPipelineRequest} params.requestBody 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 @@ -1922,7 +1922,7 @@ export namespace genomics_v1alpha2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().SetOperationStatusRequest} params.resource Request body data + * @param {().SetOperationStatusRequest} params.requestBody 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 diff --git a/src/apis/genomics/v2alpha1.ts b/src/apis/genomics/v2alpha1.ts index d2f6aa479f3..95a0e5efd5a 100644 --- a/src/apis/genomics/v2alpha1.ts +++ b/src/apis/genomics/v2alpha1.ts @@ -201,6 +201,10 @@ export namespace genomics_v2alpha1 { * A workflow specific event occurred. */ event?: {[key: string]: any} | null; + /** + * A list of timestamped events. + */ + events?: Schema$TimestampedEvent[]; /** * The operation has finished with the given result. */ @@ -656,6 +660,19 @@ export namespace genomics_v2alpha1 { */ message?: string | null; } + /** + * An event that occured in the operation assigned to the worker and the time of occurance. + */ + export interface Schema$TimestampedEvent { + /** + * The event data. + */ + data?: {[key: string]: any} | null; + /** + * The time when the event happened. + */ + timestamp?: string | null; + } /** * An event generated when the execution of a container results in a non-zero exit status that was not otherwise ignored. Execution will continue, but only actions that are flagged as `ALWAYS_RUN` will be executed. Other actions will be skipped. */ @@ -838,7 +855,7 @@ export namespace genomics_v2alpha1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().RunPipelineRequest} params.resource Request body data + * @param {().RunPipelineRequest} params.requestBody 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 @@ -987,7 +1004,7 @@ export namespace genomics_v2alpha1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the operation resource to be cancelled. - * @param {().CancelOperationRequest} params.resource Request body data + * @param {().CancelOperationRequest} params.requestBody 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 @@ -1423,7 +1440,7 @@ export namespace genomics_v2alpha1 { * * @param {object} params Parameters for request * @param {string} params.id The worker id, assigned when it was created. - * @param {().CheckInRequest} params.resource Request body data + * @param {().CheckInRequest} params.requestBody 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 diff --git a/src/apis/gmail/v1.ts b/src/apis/gmail/v1.ts index d2836dc2594..2464d7a3b5d 100644 --- a/src/apis/gmail/v1.ts +++ b/src/apis/gmail/v1.ts @@ -995,7 +995,7 @@ export namespace gmail_v1 { * * @param {object} params Parameters for request * @param {string} params.userId The user's email address. The special value me can be used to indicate the authenticated user. - * @param {().WatchRequest} params.resource Request body data + * @param {().WatchRequest} params.requestBody 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 @@ -1115,7 +1115,7 @@ export namespace gmail_v1 { * * @param {object} params Parameters for request * @param {string} params.userId The user's email address. The special value me can be used to indicate the authenticated user. - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents @@ -1419,7 +1419,7 @@ export namespace gmail_v1 { * * @param {object} params Parameters for request * @param {string} params.userId The user's email address. The special value me can be used to indicate the authenticated user. - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents @@ -1499,7 +1499,7 @@ export namespace gmail_v1 { * @param {object} params Parameters for request * @param {string} params.id The ID of the draft to update. * @param {string} params.userId The user's email address. The special value me can be used to indicate the authenticated user. - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents @@ -1868,7 +1868,7 @@ export namespace gmail_v1 { * * @param {object} params Parameters for request * @param {string} params.userId The user's email address. The special value me can be used to indicate the authenticated user. - * @param {().Label} params.resource Request body data + * @param {().Label} params.requestBody 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 @@ -2161,7 +2161,7 @@ export namespace gmail_v1 { * @param {object} params Parameters for request * @param {string} params.id The ID of the label to update. * @param {string} params.userId The user's email address. The special value me can be used to indicate the authenticated user. - * @param {().Label} params.resource Request body data + * @param {().Label} params.requestBody 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 @@ -2235,7 +2235,7 @@ export namespace gmail_v1 { * @param {object} params Parameters for request * @param {string} params.id The ID of the label to update. * @param {string} params.userId The user's email address. The special value me can be used to indicate the authenticated user. - * @param {().Label} params.resource Request body data + * @param {().Label} params.requestBody 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 @@ -2420,7 +2420,7 @@ export namespace gmail_v1 { * * @param {object} params Parameters for request * @param {string} params.userId The user's email address. The special value me can be used to indicate the authenticated user. - * @param {().BatchDeleteMessagesRequest} params.resource Request body data + * @param {().BatchDeleteMessagesRequest} params.requestBody 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 @@ -2492,7 +2492,7 @@ export namespace gmail_v1 { * * @param {object} params Parameters for request * @param {string} params.userId The user's email address. The special value me can be used to indicate the authenticated user. - * @param {().BatchModifyMessagesRequest} params.resource Request body data + * @param {().BatchModifyMessagesRequest} params.requestBody 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 @@ -2716,7 +2716,7 @@ export namespace gmail_v1 { * @param {boolean=} params.neverMarkSpam Ignore the Gmail spam classifier decision and never mark this email as SPAM in the mailbox. * @param {boolean=} params.processForCalendar Process calendar invites in the email and add any extracted meetings to the Google Calendar for this user. * @param {string} params.userId The user's email address. The special value me can be used to indicate the authenticated user. - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents @@ -2797,7 +2797,7 @@ export namespace gmail_v1 { * @param {boolean=} params.deleted Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for G Suite accounts. * @param {string=} params.internalDateSource Source for Gmail's internal date of the message. * @param {string} params.userId The user's email address. The special value me can be used to indicate the authenticated user. - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents @@ -2958,7 +2958,7 @@ export namespace gmail_v1 { * @param {object} params Parameters for request * @param {string} params.id The ID of the message to modify. * @param {string} params.userId The user's email address. The special value me can be used to indicate the authenticated user. - * @param {().ModifyMessageRequest} params.resource Request body data + * @param {().ModifyMessageRequest} params.requestBody 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 @@ -3030,7 +3030,7 @@ export namespace gmail_v1 { * * @param {object} params Parameters for request * @param {string} params.userId The user's email address. The special value me can be used to indicate the authenticated user. - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents @@ -4023,7 +4023,7 @@ export namespace gmail_v1 { * * @param {object} params Parameters for request * @param {string} params.userId User's email address. The special value "me" can be used to indicate the authenticated user. - * @param {().AutoForwarding} params.resource Request body data + * @param {().AutoForwarding} params.requestBody 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 @@ -4099,7 +4099,7 @@ export namespace gmail_v1 { * * @param {object} params Parameters for request * @param {string} params.userId User's email address. The special value "me" can be used to indicate the authenticated user. - * @param {().ImapSettings} params.resource Request body data + * @param {().ImapSettings} params.requestBody 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 @@ -4174,7 +4174,7 @@ export namespace gmail_v1 { * * @param {object} params Parameters for request * @param {string} params.userId User's email address. The special value "me" can be used to indicate the authenticated user. - * @param {().LanguageSettings} params.resource Request body data + * @param {().LanguageSettings} params.requestBody 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 @@ -4250,7 +4250,7 @@ export namespace gmail_v1 { * * @param {object} params Parameters for request * @param {string} params.userId User's email address. The special value "me" can be used to indicate the authenticated user. - * @param {().PopSettings} params.resource Request body data + * @param {().PopSettings} params.requestBody 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 @@ -4325,7 +4325,7 @@ export namespace gmail_v1 { * * @param {object} params Parameters for request * @param {string} params.userId User's email address. The special value "me" can be used to indicate the authenticated user. - * @param {().VacationSettings} params.resource Request body data + * @param {().VacationSettings} params.requestBody 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 @@ -4554,7 +4554,7 @@ export namespace gmail_v1 { * * @param {object} params Parameters for request * @param {string} params.userId User's email address. The special value "me" can be used to indicate the authenticated user. - * @param {().Delegate} params.resource Request body data + * @param {().Delegate} params.requestBody 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 @@ -4916,7 +4916,7 @@ export namespace gmail_v1 { * * @param {object} params Parameters for request * @param {string} params.userId User's email address. The special value "me" can be used to indicate the authenticated user. - * @param {().Filter} params.resource Request body data + * @param {().Filter} params.requestBody 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 @@ -5274,7 +5274,7 @@ export namespace gmail_v1 { * * @param {object} params Parameters for request * @param {string} params.userId User's email address. The special value "me" can be used to indicate the authenticated user. - * @param {().ForwardingAddress} params.resource Request body data + * @param {().ForwardingAddress} params.requestBody 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 @@ -5651,7 +5651,7 @@ export namespace gmail_v1 { * * @param {object} params Parameters for request * @param {string} params.userId User's email address. The special value "me" can be used to indicate the authenticated user. - * @param {().SendAs} params.resource Request body data + * @param {().SendAs} params.requestBody 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 @@ -5943,7 +5943,7 @@ export namespace gmail_v1 { * @param {object} params Parameters for request * @param {string} params.sendAsEmail The send-as alias to be updated. * @param {string} params.userId User's email address. The special value "me" can be used to indicate the authenticated user. - * @param {().SendAs} params.resource Request body data + * @param {().SendAs} params.requestBody 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 @@ -6016,7 +6016,7 @@ export namespace gmail_v1 { * @param {object} params Parameters for request * @param {string} params.sendAsEmail The send-as alias to be updated. * @param {string} params.userId User's email address. The special value "me" can be used to indicate the authenticated user. - * @param {().SendAs} params.resource Request body data + * @param {().SendAs} params.requestBody 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 @@ -6439,7 +6439,7 @@ export namespace gmail_v1 { * @param {object} params Parameters for request * @param {string} params.sendAsEmail The email address that appears in the "From:" header for mail sent using this alias. * @param {string} params.userId The user's email address. The special value me can be used to indicate the authenticated user. - * @param {().SmimeInfo} params.resource Request body data + * @param {().SmimeInfo} params.requestBody 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 @@ -6998,7 +6998,7 @@ export namespace gmail_v1 { * @param {object} params Parameters for request * @param {string} params.id The ID of the thread to modify. * @param {string} params.userId The user's email address. The special value me can be used to indicate the authenticated user. - * @param {().ModifyThreadRequest} params.resource Request body data + * @param {().ModifyThreadRequest} params.requestBody 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 diff --git a/src/apis/groupssettings/v1.ts b/src/apis/groupssettings/v1.ts index 798a3233eb2..a1f9c7f70a6 100644 --- a/src/apis/groupssettings/v1.ts +++ b/src/apis/groupssettings/v1.ts @@ -434,7 +434,7 @@ export namespace groupssettings_v1 { * * @param {object} params Parameters for request * @param {string} params.groupUniqueId The group's email address. - * @param {().Groups} params.resource Request body data + * @param {().Groups} params.requestBody 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 @@ -506,7 +506,7 @@ export namespace groupssettings_v1 { * * @param {object} params Parameters for request * @param {string} params.groupUniqueId The group's email address. - * @param {().Groups} params.resource Request body data + * @param {().Groups} params.requestBody 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 diff --git a/src/apis/healthcare/v1beta1.ts b/src/apis/healthcare/v1beta1.ts index de470cfb5f8..c8741417bd4 100644 --- a/src/apis/healthcare/v1beta1.ts +++ b/src/apis/healthcare/v1beta1.ts @@ -480,7 +480,7 @@ export namespace healthcare_v1beta1 { */ action?: string | null; /** - * List of paths to FHIR fields to be redacted. Each path is a period-separated list where each component is either a field name or FHIR type name, for example: Patient, HumanName. For "choice" types (those defined in the FHIR spec with the form: field[x]) we use two separate components. For example, "deceasedAge.unit" is matched by "Deceased.Age.unit". Supported types are: AdministrativeGenderCode, Code, Date, DateTime, Decimal, HumanName, Id, LanguageCode, Markdown, MimeTypeCode, Oid, String, Uri, Uuid, Xhtml. + * List of paths to FHIR fields to be redacted. Each path is a period-separated list where each component is either a field name or FHIR type name, for example: Patient, HumanName. For "choice" types (those defined in the FHIR spec with the form: field[x]) we use two separate components. For example, "deceasedAge.unit" is matched by "Deceased.Age.unit". Supported types are: AdministrativeGenderCode, Code, Date, DateTime, Decimal, HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml. */ paths?: string[] | null; } @@ -1027,11 +1027,11 @@ export namespace healthcare_v1beta1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -1562,7 +1562,7 @@ export namespace healthcare_v1beta1 { * @param {object} params Parameters for request * @param {string=} params.datasetId The ID of the dataset that is being created. The string must match the following regex: `[\p{L}\p{N}_\-\.]{1,256}`. * @param {string} params.parent The name of the project where the server creates the dataset. For example, `projects/{project_id}/locations/{location_id}`. - * @param {().Dataset} params.resource Request body data + * @param {().Dataset} params.requestBody 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 @@ -1688,7 +1688,7 @@ export namespace healthcare_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.sourceDataset Source dataset resource name. For example, `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`. - * @param {().DeidentifyDatasetRequest} params.resource Request body data + * @param {().DeidentifyDatasetRequest} params.requestBody 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 @@ -2303,7 +2303,7 @@ export namespace healthcare_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name Output only. Resource name of the dataset, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`. * @param {string=} params.updateMask The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * @param {().Dataset} params.resource Request body data + * @param {().Dataset} params.requestBody 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 @@ -2424,7 +2424,7 @@ export namespace healthcare_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -2548,7 +2548,7 @@ export namespace healthcare_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -2846,7 +2846,7 @@ export namespace healthcare_v1beta1 { * @param {object} params Parameters for request * @param {string=} params.dicomStoreId The ID of the DICOM store that is being created. Any string value up to 256 characters in length. * @param {string} params.parent The name of the dataset this DICOM store belongs to. - * @param {().DicomStore} params.resource Request body data + * @param {().DicomStore} params.requestBody 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 @@ -2921,7 +2921,7 @@ export namespace healthcare_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.sourceStore Source DICOM store resource name. For example, `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`. - * @param {().DeidentifyDicomStoreRequest} params.resource Request body data + * @param {().DeidentifyDicomStoreRequest} params.requestBody 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 @@ -3159,7 +3159,7 @@ export namespace healthcare_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The DICOM store resource name from which to export the data. For example, `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`. - * @param {().ExportDicomDataRequest} params.resource Request body data + * @param {().ExportDicomDataRequest} params.requestBody 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 @@ -3522,7 +3522,7 @@ export namespace healthcare_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the DICOM store resource into which the data is imported. For example, `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`. - * @param {().ImportDicomDataRequest} params.resource Request body data + * @param {().ImportDicomDataRequest} params.requestBody 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 @@ -3788,7 +3788,7 @@ export namespace healthcare_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name Output only. Resource name of the DICOM store, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`. * @param {string=} params.updateMask The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * @param {().DicomStore} params.resource Request body data + * @param {().DicomStore} params.requestBody 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 @@ -4280,7 +4280,7 @@ export namespace healthcare_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -4409,7 +4409,7 @@ export namespace healthcare_v1beta1 { * @param {object} params Parameters for request * @param {string} params.dicomWebPath The path of the StoreInstances DICOMweb request. For example, `studies/[{study_uid}]`. Note that the `study_uid` is optional. * @param {string} params.parent The name of the DICOM store that is being accessed. For example, `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`. - * @param {().HttpBody} params.resource Request body data + * @param {().HttpBody} params.requestBody 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 @@ -4532,7 +4532,7 @@ export namespace healthcare_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -5554,7 +5554,7 @@ export namespace healthcare_v1beta1 { * @param {object} params Parameters for request * @param {string} params.dicomWebPath The path of the StoreInstances DICOMweb request. For example, `studies/[{study_uid}]`. Note that the `study_uid` is optional. * @param {string} params.parent The name of the DICOM store that is being accessed. For example, `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`. - * @param {().HttpBody} params.resource Request body data + * @param {().HttpBody} params.requestBody 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 @@ -7207,7 +7207,7 @@ export namespace healthcare_v1beta1 { * @param {object} params Parameters for request * @param {string=} params.fhirStoreId The ID of the FHIR store that is being created. The string must match the following regex: `[\p{L}\p{N}_\-\.]{1,256}`. * @param {string} params.parent The name of the dataset this FHIR store belongs to. - * @param {().FhirStore} params.resource Request body data + * @param {().FhirStore} params.requestBody 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 @@ -7282,7 +7282,7 @@ export namespace healthcare_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.sourceStore Source FHIR store resource name. For example, `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}`. - * @param {().DeidentifyFhirStoreRequest} params.resource Request body data + * @param {().DeidentifyFhirStoreRequest} params.requestBody 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 @@ -7521,7 +7521,7 @@ export namespace healthcare_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the FHIR store to export resource from. The name should be in the format of `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}`. - * @param {().ExportResourcesRequest} params.resource Request body data + * @param {().ExportResourcesRequest} params.requestBody 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 @@ -7885,7 +7885,7 @@ export namespace healthcare_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the FHIR store to import FHIR resources to. The name should be in the format of `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}`. - * @param {().ImportResourcesRequest} params.resource Request body data + * @param {().ImportResourcesRequest} params.requestBody 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 @@ -8151,7 +8151,7 @@ export namespace healthcare_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name Output only. Resource name of the FHIR store, of the form `projects/{project_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}`. * @param {string=} params.updateMask The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * @param {().FhirStore} params.resource Request body data + * @param {().FhirStore} params.requestBody 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 @@ -8274,7 +8274,7 @@ export namespace healthcare_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -8398,7 +8398,7 @@ export namespace healthcare_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -8975,7 +8975,7 @@ export namespace healthcare_v1beta1 { * @param {object} params Parameters for request * @param {string} params.parent The name of the FHIR store this resource belongs to. * @param {string} params.type The FHIR resource type to update, such as Patient or Observation. For a complete list, see the [FHIR Resource Index](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html). - * @param {().HttpBody} params.resource Request body data + * @param {().HttpBody} params.requestBody 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 @@ -9106,7 +9106,7 @@ export namespace healthcare_v1beta1 { * @param {object} params Parameters for request * @param {string} params.parent The name of the FHIR store this resource belongs to. * @param {string} params.type The FHIR resource type to update, such as Patient or Observation. For a complete list, see the [FHIR Resource Index](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html). Must match the resource type in the provided content. - * @param {().HttpBody} params.resource Request body data + * @param {().HttpBody} params.requestBody 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 @@ -9236,7 +9236,7 @@ export namespace healthcare_v1beta1 { * @param {object} params Parameters for request * @param {string} params.parent The name of the FHIR store this resource belongs to. * @param {string} params.type The FHIR resource type to create, such as Patient or Observation. For a complete list, see the [FHIR Resource Index](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html). Must match the resource type in the provided content. - * @param {().HttpBody} params.resource Request body data + * @param {().HttpBody} params.requestBody 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 @@ -9474,7 +9474,7 @@ export namespace healthcare_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Name of the FHIR store in which this bundle will be executed. - * @param {().HttpBody} params.resource Request body data + * @param {().HttpBody} params.requestBody 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 @@ -9838,7 +9838,7 @@ export namespace healthcare_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the resource to update. - * @param {().HttpBody} params.resource Request body data + * @param {().HttpBody} params.requestBody 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 @@ -10310,7 +10310,7 @@ export namespace healthcare_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Name of the FHIR store to retrieve resources from. - * @param {().SearchResourcesRequest} params.resource Request body data + * @param {().SearchResourcesRequest} params.requestBody 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 @@ -10434,7 +10434,7 @@ export namespace healthcare_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the resource to update. - * @param {().HttpBody} params.resource Request body data + * @param {().HttpBody} params.requestBody 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 @@ -10961,7 +10961,7 @@ export namespace healthcare_v1beta1 { * @param {object} params Parameters for request * @param {string=} params.hl7V2StoreId The ID of the HL7v2 store that is being created. The string must match the following regex: `[\p{L}\p{N}_\-\.]{1,256}`. * @param {string} params.parent The name of the dataset this HL7v2 store belongs to. - * @param {().Hl7V2Store} params.resource Request body data + * @param {().Hl7V2Store} params.requestBody 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 @@ -11576,7 +11576,7 @@ export namespace healthcare_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name Output only. Resource name of the HL7v2 store, of the form `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_store_id}`. * @param {string=} params.updateMask The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * @param {().Hl7V2Store} params.resource Request body data + * @param {().Hl7V2Store} params.requestBody 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 @@ -11699,7 +11699,7 @@ export namespace healthcare_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -11823,7 +11823,7 @@ export namespace healthcare_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -12103,7 +12103,7 @@ export namespace healthcare_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent The name of the dataset this message belongs to. - * @param {().CreateMessageRequest} params.resource Request body data + * @param {().CreateMessageRequest} params.requestBody 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 @@ -12454,7 +12454,7 @@ export namespace healthcare_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent The name of the HL7v2 store this message belongs to. - * @param {().IngestMessageRequest} params.resource Request body data + * @param {().IngestMessageRequest} params.requestBody 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 @@ -12724,7 +12724,7 @@ export namespace healthcare_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name Resource name of the Message, of the form `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server. * @param {string=} params.updateMask The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask Only the `labels` field is allowed to be updated. The labels in the request are merged with the existing set of labels. Existing labels with the same keys are updated. - * @param {().Message} params.resource Request body data + * @param {().Message} params.requestBody 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 diff --git a/src/apis/homegraph/v1.ts b/src/apis/homegraph/v1.ts index 3e20f1beafa..cc16c37491a 100644 --- a/src/apis/homegraph/v1.ts +++ b/src/apis/homegraph/v1.ts @@ -150,7 +150,7 @@ export namespace homegraph_v1 { /** * Custom JSON data provided by the manufacturer and attached to QUERY and EXECUTE requests in AoG. */ - customData?: string | null; + customData?: {[key: string]: any} | null; /** * Device manufacturer, model, hardware version, and software version. */ @@ -163,6 +163,10 @@ export namespace homegraph_v1 { * Name of the device given by the third party. This includes names given to the device via third party device manufacturer's app, model names for the device, etc. */ name?: Schema$DeviceNames; + /** + * Indicates whether the device is capable of sending notifications. This field will be set by the agent (partner) on an incoming SYNC. If a device is not capable of generating notifications, the partner should set this flag to false. If a partner is not capable of calling ReportStateAndNotification to send notifications to Google, the partner should set this flag to false. If there is a user setting in the partner app to enable notifications and it is turned off, the partner should set this flag to false. + */ + notificationSupportedByAgent?: boolean | null; /** * IDs of other devices associated with this device. This is used to represent a device group (e.g. bonded zone) or "facets" synced through different flows (e.g. Google Nest Hub Max with a Nest Camera). This may also be used to pass in alternate IDs used to identify a cloud synced device for local execution (i.e. local verification). If used for local verification, this field is synced from the cloud. */ @@ -507,7 +511,7 @@ export namespace homegraph_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().QueryRequest} params.resource Request body data + * @param {().QueryRequest} params.requestBody 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 @@ -577,7 +581,7 @@ export namespace homegraph_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().ReportStateAndNotificationRequest} params.resource Request body data + * @param {().ReportStateAndNotificationRequest} params.requestBody 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 @@ -660,7 +664,7 @@ export namespace homegraph_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().RequestSyncDevicesRequest} params.resource Request body data + * @param {().RequestSyncDevicesRequest} params.requestBody 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 @@ -741,7 +745,7 @@ export namespace homegraph_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().SyncRequest} params.resource Request body data + * @param {().SyncRequest} params.requestBody 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 diff --git a/src/apis/iam/v1.ts b/src/apis/iam/v1.ts index 2e298bd6b15..999eca2abd7 100644 --- a/src/apis/iam/v1.ts +++ b/src/apis/iam/v1.ts @@ -455,11 +455,11 @@ export namespace iam_v1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -830,7 +830,7 @@ export namespace iam_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().LintPolicyRequest} params.resource Request body data + * @param {().LintPolicyRequest} params.requestBody 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 @@ -951,7 +951,7 @@ export namespace iam_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().QueryAuditableServicesRequest} params.resource Request body data + * @param {().QueryAuditableServicesRequest} params.requestBody 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 @@ -1128,7 +1128,7 @@ export namespace iam_v1 { * * @param {object} params Parameters for request * @param {string} params.parent The `parent` parameter's value depends on the target resource for the request, namely [`projects`](/iam/reference/rest/v1/projects.roles) or [`organizations`](/iam/reference/rest/v1/organizations.roles). Each resource type's `parent` value format is described below: * [`projects.roles.create()`](/iam/reference/rest/v1/projects.roles/create): `projects/{PROJECT_ID}`. This method creates project-level [custom roles](/iam/docs/understanding-custom-roles). Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` * [`organizations.roles.create()`](/iam/reference/rest/v1/organizations.roles/create): `organizations/{ORGANIZATION_ID}`. This method creates organization-level [custom roles](/iam/docs/understanding-custom-roles). Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID. - * @param {().CreateRoleRequest} params.resource Request body data + * @param {().CreateRoleRequest} params.requestBody 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 @@ -1632,7 +1632,7 @@ export namespace iam_v1 { * @param {object} params Parameters for request * @param {string} params.name The `name` parameter's value depends on the target resource for the request, namely [`projects`](/iam/reference/rest/v1/projects.roles) or [`organizations`](/iam/reference/rest/v1/organizations.roles). Each resource type's `name` value format is described below: * [`projects.roles.patch()`](/iam/reference/rest/v1/projects.roles/patch): `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only [custom roles](/iam/docs/understanding-custom-roles) that have been created at the project level. Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` * [`organizations.roles.patch()`](/iam/reference/rest/v1/organizations.roles/patch): `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only [custom roles](/iam/docs/understanding-custom-roles) that have been created at the organization level. Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID. * @param {string=} params.updateMask A mask describing which fields in the Role have changed. - * @param {().Role} params.resource Request body data + * @param {().Role} params.requestBody 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 @@ -1754,7 +1754,7 @@ export namespace iam_v1 { * * @param {object} params Parameters for request * @param {string} params.name The `name` parameter's value depends on the target resource for the request, namely [`projects`](/iam/reference/rest/v1/projects.roles) or [`organizations`](/iam/reference/rest/v1/organizations.roles). Each resource type's `name` value format is described below: * [`projects.roles.undelete()`](/iam/reference/rest/v1/projects.roles/undelete): `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes only [custom roles](/iam/docs/understanding-custom-roles) that have been created at the project level. Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` * [`organizations.roles.undelete()`](/iam/reference/rest/v1/organizations.roles/undelete): `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes only [custom roles](/iam/docs/understanding-custom-roles) that have been created at the organization level. Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID. - * @param {().UndeleteRoleRequest} params.resource Request body data + * @param {().UndeleteRoleRequest} params.requestBody 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 @@ -2005,7 +2005,7 @@ export namespace iam_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().QueryTestablePermissionsRequest} params.resource Request body data + * @param {().QueryTestablePermissionsRequest} params.requestBody 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 @@ -2174,7 +2174,7 @@ export namespace iam_v1 { * * @param {object} params Parameters for request * @param {string} params.parent The `parent` parameter's value depends on the target resource for the request, namely [`projects`](/iam/reference/rest/v1/projects.roles) or [`organizations`](/iam/reference/rest/v1/organizations.roles). Each resource type's `parent` value format is described below: * [`projects.roles.create()`](/iam/reference/rest/v1/projects.roles/create): `projects/{PROJECT_ID}`. This method creates project-level [custom roles](/iam/docs/understanding-custom-roles). Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` * [`organizations.roles.create()`](/iam/reference/rest/v1/organizations.roles/create): `organizations/{ORGANIZATION_ID}`. This method creates organization-level [custom roles](/iam/docs/understanding-custom-roles). Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID. - * @param {().CreateRoleRequest} params.resource Request body data + * @param {().CreateRoleRequest} params.requestBody 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 @@ -2678,7 +2678,7 @@ export namespace iam_v1 { * @param {object} params Parameters for request * @param {string} params.name The `name` parameter's value depends on the target resource for the request, namely [`projects`](/iam/reference/rest/v1/projects.roles) or [`organizations`](/iam/reference/rest/v1/organizations.roles). Each resource type's `name` value format is described below: * [`projects.roles.patch()`](/iam/reference/rest/v1/projects.roles/patch): `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only [custom roles](/iam/docs/understanding-custom-roles) that have been created at the project level. Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` * [`organizations.roles.patch()`](/iam/reference/rest/v1/organizations.roles/patch): `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only [custom roles](/iam/docs/understanding-custom-roles) that have been created at the organization level. Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID. * @param {string=} params.updateMask A mask describing which fields in the Role have changed. - * @param {().Role} params.resource Request body data + * @param {().Role} params.requestBody 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 @@ -2800,7 +2800,7 @@ export namespace iam_v1 { * * @param {object} params Parameters for request * @param {string} params.name The `name` parameter's value depends on the target resource for the request, namely [`projects`](/iam/reference/rest/v1/projects.roles) or [`organizations`](/iam/reference/rest/v1/organizations.roles). Each resource type's `name` value format is described below: * [`projects.roles.undelete()`](/iam/reference/rest/v1/projects.roles/undelete): `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes only [custom roles](/iam/docs/understanding-custom-roles) that have been created at the project level. Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` * [`organizations.roles.undelete()`](/iam/reference/rest/v1/organizations.roles/undelete): `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes only [custom roles](/iam/docs/understanding-custom-roles) that have been created at the organization level. Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID. - * @param {().UndeleteRoleRequest} params.resource Request body data + * @param {().UndeleteRoleRequest} params.requestBody 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 @@ -3045,7 +3045,7 @@ export namespace iam_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the project associated with the service accounts, such as `projects/my-project-123`. - * @param {().CreateServiceAccountRequest} params.resource Request body data + * @param {().CreateServiceAccountRequest} params.requestBody 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 @@ -3287,7 +3287,7 @@ export namespace iam_v1 { * * @param {object} params Parameters for request * @param {string} params.name The resource name of the service account in the following format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. - * @param {().DisableServiceAccountRequest} params.resource Request body data + * @param {().DisableServiceAccountRequest} params.requestBody 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 @@ -3410,7 +3410,7 @@ export namespace iam_v1 { * * @param {object} params Parameters for request * @param {string} params.name The resource name of the service account in the following format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. - * @param {().EnableServiceAccountRequest} params.resource Request body data + * @param {().EnableServiceAccountRequest} params.requestBody 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 @@ -3921,7 +3921,7 @@ export namespace iam_v1 { * * @param {object} params Parameters for request * @param {string} params.name The resource name of the service account in the following format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Requests using `-` as a wildcard for the `PROJECT_ID` will infer the project from the `account` and the `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. In responses the resource name will always be in the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. - * @param {().PatchServiceAccountRequest} params.resource Request body data + * @param {().PatchServiceAccountRequest} params.requestBody 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 @@ -4044,7 +4044,7 @@ export namespace iam_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -4171,7 +4171,7 @@ export namespace iam_v1 { * * @param {object} params Parameters for request * @param {string} params.name The resource name of the service account in the following format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. - * @param {().SignBlobRequest} params.resource Request body data + * @param {().SignBlobRequest} params.requestBody 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 @@ -4300,7 +4300,7 @@ export namespace iam_v1 { * * @param {object} params Parameters for request * @param {string} params.name The resource name of the service account in the following format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. - * @param {().SignJwtRequest} params.resource Request body data + * @param {().SignJwtRequest} params.requestBody 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 @@ -4426,7 +4426,7 @@ export namespace iam_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -4561,7 +4561,7 @@ export namespace iam_v1 { * * @param {object} params Parameters for request * @param {string} params.name The resource name of the service account in the following format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_UNIQUE_ID}`. Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. - * @param {().UndeleteServiceAccountRequest} params.resource Request body data + * @param {().UndeleteServiceAccountRequest} params.requestBody 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 @@ -4702,7 +4702,7 @@ export namespace iam_v1 { * * @param {object} params Parameters for request * @param {string} params.name The resource name of the service account in the following format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Requests using `-` as a wildcard for the `PROJECT_ID` will infer the project from the `account` and the `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. In responses the resource name will always be in the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. - * @param {().ServiceAccount} params.resource Request body data + * @param {().ServiceAccount} params.requestBody 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 @@ -5066,7 +5066,7 @@ export namespace iam_v1 { * * @param {object} params Parameters for request * @param {string} params.name The resource name of the service account in the following format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. - * @param {().CreateServiceAccountKeyRequest} params.resource Request body data + * @param {().CreateServiceAccountKeyRequest} params.requestBody 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 @@ -5507,7 +5507,7 @@ export namespace iam_v1 { * * @param {object} params Parameters for request * @param {string} params.name The resource name of the service account in the following format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. - * @param {().UploadServiceAccountKeyRequest} params.resource Request body data + * @param {().UploadServiceAccountKeyRequest} params.requestBody 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 @@ -5974,7 +5974,7 @@ export namespace iam_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().QueryGrantableRolesRequest} params.resource Request body data + * @param {().QueryGrantableRolesRequest} params.requestBody 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 diff --git a/src/apis/iamcredentials/v1.ts b/src/apis/iamcredentials/v1.ts index 04b10d035b9..839ca92b75c 100644 --- a/src/apis/iamcredentials/v1.ts +++ b/src/apis/iamcredentials/v1.ts @@ -225,7 +225,7 @@ export namespace iamcredentials_v1 { * * @param {object} params Parameters for request * @param {string} params.name The resource name of the service account for which the credentials are requested, in the following format: `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard character is required; replacing it with a project ID is invalid. - * @param {().GenerateAccessTokenRequest} params.resource Request body data + * @param {().GenerateAccessTokenRequest} params.requestBody 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 @@ -308,7 +308,7 @@ export namespace iamcredentials_v1 { * * @param {object} params Parameters for request * @param {string} params.name The resource name of the service account for which the credentials are requested, in the following format: `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard character is required; replacing it with a project ID is invalid. - * @param {().GenerateIdTokenRequest} params.resource Request body data + * @param {().GenerateIdTokenRequest} params.requestBody 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 @@ -388,7 +388,7 @@ export namespace iamcredentials_v1 { * * @param {object} params Parameters for request * @param {string} params.name The resource name of the service account for which the credentials are requested, in the following format: `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard character is required; replacing it with a project ID is invalid. - * @param {().SignBlobRequest} params.resource Request body data + * @param {().SignBlobRequest} params.requestBody 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 @@ -464,7 +464,7 @@ export namespace iamcredentials_v1 { * * @param {object} params Parameters for request * @param {string} params.name The resource name of the service account for which the credentials are requested, in the following format: `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard character is required; replacing it with a project ID is invalid. - * @param {().SignJwtRequest} params.resource Request body data + * @param {().SignJwtRequest} params.requestBody 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 diff --git a/src/apis/iap/v1.ts b/src/apis/iap/v1.ts index eede3df232d..8b558322c5e 100644 --- a/src/apis/iap/v1.ts +++ b/src/apis/iap/v1.ts @@ -313,7 +313,7 @@ export namespace iap_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -459,7 +459,7 @@ export namespace iap_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -531,7 +531,7 @@ export namespace iap_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -614,7 +614,7 @@ export namespace iap_v1 { * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the IAP protected resource. * @param {string=} params.updateMask The field mask specifying which IAP settings should be updated. If omitted, the all of the settings are updated. See https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * @param {().IapSettings} params.resource Request body data + * @param {().IapSettings} params.requestBody 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 diff --git a/src/apis/iap/v1beta1.ts b/src/apis/iap/v1beta1.ts index c35f8f7721c..29d606ebbf6 100644 --- a/src/apis/iap/v1beta1.ts +++ b/src/apis/iap/v1beta1.ts @@ -230,7 +230,7 @@ export namespace iap_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -303,7 +303,7 @@ export namespace iap_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -376,7 +376,7 @@ export namespace iap_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 diff --git a/src/apis/identitytoolkit/v3.ts b/src/apis/identitytoolkit/v3.ts index 5174d5622d5..e97f106382c 100644 --- a/src/apis/identitytoolkit/v3.ts +++ b/src/apis/identitytoolkit/v3.ts @@ -1538,7 +1538,7 @@ export namespace identitytoolkit_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().IdentitytoolkitRelyingpartyCreateAuthUriRequest} params.resource Request body data + * @param {().IdentitytoolkitRelyingpartyCreateAuthUriRequest} params.requestBody 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 @@ -1615,7 +1615,7 @@ export namespace identitytoolkit_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().IdentitytoolkitRelyingpartyDeleteAccountRequest} params.resource Request body data + * @param {().IdentitytoolkitRelyingpartyDeleteAccountRequest} params.requestBody 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 @@ -1692,7 +1692,7 @@ export namespace identitytoolkit_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().IdentitytoolkitRelyingpartyDownloadAccountRequest} params.resource Request body data + * @param {().IdentitytoolkitRelyingpartyDownloadAccountRequest} params.requestBody 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 @@ -1769,7 +1769,7 @@ export namespace identitytoolkit_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().IdentitytoolkitRelyingpartyEmailLinkSigninRequest} params.resource Request body data + * @param {().IdentitytoolkitRelyingpartyEmailLinkSigninRequest} params.requestBody 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 @@ -1846,7 +1846,7 @@ export namespace identitytoolkit_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().IdentitytoolkitRelyingpartyGetAccountInfoRequest} params.resource Request body data + * @param {().IdentitytoolkitRelyingpartyGetAccountInfoRequest} params.requestBody 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 @@ -1923,7 +1923,7 @@ export namespace identitytoolkit_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Relyingparty} params.resource Request body data + * @param {().Relyingparty} params.requestBody 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 @@ -2281,7 +2281,7 @@ export namespace identitytoolkit_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().IdentitytoolkitRelyingpartyResetPasswordRequest} params.resource Request body data + * @param {().IdentitytoolkitRelyingpartyResetPasswordRequest} params.requestBody 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 @@ -2358,7 +2358,7 @@ export namespace identitytoolkit_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().IdentitytoolkitRelyingpartySendVerificationCodeRequest} params.resource Request body data + * @param {().IdentitytoolkitRelyingpartySendVerificationCodeRequest} params.requestBody 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 @@ -2457,7 +2457,7 @@ export namespace identitytoolkit_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().IdentitytoolkitRelyingpartySetAccountInfoRequest} params.resource Request body data + * @param {().IdentitytoolkitRelyingpartySetAccountInfoRequest} params.requestBody 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 @@ -2534,7 +2534,7 @@ export namespace identitytoolkit_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().IdentitytoolkitRelyingpartySetProjectConfigRequest} params.resource Request body data + * @param {().IdentitytoolkitRelyingpartySetProjectConfigRequest} params.requestBody 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 @@ -2633,7 +2633,7 @@ export namespace identitytoolkit_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().IdentitytoolkitRelyingpartySignOutUserRequest} params.resource Request body data + * @param {().IdentitytoolkitRelyingpartySignOutUserRequest} params.requestBody 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 @@ -2731,7 +2731,7 @@ export namespace identitytoolkit_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().IdentitytoolkitRelyingpartySignupNewUserRequest} params.resource Request body data + * @param {().IdentitytoolkitRelyingpartySignupNewUserRequest} params.requestBody 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 @@ -2808,7 +2808,7 @@ export namespace identitytoolkit_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().IdentitytoolkitRelyingpartyUploadAccountRequest} params.resource Request body data + * @param {().IdentitytoolkitRelyingpartyUploadAccountRequest} params.requestBody 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 @@ -2885,7 +2885,7 @@ export namespace identitytoolkit_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().IdentitytoolkitRelyingpartyVerifyAssertionRequest} params.resource Request body data + * @param {().IdentitytoolkitRelyingpartyVerifyAssertionRequest} params.requestBody 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 @@ -2962,7 +2962,7 @@ export namespace identitytoolkit_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().IdentitytoolkitRelyingpartyVerifyCustomTokenRequest} params.resource Request body data + * @param {().IdentitytoolkitRelyingpartyVerifyCustomTokenRequest} params.requestBody 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 @@ -3042,7 +3042,7 @@ export namespace identitytoolkit_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().IdentitytoolkitRelyingpartyVerifyPasswordRequest} params.resource Request body data + * @param {().IdentitytoolkitRelyingpartyVerifyPasswordRequest} params.requestBody 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 @@ -3119,7 +3119,7 @@ export namespace identitytoolkit_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest} params.resource Request body data + * @param {().IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest} params.requestBody 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 diff --git a/src/apis/index.ts b/src/apis/index.ts index 1d17c87765d..71ec903500a 100644 --- a/src/apis/index.ts +++ b/src/apis/index.ts @@ -37,6 +37,7 @@ import * as bigqueryconnection from './bigqueryconnection'; import * as bigquerydatatransfer from './bigquerydatatransfer'; import * as bigqueryreservation from './bigqueryreservation'; import * as bigtableadmin from './bigtableadmin'; +import * as billingbudgets from './billingbudgets'; import * as binaryauthorization from './binaryauthorization'; import * as blogger from './blogger'; import * as books from './books'; @@ -69,6 +70,7 @@ import * as container from './container'; import * as containeranalysis from './containeranalysis'; import * as content from './content'; import * as customsearch from './customsearch'; +import * as datacatalog from './datacatalog'; import * as dataflow from './dataflow'; import * as datafusion from './datafusion'; import * as dataproc from './dataproc'; @@ -156,7 +158,6 @@ import * as sourcerepo from './sourcerepo'; import * as spanner from './spanner'; import * as speech from './speech'; import * as sql from './sql'; -import * as sqladmin from './sqladmin'; import * as storage from './storage'; import * as storagetransfer from './storagetransfer'; import * as streetviewpublish from './streetviewpublish'; @@ -209,6 +210,7 @@ export const APIS: APIList = { bigquerydatatransfer: bigquerydatatransfer.VERSIONS, bigqueryreservation: bigqueryreservation.VERSIONS, bigtableadmin: bigtableadmin.VERSIONS, + billingbudgets: billingbudgets.VERSIONS, binaryauthorization: binaryauthorization.VERSIONS, blogger: blogger.VERSIONS, books: books.VERSIONS, @@ -241,6 +243,7 @@ export const APIS: APIList = { containeranalysis: containeranalysis.VERSIONS, content: content.VERSIONS, customsearch: customsearch.VERSIONS, + datacatalog: datacatalog.VERSIONS, dataflow: dataflow.VERSIONS, datafusion: datafusion.VERSIONS, dataproc: dataproc.VERSIONS, @@ -328,7 +331,6 @@ export const APIS: APIList = { spanner: spanner.VERSIONS, speech: speech.VERSIONS, sql: sql.VERSIONS, - sqladmin: sqladmin.VERSIONS, storage: storage.VERSIONS, storagetransfer: storagetransfer.VERSIONS, streetviewpublish: streetviewpublish.VERSIONS, @@ -378,6 +380,7 @@ export class GeneratedAPIs { bigquerydatatransfer = bigquerydatatransfer.bigquerydatatransfer; bigqueryreservation = bigqueryreservation.bigqueryreservation; bigtableadmin = bigtableadmin.bigtableadmin; + billingbudgets = billingbudgets.billingbudgets; binaryauthorization = binaryauthorization.binaryauthorization; blogger = blogger.blogger; books = books.books; @@ -411,6 +414,7 @@ export class GeneratedAPIs { containeranalysis = containeranalysis.containeranalysis; content = content.content; customsearch = customsearch.customsearch; + datacatalog = datacatalog.datacatalog; dataflow = dataflow.dataflow; datafusion = datafusion.datafusion; dataproc = dataproc.dataproc; @@ -499,7 +503,6 @@ export class GeneratedAPIs { spanner = spanner.spanner; speech = speech.speech; sql = sql.sql; - sqladmin = sqladmin.sqladmin; storage = storage.storage; storagetransfer = storagetransfer.storagetransfer; streetviewpublish = streetviewpublish.streetviewpublish; diff --git a/src/apis/indexing/v3.ts b/src/apis/indexing/v3.ts index b3e9f2acf5d..3b0838a89c2 100644 --- a/src/apis/indexing/v3.ts +++ b/src/apis/indexing/v3.ts @@ -250,7 +250,7 @@ export namespace indexing_v3 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().UrlNotification} params.resource Request body data + * @param {().UrlNotification} params.requestBody 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 diff --git a/src/apis/jobs/v2.ts b/src/apis/jobs/v2.ts index 1b6b6048404..131f3f4ad0d 100644 --- a/src/apis/jobs/v2.ts +++ b/src/apis/jobs/v2.ts @@ -1590,7 +1590,7 @@ export namespace jobs_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Company} params.resource Request body data + * @param {().Company} params.requestBody 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 @@ -1870,7 +1870,7 @@ export namespace jobs_v2 { * @param {object} params Parameters for request * @param {string} params.name Required during company update. The resource name for a company. This is generated by the service when a company is created, for example, "companies/0000aaaa-1111-bbbb-2222-cccc3333dddd". * @param {string=} params.updateCompanyFields Optional but strongly recommended to be provided for the best service experience. If update_company_fields is provided, only the specified fields in company are updated. Otherwise all the fields are updated. A field mask to specify the company fields to update. Valid values are: * displayName * website * imageUrl * companySize * distributorBillingCompanyId * companyInfoSources * careerPageLink * hiringAgency * hqLocation * eeoText * keywordSearchableCustomAttributes * title (deprecated) * keywordSearchableCustomFields (deprecated) - * @param {().Company} params.resource Request body data + * @param {().Company} params.requestBody 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 @@ -2139,7 +2139,7 @@ export namespace jobs_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().BatchDeleteJobsRequest} params.resource Request body data + * @param {().BatchDeleteJobsRequest} params.requestBody 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 @@ -2210,7 +2210,7 @@ export namespace jobs_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().CreateJobRequest} params.resource Request body data + * @param {().CreateJobRequest} params.requestBody 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 @@ -2347,7 +2347,7 @@ export namespace jobs_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().DeleteJobsByFilterRequest} params.resource Request body data + * @param {().DeleteJobsByFilterRequest} params.requestBody 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 @@ -2487,7 +2487,7 @@ export namespace jobs_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().GetHistogramRequest} params.resource Request body data + * @param {().GetHistogramRequest} params.requestBody 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 @@ -2635,7 +2635,7 @@ export namespace jobs_v2 { * * @param {object} params Parameters for request * @param {string} params.name Required during job update. Resource name assigned to a job by the API, for example, "/jobs/foo". Use of this field in job queries and API calls is preferred over the use of requisition_id since this value is unique. - * @param {().UpdateJobRequest} params.resource Request body data + * @param {().UpdateJobRequest} params.requestBody 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 @@ -2703,7 +2703,7 @@ export namespace jobs_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().SearchJobsRequest} params.resource Request body data + * @param {().SearchJobsRequest} params.requestBody 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 @@ -2773,7 +2773,7 @@ export namespace jobs_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().SearchJobsRequest} params.resource Request body data + * @param {().SearchJobsRequest} params.requestBody 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 diff --git a/src/apis/jobs/v3.ts b/src/apis/jobs/v3.ts index 97f77add8d0..42b5c8275e5 100644 --- a/src/apis/jobs/v3.ts +++ b/src/apis/jobs/v3.ts @@ -1442,7 +1442,7 @@ export namespace jobs_v3 { * * @param {object} params Parameters for request * @param {string} params.parent Parent project name. - * @param {().CreateClientEventRequest} params.resource Request body data + * @param {().CreateClientEventRequest} params.requestBody 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 @@ -1542,7 +1542,7 @@ export namespace jobs_v3 { * * @param {object} params Parameters for request * @param {string} params.parent Required. Resource name of the project under which the company is created. The format is "projects/{project_id}", for example, "projects/api-test-project". - * @param {().CreateCompanyRequest} params.resource Request body data + * @param {().CreateCompanyRequest} params.requestBody 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 @@ -1832,7 +1832,7 @@ export namespace jobs_v3 { * * @param {object} params Parameters for request * @param {string} params.name Required during company update. The resource name for a company. This is generated by the service when a company is created. The format is "projects/{project_id}/companies/{company_id}", for example, "projects/api-test-project/companies/foo". - * @param {().UpdateCompanyRequest} params.resource Request body data + * @param {().UpdateCompanyRequest} params.requestBody 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 @@ -1992,7 +1992,7 @@ export namespace jobs_v3 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The resource name of the project under which the job is created. The format is "projects/{project_id}", for example, "projects/api-test-project". - * @param {().BatchDeleteJobsRequest} params.resource Request body data + * @param {().BatchDeleteJobsRequest} params.requestBody 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 @@ -2065,7 +2065,7 @@ export namespace jobs_v3 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The resource name of the project under which the job is created. The format is "projects/{project_id}", for example, "projects/api-test-project". - * @param {().CreateJobRequest} params.resource Request body data + * @param {().CreateJobRequest} params.requestBody 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 @@ -2348,7 +2348,7 @@ export namespace jobs_v3 { * * @param {object} params Parameters for request * @param {string} params.name Required during job update. The resource name for the job. This is generated by the service when a job is created. The format is "projects/{project_id}/jobs/{job_id}", for example, "projects/api-test-project/jobs/1234". Use of this field in job queries and API calls is preferred over the use of requisition_id since this value is unique. - * @param {().UpdateJobRequest} params.resource Request body data + * @param {().UpdateJobRequest} params.requestBody 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 @@ -2418,7 +2418,7 @@ export namespace jobs_v3 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The resource name of the project to search within. The format is "projects/{project_id}", for example, "projects/api-test-project". - * @param {().SearchJobsRequest} params.resource Request body data + * @param {().SearchJobsRequest} params.requestBody 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 @@ -2493,7 +2493,7 @@ export namespace jobs_v3 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The resource name of the project to search within. The format is "projects/{project_id}", for example, "projects/api-test-project". - * @param {().SearchJobsRequest} params.resource Request body data + * @param {().SearchJobsRequest} params.requestBody 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 diff --git a/src/apis/jobs/v3p1beta1.ts b/src/apis/jobs/v3p1beta1.ts index 4e4dc8d6228..dec24bacab4 100644 --- a/src/apis/jobs/v3p1beta1.ts +++ b/src/apis/jobs/v3p1beta1.ts @@ -1537,7 +1537,7 @@ export namespace jobs_v3p1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Parent project name. - * @param {().CreateClientEventRequest} params.resource Request body data + * @param {().CreateClientEventRequest} params.requestBody 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 @@ -1637,7 +1637,7 @@ export namespace jobs_v3p1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. Resource name of the project under which the company is created. The format is "projects/{project_id}", for example, "projects/api-test-project". - * @param {().CreateCompanyRequest} params.resource Request body data + * @param {().CreateCompanyRequest} params.requestBody 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 @@ -1927,7 +1927,7 @@ export namespace jobs_v3p1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Required during company update. The resource name for a company. This is generated by the service when a company is created. The format is "projects/{project_id}/companies/{company_id}", for example, "projects/api-test-project/companies/foo". - * @param {().UpdateCompanyRequest} params.resource Request body data + * @param {().UpdateCompanyRequest} params.requestBody 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 @@ -2087,7 +2087,7 @@ export namespace jobs_v3p1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The resource name of the project under which the job is created. The format is "projects/{project_id}", for example, "projects/api-test-project". - * @param {().BatchDeleteJobsRequest} params.resource Request body data + * @param {().BatchDeleteJobsRequest} params.requestBody 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 @@ -2160,7 +2160,7 @@ export namespace jobs_v3p1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The resource name of the project under which the job is created. The format is "projects/{project_id}", for example, "projects/api-test-project". - * @param {().CreateJobRequest} params.resource Request body data + * @param {().CreateJobRequest} params.requestBody 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 @@ -2449,7 +2449,7 @@ export namespace jobs_v3p1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Required during job update. The resource name for the job. This is generated by the service when a job is created. The format is "projects/{project_id}/jobs/{job_id}", for example, "projects/api-test-project/jobs/1234". Use of this field in job queries and API calls is preferred over the use of requisition_id since this value is unique. - * @param {().UpdateJobRequest} params.resource Request body data + * @param {().UpdateJobRequest} params.requestBody 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 @@ -2519,7 +2519,7 @@ export namespace jobs_v3p1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The resource name of the project to search within. The format is "projects/{project_id}", for example, "projects/api-test-project". - * @param {().SearchJobsRequest} params.resource Request body data + * @param {().SearchJobsRequest} params.requestBody 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 @@ -2594,7 +2594,7 @@ export namespace jobs_v3p1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The resource name of the project to search within. The format is "projects/{project_id}", for example, "projects/api-test-project". - * @param {().SearchJobsRequest} params.resource Request body data + * @param {().SearchJobsRequest} params.requestBody 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 diff --git a/src/apis/language/v1.ts b/src/apis/language/v1.ts index e91261ca0d8..edaa1ca9538 100644 --- a/src/apis/language/v1.ts +++ b/src/apis/language/v1.ts @@ -553,7 +553,7 @@ export namespace language_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AnalyzeEntitiesRequest} params.resource Request body data + * @param {().AnalyzeEntitiesRequest} params.requestBody 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 @@ -631,7 +631,7 @@ export namespace language_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AnalyzeEntitySentimentRequest} params.resource Request body data + * @param {().AnalyzeEntitySentimentRequest} params.requestBody 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 @@ -714,7 +714,7 @@ export namespace language_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AnalyzeSentimentRequest} params.resource Request body data + * @param {().AnalyzeSentimentRequest} params.requestBody 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 @@ -792,7 +792,7 @@ export namespace language_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AnalyzeSyntaxRequest} params.resource Request body data + * @param {().AnalyzeSyntaxRequest} params.requestBody 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 @@ -870,7 +870,7 @@ export namespace language_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AnnotateTextRequest} params.resource Request body data + * @param {().AnnotateTextRequest} params.requestBody 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 @@ -948,7 +948,7 @@ export namespace language_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().ClassifyTextRequest} params.resource Request body data + * @param {().ClassifyTextRequest} params.requestBody 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 diff --git a/src/apis/language/v1beta1.ts b/src/apis/language/v1beta1.ts index ad309cd70ca..ce065730bf1 100644 --- a/src/apis/language/v1beta1.ts +++ b/src/apis/language/v1beta1.ts @@ -480,7 +480,7 @@ export namespace language_v1beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AnalyzeEntitiesRequest} params.resource Request body data + * @param {().AnalyzeEntitiesRequest} params.requestBody 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 @@ -558,7 +558,7 @@ export namespace language_v1beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AnalyzeSentimentRequest} params.resource Request body data + * @param {().AnalyzeSentimentRequest} params.requestBody 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 @@ -636,7 +636,7 @@ export namespace language_v1beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AnalyzeSyntaxRequest} params.resource Request body data + * @param {().AnalyzeSyntaxRequest} params.requestBody 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 @@ -714,7 +714,7 @@ export namespace language_v1beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AnnotateTextRequest} params.resource Request body data + * @param {().AnnotateTextRequest} params.requestBody 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 diff --git a/src/apis/language/v1beta2.ts b/src/apis/language/v1beta2.ts index 8541583d9cc..c155639209c 100644 --- a/src/apis/language/v1beta2.ts +++ b/src/apis/language/v1beta2.ts @@ -553,7 +553,7 @@ export namespace language_v1beta2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AnalyzeEntitiesRequest} params.resource Request body data + * @param {().AnalyzeEntitiesRequest} params.requestBody 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 @@ -631,7 +631,7 @@ export namespace language_v1beta2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AnalyzeEntitySentimentRequest} params.resource Request body data + * @param {().AnalyzeEntitySentimentRequest} params.requestBody 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 @@ -713,7 +713,7 @@ export namespace language_v1beta2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AnalyzeSentimentRequest} params.resource Request body data + * @param {().AnalyzeSentimentRequest} params.requestBody 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 @@ -791,7 +791,7 @@ export namespace language_v1beta2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AnalyzeSyntaxRequest} params.resource Request body data + * @param {().AnalyzeSyntaxRequest} params.requestBody 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 @@ -869,7 +869,7 @@ export namespace language_v1beta2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AnnotateTextRequest} params.resource Request body data + * @param {().AnnotateTextRequest} params.requestBody 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 @@ -947,7 +947,7 @@ export namespace language_v1beta2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().ClassifyTextRequest} params.resource Request body data + * @param {().ClassifyTextRequest} params.requestBody 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 diff --git a/src/apis/licensing/v1.ts b/src/apis/licensing/v1.ts index 25333600602..494199ed9a0 100644 --- a/src/apis/licensing/v1.ts +++ b/src/apis/licensing/v1.ts @@ -332,7 +332,7 @@ export namespace licensing_v1 { * @param {object} params Parameters for request * @param {string} params.productId A product's unique identifier. For more information about products in this version of the API, see Products and SKUs. * @param {string} params.skuId A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. - * @param {().LicenseAssignmentInsert} params.resource Request body data + * @param {().LicenseAssignmentInsert} params.requestBody 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 @@ -571,7 +571,7 @@ export namespace licensing_v1 { * @param {string} params.productId A product's unique identifier. For more information about products in this version of the API, see Products and SKUs. * @param {string} params.skuId A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. * @param {string} params.userId The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user's email address changes. If the userId is suspended, the license status changes. - * @param {().LicenseAssignment} params.resource Request body data + * @param {().LicenseAssignment} params.requestBody 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 @@ -648,7 +648,7 @@ export namespace licensing_v1 { * @param {string} params.productId A product's unique identifier. For more information about products in this version of the API, see Products and SKUs. * @param {string} params.skuId A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs. * @param {string} params.userId The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user's email address changes. If the userId is suspended, the license status changes. - * @param {().LicenseAssignment} params.resource Request body data + * @param {().LicenseAssignment} params.requestBody 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 diff --git a/src/apis/lifesciences/v2beta.ts b/src/apis/lifesciences/v2beta.ts index 8f646b69a74..9774d2f12ff 100644 --- a/src/apis/lifesciences/v2beta.ts +++ b/src/apis/lifesciences/v2beta.ts @@ -929,7 +929,7 @@ export namespace lifesciences_v2beta { * * @param {object} params Parameters for request * @param {string} params.name The name of the operation resource to be cancelled. - * @param {().CancelOperationRequest} params.resource Request body data + * @param {().CancelOperationRequest} params.requestBody 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 @@ -1213,7 +1213,7 @@ export namespace lifesciences_v2beta { * * @param {object} params Parameters for request * @param {string} params.parent The project and location that this request should be executed against. - * @param {().RunPipelineRequest} params.resource Request body data + * @param {().RunPipelineRequest} params.requestBody 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 diff --git a/src/apis/logging/v2.ts b/src/apis/logging/v2.ts index a8120a3e245..a69b3e908a6 100644 --- a/src/apis/logging/v2.ts +++ b/src/apis/logging/v2.ts @@ -527,7 +527,7 @@ export namespace logging_v2 { */ filter?: string | null; /** - * Required. A client-assigned identifier, such as "load-balancer-exclusion". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. + * Required. A client-assigned identifier, such as "load-balancer-exclusion". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric. */ name?: string | null; /** @@ -613,10 +613,18 @@ export namespace logging_v2 { * Output only. The creation timestamp of the sink.This field may not be present for older sinks. */ createTime?: string | null; + /** + * Optional. A description of this sink. The maximum length of the description is 8000 characters. + */ + description?: string | null; /** * Required. The export destination: "storage.googleapis.com/[GCS_BUCKET]" "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" The sink's writer_identity, set when the sink is created, must have permission to write to the destination or else the log entries are not exported. For more information, see Exporting Logs with Sinks. */ destination?: string | null; + /** + * Optional. If set to True, then this sink is disabled and it does not export any log entries. + */ + disabled?: boolean | null; /** * Do not use. This field is ignored. */ @@ -630,7 +638,7 @@ export namespace logging_v2 { */ includeChildren?: boolean | null; /** - * Required. The client-assigned sink identifier, unique within the project. Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, and periods. + * Required. The client-assigned sink identifier, unique within the project. Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, and periods. First character has to be alphanumeric. */ name?: string | null; /** @@ -999,7 +1007,7 @@ export namespace logging_v2 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The parent resource in which to create the exclusion: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/123456789". - * @param {().LogExclusion} params.resource Request body data + * @param {().LogExclusion} params.requestBody 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 @@ -1293,7 +1301,7 @@ export namespace logging_v2 { * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-id/exclusions/my-exclusion-id". * @param {string=} params.updateMask Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.For example, to change the filter and description of an exclusion, specify an update_mask of "filter,description". - * @param {().LogExclusion} params.resource Request body data + * @param {().LogExclusion} params.requestBody 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 @@ -1638,7 +1646,7 @@ export namespace logging_v2 { * @param {object} params Parameters for request * @param {string} params.parent Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/123456789". * @param {boolean=} params.uniqueWriterIdentity Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink. - * @param {().LogSink} params.resource Request body data + * @param {().LogSink} params.requestBody 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 @@ -1927,7 +1935,7 @@ export namespace logging_v2 { * @param {string} params.sinkName Required. The full resource name of the sink to update, including the parent resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks/my-sink-id". * @param {boolean=} params.uniqueWriterIdentity Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false. * @param {string=} params.updateMask Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter. - * @param {().LogSink} params.resource Request body data + * @param {().LogSink} params.requestBody 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 @@ -1999,7 +2007,7 @@ export namespace logging_v2 { * @param {string} params.sinkName Required. The full resource name of the sink to update, including the parent resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks/my-sink-id". * @param {boolean=} params.uniqueWriterIdentity Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false. * @param {string=} params.updateMask Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter. - * @param {().LogSink} params.resource Request body data + * @param {().LogSink} params.requestBody 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 @@ -2191,7 +2199,7 @@ export namespace logging_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().ListLogEntriesRequest} params.resource Request body data + * @param {().ListLogEntriesRequest} params.requestBody 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 @@ -2263,7 +2271,7 @@ export namespace logging_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().WriteLogEntriesRequest} params.resource Request body data + * @param {().WriteLogEntriesRequest} params.requestBody 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 @@ -2366,7 +2374,7 @@ export namespace logging_v2 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The parent resource in which to create the exclusion: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/123456789". - * @param {().LogExclusion} params.resource Request body data + * @param {().LogExclusion} params.requestBody 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 @@ -2658,7 +2666,7 @@ export namespace logging_v2 { * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-id/exclusions/my-exclusion-id". * @param {string=} params.updateMask Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.For example, to change the filter and description of an exclusion, specify an update_mask of "filter,description". - * @param {().LogExclusion} params.resource Request body data + * @param {().LogExclusion} params.requestBody 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 @@ -2829,7 +2837,7 @@ export namespace logging_v2 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The parent resource in which to create the exclusion: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/123456789". - * @param {().LogExclusion} params.resource Request body data + * @param {().LogExclusion} params.requestBody 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 @@ -3123,7 +3131,7 @@ export namespace logging_v2 { * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-id/exclusions/my-exclusion-id". * @param {string=} params.updateMask Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.For example, to change the filter and description of an exclusion, specify an update_mask of "filter,description". - * @param {().LogExclusion} params.resource Request body data + * @param {().LogExclusion} params.requestBody 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 @@ -3468,7 +3476,7 @@ export namespace logging_v2 { * @param {object} params Parameters for request * @param {string} params.parent Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/123456789". * @param {boolean=} params.uniqueWriterIdentity Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink. - * @param {().LogSink} params.resource Request body data + * @param {().LogSink} params.requestBody 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 @@ -3757,7 +3765,7 @@ export namespace logging_v2 { * @param {string} params.sinkName Required. The full resource name of the sink to update, including the parent resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks/my-sink-id". * @param {boolean=} params.uniqueWriterIdentity Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false. * @param {string=} params.updateMask Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter. - * @param {().LogSink} params.resource Request body data + * @param {().LogSink} params.requestBody 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 @@ -3829,7 +3837,7 @@ export namespace logging_v2 { * @param {string} params.sinkName Required. The full resource name of the sink to update, including the parent resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks/my-sink-id". * @param {boolean=} params.uniqueWriterIdentity Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false. * @param {string=} params.updateMask Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter. - * @param {().LogSink} params.resource Request body data + * @param {().LogSink} params.requestBody 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 @@ -4329,7 +4337,7 @@ export namespace logging_v2 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The parent resource in which to create the exclusion: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/123456789". - * @param {().LogExclusion} params.resource Request body data + * @param {().LogExclusion} params.requestBody 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 @@ -4623,7 +4631,7 @@ export namespace logging_v2 { * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-id/exclusions/my-exclusion-id". * @param {string=} params.updateMask Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.For example, to change the filter and description of an exclusion, specify an update_mask of "filter,description". - * @param {().LogExclusion} params.resource Request body data + * @param {().LogExclusion} params.requestBody 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 @@ -4968,7 +4976,7 @@ export namespace logging_v2 { * @param {object} params Parameters for request * @param {string} params.parent Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/123456789". * @param {boolean=} params.uniqueWriterIdentity Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink. - * @param {().LogSink} params.resource Request body data + * @param {().LogSink} params.requestBody 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 @@ -5257,7 +5265,7 @@ export namespace logging_v2 { * @param {string} params.sinkName Required. The full resource name of the sink to update, including the parent resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks/my-sink-id". * @param {boolean=} params.uniqueWriterIdentity Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false. * @param {string=} params.updateMask Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter. - * @param {().LogSink} params.resource Request body data + * @param {().LogSink} params.requestBody 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 @@ -5329,7 +5337,7 @@ export namespace logging_v2 { * @param {string} params.sinkName Required. The full resource name of the sink to update, including the parent resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks/my-sink-id". * @param {boolean=} params.uniqueWriterIdentity Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false. * @param {string=} params.updateMask Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter. - * @param {().LogSink} params.resource Request body data + * @param {().LogSink} params.requestBody 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 @@ -5537,7 +5545,7 @@ export namespace logging_v2 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The parent resource in which to create the exclusion: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/123456789". - * @param {().LogExclusion} params.resource Request body data + * @param {().LogExclusion} params.requestBody 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 @@ -5831,7 +5839,7 @@ export namespace logging_v2 { * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-id/exclusions/my-exclusion-id". * @param {string=} params.updateMask Required. A non-empty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.For example, to change the filter and description of an exclusion, specify an update_mask of "filter,description". - * @param {().LogExclusion} params.resource Request body data + * @param {().LogExclusion} params.requestBody 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 @@ -6175,7 +6183,7 @@ export namespace logging_v2 { * * @param {object} params Parameters for request * @param {string} params.parent The resource name of the project in which to create the metric: "projects/[PROJECT_ID]" The new metric must be provided in the request. - * @param {().LogMetric} params.resource Request body data + * @param {().LogMetric} params.requestBody 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 @@ -6468,7 +6476,7 @@ export namespace logging_v2 { * * @param {object} params Parameters for request * @param {string} params.metricName The resource name of the metric to update: "projects/[PROJECT_ID]/metrics/[METRIC_ID]" The updated metric must be provided in the request and it's name field must be the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a new metric is created. - * @param {().LogMetric} params.resource Request body data + * @param {().LogMetric} params.requestBody 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 @@ -6627,7 +6635,7 @@ export namespace logging_v2 { * @param {object} params Parameters for request * @param {string} params.parent Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/123456789". * @param {boolean=} params.uniqueWriterIdentity Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink. - * @param {().LogSink} params.resource Request body data + * @param {().LogSink} params.requestBody 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 @@ -6916,7 +6924,7 @@ export namespace logging_v2 { * @param {string} params.sinkName Required. The full resource name of the sink to update, including the parent resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks/my-sink-id". * @param {boolean=} params.uniqueWriterIdentity Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false. * @param {string=} params.updateMask Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter. - * @param {().LogSink} params.resource Request body data + * @param {().LogSink} params.requestBody 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 @@ -6988,7 +6996,7 @@ export namespace logging_v2 { * @param {string} params.sinkName Required. The full resource name of the sink to update, including the parent resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks/my-sink-id". * @param {boolean=} params.uniqueWriterIdentity Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false. * @param {string=} params.updateMask Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter. - * @param {().LogSink} params.resource Request body data + * @param {().LogSink} params.requestBody 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 @@ -7182,7 +7190,7 @@ export namespace logging_v2 { * @param {object} params Parameters for request * @param {string} params.parent Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/123456789". * @param {boolean=} params.uniqueWriterIdentity Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink. - * @param {().LogSink} params.resource Request body data + * @param {().LogSink} params.requestBody 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 @@ -7467,7 +7475,7 @@ export namespace logging_v2 { * @param {string} params.sinkName Required. The full resource name of the sink to update, including the parent resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks/my-sink-id". * @param {boolean=} params.uniqueWriterIdentity Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false. * @param {string=} params.updateMask Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter. - * @param {().LogSink} params.resource Request body data + * @param {().LogSink} params.requestBody 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 diff --git a/src/apis/manufacturers/v1.ts b/src/apis/manufacturers/v1.ts index beb024b88db..be3f04026bb 100644 --- a/src/apis/manufacturers/v1.ts +++ b/src/apis/manufacturers/v1.ts @@ -705,7 +705,7 @@ export namespace manufacturers_v1 { * @param {object} params Parameters for request * @param {string} params.name Name in the format `{target_country}:{content_language}:{product_id}`. `target_country` - The target country of the product as a CLDR territory code (for example, US). `content_language` - The content language of the product as a two-letter ISO 639-1 language code (for example, en). `product_id` - The ID of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#id. * @param {string} params.parent Parent ID in the format `accounts/{account_id}`. `account_id` - The ID of the Manufacturer Center account. - * @param {().Attributes} params.resource Request body data + * @param {().Attributes} params.requestBody 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 diff --git a/src/apis/mirror/v1.ts b/src/apis/mirror/v1.ts index 1672d8864b1..4d06ac06aa2 100644 --- a/src/apis/mirror/v1.ts +++ b/src/apis/mirror/v1.ts @@ -600,7 +600,7 @@ export namespace mirror_v1 { * @param {string} params.accountName The name of the account to be passed to the Android Account Manager. * @param {string} params.accountType Account type to be passed to Android Account Manager. * @param {string} params.userToken The ID for the user. - * @param {().Account} params.resource Request body data + * @param {().Account} params.requestBody 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 @@ -845,7 +845,7 @@ export namespace mirror_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Contact} params.resource Request body data + * @param {().Contact} params.requestBody 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 @@ -991,7 +991,7 @@ export namespace mirror_v1 { * * @param {object} params Parameters for request * @param {string} params.id The ID of the contact. - * @param {().Contact} params.resource Request body data + * @param {().Contact} params.requestBody 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 @@ -1063,7 +1063,7 @@ export namespace mirror_v1 { * * @param {object} params Parameters for request * @param {string} params.id The ID of the contact. - * @param {().Contact} params.resource Request body data + * @param {().Contact} params.requestBody 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 @@ -1545,7 +1545,7 @@ export namespace mirror_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Subscription} params.resource Request body data + * @param {().Subscription} params.requestBody 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 @@ -1700,7 +1700,7 @@ export namespace mirror_v1 { * * @param {object} params Parameters for request * @param {string} params.id The ID of the subscription. - * @param {().Subscription} params.resource Request body data + * @param {().Subscription} params.requestBody 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 @@ -1976,7 +1976,7 @@ export namespace mirror_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents @@ -2138,7 +2138,7 @@ export namespace mirror_v1 { * * @param {object} params Parameters for request * @param {string} params.id The ID of the timeline item. - * @param {().TimelineItem} params.resource Request body data + * @param {().TimelineItem} params.requestBody 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 @@ -2212,7 +2212,7 @@ export namespace mirror_v1 { * * @param {object} params Parameters for request * @param {string} params.id The ID of the timeline item. - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents diff --git a/src/apis/ml/v1.ts b/src/apis/ml/v1.ts index 33baf10cffc..5c7d2dd7049 100644 --- a/src/apis/ml/v1.ts +++ b/src/apis/ml/v1.ts @@ -205,6 +205,22 @@ export namespace ml_v1 { */ tpuServiceAccount?: string | null; } + /** + * Request for explanations to be issued against a trained model. + */ + export interface Schema$GoogleCloudMlV1__ExplainRequest { + /** + * Required. The explanation request body. + */ + httpBody?: Schema$GoogleApi__HttpBody; + } + /** + * Message holding configuration options for explaining model predictions. Currently, the only supported mechanism to explain a model's prediction is through attributing its output back to its inputs which is essentially a credit assignment task. We support multiple attribution methods, some specific to particular frameworks like Tensorflow and XGBoost. Next idx: 7. + */ + export interface Schema$GoogleCloudMlV1__ExplanationConfig { + integratedGradientsAttribution?: Schema$GoogleCloudMlV1__IntegratedGradientsAttribution; + sampledShapleyAttribution?: Schema$GoogleCloudMlV1__SampledShapleyAttribution; + } /** * Returns service account information associated with a project. */ @@ -301,6 +317,15 @@ export namespace ml_v1 { */ resumePreviousJobId?: string | null; } + /** + * Attributes credit by computing the Aumann-Shapley value taking advantage of the model's fully differentiable structure. Refer to this paper for more details: http://proceedings.mlr.press/v70/sundararajan17a.html + */ + export interface Schema$GoogleCloudMlV1__IntegratedGradientsAttribution { + /** + * Number of steps for approximating the path integral. A good value to start is 50 and gradually increase until the sum to diff property is met within the desired error range. + */ + numIntegralSteps?: number | null; + } /** * Represents a training or prediction job. */ @@ -643,6 +668,15 @@ export namespace ml_v1 { */ samplingPercentage?: number | null; } + /** + * An attribution method that approximates Shapley values for features that contribute to the label being predicted. A sampling strategy is used to approximate the value rather than considering all subsets of features. + */ + export interface Schema$GoogleCloudMlV1__SampledShapleyAttribution { + /** + * The number of feature permutations to consider when approximating the shapley values. + */ + numPaths?: number | null; + } /** * Request message for the SetDefaultVersion request. */ @@ -668,7 +702,7 @@ export namespace ml_v1 { */ masterConfig?: Schema$GoogleCloudMlV1__ReplicaConfig; /** - * Optional. Specifies the type of virtual machine to use for your training job's master worker. The following types are supported: <dl> <dt>standard</dt> <dd> A basic machine configuration suitable for training simple models with small to moderate datasets. </dd> <dt>large_model</dt> <dd> A machine with a lot of memory, specially suited for parameter servers when your model is large (having many hidden layers or layers with very large numbers of nodes). </dd> <dt>complex_model_s</dt> <dd> A machine suitable for the master and workers of the cluster when your model requires more computation than the standard machine can handle satisfactorily. </dd> <dt>complex_model_m</dt> <dd> A machine with roughly twice the number of cores and roughly double the memory of <i>complex_model_s</i>. </dd> <dt>complex_model_l</dt> <dd> A machine with roughly twice the number of cores and roughly double the memory of <i>complex_model_m</i>. </dd> <dt>standard_gpu</dt> <dd> A machine equivalent to <i>standard</i> that also includes a single NVIDIA Tesla K80 GPU. See more about <a href="/ml-engine/docs/tensorflow/using-gpus">using GPUs to train your model</a>. </dd> <dt>complex_model_m_gpu</dt> <dd> A machine equivalent to <i>complex_model_m</i> that also includes four NVIDIA Tesla K80 GPUs. </dd> <dt>complex_model_l_gpu</dt> <dd> A machine equivalent to <i>complex_model_l</i> that also includes eight NVIDIA Tesla K80 GPUs. </dd> <dt>standard_p100</dt> <dd> A machine equivalent to <i>standard</i> that also includes a single NVIDIA Tesla P100 GPU. </dd> <dt>complex_model_m_p100</dt> <dd> A machine equivalent to <i>complex_model_m</i> that also includes four NVIDIA Tesla P100 GPUs. </dd> <dt>standard_v100</dt> <dd> A machine equivalent to <i>standard</i> that also includes a single NVIDIA Tesla V100 GPU. </dd> <dt>large_model_v100</dt> <dd> A machine equivalent to <i>large_model</i> that also includes a single NVIDIA Tesla V100 GPU. </dd> <dt>complex_model_m_v100</dt> <dd> A machine equivalent to <i>complex_model_m</i> that also includes four NVIDIA Tesla V100 GPUs. </dd> <dt>complex_model_l_v100</dt> <dd> A machine equivalent to <i>complex_model_l</i> that also includes eight NVIDIA Tesla V100 GPUs. </dd> <dt>cloud_tpu</dt> <dd> A TPU VM including one Cloud TPU. See more about <a href="/ml-engine/docs/tensorflow/using-tpus">using TPUs to train your model</a>. </dd> </dl> You may also use certain Compute Engine machine types directly in this field. The following types are supported: - `n1-standard-4` - `n1-standard-8` - `n1-standard-16` - `n1-standard-32` - `n1-standard-64` - `n1-standard-96` - `n1-highmem-2` - `n1-highmem-4` - `n1-highmem-8` - `n1-highmem-16` - `n1-highmem-32` - `n1-highmem-64` - `n1-highmem-96` - `n1-highcpu-16` - `n1-highcpu-32` - `n1-highcpu-64` - `n1-highcpu-96` See more about [using Compute Engine machine types](/ml-engine/docs/tensorflow/machine-types#compute-engine-machine-types). You must set this value when `scaleTier` is set to `CUSTOM`. + * Optional. Specifies the type of virtual machine to use for your training job's master worker. You must specify this field when `scaleTier` is set to `CUSTOM`. You can use certain Compute Engine machine types directly in this field. The following types are supported: - `n1-standard-4` - `n1-standard-8` - `n1-standard-16` - `n1-standard-32` - `n1-standard-64` - `n1-standard-96` - `n1-highmem-2` - `n1-highmem-4` - `n1-highmem-8` - `n1-highmem-16` - `n1-highmem-32` - `n1-highmem-64` - `n1-highmem-96` - `n1-highcpu-16` - `n1-highcpu-32` - `n1-highcpu-64` - `n1-highcpu-96` Learn more about [using Compute Engine machine types](/ml-engine/docs/machine-types#compute-engine-machine-types). Alternatively, you can use the following legacy machine types: - `standard` - `large_model` - `complex_model_s` - `complex_model_m` - `complex_model_l` - `standard_gpu` - `complex_model_m_gpu` - `complex_model_l_gpu` - `standard_p100` - `complex_model_m_p100` - `standard_v100` - `large_model_v100` - `complex_model_m_v100` - `complex_model_l_v100` Learn more about [using legacy machine types](/ml-engine/docs/machine-types#legacy-machine-types). Finally, if you want to use a TPU for training, specify `cloud_tpu` in this field. Learn more about the [special configuration options for training with TPUs](/ml-engine/docs/tensorflow/using-tpus#configuring_a_custom_tpu_machine). */ masterType?: string | null; /** @@ -684,7 +718,7 @@ export namespace ml_v1 { */ parameterServerCount?: string | null; /** - * Optional. Specifies the type of virtual machine to use for your training job's parameter server. The supported values are the same as those described in the entry for `master_type`. This value must be consistent with the category of machine type that `masterType` uses. In other words, both must be AI Platform machine types or both must be Compute Engine machine types. This value must be present when `scaleTier` is set to `CUSTOM` and `parameter_server_count` is greater than zero. + * Optional. Specifies the type of virtual machine to use for your training job's parameter server. The supported values are the same as those described in the entry for `master_type`. This value must be consistent with the category of machine type that `masterType` uses. In other words, both must be Compute Engine machine types or both must be legacy machine types. This value must be present when `scaleTier` is set to `CUSTOM` and `parameter_server_count` is greater than zero. */ parameterServerType?: string | null; /** @@ -720,7 +754,7 @@ export namespace ml_v1 { */ workerCount?: string | null; /** - * Optional. Specifies the type of virtual machine to use for your training job's worker nodes. The supported values are the same as those described in the entry for `masterType`. This value must be consistent with the category of machine type that `masterType` uses. In other words, both must be AI Platform machine types or both must be Compute Engine machine types. If you use `cloud_tpu` for this value, see special instructions for [configuring a custom TPU machine](/ml-engine/docs/tensorflow/using-tpus#configuring_a_custom_tpu_machine). This value must be present when `scaleTier` is set to `CUSTOM` and `workerCount` is greater than zero. + * Optional. Specifies the type of virtual machine to use for your training job's worker nodes. The supported values are the same as those described in the entry for `masterType`. This value must be consistent with the category of machine type that `masterType` uses. In other words, both must be Compute Engine machine types or both must be legacy machine types. If you use `cloud_tpu` for this value, see special instructions for [configuring a custom TPU machine](/ml-engine/docs/tensorflow/using-tpus#configuring_a_custom_tpu_machine). This value must be present when `scaleTier` is set to `CUSTOM` and `workerCount` is greater than zero. */ workerType?: string | null; } @@ -789,6 +823,10 @@ export namespace ml_v1 { * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a model from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform model updates in order to avoid race conditions: An `etag` is returned in the response to `GetVersion`, and systems are expected to put that etag in the request to `UpdateVersion` to ensure that their change will be applied to the model as intended. */ etag?: string | null; + /** + * Optional. Configures explainability features on the model's version. Some explanation features require additional metadata to be loaded as part of the model payload. + */ + explanationConfig?: Schema$GoogleCloudMlV1__ExplanationConfig; /** * Optional. The machine learning framework AI Platform uses to train this version of the model. Valid values are `TENSORFLOW`, `SCIKIT_LEARN`, `XGBOOST`. If you do not specify a framework, AI Platform will analyze files in the deployment_uri to determine a framework. If you choose `SCIKIT_LEARN` or `XGBOOST`, you must also set the runtime version of the model to 1.4 or greater. Do **not** specify a framework if you're deploying a [custom prediction routine](/ml-engine/docs/tensorflow/custom-prediction-routines). If you specify a [Compute Engine (N1) machine type](/ml-engine/docs/machine-types-online-prediction) in the `machineType` field, you must specify `TENSORFLOW` for the framework. */ @@ -902,11 +940,11 @@ export namespace ml_v1 { */ bindings?: Schema$GoogleIamV1__Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -1036,6 +1074,80 @@ export namespace ml_v1 { this.operations = new Resource$Projects$Operations(this.context); } + /** + * ml.projects.explain + * @desc Performs explanation on the data in the request. AI Platform implements a custom `explain` verb on top of an HTTP POST method.

              For details of the request and response format, see the **guide to the [explain request format](/ml-engine/docs/v1/explain-request)**. + * @alias ml.projects.explain + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Required. The resource name of a model or a version. Authorization: requires the `predict` permission on the specified resource. + * @param {().GoogleCloudMlV1__ExplainRequest} params.requestBody 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 + */ + explain( + params?: Params$Resource$Projects$Explain, + options?: MethodOptions + ): GaxiosPromise; + explain( + params: Params$Resource$Projects$Explain, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + explain( + params: Params$Resource$Projects$Explain, + callback: BodyResponseCallback + ): void; + explain(callback: BodyResponseCallback): void; + explain( + paramsOrCallback?: + | Params$Resource$Projects$Explain + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Explain; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Explain; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}:explain').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + /** * ml.projects.getConfig * @desc Get the service account information associated with your project. You need this information in order to grant the service account permissions for the Google Cloud Storage location where you put your model training code for training the model with Google Cloud Machine Learning. @@ -1127,7 +1239,7 @@ export namespace ml_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of a model or a version. Authorization: requires the `predict` permission on the specified resource. - * @param {().GoogleCloudMlV1__PredictRequest} params.resource Request body data + * @param {().GoogleCloudMlV1__PredictRequest} params.requestBody 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 @@ -1194,6 +1306,22 @@ export namespace ml_v1 { } } + export interface Params$Resource$Projects$Explain extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. The resource name of a model or a version. Authorization: requires the `predict` permission on the specified resource. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudMlV1__ExplainRequest; + } export interface Params$Resource$Projects$Getconfig extends StandardParameters { /** @@ -1237,7 +1365,7 @@ export namespace ml_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The name of the job to cancel. - * @param {().GoogleCloudMlV1__CancelJobRequest} params.resource Request body data + * @param {().GoogleCloudMlV1__CancelJobRequest} params.requestBody 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 @@ -1311,7 +1439,7 @@ export namespace ml_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The project name. - * @param {().GoogleCloudMlV1__Job} params.resource Request body data + * @param {().GoogleCloudMlV1__Job} params.requestBody 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 @@ -1619,7 +1747,7 @@ export namespace ml_v1 { * @param {object} params Parameters for request * @param {string} params.name Required. The job name. * @param {string=} params.updateMask Required. Specifies the path, relative to `Job`, of the field to update. To adopt etag mechanism, include `etag` field in the mask, and include the `etag` value in your job resource. For example, to change the labels of a job, the `update_mask` parameter would be specified as `labels`, `etag`, and the `PATCH` request body would specify the new value, as follows: { "labels": { "owner": "Google", "color": "Blue" } "etag": "33a64df551425fcc55e4d42a148795d9f25f89d4" } If `etag` matches the one on the server, the labels of the job will be replaced with the given ones, and the server end `etag` will be recalculated. Currently the only supported update masks are `labels` and `etag`. - * @param {().GoogleCloudMlV1__Job} params.resource Request body data + * @param {().GoogleCloudMlV1__Job} params.requestBody 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 @@ -1693,7 +1821,7 @@ export namespace ml_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().GoogleIamV1__SetIamPolicyRequest} params.resource Request body data + * @param {().GoogleIamV1__SetIamPolicyRequest} params.requestBody 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 @@ -1770,7 +1898,7 @@ export namespace ml_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GoogleIamV1__TestIamPermissionsRequest} params.resource Request body data + * @param {().GoogleIamV1__TestIamPermissionsRequest} params.requestBody 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 @@ -2222,7 +2350,7 @@ export namespace ml_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The project name. - * @param {().GoogleCloudMlV1__Model} params.resource Request body data + * @param {().GoogleCloudMlV1__Model} params.requestBody 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 @@ -2618,7 +2746,7 @@ export namespace ml_v1 { * @param {object} params Parameters for request * @param {string} params.name Required. The project name. * @param {string=} params.updateMask Required. Specifies the path, relative to `Model`, of the field to update. For example, to change the description of a model to "foo" and set its default version to "version_1", the `update_mask` parameter would be specified as `description`, `default_version.name`, and the `PATCH` request body would specify the new value, as follows: { "description": "foo", "defaultVersion": { "name":"version_1" } } Currently the supported update masks are `description` and `default_version.name`. - * @param {().GoogleCloudMlV1__Model} params.resource Request body data + * @param {().GoogleCloudMlV1__Model} params.requestBody 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 @@ -2699,7 +2827,7 @@ export namespace ml_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().GoogleIamV1__SetIamPolicyRequest} params.resource Request body data + * @param {().GoogleIamV1__SetIamPolicyRequest} params.requestBody 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 @@ -2776,7 +2904,7 @@ export namespace ml_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GoogleIamV1__TestIamPermissionsRequest} params.resource Request body data + * @param {().GoogleIamV1__TestIamPermissionsRequest} params.requestBody 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 @@ -3012,7 +3140,7 @@ export namespace ml_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The name of the model. - * @param {().GoogleCloudMlV1__Version} params.resource Request body data + * @param {().GoogleCloudMlV1__Version} params.requestBody 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 @@ -3344,7 +3472,7 @@ export namespace ml_v1 { * @param {object} params Parameters for request * @param {string} params.name Required. The name of the model. * @param {string=} params.updateMask Required. Specifies the path, relative to `Version`, of the field to update. Must be present and non-empty. For example, to change the description of a version to "foo", the `update_mask` parameter would be specified as `description`, and the `PATCH` request body would specify the new value, as follows: ``` { "description": "foo" } ``` Currently the only supported update mask fields are `description`, `autoScaling.minNodes`, and `manualScaling.nodes`. However, you can only update `manualScaling.nodes` if the version uses a [Compute Engine (N1) machine type](/ml-engine/docs/machine-types-online-prediction). - * @param {().GoogleCloudMlV1__Version} params.resource Request body data + * @param {().GoogleCloudMlV1__Version} params.requestBody 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 @@ -3425,7 +3553,7 @@ export namespace ml_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The name of the version to make the default for the model. You can get the names of all the versions of a model by calling [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.versions/list). - * @param {().GoogleCloudMlV1__SetDefaultVersionRequest} params.resource Request body data + * @param {().GoogleCloudMlV1__SetDefaultVersionRequest} params.requestBody 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 diff --git a/src/apis/monitoring/v3.ts b/src/apis/monitoring/v3.ts index cf2b6d4f790..d3cd651c0f8 100644 --- a/src/apis/monitoring/v3.ts +++ b/src/apis/monitoring/v3.ts @@ -104,6 +104,7 @@ export namespace monitoring_v3 { export class Monitoring { context: APIRequestContext; projects: Resource$Projects; + services: Resource$Services; uptimeCheckIps: Resource$Uptimecheckips; constructor(options: GlobalOptions, google?: GoogleConfigurable) { @@ -113,6 +114,7 @@ export namespace monitoring_v3 { }; this.projects = new Resource$Projects(this.context); + this.services = new Resource$Services(this.context); this.uptimeCheckIps = new Resource$Uptimecheckips(this.context); } } @@ -187,6 +189,19 @@ export namespace monitoring_v3 { */ validity?: Schema$Status; } + /** + * App Engine service. Learn more at https://cloud.google.com/appengine. + */ + export interface Schema$AppEngine { + /** + * The ID of the App Engine module underlying this service. Corresponds to the module_id resource label in the gae_app monitored resource: https://cloud.google.com/monitoring/api/resources#tag_gae_app + */ + moduleId?: string | null; + } + /** + * Future parameters for the availability SLI. + */ + export interface Schema$AvailabilityCriteria {} /** * The authentication parameters to provide to the specified resource or URL that requires a username and password. Currently, only Basic HTTP authentication (https://tools.ietf.org/html/rfc7617) is supported in Uptime checks. */ @@ -200,6 +215,31 @@ export namespace monitoring_v3 { */ username?: string | null; } + /** + * An SLI measuring performance on a well-known service type. Performance will be computed on the basis of pre-defined metrics. The type of the service_resource determines the metrics to use and the service_resource.labels and metric_labels are used to construct a monitoring filter to filter that metric down to just the data relevant to this service. + */ + export interface Schema$BasicSli { + /** + * Good service is defined to be the count of requests made to this service that return successfully. + */ + availability?: Schema$AvailabilityCriteria; + /** + * Good service is defined to be the count of requests made to this service that are fast enough with respect to latency.threshold. + */ + latency?: Schema$LatencyCriteria; + /** + * OPTIONAL: The set of locations to which this SLI is relevant. Telemetry from other locations will not be used to calculate performance for this SLI. If omitted, this SLI applies to all locations in which the Service has activity. For service types that don't support breaking down by location, setting this field will result in an error. + */ + location?: string[] | null; + /** + * OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from other methods will not be used to calculate performance for this SLI. If omitted, this SLI applies to all the Service's methods. For service types that don't support breaking down by method, setting this field will result in an error. + */ + method?: string[] | null; + /** + * OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry from other API versions will not be used to calculate performance for this SLI. If omitted, this SLI applies to all API versions. For service types that don't support breaking down by version, setting this field will result in an error. + */ + version?: string[] | null; + } /** * BucketOptions describes the bucket boundaries used to create a histogram for the distribution. The buckets can be in a linear sequence, an exponential sequence, or each bucket can be specified explicitly. BucketOptions does not include the number of values in each bucket.A bucket has an inclusive lower bound and exclusive upper bound for the values that are counted for that bucket. The upper bound of a bucket must be strictly greater than the lower bound. The sequence of N buckets for a distribution consists of an underflow bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an overflow bucket (number N - 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets span the whole range of finite values: lower bound of the underflow bucket is -infinity and the upper bound of the overflow bucket is +infinity. The finite buckets are so-called because both bounds are finite. */ @@ -217,6 +257,36 @@ export namespace monitoring_v3 { */ linearBuckets?: Schema$Linear; } + /** + * Cloud Endpoints service. Learn more at https://cloud.google.com/endpoints. + */ + export interface Schema$CloudEndpoints { + /** + * The name of the Cloud Endpoints service underlying this service. Corresponds to the service resource label in the api monitored resource: https://cloud.google.com/monitoring/api/resources#tag_api + */ + service?: string | null; + } + /** + * Istio service. Learn more at http://istio.io. + */ + export interface Schema$ClusterIstio { + /** + * The name of the Kubernetes cluster in which this Istio service is defined. Corresponds to the cluster_name resource label in k8s_cluster resources. + */ + clusterName?: string | null; + /** + * The location of the Kubernetes cluster in which this Istio service is defined. Corresponds to the location resource label in k8s_cluster resources. + */ + location?: string | null; + /** + * The name of the Istio service underlying this service. Corresponds to the destination_service_name metric label in Istio metrics. + */ + serviceName?: string | null; + /** + * The namespace of the Istio service underlying this service. Corresponds to the destination_service_namespace metric label in Istio metrics. + */ + serviceNamespace?: string | null; + } /** * A collection of data points sent from a collectd-based plugin. See the collectd documentation for more information. */ @@ -323,11 +393,11 @@ export namespace monitoring_v3 { name?: string | null; } /** - * Used to perform string matching. It allows substring and regular expressions, together with their negations. + * Optional. Used to perform content matching. This allows matching based on substrings and regular expressions, together with their negations. Only the first 4&nbsp;MB of an HTTP or HTTPS check's response (and the first 1&nbsp;MB of a TCP check's response) are examined for purposes of content matching. */ export interface Schema$ContentMatcher { /** - * String or regex content to match (max 1024 bytes) + * String or regex content to match. Maximum 1024 bytes. An empty content string indicates no content matching is to be performed. */ content?: string | null; /** @@ -357,9 +427,13 @@ export namespace monitoring_v3 { */ export interface Schema$CreateCollectdTimeSeriesResponse { /** - * Records the error status for points that were not written due to an error.Failed requests for which nothing is written will return an error response instead. + * Records the error status for points that were not written due to an error in the request.Failed requests for which nothing is written will return an error response instead. Requests where data points were rejected by the backend will set summary instead. */ payloadErrors?: Schema$CollectdPayloadError[]; + /** + * Aggregate statistics from writing the payloads. This field is omitted if all points were successfully written, so that the response is empty. This is for backwards compatibility with clients that log errors on any non-empty response. + */ + summary?: Schema$CreateTimeSeriesSummary; } /** * The CreateTimeSeries request. @@ -370,6 +444,27 @@ export namespace monitoring_v3 { */ timeSeries?: Schema$TimeSeries[]; } + /** + * Summary of the result of a failed request to write data to a time series. + */ + export interface Schema$CreateTimeSeriesSummary { + /** + * The number of points that failed to be written. Order is not guaranteed. + */ + errors?: Schema$Error[]; + /** + * The number of points that were successfully written. + */ + successPointCount?: number | null; + /** + * The number of points in the request. + */ + totalPointCount?: number | null; + } + /** + * Custom view of service telemetry. Currently a place-holder pending final design. + */ + export interface Schema$Custom {} /** * Distribution contains summary statistics for a population of values. It optionally contains a histogram representing the distribution of those values across a set of buckets.The summary statistics are the count, mean, sum of the squared deviation from the mean, the minimum, and the maximum of the set of population of values. The histogram is based on a sequence of buckets and gives a count of values that fall into each bucket. The boundaries of the buckets are given either explicitly or by formulas for buckets of fixed or exponentially increasing widths.Although it is not forbidden, it is generally a bad idea to include non-finite values (infinities or NaNs) in the population of values, as this will render the mean and sum_of_squared_deviation fields meaningless. */ @@ -403,6 +498,19 @@ export namespace monitoring_v3 { */ sumOfSquaredDeviation?: number | null; } + /** + * A DistributionCut defines a TimeSeries and thresholds used for measuring good service and total service. The TimeSeries must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service will be the count of values x in the Distribution such that range.min <= x < range.max. + */ + export interface Schema$DistributionCut { + /** + * A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries aggregating values. Must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE. + */ + distributionFilter?: string | null; + /** + * Range of values considered "good." For a one-sided range, set one bound to an infinite value. + */ + range?: Schema$GoogleMonitoringV3Range; + } /** * A content string and a MIME type that describes the content string's format. */ @@ -429,6 +537,19 @@ export namespace monitoring_v3 { * 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 {} + /** + * Detailed information about an error category. + */ + export interface Schema$Error { + /** + * The number of points that couldn't be written because of status. + */ + pointCount?: number | null; + /** + * The status of the requested write operation. + */ + status?: Schema$Status; + } /** * Exemplars are example points that may be used to annotate aggregated distribution values. They are metadata that gives information about a particular value added to a Distribution bucket, such as a trace ID that was active when a value was added. They may contain further information, such as a example values and timestamps, origin, etc. */ @@ -539,6 +660,19 @@ export namespace monitoring_v3 { */ expireTime?: string | null; } + /** + * Range of numerical values, inclusive of min and exclusive of max. If the open range "< range.max" is desired, set range.min = -infinity. If the open range ">= range.min" is desired, set range.max = infinity. + */ + export interface Schema$GoogleMonitoringV3Range { + /** + * Range maximum. + */ + max?: number | null; + /** + * Range minimum. + */ + min?: number | null; + } /** * The description of a dynamic collection of monitored resources. Each group has a filter that is matched against monitored resources and their associated metadata. If a group's filter matches an available monitored resource, then that resource is a member of that group. Groups can contain any number of monitored resources, and each monitored resource can be a member of any number of groups.Groups can be nested in parent-child hierarchies. The parentName field identifies an optional parent for each group. If a group has a parent, then the only monitored resources available to be matched by the group's filter are the resources contained in the parent group. In other words, a group contains the monitored resources that match its filter and the filters of all the group's ancestors. A group without a parent can contain any monitored resource.For example, consider an infrastructure running a set of instances with two user-defined tags: "environment" and "role". A parent group has a filter, environment="production". A child of that parent group has a filter, role="transcoder". The parent group contains all instances in the production environment, regardless of their roles. The child group contains instances that have the transcoder role and are in the production environment.The monitored resources contained in a group can change at any moment, depending on what resources exist and what filters are associated with the group and its ancestors. */ @@ -643,6 +777,15 @@ export namespace monitoring_v3 { */ valueType?: string | null; } + /** + * Parameters for a latency threshold SLI. + */ + export interface Schema$LatencyCriteria { + /** + * Good service is defined to be the count of requests made to this service that return in no more than threshold. + */ + threshold?: string | null; + } /** * Specifies a linear sequence of buckets that all have the same width (except overflow and underflow). Each bucket represents a constant absolute uncertainty on the specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)). */ @@ -755,6 +898,32 @@ export namespace monitoring_v3 { */ notificationChannels?: Schema$NotificationChannel[]; } + /** + * The ListServiceLevelObjectives response. + */ + export interface Schema$ListServiceLevelObjectivesResponse { + /** + * If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as pageToken in the next call to this method. + */ + nextPageToken?: string | null; + /** + * The ServiceLevelObjectives matching the specified filter. + */ + serviceLevelObjectives?: Schema$ServiceLevelObjective[]; + } + /** + * The ListServices response. + */ + export interface Schema$ListServicesResponse { + /** + * If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as pageToken in the next call to this method. + */ + nextPageToken?: string | null; + /** + * The Services matching the specified filter. + */ + services?: Schema$Service[]; + } /** * The ListTimeSeries response. */ @@ -902,6 +1071,19 @@ export namespace monitoring_v3 { */ samplePeriod?: string | null; } + /** + * A MetricRange is used when each window is good when the value x of a single TimeSeries satisfies range.min <= x < range.max. The provided TimeSeries must have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE. + */ + export interface Schema$MetricRange { + /** + * Range of values considered "good." For a one-sided range, set one bound to an infinite value. + */ + range?: Schema$GoogleMonitoringV3Range; + /** + * A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying the TimeSeries to use for evaluating window quality. + */ + timeSeries?: string | null; + } /** * A condition type that compares a collection of time series against a threshold. */ @@ -1086,6 +1268,23 @@ export namespace monitoring_v3 { */ value?: {[key: string]: any} | null; } + /** + * A PerformanceThreshold is used when each window is good when that window has a sufficiently high performance. + */ + export interface Schema$PerformanceThreshold { + /** + * BasicSli to evaluate to judge window quality. + */ + basicSliPerformance?: Schema$BasicSli; + /** + * RequestBasedSli to evaluate to judge window quality. + */ + performance?: Schema$RequestBasedSli; + /** + * If window performance >= threshold, the window is counted as good. + */ + threshold?: number | null; + } /** * A single data point in a time series. */ @@ -1112,6 +1311,19 @@ export namespace monitoring_v3 { */ min?: number | null; } + /** + * Service Level Indicators for which atomic units of service are counted directly. + */ + export interface Schema$RequestBasedSli { + /** + * distribution_cut is used when good_service is a count of values aggregated in a Distribution that fall into a good range. The total_service is the total count of all values aggregated in the Distribution. + */ + distributionCut?: Schema$DistributionCut; + /** + * good_total_ratio is used when the ratio of good_service to total_service is computed from two TimeSeries. + */ + goodTotalRatio?: Schema$TimeSeriesRatio; + } /** * The resource submessage for group checks. It can be used instead of a monitored resource, when multiple resources are being monitored. */ @@ -1129,6 +1341,85 @@ export namespace monitoring_v3 { * The SendNotificationChannelVerificationCode request. */ export interface Schema$SendNotificationChannelVerificationCodeRequest {} + /** + * A Service is a discrete, autonomous, and network-accessible unit, designed to solve an individual concern (Wikipedia (https://en.wikipedia.org/wiki/Service-orientation)). In Stackdriver Monitoring, a Service acts as the root resource under which operational aspects of the service are accessible. + */ + export interface Schema$Service { + /** + * Type used for App Engine services. + */ + appEngine?: Schema$AppEngine; + /** + * Type used for Cloud Endpoints services. + */ + cloudEndpoints?: Schema$CloudEndpoints; + /** + * Type used for Istio services that live in a Kubernetes cluster. + */ + clusterIstio?: Schema$ClusterIstio; + /** + * Custom service type. + */ + custom?: Schema$Custom; + /** + * Name used for UI elements listing this Service. + */ + displayName?: string | null; + /** + * Resource name for this Service. Of the form projects/{project_id}/services/{service_id}. + */ + name?: string | null; + /** + * Configuration for how to query telemetry on a Service. + */ + telemetry?: Schema$Telemetry; + } + /** + * A Service-Level Indicator (SLI) describes the "performance" of a service. For some services, the SLI is well-defined. In such cases, the SLI can be described easily by referencing the well-known SLI and providing the needed parameters. Alternatively, a "custom" SLI can be defined with a query to the underlying metric store. An SLI is defined to be good_service / total_service over any queried time interval. The value of performance always falls into the range 0 <= performance <= 1. A custom SLI describes how to compute this ratio, whether this is by dividing values from a pair of time series, cutting a Distribution into good and bad counts, or counting time windows in which the service complies with a criterion. For separation of concerns, a single Service-Level Indicator measures performance for only one aspect of service quality, such as fraction of successful queries or fast-enough queries. + */ + export interface Schema$ServiceLevelIndicator { + /** + * Basic SLI on a well-known service type. + */ + basicSli?: Schema$BasicSli; + /** + * Request-based SLIs + */ + requestBased?: Schema$RequestBasedSli; + /** + * Windows-based SLIs + */ + windowsBased?: Schema$WindowsBasedSli; + } + /** + * A Service-Level Objective (SLO) describes a level of desired good service. It consists of a service-level indicator (SLI), a performance goal, and a period over which the objective is to be evaluated against that goal. The SLO can use SLIs defined in a number of different manners. Typical SLOs might include "99% of requests in each rolling week have latency below 200 milliseconds" or "99.5% of requests in each calendar month return successfully." + */ + export interface Schema$ServiceLevelObjective { + /** + * A calendar period, semantically "since the start of the current <calendar_period>". At this time, only DAY, WEEK, FORTNIGHT, and MONTH are supported. + */ + calendarPeriod?: string | null; + /** + * Name used for UI elements listing this SLO. + */ + displayName?: string | null; + /** + * The fraction of service that must be good in order for this objective to be met. 0 < goal <= 1. + */ + goal?: number | null; + /** + * Resource name for this ServiceLevelObjective. Of the form projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}. + */ + name?: string | null; + /** + * A rolling time period, semantically "in the past <rolling_period>". Must be an integer multiple of 1 day no larger than 30 days. + */ + rollingPeriod?: string | null; + /** + * The definition of good service, used to measure and calculate the quality of the Service's performance with respect to a single aspect of service quality. + */ + serviceLevelIndicator?: Schema$ServiceLevelIndicator; + } /** * SourceContext represents information about the source of a protobuf element, like the file in which it is defined. */ @@ -1173,6 +1464,15 @@ export namespace monitoring_v3 { */ port?: number | null; } + /** + * Configuration for how to query telemetry on a Service. + */ + export interface Schema$Telemetry { + /** + * The full name of the resource that defines this service. Formatted as described in https://cloud.google.com/apis/design/resource_names. + */ + resourceName?: string | null; + } /** * A closed time interval. It extends from the start time to the end time, and includes both: [startTime, endTime]. Valid time intervals depend on the MetricKind of the metric value. In no case can the end time be earlier than the start time. For a GAUGE metric, the startTime value is technically optional; if no value is specified, the start time defaults to the value of the end time, and the interval represents a single point in time. If both start and end times are specified, they must be identical. Such an interval is valid only for GAUGE metrics, which are point-in-time measurements. For DELTA and CUMULATIVE metrics, the start time must be earlier than the end time. In all cases, the start time of the next interval must be at least a microsecond after the end time of the previous interval. Because the interval is closed, if the start time of a new interval is the same as the end time of the previous interval, data written at the new start time could overwrite data written at the previous end time. */ @@ -1215,6 +1515,23 @@ export namespace monitoring_v3 { */ valueType?: string | null; } + /** + * A TimeSeriesRatio specifies two TimeSeries to use for computing the good_service / total_service ratio. The specified TimeSeries must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE. The TimeSeriesRatio must specify exactly two of good, bad, and total, and the relationship good_service + bad_service = total_service will be assumed. + */ + export interface Schema$TimeSeriesRatio { + /** + * A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE. + */ + badServiceFilter?: string | null; + /** + * A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying good service provided. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE. + */ + goodServiceFilter?: string | null; + /** + * A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying total demanded service. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE. + */ + totalServiceFilter?: string | null; + } /** * Specifies how many time series must fail a predicate to trigger a condition. If not specified, then a {count: 1} trigger is used. */ @@ -1361,6 +1678,31 @@ export namespace monitoring_v3 { */ code?: string | null; } + /** + * A WindowsBasedSli defines good_service as the count of time windows for which the provided service was of good quality. Criteria for determining if service was good are embedded in the window_criterion. + */ + export interface Schema$WindowsBasedSli { + /** + * A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries with ValueType = BOOL. The window is good if any true values appear in the window. + */ + goodBadMetricFilter?: string | null; + /** + * A window is good if its performance is high enough. + */ + goodTotalRatioThreshold?: Schema$PerformanceThreshold; + /** + * A window is good if the metric's value is in a good range, averaged across returned streams. + */ + metricMeanInRange?: Schema$MetricRange; + /** + * A window is good if the metric's value is in a good range, summed across returned streams. + */ + metricSumInRange?: Schema$MetricRange; + /** + * Duration over which window quality is evaluated. Must be an integer fraction of a day and at least 60s. + */ + windowPeriod?: string | null; + } export class Resource$Projects { context: APIRequestContext; @@ -1413,7 +1755,7 @@ export namespace monitoring_v3 { * * @param {object} params Parameters for request * @param {string} params.name The project in which to create the alerting policy. The format is projects/[PROJECT_ID].Note that this field names the parent container in which the alerting policy will be written, not the name of the created policy. The alerting policy that is returned will have a name that contains a normalized representation of this name as a prefix but adds a suffix of the form /alertPolicies/[POLICY_ID], identifying the policy in the container. - * @param {().AlertPolicy} params.resource Request body data + * @param {().AlertPolicy} params.requestBody 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 @@ -1714,7 +2056,7 @@ export namespace monitoring_v3 { * @param {object} params Parameters for request * @param {string} params.name Required if the policy exists. The resource name for this policy. The syntax is: projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID] [ALERT_POLICY_ID] is assigned by Stackdriver Monitoring when the policy is created. When calling the alertPolicies.create method, do not include the name field in the alerting policy passed as part of the request. * @param {string=} params.updateMask Optional. A list of alerting policy field names. If this field is not empty, each listed field in the existing alerting policy is set to the value of the corresponding field in the supplied policy (alert_policy), or to the field's default value if the field is not in the supplied alerting policy. Fields not listed retain their previous value.Examples of valid field masks include display_name, documentation, documentation.content, documentation.mime_type, user_labels, user_label.nameofkey, enabled, conditions, combiner, etc.If this field is empty, then the supplied alerting policy replaces the existing policy. It is the same as deleting the existing policy and adding the supplied policy, except for the following: The new policy will have the same [ALERT_POLICY_ID] as the former policy. This gives you continuity with the former policy in your notifications and incidents. Conditions in the new policy will keep their former [CONDITION_ID] if the supplied condition includes the name field with that [CONDITION_ID]. If the supplied condition omits the name field, then a new [CONDITION_ID] is created. - * @param {().AlertPolicy} params.resource Request body data + * @param {().AlertPolicy} params.requestBody 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 @@ -1924,7 +2266,7 @@ export namespace monitoring_v3 { * * @param {object} params Parameters for request * @param {string} params.name The project in which to create the time series. The format is "projects/PROJECT_ID_OR_NUMBER". - * @param {().CreateCollectdTimeSeriesRequest} params.resource Request body data + * @param {().CreateCollectdTimeSeriesRequest} params.requestBody 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 @@ -2076,7 +2418,7 @@ export namespace monitoring_v3 { * @param {object} params Parameters for request * @param {string} params.name The project in which to create the group. The format is "projects/{project_id_or_number}". * @param {boolean=} params.validateOnly If true, validate this request but do not create the group. - * @param {().Group} params.resource Request body data + * @param {().Group} params.requestBody 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 @@ -2529,7 +2871,7 @@ export namespace monitoring_v3 { * @param {object} params Parameters for request * @param {string} params.name Output only. The name of this group. The format is "projects/{project_id_or_number}/groups/{group_id}". When creating a group, this field is ignored and a new name is created consisting of the project specified in the call to CreateGroup and a unique {group_id} that is generated automatically. * @param {boolean=} params.validateOnly If true, validate this request but do not update the existing group. - * @param {().Group} params.resource Request body data + * @param {().Group} params.requestBody 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 @@ -2917,7 +3259,7 @@ export namespace monitoring_v3 { * * @param {object} params Parameters for request * @param {string} params.name The project on which to execute the request. The format is "projects/{project_id_or_number}". - * @param {().MetricDescriptor} params.resource Request body data + * @param {().MetricDescriptor} params.requestBody 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 @@ -3940,7 +4282,7 @@ export namespace monitoring_v3 { * * @param {object} params Parameters for request * @param {string} params.name The project on which to execute the request. The format is: projects/[PROJECT_ID] Note that this names the container into which the channel will be written. This does not name the newly created channel. The resulting channel's name will have a normalized version of this field as a prefix, but will add /notificationChannels/[CHANNEL_ID] to identify the channel. - * @param {().NotificationChannel} params.resource Request body data + * @param {().NotificationChannel} params.requestBody 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 @@ -4156,7 +4498,7 @@ export namespace monitoring_v3 { * * @param {object} params Parameters for request * @param {string} params.name The notification channel for which a verification code is to be generated and retrieved. This must name a channel that is already verified; if the specified channel is not verified, the request will fail. - * @param {().GetNotificationChannelVerificationCodeRequest} params.resource Request body data + * @param {().GetNotificationChannelVerificationCodeRequest} params.requestBody 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 @@ -4344,7 +4686,7 @@ export namespace monitoring_v3 { * @param {object} params Parameters for request * @param {string} params.name The full REST resource name for this channel. The syntax is: projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID] The [CHANNEL_ID] is automatically assigned by the server on creation. * @param {string=} params.updateMask The fields to update. - * @param {().NotificationChannel} params.resource Request body data + * @param {().NotificationChannel} params.requestBody 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 @@ -4416,7 +4758,7 @@ export namespace monitoring_v3 { * * @param {object} params Parameters for request * @param {string} params.name The notification channel to which to send a verification code. - * @param {().SendNotificationChannelVerificationCodeRequest} params.resource Request body data + * @param {().SendNotificationChannelVerificationCodeRequest} params.requestBody 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 @@ -4489,7 +4831,7 @@ export namespace monitoring_v3 { * * @param {object} params Parameters for request * @param {string} params.name The notification channel to verify. - * @param {().VerifyNotificationChannelRequest} params.resource Request body data + * @param {().VerifyNotificationChannelRequest} params.requestBody 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 @@ -4754,7 +5096,7 @@ export namespace monitoring_v3 { * * @param {object} params Parameters for request * @param {string} params.name The project on which to execute the request. The format is "projects/{project_id_or_number}". - * @param {().CreateTimeSeriesRequest} params.resource Request body data + * @param {().CreateTimeSeriesRequest} params.requestBody 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 @@ -5041,7 +5383,7 @@ export namespace monitoring_v3 { * * @param {object} params Parameters for request * @param {string} params.parent The project in which to create the Uptime check. The format is projects/[PROJECT_ID]. - * @param {().UptimeCheckConfig} params.resource Request body data + * @param {().UptimeCheckConfig} params.requestBody 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 @@ -5342,7 +5684,7 @@ export namespace monitoring_v3 { * @param {object} params Parameters for request * @param {string} params.name A unique resource name for this Uptime check configuration. The format is:projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID].This field should be omitted when creating the Uptime check configuration; on create, the resource name is assigned by the server and included in the response. * @param {string=} params.updateMask Optional. If present, only the listed fields in the current Uptime check configuration are updated with values from the new configuration. If this field is empty, then the current configuration is completely replaced with the new configuration. - * @param {().UptimeCheckConfig} params.resource Request body data + * @param {().UptimeCheckConfig} params.requestBody 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 @@ -5490,6 +5832,949 @@ export namespace monitoring_v3 { requestBody?: Schema$UptimeCheckConfig; } + export class Resource$Services { + context: APIRequestContext; + serviceLevelObjectives: Resource$Services$Servicelevelobjectives; + constructor(context: APIRequestContext) { + this.context = context; + this.serviceLevelObjectives = new Resource$Services$Servicelevelobjectives( + this.context + ); + } + + /** + * monitoring.services.create + * @desc Create a Service. + * @alias monitoring.services.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent Resource name of the parent workspace. Of the form projects/{project_id}. + * @param {string=} params.serviceId Optional. The Service id to use for this Service. If omitted, an id will be generated instead. Must match the pattern a-z0-9-+ + * @param {().Service} params.requestBody 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$Services$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Services$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Services$Create, + callback: BodyResponseCallback + ): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + | Params$Resource$Services$Create + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Services$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/{+parent}/services').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * monitoring.services.delete + * @desc Soft delete this Service. + * @alias monitoring.services.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Resource name of the Service to delete. Of the form projects/{project_id}/service/{service_id}. + * @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$Services$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Services$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Services$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Services$Delete + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Services$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * monitoring.services.get + * @desc Get the named Service. + * @alias monitoring.services.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Resource name of the Service. Of the form projects/{project_id}/services/{service_id}. + * @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$Services$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Services$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Services$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Services$Get + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Services$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * monitoring.services.list + * @desc List Services for this workspace. + * @alias monitoring.services.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.filter A filter specifying what Services to return. The filter currently supports the following fields: - `identifier_case` - `app_engine.module_id` - `cloud_endpoints.service` - `cluster_istio.location` - `cluster_istio.cluster_name` - `cluster_istio.service_namespace` - `cluster_istio.service_name` identifier_case refers to which option in the identifier oneof is populated. For example, the filter identifier_case = "CUSTOM" would match all services with a value for the custom field. Valid options are "CUSTOM", "APP_ENGINE", "CLOUD_ENDPOINTS", and "CLUSTER_ISTIO". + * @param {integer=} params.pageSize A non-negative number that is the maximum number of results to return. When 0, use default page size. + * @param {string=} params.pageToken If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call. + * @param {string} params.parent Resource name of the parent Workspace. Of the form projects/{project_id}. + * @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$Services$List, + options?: MethodOptions + ): GaxiosPromise; + list( + params: Params$Resource$Services$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Services$List, + callback: BodyResponseCallback + ): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + | Params$Resource$Services$List + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Services$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/{+parent}/services').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * monitoring.services.patch + * @desc Update this Service. + * @alias monitoring.services.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Resource name for this Service. Of the form projects/{project_id}/services/{service_id}. + * @param {string=} params.updateMask A set of field paths defining which fields to use for the update. + * @param {().Service} params.requestBody 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 + */ + patch( + params?: Params$Resource$Services$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Services$Patch, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Services$Patch, + callback: BodyResponseCallback + ): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: + | Params$Resource$Services$Patch + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Services$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Services$Create extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Resource name of the parent workspace. Of the form projects/{project_id}. + */ + parent?: string; + /** + * Optional. The Service id to use for this Service. If omitted, an id will be generated instead. Must match the pattern a-z0-9-+ + */ + serviceId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$Service; + } + export interface Params$Resource$Services$Delete extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Resource name of the Service to delete. Of the form projects/{project_id}/service/{service_id}. + */ + name?: string; + } + export interface Params$Resource$Services$Get extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Resource name of the Service. Of the form projects/{project_id}/services/{service_id}. + */ + name?: string; + } + export interface Params$Resource$Services$List extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * A filter specifying what Services to return. The filter currently supports the following fields: - `identifier_case` - `app_engine.module_id` - `cloud_endpoints.service` - `cluster_istio.location` - `cluster_istio.cluster_name` - `cluster_istio.service_namespace` - `cluster_istio.service_name` identifier_case refers to which option in the identifier oneof is populated. For example, the filter identifier_case = "CUSTOM" would match all services with a value for the custom field. Valid options are "CUSTOM", "APP_ENGINE", "CLOUD_ENDPOINTS", and "CLUSTER_ISTIO". + */ + filter?: string; + /** + * A non-negative number that is the maximum number of results to return. When 0, use default page size. + */ + pageSize?: number; + /** + * If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call. + */ + pageToken?: string; + /** + * Resource name of the parent Workspace. Of the form projects/{project_id}. + */ + parent?: string; + } + export interface Params$Resource$Services$Patch extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Resource name for this Service. Of the form projects/{project_id}/services/{service_id}. + */ + name?: string; + /** + * A set of field paths defining which fields to use for the update. + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$Service; + } + + export class Resource$Services$Servicelevelobjectives { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * monitoring.services.serviceLevelObjectives.create + * @desc Create a ServiceLevelObjective for the given Service. + * @alias monitoring.services.serviceLevelObjectives.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent Resource name of the parent Service. Of the form projects/{project_id}/services/{service_id}. + * @param {string=} params.serviceLevelObjectiveId Optional. The ServiceLevelObjective id to use for this ServiceLevelObjective. If omitted, an id will be generated instead. Must match the pattern a-z0-9-+ + * @param {().ServiceLevelObjective} params.requestBody 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$Services$Servicelevelobjectives$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Services$Servicelevelobjectives$Create, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Services$Servicelevelobjectives$Create, + callback: BodyResponseCallback + ): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + | Params$Resource$Services$Servicelevelobjectives$Create + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Services$Servicelevelobjectives$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Servicelevelobjectives$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/{+parent}/serviceLevelObjectives').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * monitoring.services.serviceLevelObjectives.delete + * @desc Delete the given ServiceLevelObjective. + * @alias monitoring.services.serviceLevelObjectives.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Resource name of the ServiceLevelObjective to delete. Of the form projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}. + * @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$Services$Servicelevelobjectives$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Services$Servicelevelobjectives$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Services$Servicelevelobjectives$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Services$Servicelevelobjectives$Delete + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Services$Servicelevelobjectives$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Servicelevelobjectives$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * monitoring.services.serviceLevelObjectives.get + * @desc Get a ServiceLevelObjective by name. + * @alias monitoring.services.serviceLevelObjectives.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Resource name of the ServiceLevelObjective to get. Of the form projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}. + * @param {string=} params.view View of the ServiceLevelObjective to return. If DEFAULT, return the ServiceLevelObjective as originally defined. If EXPLICIT and the ServiceLevelObjective is defined in terms of a BasicSli, replace the BasicSli with a RequestBasedSli spelling out how the SLI is computed. + * @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$Services$Servicelevelobjectives$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Services$Servicelevelobjectives$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Services$Servicelevelobjectives$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Services$Servicelevelobjectives$Get + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Services$Servicelevelobjectives$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Servicelevelobjectives$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** + * monitoring.services.serviceLevelObjectives.list + * @desc List the ServiceLevelObjectives for the given Service. + * @alias monitoring.services.serviceLevelObjectives.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.filter A filter specifying what ServiceLevelObjectives to return. + * @param {integer=} params.pageSize A non-negative number that is the maximum number of results to return. When 0, use default page size. + * @param {string=} params.pageToken If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call. + * @param {string} params.parent Resource name of the parent Service. Of the form projects/{project_id}/services/{service_id}. + * @param {string=} params.view View of the ServiceLevelObjectives to return. If DEFAULT, return each ServiceLevelObjective as originally defined. If EXPLICIT and the ServiceLevelObjective is defined in terms of a BasicSli, replace the BasicSli with a RequestBasedSli spelling out how the SLI is computed. + * @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$Services$Servicelevelobjectives$List, + options?: MethodOptions + ): GaxiosPromise; + list( + params: Params$Resource$Services$Servicelevelobjectives$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Services$Servicelevelobjectives$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback + ): void; + list( + paramsOrCallback?: + | Params$Resource$Services$Servicelevelobjectives$List + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Services$Servicelevelobjectives$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Servicelevelobjectives$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/{+parent}/serviceLevelObjectives').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * monitoring.services.serviceLevelObjectives.patch + * @desc Update the given ServiceLevelObjective. + * @alias monitoring.services.serviceLevelObjectives.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Resource name for this ServiceLevelObjective. Of the form projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}. + * @param {string=} params.updateMask A set of field paths defining which fields to use for the update. + * @param {().ServiceLevelObjective} params.requestBody 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 + */ + patch( + params?: Params$Resource$Services$Servicelevelobjectives$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Services$Servicelevelobjectives$Patch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Services$Servicelevelobjectives$Patch, + callback: BodyResponseCallback + ): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: + | Params$Resource$Services$Servicelevelobjectives$Patch + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Services$Servicelevelobjectives$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Servicelevelobjectives$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Services$Servicelevelobjectives$Create + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Resource name of the parent Service. Of the form projects/{project_id}/services/{service_id}. + */ + parent?: string; + /** + * Optional. The ServiceLevelObjective id to use for this ServiceLevelObjective. If omitted, an id will be generated instead. Must match the pattern a-z0-9-+ + */ + serviceLevelObjectiveId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$ServiceLevelObjective; + } + export interface Params$Resource$Services$Servicelevelobjectives$Delete + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Resource name of the ServiceLevelObjective to delete. Of the form projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}. + */ + name?: string; + } + export interface Params$Resource$Services$Servicelevelobjectives$Get + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Resource name of the ServiceLevelObjective to get. Of the form projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}. + */ + name?: string; + /** + * View of the ServiceLevelObjective to return. If DEFAULT, return the ServiceLevelObjective as originally defined. If EXPLICIT and the ServiceLevelObjective is defined in terms of a BasicSli, replace the BasicSli with a RequestBasedSli spelling out how the SLI is computed. + */ + view?: string; + } + export interface Params$Resource$Services$Servicelevelobjectives$List + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * A filter specifying what ServiceLevelObjectives to return. + */ + filter?: string; + /** + * A non-negative number that is the maximum number of results to return. When 0, use default page size. + */ + pageSize?: number; + /** + * If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call. + */ + pageToken?: string; + /** + * Resource name of the parent Service. Of the form projects/{project_id}/services/{service_id}. + */ + parent?: string; + /** + * View of the ServiceLevelObjectives to return. If DEFAULT, return each ServiceLevelObjective as originally defined. If EXPLICIT and the ServiceLevelObjective is defined in terms of a BasicSli, replace the BasicSli with a RequestBasedSli spelling out how the SLI is computed. + */ + view?: string; + } + export interface Params$Resource$Services$Servicelevelobjectives$Patch + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Resource name for this ServiceLevelObjective. Of the form projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}. + */ + name?: string; + /** + * A set of field paths defining which fields to use for the update. + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$ServiceLevelObjective; + } + export class Resource$Uptimecheckips { context: APIRequestContext; constructor(context: APIRequestContext) { diff --git a/src/apis/oslogin/v1.ts b/src/apis/oslogin/v1.ts index e1e030cdce1..73486cc73b9 100644 --- a/src/apis/oslogin/v1.ts +++ b/src/apis/oslogin/v1.ts @@ -311,7 +311,7 @@ export namespace oslogin_v1 { * @param {object} params Parameters for request * @param {string} params.parent Required. The unique ID for the user in format `users/{user}`. * @param {string=} params.projectId The project ID of the Google Cloud Platform project. - * @param {().SshPublicKey} params.resource Request body data + * @param {().SshPublicKey} params.requestBody 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 @@ -672,7 +672,7 @@ export namespace oslogin_v1 { * @param {object} params Parameters for request * @param {string} params.name Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`. * @param {string=} params.updateMask Mask to control which fields get updated. Updates all if not present. - * @param {().SshPublicKey} params.resource Request body data + * @param {().SshPublicKey} params.requestBody 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 diff --git a/src/apis/oslogin/v1alpha.ts b/src/apis/oslogin/v1alpha.ts index 1a7284eccb2..e0262968e60 100644 --- a/src/apis/oslogin/v1alpha.ts +++ b/src/apis/oslogin/v1alpha.ts @@ -312,7 +312,7 @@ export namespace oslogin_v1alpha { * @param {object} params Parameters for request * @param {string} params.parent The unique ID for the user in format `users/{user}`. * @param {string=} params.projectId The project ID of the Google Cloud Platform project. - * @param {().SshPublicKey} params.resource Request body data + * @param {().SshPublicKey} params.requestBody 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 @@ -682,7 +682,7 @@ export namespace oslogin_v1alpha { * @param {object} params Parameters for request * @param {string} params.name The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`. * @param {string=} params.updateMask Mask to control which fields get updated. Updates all if not present. - * @param {().SshPublicKey} params.resource Request body data + * @param {().SshPublicKey} params.requestBody 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 diff --git a/src/apis/oslogin/v1beta.ts b/src/apis/oslogin/v1beta.ts index e03d68b6a10..06e2ddac336 100644 --- a/src/apis/oslogin/v1beta.ts +++ b/src/apis/oslogin/v1beta.ts @@ -311,7 +311,7 @@ export namespace oslogin_v1beta { * @param {object} params Parameters for request * @param {string} params.parent The unique ID for the user in format `users/{user}`. * @param {string=} params.projectId The project ID of the Google Cloud Platform project. - * @param {().SshPublicKey} params.resource Request body data + * @param {().SshPublicKey} params.requestBody 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 @@ -672,7 +672,7 @@ export namespace oslogin_v1beta { * @param {object} params Parameters for request * @param {string} params.name Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`. * @param {string=} params.updateMask Mask to control which fields get updated. Updates all if not present. - * @param {().SshPublicKey} params.resource Request body data + * @param {().SshPublicKey} params.requestBody 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 diff --git a/src/apis/pagespeedonline/v5.ts b/src/apis/pagespeedonline/v5.ts index b3dfff667ff..3bdc7e0a0bf 100644 --- a/src/apis/pagespeedonline/v5.ts +++ b/src/apis/pagespeedonline/v5.ts @@ -126,6 +126,10 @@ export namespace pagespeedonline_v5 { * The audit's id. */ id?: string | null; + /** + * A numeric value that has a meaning specific to the audit, e.g. the number of nodes in the DOM or the timestamp of a specific load event. More information can be found in the audit details, if present. + */ + numericValue?: number | null; score?: any | null; /** * The enumerated score display mode. diff --git a/src/apis/people/v1.ts b/src/apis/people/v1.ts index e412128cdcb..240d665975d 100644 --- a/src/apis/people/v1.ts +++ b/src/apis/people/v1.ts @@ -1327,7 +1327,7 @@ export namespace people_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().CreateContactGroupRequest} params.resource Request body data + * @param {().CreateContactGroupRequest} params.requestBody 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 @@ -1627,7 +1627,7 @@ export namespace people_v1 { * * @param {object} params Parameters for request * @param {string} params.resourceName The resource name for the contact group, assigned by the server. An ASCII string, in the form of `contactGroups/`contact_group_id. - * @param {().UpdateContactGroupRequest} params.resource Request body data + * @param {().UpdateContactGroupRequest} params.requestBody 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 @@ -1807,7 +1807,7 @@ export namespace people_v1 { * * @param {object} params Parameters for request * @param {string} params.resourceName Required. The resource name of the contact group to modify. - * @param {().ModifyContactGroupMembersRequest} params.resource Request body data + * @param {().ModifyContactGroupMembersRequest} params.requestBody 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 @@ -1917,7 +1917,7 @@ export namespace people_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Person} params.resource Request body data + * @param {().Person} params.requestBody 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 @@ -2294,7 +2294,7 @@ export namespace people_v1 { * @param {object} params Parameters for request * @param {string} params.resourceName The resource name for the person, assigned by the server. An ASCII string with a max length of 27 characters, in the form of `people/`person_id. * @param {string=} params.updatePersonFields Required. A field mask to restrict which fields on the person are updated. Multiple fields can be specified by separating them with commas. All updated fields will be replaced. Valid values are: * addresses * biographies * birthdays * emailAddresses * events * genders * imClients * interests * locales * memberships * names * nicknames * occupations * organizations * phoneNumbers * relations * residences * sipAddresses * urls * userDefined - * @param {().Person} params.resource Request body data + * @param {().Person} params.requestBody 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 @@ -2367,7 +2367,7 @@ export namespace people_v1 { * * @param {object} params Parameters for request * @param {string} params.resourceName Required. Person resource name - * @param {().UpdateContactPhotoRequest} params.resource Request body data + * @param {().UpdateContactPhotoRequest} params.requestBody 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 diff --git a/src/apis/playcustomapp/v1.ts b/src/apis/playcustomapp/v1.ts index 59d1855960e..9872048623f 100644 --- a/src/apis/playcustomapp/v1.ts +++ b/src/apis/playcustomapp/v1.ts @@ -136,7 +136,7 @@ export namespace playcustomapp_v1 { * * @param {object} params Parameters for request * @param {string} params.account Developer account ID. - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents diff --git a/src/apis/plusDomains/v1.ts b/src/apis/plusDomains/v1.ts index 4efdf9b281d..3fbdb773f81 100644 --- a/src/apis/plusDomains/v1.ts +++ b/src/apis/plusDomains/v1.ts @@ -1398,7 +1398,7 @@ export namespace plusDomains_v1 { * @param {object} params Parameters for request * @param {string} params.collection * @param {string} params.userId The ID of the user to create the activity on behalf of. - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents diff --git a/src/apis/policytroubleshooter/v1beta.ts b/src/apis/policytroubleshooter/v1beta.ts index 1a2a03133e2..b6788aa532f 100644 --- a/src/apis/policytroubleshooter/v1beta.ts +++ b/src/apis/policytroubleshooter/v1beta.ts @@ -283,11 +283,11 @@ export namespace policytroubleshooter_v1beta { */ bindings?: Schema$GoogleIamV1Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -326,7 +326,7 @@ export namespace policytroubleshooter_v1beta { * @memberOf! () * * @param {object} params Parameters for request - * @param {().GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyRequest} params.resource Request body data + * @param {().GoogleCloudPolicytroubleshooterV1betaTroubleshootIamPolicyRequest} params.requestBody 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 diff --git a/src/apis/proximitybeacon/v1beta1.ts b/src/apis/proximitybeacon/v1beta1.ts index f05260d482e..04ae0272053 100644 --- a/src/apis/proximitybeacon/v1beta1.ts +++ b/src/apis/proximitybeacon/v1beta1.ts @@ -471,7 +471,7 @@ export namespace proximitybeacon_v1beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().GetInfoForObservedBeaconsRequest} params.resource Request body data + * @param {().GetInfoForObservedBeaconsRequest} params.requestBody 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 @@ -1021,7 +1021,7 @@ export namespace proximitybeacon_v1beta1 { * * @param {object} params Parameters for request * @param {string=} params.projectId The project id of the project the beacon will be registered to. If the project id is not specified then the project making the request is used. Optional. - * @param {().Beacon} params.resource Request body data + * @param {().Beacon} params.requestBody 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 @@ -1095,7 +1095,7 @@ export namespace proximitybeacon_v1beta1 { * @param {object} params Parameters for request * @param {string} params.beaconName Resource name of this beacon. A beacon name has the format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by the beacon and N is a code for the beacon's type. Possible values are `3` for Eddystone, `1` for iBeacon, or `5` for AltBeacon. This field must be left empty when registering. After reading a beacon, clients can use the name for future operations. * @param {string=} params.projectId The project id of the beacon to update. If the project id is not specified then the project making the request is used. The project id must match the project that owns the beacon. Optional. - * @param {().Beacon} params.resource Request body data + * @param {().Beacon} params.requestBody 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 @@ -1396,7 +1396,7 @@ export namespace proximitybeacon_v1beta1 { * @param {object} params Parameters for request * @param {string} params.beaconName Beacon on which the attachment should be created. A beacon name has the format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by the beacon and N is a code for the beacon's type. Possible values are `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon. For Eddystone-EID beacons, you may use either the current EID or the beacon's "stable" UID. Required. * @param {string=} params.projectId The project id of the project the attachment will belong to. If the project id is not specified then the project making the request is used. Optional. - * @param {().BeaconAttachment} params.resource Request body data + * @param {().BeaconAttachment} params.requestBody 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 @@ -1911,7 +1911,7 @@ export namespace proximitybeacon_v1beta1 { * @param {object} params Parameters for request * @param {string} params.namespaceName Resource name of this namespace. Namespaces names have the format: namespaces/namespace. * @param {string=} params.projectId The project id of the namespace to update. If the project id is not specified then the project making the request is used. The project id must match the project that owns the beacon. Optional. - * @param {().Namespace} params.resource Request body data + * @param {().Namespace} params.requestBody 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 diff --git a/src/apis/pubsub/v1.ts b/src/apis/pubsub/v1.ts index a6ad3e6d55b..790ec2d358f 100644 --- a/src/apis/pubsub/v1.ts +++ b/src/apis/pubsub/v1.ts @@ -303,11 +303,11 @@ export namespace pubsub_v1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -334,7 +334,7 @@ export namespace pubsub_v1 { */ export interface Schema$PubsubMessage { /** - * Optional attributes for this message. + * Attributes for this message. If this field is empty, the message must contain non-empty data. */ attributes?: {[key: string]: string} | null; /** @@ -648,8 +648,8 @@ export namespace pubsub_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Optional user-provided name for this snapshot. If the name is not provided in the request, the server will assign a random name for this snapshot on the same project as the subscription. Note that for REST API requests, you must specify a name. See the resource name rules. Format is `projects/{project}/snapshots/{snap}`. - * @param {().CreateSnapshotRequest} params.resource Request body data + * @param {string} params.name User-provided name for this snapshot. If the name is not provided in the request, the server will assign a random name for this snapshot on the same project as the subscription. Note that for REST API requests, you must specify a name. See the resource name rules. Format is `projects/{project}/snapshots/{snap}`. + * @param {().CreateSnapshotRequest} params.requestBody 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 @@ -1257,7 +1257,7 @@ export namespace pubsub_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the snapshot. - * @param {().UpdateSnapshotRequest} params.resource Request body data + * @param {().UpdateSnapshotRequest} params.requestBody 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 @@ -1378,7 +1378,7 @@ export namespace pubsub_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -1502,7 +1502,7 @@ export namespace pubsub_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -1585,7 +1585,7 @@ export namespace pubsub_v1 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Optional user-provided name for this snapshot. If the name is not provided in the request, the server will assign a random name for this snapshot on the same project as the subscription. Note that for REST API requests, you must specify a name. See the resource name rules. Format is `projects/{project}/snapshots/{snap}`. + * User-provided name for this snapshot. If the name is not provided in the request, the server will assign a random name for this snapshot on the same project as the subscription. Note that for REST API requests, you must specify a name. See the resource name rules. Format is `projects/{project}/snapshots/{snap}`. */ name?: string; @@ -1768,7 +1768,7 @@ export namespace pubsub_v1 { * * @param {object} params Parameters for request * @param {string} params.subscription The subscription whose message is being acknowledged. Format is `projects/{project}/subscriptions/{sub}`. - * @param {().AcknowledgeRequest} params.resource Request body data + * @param {().AcknowledgeRequest} params.requestBody 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 @@ -1897,7 +1897,7 @@ export namespace pubsub_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the subscription. It must have the format `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `"goog"`. - * @param {().Subscription} params.resource Request body data + * @param {().Subscription} params.requestBody 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 @@ -2517,7 +2517,7 @@ export namespace pubsub_v1 { * * @param {object} params Parameters for request * @param {string} params.subscription The name of the subscription. Format is `projects/{project}/subscriptions/{sub}`. - * @param {().ModifyAckDeadlineRequest} params.resource Request body data + * @param {().ModifyAckDeadlineRequest} params.requestBody 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 @@ -2638,7 +2638,7 @@ export namespace pubsub_v1 { * * @param {object} params Parameters for request * @param {string} params.subscription The name of the subscription. Format is `projects/{project}/subscriptions/{sub}`. - * @param {().ModifyPushConfigRequest} params.resource Request body data + * @param {().ModifyPushConfigRequest} params.requestBody 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 @@ -2767,7 +2767,7 @@ export namespace pubsub_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the subscription. It must have the format `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `"goog"`. - * @param {().UpdateSubscriptionRequest} params.resource Request body data + * @param {().UpdateSubscriptionRequest} params.requestBody 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 @@ -2890,7 +2890,7 @@ export namespace pubsub_v1 { * * @param {object} params Parameters for request * @param {string} params.subscription The subscription from which messages should be pulled. Format is `projects/{project}/subscriptions/{sub}`. - * @param {().PullRequest} params.resource Request body data + * @param {().PullRequest} params.requestBody 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 @@ -3015,7 +3015,7 @@ export namespace pubsub_v1 { * * @param {object} params Parameters for request * @param {string} params.subscription The subscription to affect. - * @param {().SeekRequest} params.resource Request body data + * @param {().SeekRequest} params.requestBody 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 @@ -3141,7 +3141,7 @@ export namespace pubsub_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -3265,7 +3265,7 @@ export namespace pubsub_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -3630,7 +3630,7 @@ export namespace pubsub_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the topic. It must have the format `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `"goog"`. - * @param {().Topic} params.resource Request body data + * @param {().Topic} params.requestBody 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 @@ -4241,7 +4241,7 @@ export namespace pubsub_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the topic. It must have the format `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `"goog"`. - * @param {().UpdateTopicRequest} params.resource Request body data + * @param {().UpdateTopicRequest} params.requestBody 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 @@ -4362,7 +4362,7 @@ export namespace pubsub_v1 { * * @param {object} params Parameters for request * @param {string} params.topic The messages in the request will be published on this topic. Format is `projects/{project}/topics/{topic}`. - * @param {().PublishRequest} params.resource Request body data + * @param {().PublishRequest} params.requestBody 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 @@ -4488,7 +4488,7 @@ export namespace pubsub_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -4612,7 +4612,7 @@ export namespace pubsub_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 diff --git a/src/apis/pubsub/v1beta1a.ts b/src/apis/pubsub/v1beta1a.ts index 32b198b3a83..f50c37da206 100644 --- a/src/apis/pubsub/v1beta1a.ts +++ b/src/apis/pubsub/v1beta1a.ts @@ -393,7 +393,7 @@ export namespace pubsub_v1beta1a { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AcknowledgeRequest} params.resource Request body data + * @param {().AcknowledgeRequest} params.requestBody 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 @@ -465,7 +465,7 @@ export namespace pubsub_v1beta1a { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Subscription} params.resource Request body data + * @param {().Subscription} params.requestBody 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 @@ -768,7 +768,7 @@ export namespace pubsub_v1beta1a { * @memberOf! () * * @param {object} params Parameters for request - * @param {().ModifyAckDeadlineRequest} params.resource Request body data + * @param {().ModifyAckDeadlineRequest} params.requestBody 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 @@ -839,7 +839,7 @@ export namespace pubsub_v1beta1a { * @memberOf! () * * @param {object} params Parameters for request - * @param {().ModifyPushConfigRequest} params.resource Request body data + * @param {().ModifyPushConfigRequest} params.requestBody 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 @@ -911,7 +911,7 @@ export namespace pubsub_v1beta1a { * @memberOf! () * * @param {object} params Parameters for request - * @param {().PullRequest} params.resource Request body data + * @param {().PullRequest} params.requestBody 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 @@ -985,7 +985,7 @@ export namespace pubsub_v1beta1a { * @memberOf! () * * @param {object} params Parameters for request - * @param {().PullBatchRequest} params.resource Request body data + * @param {().PullBatchRequest} params.requestBody 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 @@ -1183,7 +1183,7 @@ export namespace pubsub_v1beta1a { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Topic} params.resource Request body data + * @param {().Topic} params.requestBody 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 @@ -1465,7 +1465,7 @@ export namespace pubsub_v1beta1a { * @memberOf! () * * @param {object} params Parameters for request - * @param {().PublishRequest} params.resource Request body data + * @param {().PublishRequest} params.requestBody 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 @@ -1536,7 +1536,7 @@ export namespace pubsub_v1beta1a { * @memberOf! () * * @param {object} params Parameters for request - * @param {().PublishBatchRequest} params.resource Request body data + * @param {().PublishBatchRequest} params.requestBody 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 diff --git a/src/apis/pubsub/v1beta2.ts b/src/apis/pubsub/v1beta2.ts index 49c0ed4bdd4..5cc5389412b 100644 --- a/src/apis/pubsub/v1beta2.ts +++ b/src/apis/pubsub/v1beta2.ts @@ -253,11 +253,11 @@ export namespace pubsub_v1beta2 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -435,7 +435,7 @@ export namespace pubsub_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.subscription The subscription whose message is being acknowledged. - * @param {().AcknowledgeRequest} params.resource Request body data + * @param {().AcknowledgeRequest} params.requestBody 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 @@ -508,7 +508,7 @@ export namespace pubsub_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.name The name of the subscription. It must have the format `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `"goog"`. - * @param {().Subscription} params.resource Request body data + * @param {().Subscription} params.requestBody 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 @@ -882,7 +882,7 @@ export namespace pubsub_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.subscription The name of the subscription. - * @param {().ModifyAckDeadlineRequest} params.resource Request body data + * @param {().ModifyAckDeadlineRequest} params.requestBody 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 @@ -954,7 +954,7 @@ export namespace pubsub_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.subscription The name of the subscription. - * @param {().ModifyPushConfigRequest} params.resource Request body data + * @param {().ModifyPushConfigRequest} params.requestBody 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 @@ -1026,7 +1026,7 @@ export namespace pubsub_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.subscription The subscription from which messages should be pulled. - * @param {().PullRequest} params.resource Request body data + * @param {().PullRequest} params.requestBody 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 @@ -1101,7 +1101,7 @@ export namespace pubsub_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -1174,7 +1174,7 @@ export namespace pubsub_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -1447,7 +1447,7 @@ export namespace pubsub_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.name The name of the topic. It must have the format `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `"goog"`. - * @param {().Topic} params.resource Request body data + * @param {().Topic} params.requestBody 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 @@ -1804,7 +1804,7 @@ export namespace pubsub_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.topic The messages in the request will be published on this topic. - * @param {().PublishRequest} params.resource Request body data + * @param {().PublishRequest} params.requestBody 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 @@ -1879,7 +1879,7 @@ export namespace pubsub_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -1952,7 +1952,7 @@ export namespace pubsub_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 diff --git a/src/apis/recommender/v1beta1.ts b/src/apis/recommender/v1beta1.ts index 690f367f906..2d2ebe6b28a 100644 --- a/src/apis/recommender/v1beta1.ts +++ b/src/apis/recommender/v1beta1.ts @@ -198,7 +198,7 @@ export namespace recommender_v1beta1 { */ export interface Schema$GoogleCloudRecommenderV1beta1Operation { /** - * Type of this operation. Contains one of 'and', 'remove', 'replace', 'move', 'copy', 'test' and custom operations. This field is case-insensitive and always populated. + * Type of this operation. Contains one of 'and', 'remove', 'replace', 'move', 'copy', 'test' and 'custom' operations. This field is case-insensitive and always populated. */ action?: string | null; /** @@ -206,7 +206,7 @@ export namespace recommender_v1beta1 { */ path?: string | null; /** - * Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified. This is intended to be an exact match per filter. To perform advanced matching, use path_value_matchers. * Example: { "/versions/x/name" : "it-123" "/versions/x/targetSize/percent": 20 } * Example: { "/bindings/x/role": "roles/admin" "/bindings/x/condition" : null } * Example: { "/bindings/x/role": "roles/admin" "/bindings/x/members/*" : ["x@google.com", "y@google.com"] } When both path_filters and path_value_matchers are set, an implicit AND must be performed. + * Set of filters to apply if `path` refers to array elements or nested array elements in order to narrow down to a single unique element that is being tested/modified. This is intended to be an exact match per filter. To perform advanced matching, use path_value_matchers. * Example: { "/versions/x/name" : "it-123" "/versions/x/targetSize/percent": 20 } * Example: { "/bindings/x/role": "roles/admin" "/bindings/x/condition" : null } * Example: { "/bindings/x/role": "roles/admin" "/bindings/x/members/*" : ["x@google.com", "y@google.com"] } When both path_filters and path_value_matchers are set, an implicit AND must be performed. */ pathFilters?: {[key: string]: any} | null; /** @@ -577,13 +577,13 @@ export namespace recommender_v1beta1 { /** * recommender.projects.locations.recommenders.recommendations.markClaimed - * @desc Mark the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. MarkRecommendationClaimed can be applied to recommendations in CLAIMED, SUCCEEDED, FAILED, or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender. + * @desc Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender. * @alias recommender.projects.locations.recommenders.recommendations.markClaimed * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.name Name of the recommendation. - * @param {().GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest} params.resource Request body data + * @param {().GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest} params.requestBody 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 @@ -677,13 +677,13 @@ export namespace recommender_v1beta1 { /** * recommender.projects.locations.recommenders.recommendations.markFailed - * @desc Mark the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender. + * @desc Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender. * @alias recommender.projects.locations.recommenders.recommendations.markFailed * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.name Name of the recommendation. - * @param {().GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest} params.resource Request body data + * @param {().GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest} params.requestBody 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 @@ -777,13 +777,13 @@ export namespace recommender_v1beta1 { /** * recommender.projects.locations.recommenders.recommendations.markSucceeded - * @desc Mark the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender. + * @desc Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender. * @alias recommender.projects.locations.recommenders.recommendations.markSucceeded * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.name Name of the recommendation. - * @param {().GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest} params.resource Request body data + * @param {().GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest} params.requestBody 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 diff --git a/src/apis/redis/v1.ts b/src/apis/redis/v1.ts index 5dbfb321de5..c4266055dd7 100644 --- a/src/apis/redis/v1.ts +++ b/src/apis/redis/v1.ts @@ -640,7 +640,7 @@ export namespace redis_v1 { * @param {object} params Parameters for request * @param {string=} params.instanceId Required. The logical name of the Redis instance in the customer project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-40 characters. * Must end with a number or a letter. * Must be unique within the customer project / location * @param {string} params.parent Required. The resource name of the instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. - * @param {().Instance} params.resource Request body data + * @param {().Instance} params.requestBody 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 @@ -786,7 +786,7 @@ export namespace redis_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. - * @param {().ExportInstanceRequest} params.resource Request body data + * @param {().ExportInstanceRequest} params.requestBody 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 @@ -858,7 +858,7 @@ export namespace redis_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. - * @param {().FailoverInstanceRequest} params.resource Request body data + * @param {().FailoverInstanceRequest} params.requestBody 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 @@ -1002,7 +1002,7 @@ export namespace redis_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. - * @param {().ImportInstanceRequest} params.resource Request body data + * @param {().ImportInstanceRequest} params.requestBody 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 @@ -1153,7 +1153,7 @@ export namespace redis_v1 { * @param {object} params Parameters for request * @param {string} params.name Required. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` Note: Redis instances are managed and addressed at regional level so location_id here refers to a GCP region; however, users may choose which specific zone (or collection of zones for cross-zone instances) an instance should be provisioned in. Refer to location_id and alternative_location_id fields for more details. * @param {string=} params.updateMask Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from Instance: * `displayName` * `labels` * `memorySizeGb` * `redisConfig` - * @param {().Instance} params.resource Request body data + * @param {().Instance} params.requestBody 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 diff --git a/src/apis/redis/v1beta1.ts b/src/apis/redis/v1beta1.ts index b24ef2559cb..3dbb5948f8a 100644 --- a/src/apis/redis/v1beta1.ts +++ b/src/apis/redis/v1beta1.ts @@ -640,7 +640,7 @@ export namespace redis_v1beta1 { * @param {object} params Parameters for request * @param {string=} params.instanceId Required. The logical name of the Redis instance in the customer project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-40 characters. * Must end with a number or a letter. * Must be unique within the customer project / location * @param {string} params.parent Required. The resource name of the instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. - * @param {().Instance} params.resource Request body data + * @param {().Instance} params.requestBody 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 @@ -786,7 +786,7 @@ export namespace redis_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. - * @param {().ExportInstanceRequest} params.resource Request body data + * @param {().ExportInstanceRequest} params.requestBody 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 @@ -861,7 +861,7 @@ export namespace redis_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. - * @param {().FailoverInstanceRequest} params.resource Request body data + * @param {().FailoverInstanceRequest} params.requestBody 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 @@ -1005,7 +1005,7 @@ export namespace redis_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. - * @param {().ImportInstanceRequest} params.resource Request body data + * @param {().ImportInstanceRequest} params.requestBody 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 @@ -1159,7 +1159,7 @@ export namespace redis_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name Required. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` Note: Redis instances are managed and addressed at regional level so location_id here refers to a GCP region; however, users may choose which specific zone (or collection of zones for cross-zone instances) an instance should be provisioned in. Refer to location_id and alternative_location_id fields for more details. * @param {string=} params.updateMask Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from Instance: * `displayName` * `labels` * `memorySizeGb` * `redisConfig` - * @param {().Instance} params.resource Request body data + * @param {().Instance} params.requestBody 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 diff --git a/src/apis/remotebuildexecution/v1.ts b/src/apis/remotebuildexecution/v1.ts index 9fe44eedd14..ea6f6b5d810 100644 --- a/src/apis/remotebuildexecution/v1.ts +++ b/src/apis/remotebuildexecution/v1.ts @@ -746,6 +746,23 @@ export namespace remotebuildexecution_v1 { */ workerPools?: Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool[]; } + /** + * The request used for `UpdateInstance`. + */ + export interface Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest { + /** + * Whether to enable Stackdriver logging for this instance. + */ + loggingEnabled?: boolean | null; + /** + * Name of the instance to update. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. + */ + name?: string | null; + /** + * The fields to update. + */ + updateMask?: string | null; + } /** * The request used for UpdateWorkerPool. */ @@ -1207,7 +1224,7 @@ export namespace remotebuildexecution_v1 { * * @param {object} params Parameters for request * @param {string} params.resourceName Name of the media that is being downloaded. See ReadRequest.resource_name. - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents @@ -1341,7 +1358,7 @@ export namespace remotebuildexecution_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the operation resource to be cancelled. - * @param {().GoogleLongrunningCancelOperationRequest} params.resource Request body data + * @param {().GoogleLongrunningCancelOperationRequest} params.requestBody 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 diff --git a/src/apis/remotebuildexecution/v1alpha.ts b/src/apis/remotebuildexecution/v1alpha.ts index 8f2d685159a..17e05e1bea6 100644 --- a/src/apis/remotebuildexecution/v1alpha.ts +++ b/src/apis/remotebuildexecution/v1alpha.ts @@ -733,6 +733,23 @@ export namespace remotebuildexecution_v1alpha { */ workerPools?: Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool[]; } + /** + * The request used for `UpdateInstance`. + */ + export interface Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest { + /** + * Whether to enable Stackdriver logging for this instance. + */ + loggingEnabled?: boolean | null; + /** + * Name of the instance to update. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. + */ + name?: string | null; + /** + * The fields to update. + */ + updateMask?: string | null; + } /** * The request used for UpdateWorkerPool. */ @@ -1110,7 +1127,7 @@ export namespace remotebuildexecution_v1alpha { * * @param {object} params Parameters for request * @param {string} params.parent Resource name of the project containing the instance. Format: `projects/[PROJECT_ID]`. - * @param {().GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest} params.resource Request body data + * @param {().GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest} params.requestBody 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 @@ -1532,7 +1549,7 @@ export namespace remotebuildexecution_v1alpha { * * @param {object} params Parameters for request * @param {string} params.parent Resource name of the instance in which to create the new worker pool. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. - * @param {().GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest} params.resource Request body data + * @param {().GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest} params.requestBody 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 @@ -1894,7 +1911,7 @@ export namespace remotebuildexecution_v1alpha { * * @param {object} params Parameters for request * @param {string} params.name WorkerPool resource name formatted as: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. name should not be populated when creating a worker pool since it is provided in the `poolId` field. - * @param {().GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest} params.resource Request body data + * @param {().GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest} params.requestBody 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 diff --git a/src/apis/remotebuildexecution/v2.ts b/src/apis/remotebuildexecution/v2.ts index 57de9398ec0..4051b81e90d 100644 --- a/src/apis/remotebuildexecution/v2.ts +++ b/src/apis/remotebuildexecution/v2.ts @@ -1001,6 +1001,23 @@ export namespace remotebuildexecution_v2 { */ workerPools?: Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool[]; } + /** + * The request used for `UpdateInstance`. + */ + export interface Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest { + /** + * Whether to enable Stackdriver logging for this instance. + */ + loggingEnabled?: boolean | null; + /** + * Name of the instance to update. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. + */ + name?: string | null; + /** + * The fields to update. + */ + updateMask?: string | null; + } /** * The request used for UpdateWorkerPool. */ @@ -1462,7 +1479,7 @@ export namespace remotebuildexecution_v2 { * @param {string} params.instanceName The instance of the execution system to operate against. A server may support multiple instances of the execution system (with their own workers, storage, caches, etc.). The server MAY require use of this field to select between them in an implementation-defined fashion, otherwise it can be omitted. * @param {integer=} params.resultsCachePolicy.priority The priority (relative importance) of this content in the overall cache. Generally, a lower value means a longer retention time or other advantage, but the interpretation of a given value is server-dependent. A priority of 0 means a *default* value, decided by the server. The particular semantics of this field is up to the server. In particular, every server will have their own supported range of priorities, and will decide how these map into retention/eviction policy. * @param {string} params.sizeBytes The size of the blob, in bytes. - * @param {().BuildBazelRemoteExecutionV2ActionResult} params.resource Request body data + * @param {().BuildBazelRemoteExecutionV2ActionResult} params.requestBody 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 @@ -1623,7 +1640,7 @@ export namespace remotebuildexecution_v2 { * * @param {object} params Parameters for request * @param {string} params.instanceName The instance of the execution system to operate against. A server may support multiple instances of the execution system (with their own workers, storage, caches, etc.). The server MAY require use of this field to select between them in an implementation-defined fashion, otherwise it can be omitted. - * @param {().BuildBazelRemoteExecutionV2ExecuteRequest} params.resource Request body data + * @param {().BuildBazelRemoteExecutionV2ExecuteRequest} params.requestBody 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 @@ -1729,7 +1746,7 @@ export namespace remotebuildexecution_v2 { * * @param {object} params Parameters for request * @param {string} params.instanceName The instance of the execution system to operate against. A server may support multiple instances of the execution system (with their own workers, storage, caches, etc.). The server MAY require use of this field to select between them in an implementation-defined fashion, otherwise it can be omitted. - * @param {().BuildBazelRemoteExecutionV2BatchReadBlobsRequest} params.resource Request body data + * @param {().BuildBazelRemoteExecutionV2BatchReadBlobsRequest} params.requestBody 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 @@ -1828,7 +1845,7 @@ export namespace remotebuildexecution_v2 { * * @param {object} params Parameters for request * @param {string} params.instanceName The instance of the execution system to operate against. A server may support multiple instances of the execution system (with their own workers, storage, caches, etc.). The server MAY require use of this field to select between them in an implementation-defined fashion, otherwise it can be omitted. - * @param {().BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest} params.resource Request body data + * @param {().BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest} params.requestBody 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 @@ -1930,7 +1947,7 @@ export namespace remotebuildexecution_v2 { * * @param {object} params Parameters for request * @param {string} params.instanceName The instance of the execution system to operate against. A server may support multiple instances of the execution system (with their own workers, storage, caches, etc.). The server MAY require use of this field to select between them in an implementation-defined fashion, otherwise it can be omitted. - * @param {().BuildBazelRemoteExecutionV2FindMissingBlobsRequest} params.resource Request body data + * @param {().BuildBazelRemoteExecutionV2FindMissingBlobsRequest} params.requestBody 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 @@ -2217,7 +2234,7 @@ export namespace remotebuildexecution_v2 { * * @param {object} params Parameters for request * @param {string} params.name The name of the Operation returned by Execute. - * @param {().BuildBazelRemoteExecutionV2WaitExecutionRequest} params.resource Request body data + * @param {().BuildBazelRemoteExecutionV2WaitExecutionRequest} params.requestBody 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 diff --git a/src/apis/replicapool/v1beta1.ts b/src/apis/replicapool/v1beta1.ts index 38f9949342e..3492e35b812 100644 --- a/src/apis/replicapool/v1beta1.ts +++ b/src/apis/replicapool/v1beta1.ts @@ -544,7 +544,7 @@ export namespace replicapool_v1beta1 { * @param {string} params.poolName The name of the replica pool for this request. * @param {string} params.projectName The project ID for this replica pool. * @param {string} params.zone The zone for this replica pool. - * @param {().PoolsDeleteRequest} params.resource Request body data + * @param {().PoolsDeleteRequest} params.requestBody 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 @@ -690,7 +690,7 @@ export namespace replicapool_v1beta1 { * @param {object} params Parameters for request * @param {string} params.projectName The project ID for this replica pool. * @param {string} params.zone The zone for this replica pool. - * @param {().Pool} params.resource Request body data + * @param {().Pool} params.requestBody 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 @@ -914,7 +914,7 @@ export namespace replicapool_v1beta1 { * @param {string} params.poolName The name of the replica pool for this request. * @param {string} params.projectName The project ID for this replica pool. * @param {string} params.zone The zone for this replica pool. - * @param {().Template} params.resource Request body data + * @param {().Template} params.requestBody 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 @@ -1132,7 +1132,7 @@ export namespace replicapool_v1beta1 { * @param {string} params.projectName The project ID for this request. * @param {string} params.replicaName The name of the replica for this request. * @param {string} params.zone The zone where the replica lives. - * @param {().ReplicasDeleteRequest} params.resource Request body data + * @param {().ReplicasDeleteRequest} params.requestBody 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 diff --git a/src/apis/reseller/v1.ts b/src/apis/reseller/v1.ts index 20eab0f56ec..a19eb10e980 100644 --- a/src/apis/reseller/v1.ts +++ b/src/apis/reseller/v1.ts @@ -453,7 +453,7 @@ export namespace reseller_v1 { * * @param {object} params Parameters for request * @param {string=} params.customerAuthToken The customerAuthToken query string is required when creating a resold account that transfers a direct customer's subscription or transfers another reseller customer's subscription to your reseller management. This is a hexadecimal authentication token needed to complete the subscription transfer. For more information, see the administrator help center. - * @param {().Customer} params.resource Request body data + * @param {().Customer} params.requestBody 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 @@ -525,7 +525,7 @@ export namespace reseller_v1 { * * @param {object} params Parameters for request * @param {string} params.customerId Either the customer's primary domain name or the customer's unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates. - * @param {().Customer} params.resource Request body data + * @param {().Customer} params.requestBody 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 @@ -597,7 +597,7 @@ export namespace reseller_v1 { * * @param {object} params Parameters for request * @param {string} params.customerId Either the customer's primary domain name or the customer's unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates. - * @param {().Customer} params.resource Request body data + * @param {().Customer} params.requestBody 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 @@ -1094,7 +1094,7 @@ export namespace reseller_v1 { * @param {object} params Parameters for request * @param {string} params.customerId Either the customer's primary domain name or the customer's unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates. * @param {string} params.subscriptionId This is a required property. The subscriptionId is the subscription identifier and is unique for each customer. Since a subscriptionId changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the subscriptionId can be found using the retrieve all reseller subscriptions method. - * @param {().ChangePlanRequest} params.resource Request body data + * @param {().ChangePlanRequest} params.requestBody 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 @@ -1170,7 +1170,7 @@ export namespace reseller_v1 { * @param {object} params Parameters for request * @param {string} params.customerId Either the customer's primary domain name or the customer's unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates. * @param {string} params.subscriptionId This is a required property. The subscriptionId is the subscription identifier and is unique for each customer. Since a subscriptionId changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the subscriptionId can be found using the retrieve all reseller subscriptions method. - * @param {().RenewalSettings} params.resource Request body data + * @param {().RenewalSettings} params.requestBody 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 @@ -1248,7 +1248,7 @@ export namespace reseller_v1 { * @param {object} params Parameters for request * @param {string} params.customerId Either the customer's primary domain name or the customer's unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates. * @param {string} params.subscriptionId This is a required property. The subscriptionId is the subscription identifier and is unique for each customer. Since a subscriptionId changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the subscriptionId can be found using the retrieve all reseller subscriptions method. - * @param {().Seats} params.resource Request body data + * @param {().Seats} params.requestBody 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 @@ -1473,7 +1473,7 @@ export namespace reseller_v1 { * @param {object} params Parameters for request * @param {string=} params.customerAuthToken The customerAuthToken query string is required when creating a resold account that transfers a direct customer's subscription or transfers another reseller customer's subscription to your reseller management. This is a hexadecimal authentication token needed to complete the subscription transfer. For more information, see the administrator help center. * @param {string} params.customerId Either the customer's primary domain name or the customer's unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates. - * @param {().Subscription} params.resource Request body data + * @param {().Subscription} params.requestBody 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 diff --git a/src/apis/run/v1.ts b/src/apis/run/v1.ts index ef0e9e652ab..59fe6c5fc9c 100644 --- a/src/apis/run/v1.ts +++ b/src/apis/run/v1.ts @@ -162,65 +162,6 @@ export namespace run_v1 { */ name?: string | null; } - /** - * Resource to hold the state and status of a user's auto domain mapping. - */ - export interface Schema$AutoDomainMapping { - /** - * The API version for this call such as "serving.knative.dev/v1". - */ - apiVersion?: string | null; - /** - * The kind of resource, in this case "AutoDomainMapping". - */ - kind?: string | null; - /** - * Metadata associated with this BuildTemplate. - */ - metadata?: Schema$ObjectMeta; - /** - * The spec for this AutoDomainMapping. - */ - spec?: Schema$AutoDomainMappingSpec; - /** - * The current status of the AutoDomainMapping. - */ - status?: Schema$AutoDomainMappingStatus; - } - /** - * The desired state of the Auto Domain Mapping. - */ - export interface Schema$AutoDomainMappingSpec { - /** - * The mode of the certificate. - */ - certificateMode?: string | null; - /** - * The type of expansion for the auto auto domain mapping. - */ - expansionType?: string | null; - /** - * If set, the mapping will override any mapping set before this spec was set. It is recommended that the user leaves this empty to receive an error warning about a potential conflict and only set it once the respective UI has given such a warning. - */ - forceOverride?: boolean | null; - } - /** - * The current state of the Domain Mapping. - */ - export interface Schema$AutoDomainMappingStatus { - /** - * Array of observed AutoDomainMappingConditions, indicating the current state of the AutoDomainMapping. - */ - conditions?: Schema$GoogleCloudRunV1Condition[]; - /** - * ObservedGeneration is the 'Generation' of the AutoDomainMapping that was last processed by the controller. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation and the Ready condition's status is True or False. - */ - observedGeneration?: number | null; - /** - * The resource records required to configure this domain mapping. These records must be added to the domain's DNS configuration in order to serve the application via this domain mapping. - */ - resourceRecords?: Schema$ResourceRecord[]; - } /** * Associates `members` with a `role`. */ @@ -423,7 +364,7 @@ export namespace run_v1 { */ export interface Schema$ContainerPort { /** - * (Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * (Optional) Cloud Run fully managed: supported Cloud Run for Anthos: supported Port number the container listens on. This must be a valid port number, 0 < x < 65536. */ containerPort?: number | null; /** @@ -702,31 +643,6 @@ export namespace run_v1 { */ nextPageToken?: string | null; } - /** - * ListAutoDomainMappingsResponse is a list of AutoDomainMapping resources. - */ - export interface Schema$ListAutoDomainMappingsResponse { - /** - * The API version for this call such as "serving.knative.dev/v1". - */ - apiVersion?: string | null; - /** - * List of AutoDomainMappings. - */ - items?: Schema$AutoDomainMapping[]; - /** - * The kind of this resource, in this case "AutoDomainMappingList". - */ - kind?: string | null; - /** - * Metadata associated with this AutoDomainMapping list. - */ - metadata?: Schema$ListMeta; - /** - * Locations that could not be reached. - */ - unreachable?: string[] | null; - } /** * ListConfigurationsResponse is a list of Configuration resources. */ @@ -1023,11 +939,11 @@ export namespace run_v1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -1563,7 +1479,6 @@ export namespace run_v1 { export class Resource$Namespaces { context: APIRequestContext; authorizeddomains: Resource$Namespaces$Authorizeddomains; - autodomainmappings: Resource$Namespaces$Autodomainmappings; configurations: Resource$Namespaces$Configurations; domainmappings: Resource$Namespaces$Domainmappings; revisions: Resource$Namespaces$Revisions; @@ -1574,9 +1489,6 @@ export namespace run_v1 { this.authorizeddomains = new Resource$Namespaces$Authorizeddomains( this.context ); - this.autodomainmappings = new Resource$Namespaces$Autodomainmappings( - this.context - ); this.configurations = new Resource$Namespaces$Configurations( this.context ); @@ -1702,204 +1614,54 @@ export namespace run_v1 { parent?: string; } - export class Resource$Namespaces$Autodomainmappings { + export class Resource$Namespaces$Configurations { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * run.namespaces.autodomainmappings.create - * @desc Creates a new auto domain mapping. - * @alias run.namespaces.autodomainmappings.create - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.parent The project ID or project number in which this auto domain mapping should be created. - * @param {().AutoDomainMapping} 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$Namespaces$Autodomainmappings$Create, - options?: MethodOptions - ): GaxiosPromise; - create( - params: Params$Resource$Namespaces$Autodomainmappings$Create, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - create( - params: Params$Resource$Namespaces$Autodomainmappings$Create, - callback: BodyResponseCallback - ): void; - create(callback: BodyResponseCallback): void; - create( - paramsOrCallback?: - | Params$Resource$Namespaces$Autodomainmappings$Create - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Autodomainmappings$Create; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Autodomainmappings$Create; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/apis/domains.cloudrun.com/v1/{+parent}/autodomainmappings' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * run.namespaces.autodomainmappings.delete - * @desc Delete an auto domain mapping. - * @alias run.namespaces.autodomainmappings.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.apiVersion Cloud Run currently ignores this parameter. - * @param {string=} params.kind Cloud Run currently ignores this parameter. - * @param {string} params.name The name of the auto domain mapping being deleted. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {string=} params.propagationPolicy Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. - * @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$Namespaces$Autodomainmappings$Delete, - options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Namespaces$Autodomainmappings$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Namespaces$Autodomainmappings$Delete, - callback: BodyResponseCallback - ): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - | Params$Resource$Namespaces$Autodomainmappings$Delete - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Autodomainmappings$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Autodomainmappings$Delete; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/apis/domains.cloudrun.com/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); - } - } - - /** - * run.namespaces.autodomainmappings.get - * @desc Get information about an auto domain mapping. - * @alias run.namespaces.autodomainmappings.get + * run.namespaces.configurations.get + * @desc Get information about a configuration. + * @alias run.namespaces.configurations.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name of the auto domain mapping being retrieved. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string} params.name The name of the configuration to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or 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 */ get( - params?: Params$Resource$Namespaces$Autodomainmappings$Get, + params?: Params$Resource$Namespaces$Configurations$Get, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; get( - params: Params$Resource$Namespaces$Autodomainmappings$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Configurations$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Namespaces$Autodomainmappings$Get, - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Configurations$Get, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; get( paramsOrCallback?: - | Params$Resource$Namespaces$Autodomainmappings$Get - | BodyResponseCallback, + | Params$Resource$Namespaces$Configurations$Get + | BodyResponseCallback, optionsOrCallback?: | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Autodomainmappings$Get; + {}) as Params$Resource$Namespaces$Configurations$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Autodomainmappings$Get; + params = {} as Params$Resource$Namespaces$Configurations$Get; options = {}; } @@ -1912,7 +1674,7 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+name}').replace( + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace( /([^:]\/)\/+/g, '$1' ), @@ -1926,16 +1688,16 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * run.namespaces.autodomainmappings.list - * @desc List auto domain mappings. - * @alias run.namespaces.autodomainmappings.list + * run.namespaces.configurations.list + * @desc List configurations. + * @alias run.namespaces.configurations.list * @memberOf! () * * @param {object} params Parameters for request @@ -1944,7 +1706,7 @@ export namespace run_v1 { * @param {boolean=} params.includeUninitialized Not currently used by Cloud Run. * @param {string=} params.labelSelector Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. * @param {integer=} params.limit The maximum number of records that should be returned. - * @param {string} params.parent The project ID or project number from which the auto domain mappings should be listed. + * @param {string} params.parent The namespace from which the configurations should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * @param {string=} params.resourceVersion The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. * @param {boolean=} params.watch Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. @@ -1952,39 +1714,39 @@ export namespace run_v1 { * @return {object} Request object */ list( - params?: Params$Resource$Namespaces$Autodomainmappings$List, + params?: Params$Resource$Namespaces$Configurations$List, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; list( - params: Params$Resource$Namespaces$Autodomainmappings$List, + params: Params$Resource$Namespaces$Configurations$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - params: Params$Resource$Namespaces$Autodomainmappings$List, - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Configurations$List, + callback: BodyResponseCallback ): void; list( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; list( paramsOrCallback?: - | Params$Resource$Namespaces$Autodomainmappings$List - | BodyResponseCallback, + | Params$Resource$Namespaces$Configurations$List + | BodyResponseCallback, optionsOrCallback?: | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Autodomainmappings$List; + {}) as Params$Resource$Namespaces$Configurations$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Autodomainmappings$List; + params = {} as Params$Resource$Namespaces$Configurations$List; options = {}; } @@ -1998,8 +1760,7 @@ export namespace run_v1 { options: Object.assign( { url: ( - rootUrl + - '/apis/domains.cloudrun.com/v1/{+parent}/autodomainmappings' + rootUrl + '/apis/serving.knative.dev/v1/{+parent}/configurations' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -2011,149 +1772,29 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Namespaces$Configurations$Get + extends StandardParameters { /** - * run.namespaces.autodomainmappings.replaceAutoDomainMapping - * @desc Replace an auto domain mapping. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control. - * @alias run.namespaces.autodomainmappings.replaceAutoDomainMapping - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the auto domain mapping being retrieved. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {().AutoDomainMapping} 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 + * Auth client or API Key for the request */ - replaceAutoDomainMapping( - params?: Params$Resource$Namespaces$Autodomainmappings$Replaceautodomainmapping, - options?: MethodOptions - ): GaxiosPromise; - replaceAutoDomainMapping( - params: Params$Resource$Namespaces$Autodomainmappings$Replaceautodomainmapping, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - replaceAutoDomainMapping( - params: Params$Resource$Namespaces$Autodomainmappings$Replaceautodomainmapping, - callback: BodyResponseCallback - ): void; - replaceAutoDomainMapping( - callback: BodyResponseCallback - ): void; - replaceAutoDomainMapping( - paramsOrCallback?: - | Params$Resource$Namespaces$Autodomainmappings$Replaceautodomainmapping - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Autodomainmappings$Replaceautodomainmapping; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Autodomainmappings$Replaceautodomainmapping; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+name}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'PUT', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Namespaces$Autodomainmappings$Create - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The project ID or project number in which this auto domain mapping should be created. - */ - parent?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$AutoDomainMapping; - } - export interface Params$Resource$Namespaces$Autodomainmappings$Delete - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud Run currently ignores this parameter. - */ - apiVersion?: string; - /** - * Cloud Run currently ignores this parameter. - */ - kind?: string; - /** - * The name of the auto domain mapping being deleted. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - /** - * Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. - */ - propagationPolicy?: string; - } - export interface Params$Resource$Namespaces$Autodomainmappings$Get - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * The name of the auto domain mapping being retrieved. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * The name of the configuration to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ name?: string; } - export interface Params$Resource$Namespaces$Autodomainmappings$List + export interface Params$Resource$Namespaces$Configurations$List extends StandardParameters { /** * Auth client or API Key for the request @@ -2181,7 +1822,7 @@ export namespace run_v1 { */ limit?: number; /** - * The project ID or project number from which the auto domain mappings should be listed. + * The namespace from which the configurations should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ parent?: string; /** @@ -2193,73 +1834,56 @@ export namespace run_v1 { */ watch?: boolean; } - export interface Params$Resource$Namespaces$Autodomainmappings$Replaceautodomainmapping - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The name of the auto domain mapping being retrieved. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$AutoDomainMapping; - } - export class Resource$Namespaces$Configurations { + export class Resource$Namespaces$Domainmappings { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * run.namespaces.configurations.create - * @desc Create a configuration. - * @alias run.namespaces.configurations.create + * run.namespaces.domainmappings.create + * @desc Create a new domain mapping. + * @alias run.namespaces.domainmappings.create * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.parent The namespace in which the configuration should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {().Configuration} params.resource Request body data + * @param {string} params.parent The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {().DomainMapping} params.requestBody 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$Namespaces$Configurations$Create, + params?: Params$Resource$Namespaces$Domainmappings$Create, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; create( - params: Params$Resource$Namespaces$Configurations$Create, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Domainmappings$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; create( - params: Params$Resource$Namespaces$Configurations$Create, - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Domainmappings$Create, + callback: BodyResponseCallback ): void; - create(callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( paramsOrCallback?: - | Params$Resource$Namespaces$Configurations$Create - | BodyResponseCallback, + | Params$Resource$Namespaces$Domainmappings$Create + | BodyResponseCallback, optionsOrCallback?: | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Configurations$Create; + {}) as Params$Resource$Namespaces$Domainmappings$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Configurations$Create; + params = {} as Params$Resource$Namespaces$Domainmappings$Create; options = {}; } @@ -2273,7 +1897,7 @@ export namespace run_v1 { options: Object.assign( { url: ( - rootUrl + '/apis/serving.knative.dev/v1/{+parent}/configurations' + rootUrl + '/apis/domains.cloudrun.com/v1/{+parent}/domainmappings' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -2285,55 +1909,55 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * run.namespaces.configurations.delete - * @desc delete a configuration. This will cause the configuration to delete all child revisions. Prior to calling this, any route referencing the configuration (or revision from the configuration) must be deleted. - * @alias run.namespaces.configurations.delete + * run.namespaces.domainmappings.delete + * @desc Delete a domain mapping. + * @alias run.namespaces.domainmappings.delete * @memberOf! () * * @param {object} params Parameters for request * @param {string=} params.apiVersion Cloud Run currently ignores this parameter. * @param {string=} params.kind Cloud Run currently ignores this parameter. - * @param {string} params.name The name of the configuration to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string} params.name The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * @param {string=} params.propagationPolicy Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. * @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$Namespaces$Configurations$Delete, + params?: Params$Resource$Namespaces$Domainmappings$Delete, options?: MethodOptions ): GaxiosPromise; delete( - params: Params$Resource$Namespaces$Configurations$Delete, + params: Params$Resource$Namespaces$Domainmappings$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Namespaces$Configurations$Delete, + params: Params$Resource$Namespaces$Domainmappings$Delete, callback: BodyResponseCallback ): void; delete(callback: BodyResponseCallback): void; delete( paramsOrCallback?: - | Params$Resource$Namespaces$Configurations$Delete + | Params$Resource$Namespaces$Domainmappings$Delete | BodyResponseCallback, optionsOrCallback?: MethodOptions | BodyResponseCallback, callback?: BodyResponseCallback ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Configurations$Delete; + {}) as Params$Resource$Namespaces$Domainmappings$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Configurations$Delete; + params = {} as Params$Resource$Namespaces$Domainmappings$Delete; options = {}; } @@ -2346,7 +1970,7 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace( + url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+name}').replace( /([^:]\/)\/+/g, '$1' ), @@ -2367,47 +1991,47 @@ export namespace run_v1 { } /** - * run.namespaces.configurations.get - * @desc Get information about a configuration. - * @alias run.namespaces.configurations.get + * run.namespaces.domainmappings.get + * @desc Get information about a domain mapping. + * @alias run.namespaces.domainmappings.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name of the configuration to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string} params.name The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or 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 */ get( - params?: Params$Resource$Namespaces$Configurations$Get, + params?: Params$Resource$Namespaces$Domainmappings$Get, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; get( - params: Params$Resource$Namespaces$Configurations$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Domainmappings$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Namespaces$Configurations$Get, - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Domainmappings$Get, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; get( paramsOrCallback?: - | Params$Resource$Namespaces$Configurations$Get - | BodyResponseCallback, + | Params$Resource$Namespaces$Domainmappings$Get + | BodyResponseCallback, optionsOrCallback?: | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Configurations$Get; + {}) as Params$Resource$Namespaces$Domainmappings$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Configurations$Get; + params = {} as Params$Resource$Namespaces$Domainmappings$Get; options = {}; } @@ -2420,7 +2044,7 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace( + url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+name}').replace( /([^:]\/)\/+/g, '$1' ), @@ -2434,16 +2058,16 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * run.namespaces.configurations.list - * @desc List configurations. - * @alias run.namespaces.configurations.list + * run.namespaces.domainmappings.list + * @desc List domain mappings. + * @alias run.namespaces.domainmappings.list * @memberOf! () * * @param {object} params Parameters for request @@ -2452,7 +2076,7 @@ export namespace run_v1 { * @param {boolean=} params.includeUninitialized Not currently used by Cloud Run. * @param {string=} params.labelSelector Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. * @param {integer=} params.limit The maximum number of records that should be returned. - * @param {string} params.parent The namespace from which the configurations should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string} params.parent The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * @param {string=} params.resourceVersion The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. * @param {boolean=} params.watch Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. @@ -2460,39 +2084,39 @@ export namespace run_v1 { * @return {object} Request object */ list( - params?: Params$Resource$Namespaces$Configurations$List, + params?: Params$Resource$Namespaces$Domainmappings$List, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; list( - params: Params$Resource$Namespaces$Configurations$List, + params: Params$Resource$Namespaces$Domainmappings$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - params: Params$Resource$Namespaces$Configurations$List, - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Domainmappings$List, + callback: BodyResponseCallback ): void; list( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; list( paramsOrCallback?: - | Params$Resource$Namespaces$Configurations$List - | BodyResponseCallback, + | Params$Resource$Namespaces$Domainmappings$List + | BodyResponseCallback, optionsOrCallback?: | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Configurations$List; + {}) as Params$Resource$Namespaces$Domainmappings$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Configurations$List; + params = {} as Params$Resource$Namespaces$Domainmappings$List; options = {}; } @@ -2506,7 +2130,7 @@ export namespace run_v1 { options: Object.assign( { url: ( - rootUrl + '/apis/serving.knative.dev/v1/{+parent}/configurations' + rootUrl + '/apis/domains.cloudrun.com/v1/{+parent}/domainmappings' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -2518,111 +2142,34 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Namespaces$Domainmappings$Create + extends StandardParameters { /** - * run.namespaces.configurations.replaceConfiguration - * @desc Replace a configuration. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control. - * @alias run.namespaces.configurations.replaceConfiguration - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the configuration being replaced. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {().Configuration} 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 + * Auth client or API Key for the request */ - replaceConfiguration( - params?: Params$Resource$Namespaces$Configurations$Replaceconfiguration, - options?: MethodOptions - ): GaxiosPromise; - replaceConfiguration( - params: Params$Resource$Namespaces$Configurations$Replaceconfiguration, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - replaceConfiguration( - params: Params$Resource$Namespaces$Configurations$Replaceconfiguration, - callback: BodyResponseCallback - ): void; - replaceConfiguration( - callback: BodyResponseCallback - ): void; - replaceConfiguration( - paramsOrCallback?: - | Params$Resource$Namespaces$Configurations$Replaceconfiguration - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Configurations$Replaceconfiguration; - let options = (optionsOrCallback || {}) as MethodOptions; + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Configurations$Replaceconfiguration; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'PUT', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Namespaces$Configurations$Create - extends StandardParameters { /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The namespace in which the configuration should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ parent?: string; /** * Request body metadata */ - requestBody?: Schema$Configuration; + requestBody?: Schema$DomainMapping; } - export interface Params$Resource$Namespaces$Configurations$Delete + export interface Params$Resource$Namespaces$Domainmappings$Delete extends StandardParameters { /** * Auth client or API Key for the request @@ -2638,7 +2185,7 @@ export namespace run_v1 { */ kind?: string; /** - * The name of the configuration to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ name?: string; /** @@ -2646,7 +2193,7 @@ export namespace run_v1 { */ propagationPolicy?: string; } - export interface Params$Resource$Namespaces$Configurations$Get + export interface Params$Resource$Namespaces$Domainmappings$Get extends StandardParameters { /** * Auth client or API Key for the request @@ -2654,11 +2201,11 @@ export namespace run_v1 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * The name of the configuration to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ name?: string; } - export interface Params$Resource$Namespaces$Configurations$List + export interface Params$Resource$Namespaces$Domainmappings$List extends StandardParameters { /** * Auth client or API Key for the request @@ -2686,7 +2233,7 @@ export namespace run_v1 { */ limit?: number; /** - * The namespace from which the configurations should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ parent?: string; /** @@ -2698,147 +2245,56 @@ export namespace run_v1 { */ watch?: boolean; } - export interface Params$Resource$Namespaces$Configurations$Replaceconfiguration - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The name of the configuration being replaced. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Configuration; - } - export class Resource$Namespaces$Domainmappings { + export class Resource$Namespaces$Revisions { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * run.namespaces.domainmappings.create - * @desc Create a new domain mapping. - * @alias run.namespaces.domainmappings.create - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.parent The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {().DomainMapping} 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$Namespaces$Domainmappings$Create, - options?: MethodOptions - ): GaxiosPromise; - create( - params: Params$Resource$Namespaces$Domainmappings$Create, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - create( - params: Params$Resource$Namespaces$Domainmappings$Create, - callback: BodyResponseCallback - ): void; - create(callback: BodyResponseCallback): void; - create( - paramsOrCallback?: - | Params$Resource$Namespaces$Domainmappings$Create - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Domainmappings$Create; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Domainmappings$Create; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/apis/domains.cloudrun.com/v1/{+parent}/domainmappings' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * run.namespaces.domainmappings.delete - * @desc Delete a domain mapping. - * @alias run.namespaces.domainmappings.delete + * run.namespaces.revisions.delete + * @desc Delete a revision. + * @alias run.namespaces.revisions.delete * @memberOf! () * * @param {object} params Parameters for request * @param {string=} params.apiVersion Cloud Run currently ignores this parameter. * @param {string=} params.kind Cloud Run currently ignores this parameter. - * @param {string} params.name The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string} params.name The name of the revision to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * @param {string=} params.propagationPolicy Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. * @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$Namespaces$Domainmappings$Delete, + params?: Params$Resource$Namespaces$Revisions$Delete, options?: MethodOptions ): GaxiosPromise; delete( - params: Params$Resource$Namespaces$Domainmappings$Delete, + params: Params$Resource$Namespaces$Revisions$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Namespaces$Domainmappings$Delete, + params: Params$Resource$Namespaces$Revisions$Delete, callback: BodyResponseCallback ): void; delete(callback: BodyResponseCallback): void; delete( paramsOrCallback?: - | Params$Resource$Namespaces$Domainmappings$Delete + | Params$Resource$Namespaces$Revisions$Delete | BodyResponseCallback, optionsOrCallback?: MethodOptions | BodyResponseCallback, callback?: BodyResponseCallback ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Domainmappings$Delete; + {}) as Params$Resource$Namespaces$Revisions$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Domainmappings$Delete; + params = {} as Params$Resource$Namespaces$Revisions$Delete; options = {}; } @@ -2851,7 +2307,7 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+name}').replace( + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace( /([^:]\/)\/+/g, '$1' ), @@ -2872,47 +2328,45 @@ export namespace run_v1 { } /** - * run.namespaces.domainmappings.get - * @desc Get information about a domain mapping. - * @alias run.namespaces.domainmappings.get + * run.namespaces.revisions.get + * @desc Get information about a revision. + * @alias run.namespaces.revisions.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string} params.name The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or 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 */ get( - params?: Params$Resource$Namespaces$Domainmappings$Get, + params?: Params$Resource$Namespaces$Revisions$Get, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; get( - params: Params$Resource$Namespaces$Domainmappings$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Revisions$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Namespaces$Domainmappings$Get, - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Revisions$Get, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; get( paramsOrCallback?: - | Params$Resource$Namespaces$Domainmappings$Get - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { + | Params$Resource$Namespaces$Revisions$Get + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Domainmappings$Get; + {}) as Params$Resource$Namespaces$Revisions$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Domainmappings$Get; + params = {} as Params$Resource$Namespaces$Revisions$Get; options = {}; } @@ -2925,7 +2379,7 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+name}').replace( + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace( /([^:]\/)\/+/g, '$1' ), @@ -2939,16 +2393,16 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * run.namespaces.domainmappings.list - * @desc List domain mappings. - * @alias run.namespaces.domainmappings.list + * run.namespaces.revisions.list + * @desc List revisions. + * @alias run.namespaces.revisions.list * @memberOf! () * * @param {object} params Parameters for request @@ -2957,7 +2411,7 @@ export namespace run_v1 { * @param {boolean=} params.includeUninitialized Not currently used by Cloud Run. * @param {string=} params.labelSelector Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. * @param {integer=} params.limit The maximum number of records that should be returned. - * @param {string} params.parent The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string} params.parent The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * @param {string=} params.resourceVersion The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. * @param {boolean=} params.watch Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. @@ -2965,39 +2419,37 @@ export namespace run_v1 { * @return {object} Request object */ list( - params?: Params$Resource$Namespaces$Domainmappings$List, + params?: Params$Resource$Namespaces$Revisions$List, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; list( - params: Params$Resource$Namespaces$Domainmappings$List, + params: Params$Resource$Namespaces$Revisions$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Namespaces$Domainmappings$List, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Revisions$List, + callback: BodyResponseCallback ): void; + list(callback: BodyResponseCallback): void; list( paramsOrCallback?: - | Params$Resource$Namespaces$Domainmappings$List - | BodyResponseCallback, + | Params$Resource$Namespaces$Revisions$List + | BodyResponseCallback, optionsOrCallback?: | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Domainmappings$List; + {}) as Params$Resource$Namespaces$Revisions$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Domainmappings$List; + params = {} as Params$Resource$Namespaces$Revisions$List; options = {}; } @@ -3011,7 +2463,7 @@ export namespace run_v1 { options: Object.assign( { url: ( - rootUrl + '/apis/domains.cloudrun.com/v1/{+parent}/domainmappings' + rootUrl + '/apis/serving.knative.dev/v1/{+parent}/revisions' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -3023,1406 +2475,14 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest( - parameters, - callback - ); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } - /** - * run.namespaces.domainmappings.replaceDomainMapping - * @desc Replace a domain mapping. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control. - * @alias run.namespaces.domainmappings.replaceDomainMapping - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the domain mapping being retrieved. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {().DomainMapping} 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 - */ - replaceDomainMapping( - params?: Params$Resource$Namespaces$Domainmappings$Replacedomainmapping, - options?: MethodOptions - ): GaxiosPromise; - replaceDomainMapping( - params: Params$Resource$Namespaces$Domainmappings$Replacedomainmapping, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - replaceDomainMapping( - params: Params$Resource$Namespaces$Domainmappings$Replacedomainmapping, - callback: BodyResponseCallback - ): void; - replaceDomainMapping( - callback: BodyResponseCallback - ): void; - replaceDomainMapping( - paramsOrCallback?: - | Params$Resource$Namespaces$Domainmappings$Replacedomainmapping - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Domainmappings$Replacedomainmapping; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Domainmappings$Replacedomainmapping; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+name}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'PUT', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Namespaces$Domainmappings$Create - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - parent?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$DomainMapping; - } - export interface Params$Resource$Namespaces$Domainmappings$Delete - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud Run currently ignores this parameter. - */ - apiVersion?: string; - /** - * Cloud Run currently ignores this parameter. - */ - kind?: string; - /** - * The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - /** - * Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. - */ - propagationPolicy?: string; - } - export interface Params$Resource$Namespaces$Domainmappings$Get - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - } - export interface Params$Resource$Namespaces$Domainmappings$List - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Optional encoded string to continue paging. - */ - continue?: string; - /** - * Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - */ - fieldSelector?: string; - /** - * Not currently used by Cloud Run. - */ - includeUninitialized?: boolean; - /** - * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - */ - labelSelector?: string; - /** - * The maximum number of records that should be returned. - */ - limit?: number; - /** - * The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - parent?: string; - /** - * The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - */ - resourceVersion?: string; - /** - * Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. - */ - watch?: boolean; - } - export interface Params$Resource$Namespaces$Domainmappings$Replacedomainmapping - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The name of the domain mapping being retrieved. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$DomainMapping; - } - - export class Resource$Namespaces$Revisions { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * run.namespaces.revisions.delete - * @desc Delete a revision. - * @alias run.namespaces.revisions.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.apiVersion Cloud Run currently ignores this parameter. - * @param {string=} params.kind Cloud Run currently ignores this parameter. - * @param {string} params.name The name of the revision to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {string=} params.propagationPolicy Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. - * @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$Namespaces$Revisions$Delete, - options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Namespaces$Revisions$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Namespaces$Revisions$Delete, - callback: BodyResponseCallback - ): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - | Params$Resource$Namespaces$Revisions$Delete - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Revisions$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Revisions$Delete; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/apis/serving.knative.dev/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); - } - } - - /** - * run.namespaces.revisions.get - * @desc Get information about a revision. - * @alias run.namespaces.revisions.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or 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 - */ - get( - params?: Params$Resource$Namespaces$Revisions$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Namespaces$Revisions$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Namespaces$Revisions$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Namespaces$Revisions$Get - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Revisions$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Revisions$Get; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/apis/serving.knative.dev/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); - } - } - - /** - * run.namespaces.revisions.list - * @desc List revisions. - * @alias run.namespaces.revisions.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.continue Optional encoded string to continue paging. - * @param {string=} params.fieldSelector Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - * @param {boolean=} params.includeUninitialized Not currently used by Cloud Run. - * @param {string=} params.labelSelector Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - * @param {integer=} params.limit The maximum number of records that should be returned. - * @param {string} params.parent The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {string=} params.resourceVersion The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - * @param {boolean=} params.watch Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. - * @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$Namespaces$Revisions$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Namespaces$Revisions$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Namespaces$Revisions$List, - callback: BodyResponseCallback - ): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: - | Params$Resource$Namespaces$Revisions$List - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Revisions$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Revisions$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/apis/serving.knative.dev/v1/{+parent}/revisions' - ).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$Namespaces$Revisions$Delete - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud Run currently ignores this parameter. - */ - apiVersion?: string; - /** - * Cloud Run currently ignores this parameter. - */ - kind?: string; - /** - * The name of the revision to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - /** - * Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. - */ - propagationPolicy?: string; - } - export interface Params$Resource$Namespaces$Revisions$Get - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - } - export interface Params$Resource$Namespaces$Revisions$List - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Optional encoded string to continue paging. - */ - continue?: string; - /** - * Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - */ - fieldSelector?: string; - /** - * Not currently used by Cloud Run. - */ - includeUninitialized?: boolean; - /** - * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - */ - labelSelector?: string; - /** - * The maximum number of records that should be returned. - */ - limit?: number; - /** - * The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - parent?: string; - /** - * The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - */ - resourceVersion?: string; - /** - * Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. - */ - watch?: boolean; - } - - export class Resource$Namespaces$Routes { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * run.namespaces.routes.create - * @desc Create a route. - * @alias run.namespaces.routes.create - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.parent The namespace in which the route should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {().Route} 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$Namespaces$Routes$Create, - options?: MethodOptions - ): GaxiosPromise; - create( - params: Params$Resource$Namespaces$Routes$Create, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - create( - params: Params$Resource$Namespaces$Routes$Create, - callback: BodyResponseCallback - ): void; - create(callback: BodyResponseCallback): void; - create( - paramsOrCallback?: - | Params$Resource$Namespaces$Routes$Create - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Routes$Create; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Routes$Create; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/apis/serving.knative.dev/v1/{+parent}/routes' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * run.namespaces.routes.delete - * @desc Delete a route. This will cause the route to stop serving traffic. - * @alias run.namespaces.routes.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.apiVersion Cloud Run currently ignores this parameter. - * @param {string=} params.kind Cloud Run currently ignores this parameter. - * @param {string} params.name The name of the route to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {string=} params.propagationPolicy Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. - * @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$Namespaces$Routes$Delete, - options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Namespaces$Routes$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Namespaces$Routes$Delete, - callback: BodyResponseCallback - ): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - | Params$Resource$Namespaces$Routes$Delete - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Routes$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Routes$Delete; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/apis/serving.knative.dev/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); - } - } - - /** - * run.namespaces.routes.get - * @desc Get information about a route. - * @alias run.namespaces.routes.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or 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 - */ - get( - params?: Params$Resource$Namespaces$Routes$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Namespaces$Routes$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Namespaces$Routes$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Namespaces$Routes$Get - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Routes$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Routes$Get; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/apis/serving.knative.dev/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); - } - } - - /** - * run.namespaces.routes.list - * @desc List routes. - * @alias run.namespaces.routes.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.continue Optional encoded string to continue paging. - * @param {string=} params.fieldSelector Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - * @param {boolean=} params.includeUninitialized Not currently used by Cloud Run. - * @param {string=} params.labelSelector Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - * @param {integer=} params.limit The maximum number of records that should be returned. - * @param {string} params.parent The namespace from which the routes should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {string=} params.resourceVersion The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - * @param {boolean=} params.watch Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. - * @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$Namespaces$Routes$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Namespaces$Routes$List, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Namespaces$Routes$List, - callback: BodyResponseCallback - ): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: - | Params$Resource$Namespaces$Routes$List - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Routes$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Routes$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/apis/serving.knative.dev/v1/{+parent}/routes' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * run.namespaces.routes.replaceRoute - * @desc Replace a route. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control. - * @alias run.namespaces.routes.replaceRoute - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the route being replaced. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {().Route} 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 - */ - replaceRoute( - params?: Params$Resource$Namespaces$Routes$Replaceroute, - options?: MethodOptions - ): GaxiosPromise; - replaceRoute( - params: Params$Resource$Namespaces$Routes$Replaceroute, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - replaceRoute( - params: Params$Resource$Namespaces$Routes$Replaceroute, - callback: BodyResponseCallback - ): void; - replaceRoute(callback: BodyResponseCallback): void; - replaceRoute( - paramsOrCallback?: - | Params$Resource$Namespaces$Routes$Replaceroute - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Routes$Replaceroute; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Routes$Replaceroute; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'PUT', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Namespaces$Routes$Create - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The namespace in which the route should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - parent?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Route; - } - export interface Params$Resource$Namespaces$Routes$Delete - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud Run currently ignores this parameter. - */ - apiVersion?: string; - /** - * Cloud Run currently ignores this parameter. - */ - kind?: string; - /** - * The name of the route to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - /** - * Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. - */ - propagationPolicy?: string; - } - export interface Params$Resource$Namespaces$Routes$Get - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - } - export interface Params$Resource$Namespaces$Routes$List - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Optional encoded string to continue paging. - */ - continue?: string; - /** - * Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - */ - fieldSelector?: string; - /** - * Not currently used by Cloud Run. - */ - includeUninitialized?: boolean; - /** - * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - */ - labelSelector?: string; - /** - * The maximum number of records that should be returned. - */ - limit?: number; - /** - * The namespace from which the routes should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - parent?: string; - /** - * The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - */ - resourceVersion?: string; - /** - * Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. - */ - watch?: boolean; - } - export interface Params$Resource$Namespaces$Routes$Replaceroute - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The name of the route being replaced. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Route; - } - - export class Resource$Namespaces$Services { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * run.namespaces.services.create - * @desc Create a service. - * @alias run.namespaces.services.create - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.parent The namespace in which the service should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {().Service} 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$Namespaces$Services$Create, - options?: MethodOptions - ): GaxiosPromise; - create( - params: Params$Resource$Namespaces$Services$Create, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - create( - params: Params$Resource$Namespaces$Services$Create, - callback: BodyResponseCallback - ): void; - create(callback: BodyResponseCallback): void; - create( - paramsOrCallback?: - | Params$Resource$Namespaces$Services$Create - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Services$Create; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Services$Create; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/apis/serving.knative.dev/v1/{+parent}/services' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * run.namespaces.services.delete - * @desc Delete a service. This will cause the Service to stop serving traffic and will delete the child entities like Routes, Configurations and Revisions. - * @alias run.namespaces.services.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.apiVersion Cloud Run currently ignores this parameter. - * @param {string=} params.kind Cloud Run currently ignores this parameter. - * @param {string} params.name The name of the service to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {string=} params.propagationPolicy Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. - * @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$Namespaces$Services$Delete, - options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Namespaces$Services$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Namespaces$Services$Delete, - callback: BodyResponseCallback - ): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - | Params$Resource$Namespaces$Services$Delete - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Services$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Services$Delete; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/apis/serving.knative.dev/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); - } - } - - /** - * run.namespaces.services.get - * @desc Get information about a service. - * @alias run.namespaces.services.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the service to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or 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 - */ - get( - params?: Params$Resource$Namespaces$Services$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Namespaces$Services$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Namespaces$Services$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Namespaces$Services$Get - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Services$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Services$Get; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/apis/serving.knative.dev/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); - } - } - - /** - * run.namespaces.services.list - * @desc List services. - * @alias run.namespaces.services.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.continue Optional encoded string to continue paging. - * @param {string=} params.fieldSelector Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - * @param {boolean=} params.includeUninitialized Not currently used by Cloud Run. - * @param {string=} params.labelSelector Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - * @param {integer=} params.limit The maximum number of records that should be returned. - * @param {string} params.parent The namespace from which the services should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {string=} params.resourceVersion The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - * @param {boolean=} params.watch Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. - * @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$Namespaces$Services$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Namespaces$Services$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Namespaces$Services$List, - callback: BodyResponseCallback - ): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: - | Params$Resource$Namespaces$Services$List - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Services$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Services$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/apis/serving.knative.dev/v1/{+parent}/services' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * run.namespaces.services.replaceService - * @desc Replace a service. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control. - * @alias run.namespaces.services.replaceService - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the service being replaced. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {().Service} 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 - */ - replaceService( - params?: Params$Resource$Namespaces$Services$Replaceservice, - options?: MethodOptions - ): GaxiosPromise; - replaceService( - params: Params$Resource$Namespaces$Services$Replaceservice, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - replaceService( - params: Params$Resource$Namespaces$Services$Replaceservice, - callback: BodyResponseCallback - ): void; - replaceService(callback: BodyResponseCallback): void; - replaceService( - paramsOrCallback?: - | Params$Resource$Namespaces$Services$Replaceservice - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Services$Replaceservice; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Services$Replaceservice; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'PUT', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Namespaces$Services$Create - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The namespace in which the service should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - parent?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Service; - } - export interface Params$Resource$Namespaces$Services$Delete + export interface Params$Resource$Namespaces$Revisions$Delete extends StandardParameters { /** * Auth client or API Key for the request @@ -4438,7 +2498,7 @@ export namespace run_v1 { */ kind?: string; /** - * The name of the service to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * The name of the revision to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ name?: string; /** @@ -4446,7 +2506,7 @@ export namespace run_v1 { */ propagationPolicy?: string; } - export interface Params$Resource$Namespaces$Services$Get + export interface Params$Resource$Namespaces$Revisions$Get extends StandardParameters { /** * Auth client or API Key for the request @@ -4454,11 +2514,11 @@ export namespace run_v1 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * The name of the service to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ name?: string; } - export interface Params$Resource$Namespaces$Services$List + export interface Params$Resource$Namespaces$Revisions$List extends StandardParameters { /** * Auth client or API Key for the request @@ -4486,7 +2546,7 @@ export namespace run_v1 { */ limit?: number; /** - * The namespace from which the services should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ parent?: string; /** @@ -4498,301 +2558,134 @@ export namespace run_v1 { */ watch?: boolean; } - export interface Params$Resource$Namespaces$Services$Replaceservice - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The name of the service being replaced. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Service; - } - - 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 { + export class Resource$Namespaces$Routes { context: APIRequestContext; - authorizeddomains: Resource$Projects$Locations$Authorizeddomains; - autodomainmappings: Resource$Projects$Locations$Autodomainmappings; - configurations: Resource$Projects$Locations$Configurations; - domainmappings: Resource$Projects$Locations$Domainmappings; - revisions: Resource$Projects$Locations$Revisions; - routes: Resource$Projects$Locations$Routes; - services: Resource$Projects$Locations$Services; constructor(context: APIRequestContext) { this.context = context; - this.authorizeddomains = new Resource$Projects$Locations$Authorizeddomains( - this.context - ); - this.autodomainmappings = new Resource$Projects$Locations$Autodomainmappings( - this.context - ); - this.configurations = new Resource$Projects$Locations$Configurations( - this.context - ); - this.domainmappings = new Resource$Projects$Locations$Domainmappings( - this.context - ); - this.revisions = new Resource$Projects$Locations$Revisions(this.context); - this.routes = new Resource$Projects$Locations$Routes(this.context); - this.services = new Resource$Projects$Locations$Services(this.context); } /** - * run.projects.locations.get - * @desc Gets information about a location. - * @alias run.projects.locations.get + * run.namespaces.routes.get + * @desc Get information about a route. + * @alias run.namespaces.routes.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Resource name for the location. + * @param {string} params.name The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or 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 */ get( - params?: Params$Resource$Projects$Locations$Get, + params?: Params$Resource$Namespaces$Routes$Get, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; get( - params: Params$Resource$Projects$Locations$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Routes$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Locations$Get, - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Routes$Get, + callback: BodyResponseCallback ): void; - 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://run.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); - } - } - - /** - * run.projects.locations.list - * @desc Lists information about the supported locations for this service. - * @alias run.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://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+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); - } - } - } - - 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; - } + | Params$Resource$Namespaces$Routes$Get + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Namespaces$Routes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; - export class Resource$Projects$Locations$Authorizeddomains { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Namespaces$Routes$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/apis/serving.knative.dev/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); + } } /** - * run.projects.locations.authorizeddomains.list - * @desc List authorized domains. - * @alias run.projects.locations.authorizeddomains.list + * run.namespaces.routes.list + * @desc List routes. + * @alias run.namespaces.routes.list * @memberOf! () * * @param {object} params Parameters for request - * @param {integer=} params.pageSize Maximum results to return per page. - * @param {string=} params.pageToken Continuation token for fetching the next page of results. - * @param {string} params.parent Name of the parent Application resource. Example: `apps/myapp`. + * @param {string=} params.continue Optional encoded string to continue paging. + * @param {string=} params.fieldSelector Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + * @param {boolean=} params.includeUninitialized Not currently used by Cloud Run. + * @param {string=} params.labelSelector Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + * @param {integer=} params.limit The maximum number of records that should be returned. + * @param {string} params.parent The namespace from which the routes should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string=} params.resourceVersion The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. + * @param {boolean=} params.watch Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. * @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$Authorizeddomains$List, + params?: Params$Resource$Namespaces$Routes$List, options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Projects$Locations$Authorizeddomains$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; + ): GaxiosPromise; list( - params: Params$Resource$Projects$Locations$Authorizeddomains$List, - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Routes$List, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Routes$List, + callback: BodyResponseCallback ): void; + list(callback: BodyResponseCallback): void; list( paramsOrCallback?: - | Params$Resource$Projects$Locations$Authorizeddomains$List - | BodyResponseCallback, + | Params$Resource$Namespaces$Routes$List + | BodyResponseCallback, optionsOrCallback?: | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Authorizeddomains$List; + {}) as Params$Resource$Namespaces$Routes$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Authorizeddomains$List; + params = {} as Params$Resource$Namespaces$Routes$List; options = {}; } @@ -4805,10 +2698,9 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/authorizeddomains').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: ( + rootUrl + '/apis/serving.knative.dev/v1/{+parent}/routes' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options @@ -4819,19 +2711,14 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest( - parameters, - callback - ); + createAPIRequest(parameters, callback); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } } - export interface Params$Resource$Projects$Locations$Authorizeddomains$List + export interface Params$Resource$Namespaces$Routes$Get extends StandardParameters { /** * Auth client or API Key for the request @@ -4839,68 +2726,98 @@ export namespace run_v1 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * Maximum results to return per page. + * The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ - pageSize?: number; + name?: string; + } + export interface Params$Resource$Namespaces$Routes$List + extends StandardParameters { /** - * Continuation token for fetching the next page of results. + * Auth client or API Key for the request */ - pageToken?: string; + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + /** - * Name of the parent Application resource. Example: `apps/myapp`. + * Optional encoded string to continue paging. + */ + continue?: string; + /** + * Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + */ + fieldSelector?: string; + /** + * Not currently used by Cloud Run. + */ + includeUninitialized?: boolean; + /** + * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + */ + labelSelector?: string; + /** + * The maximum number of records that should be returned. + */ + limit?: number; + /** + * The namespace from which the routes should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ parent?: string; + /** + * The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. + */ + resourceVersion?: string; + /** + * Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. + */ + watch?: boolean; } - export class Resource$Projects$Locations$Autodomainmappings { + export class Resource$Namespaces$Services { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * run.projects.locations.autodomainmappings.create - * @desc Creates a new auto domain mapping. - * @alias run.projects.locations.autodomainmappings.create + * run.namespaces.services.create + * @desc Create a service. + * @alias run.namespaces.services.create * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.parent The project ID or project number in which this auto domain mapping should be created. - * @param {().AutoDomainMapping} params.resource Request body data + * @param {string} params.parent The namespace in which the service should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {().Service} params.requestBody 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$Autodomainmappings$Create, + params?: Params$Resource$Namespaces$Services$Create, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; create( - params: Params$Resource$Projects$Locations$Autodomainmappings$Create, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Services$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; create( - params: Params$Resource$Projects$Locations$Autodomainmappings$Create, - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Services$Create, + callback: BodyResponseCallback ): void; - create(callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( paramsOrCallback?: - | Params$Resource$Projects$Locations$Autodomainmappings$Create - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { + | Params$Resource$Namespaces$Services$Create + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Autodomainmappings$Create; + {}) as Params$Resource$Namespaces$Services$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Autodomainmappings$Create; + params = {} as Params$Resource$Namespaces$Services$Create; options = {}; } @@ -4913,10 +2830,9 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/autodomainmappings').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: ( + rootUrl + '/apis/serving.knative.dev/v1/{+parent}/services' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options @@ -4927,55 +2843,55 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * run.projects.locations.autodomainmappings.delete - * @desc Delete an auto domain mapping. - * @alias run.projects.locations.autodomainmappings.delete + * run.namespaces.services.delete + * @desc Delete a service. This will cause the Service to stop serving traffic and will delete the child entities like Routes, Configurations and Revisions. + * @alias run.namespaces.services.delete * @memberOf! () * * @param {object} params Parameters for request * @param {string=} params.apiVersion Cloud Run currently ignores this parameter. * @param {string=} params.kind Cloud Run currently ignores this parameter. - * @param {string} params.name The name of the auto domain mapping being deleted. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string} params.name The name of the service to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * @param {string=} params.propagationPolicy Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. * @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$Autodomainmappings$Delete, + params?: Params$Resource$Namespaces$Services$Delete, options?: MethodOptions ): GaxiosPromise; delete( - params: Params$Resource$Projects$Locations$Autodomainmappings$Delete, + params: Params$Resource$Namespaces$Services$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Projects$Locations$Autodomainmappings$Delete, + params: Params$Resource$Namespaces$Services$Delete, callback: BodyResponseCallback ): void; delete(callback: BodyResponseCallback): void; delete( paramsOrCallback?: - | Params$Resource$Projects$Locations$Autodomainmappings$Delete + | Params$Resource$Namespaces$Services$Delete | BodyResponseCallback, optionsOrCallback?: MethodOptions | BodyResponseCallback, callback?: BodyResponseCallback ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Autodomainmappings$Delete; + {}) as Params$Resource$Namespaces$Services$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Autodomainmappings$Delete; + params = {} as Params$Resource$Namespaces$Services$Delete; options = {}; } @@ -4988,7 +2904,10 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace( + /([^:]\/)\/+/g, + '$1' + ), method: 'DELETE', }, options @@ -5006,47 +2925,45 @@ export namespace run_v1 { } /** - * run.projects.locations.autodomainmappings.get - * @desc Get information about an auto domain mapping. - * @alias run.projects.locations.autodomainmappings.get + * run.namespaces.services.get + * @desc Get information about a service. + * @alias run.namespaces.services.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name of the auto domain mapping being retrieved. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string} params.name The name of the service to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or 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 */ get( - params?: Params$Resource$Projects$Locations$Autodomainmappings$Get, + params?: Params$Resource$Namespaces$Services$Get, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; get( - params: Params$Resource$Projects$Locations$Autodomainmappings$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Services$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Locations$Autodomainmappings$Get, - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Services$Get, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; get( paramsOrCallback?: - | Params$Resource$Projects$Locations$Autodomainmappings$Get - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { + | Params$Resource$Namespaces$Services$Get + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Autodomainmappings$Get; + {}) as Params$Resource$Namespaces$Services$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Autodomainmappings$Get; + params = {} as Params$Resource$Namespaces$Services$Get; options = {}; } @@ -5059,7 +2976,10 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace( + /([^:]\/)\/+/g, + '$1' + ), method: 'GET', }, options @@ -5070,16 +2990,16 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * run.projects.locations.autodomainmappings.list - * @desc List auto domain mappings. - * @alias run.projects.locations.autodomainmappings.list + * run.namespaces.services.list + * @desc List services. + * @alias run.namespaces.services.list * @memberOf! () * * @param {object} params Parameters for request @@ -5088,7 +3008,7 @@ export namespace run_v1 { * @param {boolean=} params.includeUninitialized Not currently used by Cloud Run. * @param {string=} params.labelSelector Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. * @param {integer=} params.limit The maximum number of records that should be returned. - * @param {string} params.parent The project ID or project number from which the auto domain mappings should be listed. + * @param {string} params.parent The namespace from which the services should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * @param {string=} params.resourceVersion The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. * @param {boolean=} params.watch Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. @@ -5096,39 +3016,37 @@ export namespace run_v1 { * @return {object} Request object */ list( - params?: Params$Resource$Projects$Locations$Autodomainmappings$List, + params?: Params$Resource$Namespaces$Services$List, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; list( - params: Params$Resource$Projects$Locations$Autodomainmappings$List, + params: Params$Resource$Namespaces$Services$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Projects$Locations$Autodomainmappings$List, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Services$List, + callback: BodyResponseCallback ): void; + list(callback: BodyResponseCallback): void; list( paramsOrCallback?: - | Params$Resource$Projects$Locations$Autodomainmappings$List - | BodyResponseCallback, + | Params$Resource$Namespaces$Services$List + | BodyResponseCallback, optionsOrCallback?: | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Autodomainmappings$List; + {}) as Params$Resource$Namespaces$Services$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Autodomainmappings$List; + params = {} as Params$Resource$Namespaces$Services$List; options = {}; } @@ -5141,10 +3059,9 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/autodomainmappings').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: ( + rootUrl + '/apis/serving.knative.dev/v1/{+parent}/services' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options @@ -5153,64 +3070,55 @@ export namespace run_v1 { requiredParams: ['parent'], pathParams: ['parent'], context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback - ); + }; + if (callback) { + createAPIRequest(parameters, callback); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } /** - * run.projects.locations.autodomainmappings.replaceAutoDomainMapping - * @desc Replace an auto domain mapping. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control. - * @alias run.projects.locations.autodomainmappings.replaceAutoDomainMapping + * run.namespaces.services.replaceService + * @desc Replace a service. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control. + * @alias run.namespaces.services.replaceService * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name of the auto domain mapping being retrieved. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {().AutoDomainMapping} params.resource Request body data + * @param {string} params.name The name of the service being replaced. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {().Service} params.requestBody 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 */ - replaceAutoDomainMapping( - params?: Params$Resource$Projects$Locations$Autodomainmappings$Replaceautodomainmapping, + replaceService( + params?: Params$Resource$Namespaces$Services$Replaceservice, options?: MethodOptions - ): GaxiosPromise; - replaceAutoDomainMapping( - params: Params$Resource$Projects$Locations$Autodomainmappings$Replaceautodomainmapping, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - replaceAutoDomainMapping( - params: Params$Resource$Projects$Locations$Autodomainmappings$Replaceautodomainmapping, - callback: BodyResponseCallback + ): GaxiosPromise; + replaceService( + params: Params$Resource$Namespaces$Services$Replaceservice, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - replaceAutoDomainMapping( - callback: BodyResponseCallback + replaceService( + params: Params$Resource$Namespaces$Services$Replaceservice, + callback: BodyResponseCallback ): void; - replaceAutoDomainMapping( + replaceService(callback: BodyResponseCallback): void; + replaceService( paramsOrCallback?: - | Params$Resource$Projects$Locations$Autodomainmappings$Replaceautodomainmapping - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { + | Params$Resource$Namespaces$Services$Replaceservice + | BodyResponseCallback, + optionsOrCallback?: MethodOptions | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Autodomainmappings$Replaceautodomainmapping; + {}) as Params$Resource$Namespaces$Services$Replaceservice; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Autodomainmappings$Replaceautodomainmapping; + params = {} as Params$Resource$Namespaces$Services$Replaceservice; options = {}; } @@ -5223,7 +3131,10 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace( + /([^:]\/)\/+/g, + '$1' + ), method: 'PUT', }, options @@ -5234,14 +3145,14 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } } - export interface Params$Resource$Projects$Locations$Autodomainmappings$Create + export interface Params$Resource$Namespaces$Services$Create extends StandardParameters { /** * Auth client or API Key for the request @@ -5249,16 +3160,16 @@ export namespace run_v1 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * The project ID or project number in which this auto domain mapping should be created. + * The namespace in which the service should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ parent?: string; /** * Request body metadata */ - requestBody?: Schema$AutoDomainMapping; + requestBody?: Schema$Service; } - export interface Params$Resource$Projects$Locations$Autodomainmappings$Delete + export interface Params$Resource$Namespaces$Services$Delete extends StandardParameters { /** * Auth client or API Key for the request @@ -5274,7 +3185,7 @@ export namespace run_v1 { */ kind?: string; /** - * The name of the auto domain mapping being deleted. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * The name of the service to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ name?: string; /** @@ -5282,7 +3193,7 @@ export namespace run_v1 { */ propagationPolicy?: string; } - export interface Params$Resource$Projects$Locations$Autodomainmappings$Get + export interface Params$Resource$Namespaces$Services$Get extends StandardParameters { /** * Auth client or API Key for the request @@ -5290,11 +3201,11 @@ export namespace run_v1 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * The name of the auto domain mapping being retrieved. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * The name of the service to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ name?: string; } - export interface Params$Resource$Projects$Locations$Autodomainmappings$List + export interface Params$Resource$Namespaces$Services$List extends StandardParameters { /** * Auth client or API Key for the request @@ -5322,7 +3233,7 @@ export namespace run_v1 { */ limit?: number; /** - * The project ID or project number from which the auto domain mappings should be listed. + * The namespace from which the services should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ parent?: string; /** @@ -5334,7 +3245,7 @@ export namespace run_v1 { */ watch?: boolean; } - export interface Params$Resource$Projects$Locations$Autodomainmappings$Replaceautodomainmapping + export interface Params$Resource$Namespaces$Services$Replaceservice extends StandardParameters { /** * Auth client or API Key for the request @@ -5342,65 +3253,165 @@ export namespace run_v1 { auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; /** - * The name of the auto domain mapping being retrieved. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * The name of the service being replaced. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ name?: string; /** * Request body metadata */ - requestBody?: Schema$AutoDomainMapping; + requestBody?: Schema$Service; } - export class Resource$Projects$Locations$Configurations { + 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; + authorizeddomains: Resource$Projects$Locations$Authorizeddomains; + configurations: Resource$Projects$Locations$Configurations; + domainmappings: Resource$Projects$Locations$Domainmappings; + revisions: Resource$Projects$Locations$Revisions; + routes: Resource$Projects$Locations$Routes; + services: Resource$Projects$Locations$Services; constructor(context: APIRequestContext) { this.context = context; + this.authorizeddomains = new Resource$Projects$Locations$Authorizeddomains( + this.context + ); + this.configurations = new Resource$Projects$Locations$Configurations( + this.context + ); + this.domainmappings = new Resource$Projects$Locations$Domainmappings( + this.context + ); + this.revisions = new Resource$Projects$Locations$Revisions(this.context); + this.routes = new Resource$Projects$Locations$Routes(this.context); + this.services = new Resource$Projects$Locations$Services(this.context); } /** - * run.projects.locations.configurations.create - * @desc Create a configuration. - * @alias run.projects.locations.configurations.create + * run.projects.locations.get + * @desc Gets information about a location. + * @alias run.projects.locations.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.parent The namespace in which the configuration should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {().Configuration} params.resource Request body data + * @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 */ - create( - params?: Params$Resource$Projects$Locations$Configurations$Create, + get( + params?: Params$Resource$Projects$Locations$Get, options?: MethodOptions - ): GaxiosPromise; - create( - params: Params$Resource$Projects$Locations$Configurations$Create, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + ): GaxiosPromise; + get( + params: Params$Resource$Projects$Locations$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - create( - params: Params$Resource$Projects$Locations$Configurations$Create, - callback: BodyResponseCallback + get( + params: Params$Resource$Projects$Locations$Get, + callback: BodyResponseCallback ): void; - create(callback: BodyResponseCallback): void; - create( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Projects$Locations$Configurations$Create - | BodyResponseCallback, + | 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://run.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); + } + } + + /** + * run.projects.locations.list + * @desc Lists information about the supported locations for this service. + * @alias run.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 { + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Configurations$Create; + {}) as Params$Resource$Projects$Locations$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Configurations$Create; + params = {} as Params$Resource$Projects$Locations$List; options = {}; } @@ -5413,69 +3424,118 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/configurations').replace( + url: (rootUrl + '/v1/{+name}/locations').replace( /([^:]\/)\/+/g, '$1' ), - method: 'POST', + method: 'GET', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + 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 class Resource$Projects$Locations$Authorizeddomains { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } /** - * run.projects.locations.configurations.delete - * @desc delete a configuration. This will cause the configuration to delete all child revisions. Prior to calling this, any route referencing the configuration (or revision from the configuration) must be deleted. - * @alias run.projects.locations.configurations.delete + * run.projects.locations.authorizeddomains.list + * @desc List authorized domains. + * @alias run.projects.locations.authorizeddomains.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.apiVersion Cloud Run currently ignores this parameter. - * @param {string=} params.kind Cloud Run currently ignores this parameter. - * @param {string} params.name The name of the configuration to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {string=} params.propagationPolicy Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. + * @param {integer=} params.pageSize Maximum results to return per page. + * @param {string=} params.pageToken Continuation token for fetching the next page of results. + * @param {string} params.parent Name of the parent Application resource. Example: `apps/myapp`. * @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$Configurations$Delete, + list( + params?: Params$Resource$Projects$Locations$Authorizeddomains$List, options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Projects$Locations$Configurations$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + ): GaxiosPromise; + list( + params: Params$Resource$Projects$Locations$Authorizeddomains$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Projects$Locations$Configurations$Delete, - callback: BodyResponseCallback + list( + params: Params$Resource$Projects$Locations$Authorizeddomains$List, + callback: BodyResponseCallback ): void; - delete(callback: BodyResponseCallback): void; - delete( + list( + callback: BodyResponseCallback + ): void; + list( paramsOrCallback?: - | Params$Resource$Projects$Locations$Configurations$Delete - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { + | Params$Resource$Projects$Locations$Authorizeddomains$List + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Configurations$Delete; + {}) as Params$Resource$Projects$Locations$Authorizeddomains$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Configurations$Delete; + params = {} as Params$Resource$Projects$Locations$Authorizeddomains$List; options = {}; } @@ -5488,22 +3548,58 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/authorizeddomains').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', }, options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest( + parameters, + callback + ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } + } + + export interface Params$Resource$Projects$Locations$Authorizeddomains$List + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * Name of the parent Application resource. Example: `apps/myapp`. + */ + parent?: string; + } + + export class Resource$Projects$Locations$Configurations { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } /** * run.projects.locations.configurations.get @@ -5663,123 +3759,8 @@ export namespace run_v1 { return createAPIRequest(parameters); } } - - /** - * run.projects.locations.configurations.replaceConfiguration - * @desc Replace a configuration. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control. - * @alias run.projects.locations.configurations.replaceConfiguration - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the configuration being replaced. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {().Configuration} 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 - */ - replaceConfiguration( - params?: Params$Resource$Projects$Locations$Configurations$Replaceconfiguration, - options?: MethodOptions - ): GaxiosPromise; - replaceConfiguration( - params: Params$Resource$Projects$Locations$Configurations$Replaceconfiguration, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - replaceConfiguration( - params: Params$Resource$Projects$Locations$Configurations$Replaceconfiguration, - callback: BodyResponseCallback - ): void; - replaceConfiguration( - callback: BodyResponseCallback - ): void; - replaceConfiguration( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Configurations$Replaceconfiguration - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Configurations$Replaceconfiguration; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Configurations$Replaceconfiguration; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Projects$Locations$Configurations$Create - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The namespace in which the configuration should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - parent?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Configuration; } - export interface Params$Resource$Projects$Locations$Configurations$Delete - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - /** - * Cloud Run currently ignores this parameter. - */ - apiVersion?: string; - /** - * Cloud Run currently ignores this parameter. - */ - kind?: string; - /** - * The name of the configuration to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - /** - * Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. - */ - propagationPolicy?: string; - } export interface Params$Resource$Projects$Locations$Configurations$Get extends StandardParameters { /** @@ -5832,23 +3813,6 @@ export namespace run_v1 { */ watch?: boolean; } - export interface Params$Resource$Projects$Locations$Configurations$Replaceconfiguration - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The name of the configuration being replaced. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Configuration; - } export class Resource$Projects$Locations$Domainmappings { context: APIRequestContext; @@ -5864,7 +3828,7 @@ export namespace run_v1 { * * @param {object} params Parameters for request * @param {string} params.parent The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {().DomainMapping} params.resource Request body data + * @param {().DomainMapping} params.requestBody 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 @@ -6141,98 +4105,24 @@ export namespace run_v1 { { url: (rootUrl + '/v1/{+parent}/domainmappings').replace( /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * run.projects.locations.domainmappings.replaceDomainMapping - * @desc Replace a domain mapping. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control. - * @alias run.projects.locations.domainmappings.replaceDomainMapping - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the domain mapping being retrieved. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {().DomainMapping} 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 - */ - replaceDomainMapping( - params?: Params$Resource$Projects$Locations$Domainmappings$Replacedomainmapping, - options?: MethodOptions - ): GaxiosPromise; - replaceDomainMapping( - params: Params$Resource$Projects$Locations$Domainmappings$Replacedomainmapping, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - replaceDomainMapping( - params: Params$Resource$Projects$Locations$Domainmappings$Replacedomainmapping, - callback: BodyResponseCallback - ): void; - replaceDomainMapping( - callback: BodyResponseCallback - ): void; - replaceDomainMapping( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Domainmappings$Replacedomainmapping - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Domainmappings$Replacedomainmapping; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Domainmappings$Replacedomainmapping; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + '$1' + ), + method: 'GET', }, options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest( + parameters, + callback + ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } } @@ -6330,23 +4220,6 @@ export namespace run_v1 { */ watch?: boolean; } - export interface Params$Resource$Projects$Locations$Domainmappings$Replacedomainmapping - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The name of the domain mapping being retrieved. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$DomainMapping; - } export class Resource$Projects$Locations$Revisions { context: APIRequestContext; @@ -6662,151 +4535,6 @@ export namespace run_v1 { this.context = context; } - /** - * run.projects.locations.routes.create - * @desc Create a route. - * @alias run.projects.locations.routes.create - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.parent The namespace in which the route should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {().Route} 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$Routes$Create, - options?: MethodOptions - ): GaxiosPromise; - create( - params: Params$Resource$Projects$Locations$Routes$Create, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - create( - params: Params$Resource$Projects$Locations$Routes$Create, - callback: BodyResponseCallback - ): void; - create(callback: BodyResponseCallback): void; - create( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Routes$Create - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Routes$Create; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Routes$Create; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+parent}/routes').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * run.projects.locations.routes.delete - * @desc Delete a route. This will cause the route to stop serving traffic. - * @alias run.projects.locations.routes.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.apiVersion Cloud Run currently ignores this parameter. - * @param {string=} params.kind Cloud Run currently ignores this parameter. - * @param {string} params.name The name of the route to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {string=} params.propagationPolicy Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. - * @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$Routes$Delete, - options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Projects$Locations$Routes$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Projects$Locations$Routes$Delete, - callback: BodyResponseCallback - ): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Routes$Delete - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Routes$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Routes$Delete; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.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); - } - } - /** * run.projects.locations.routes.get * @desc Get information about a route. @@ -6956,119 +4684,8 @@ export namespace run_v1 { return createAPIRequest(parameters); } } - - /** - * run.projects.locations.routes.replaceRoute - * @desc Replace a route. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control. - * @alias run.projects.locations.routes.replaceRoute - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the route being replaced. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {().Route} 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 - */ - replaceRoute( - params?: Params$Resource$Projects$Locations$Routes$Replaceroute, - options?: MethodOptions - ): GaxiosPromise; - replaceRoute( - params: Params$Resource$Projects$Locations$Routes$Replaceroute, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - replaceRoute( - params: Params$Resource$Projects$Locations$Routes$Replaceroute, - callback: BodyResponseCallback - ): void; - replaceRoute(callback: BodyResponseCallback): void; - replaceRoute( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Routes$Replaceroute - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Routes$Replaceroute; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Routes$Replaceroute; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Projects$Locations$Routes$Create - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The namespace in which the route should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - parent?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Route; } - export interface Params$Resource$Projects$Locations$Routes$Delete - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - /** - * Cloud Run currently ignores this parameter. - */ - apiVersion?: string; - /** - * Cloud Run currently ignores this parameter. - */ - kind?: string; - /** - * The name of the route to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - /** - * Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. - */ - propagationPolicy?: string; - } export interface Params$Resource$Projects$Locations$Routes$Get extends StandardParameters { /** @@ -7121,23 +4738,6 @@ export namespace run_v1 { */ watch?: boolean; } - export interface Params$Resource$Projects$Locations$Routes$Replaceroute - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The name of the route being replaced. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Route; - } export class Resource$Projects$Locations$Services { context: APIRequestContext; @@ -7153,7 +4753,7 @@ export namespace run_v1 { * * @param {object} params Parameters for request * @param {string} params.parent The namespace in which the service should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {().Service} params.resource Request body data + * @param {().Service} params.requestBody 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 @@ -7523,7 +5123,7 @@ export namespace run_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the service being replaced. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {().Service} params.resource Request body data + * @param {().Service} params.requestBody 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 @@ -7593,7 +5193,7 @@ export namespace run_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -7666,7 +5266,7 @@ export namespace run_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 diff --git a/src/apis/run/v1alpha1.ts b/src/apis/run/v1alpha1.ts index c9da5ab4c51..980cb58cdf5 100644 --- a/src/apis/run/v1alpha1.ts +++ b/src/apis/run/v1alpha1.ts @@ -1291,11 +1291,11 @@ export namespace run_v1alpha1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -2124,6 +2124,9 @@ export namespace run_v1alpha1 { source?: string | null; type?: string | null; } + /** + * Deprecated, importer specification will be available via GcpImporterDao. + */ export interface Schema$TriggerImporterSpec { /** * Arguments to use for the importer. These must match the parameters in the EventType's importer. @@ -2147,7 +2150,7 @@ export namespace run_v1alpha1 { */ filter?: Schema$TriggerFilter; /** - * Specification of the importers that will provide events to the trigger. Note, for Cloud Run, the importers will only be used if a filter is not specified. + * Deprecated, importer specification will be replaced by information stored in GcpImporterDao. */ importers?: Schema$TriggerImporterSpec[]; /** @@ -2601,7 +2604,7 @@ export namespace run_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.parent The project ID or project number in which this domain mapping should be created. - * @param {().DomainMapping} params.resource Request body data + * @param {().DomainMapping} params.requestBody 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 @@ -3233,7 +3236,7 @@ export namespace run_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.parent The project ID or project number in which this pubsub should be created. - * @param {().PubSub} params.resource Request body data + * @param {().PubSub} params.requestBody 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 @@ -3532,7 +3535,7 @@ export namespace run_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the pubsub being retrieved. If needed, replace {namespace_id} with the project ID. - * @param {().PubSub} params.resource Request body data + * @param {().PubSub} params.requestBody 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 @@ -4249,7 +4252,7 @@ export namespace run_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.parent The project ID or project number in which this service should be created. - * @param {().Service} params.resource Request body data + * @param {().Service} params.requestBody 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 @@ -4549,7 +4552,7 @@ export namespace run_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the service being replaced. If needed, replace {namespace_id} with the project ID. - * @param {().Service} params.resource Request body data + * @param {().Service} params.requestBody 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 @@ -4743,7 +4746,7 @@ export namespace run_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.parent The project ID or project number in which this trigger should be created. - * @param {().Trigger} params.resource Request body data + * @param {().Trigger} params.requestBody 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 @@ -5042,7 +5045,7 @@ export namespace run_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the trigger being retrieved. If needed, replace {namespace_id} with the project ID. - * @param {().Trigger} params.resource Request body data + * @param {().Trigger} params.requestBody 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 @@ -5710,7 +5713,7 @@ export namespace run_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.parent The project ID or project number in which this domain mapping should be created. - * @param {().DomainMapping} params.resource Request body data + * @param {().DomainMapping} params.requestBody 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 @@ -6336,7 +6339,7 @@ export namespace run_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.parent The project ID or project number in which this pubsub should be created. - * @param {().PubSub} params.resource Request body data + * @param {().PubSub} params.requestBody 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 @@ -6631,7 +6634,7 @@ export namespace run_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the pubsub being retrieved. If needed, replace {namespace_id} with the project ID. - * @param {().PubSub} params.resource Request body data + * @param {().PubSub} params.requestBody 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 @@ -7342,7 +7345,7 @@ export namespace run_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.parent The project ID or project number in which this service should be created. - * @param {().Service} params.resource Request body data + * @param {().Service} params.requestBody 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 @@ -7713,7 +7716,7 @@ export namespace run_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the service being replaced. If needed, replace {namespace_id} with the project ID. - * @param {().Service} params.resource Request body data + * @param {().Service} params.requestBody 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 @@ -7783,7 +7786,7 @@ export namespace run_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -7856,7 +7859,7 @@ export namespace run_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -8110,7 +8113,7 @@ export namespace run_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.parent The project ID or project number in which this trigger should be created. - * @param {().Trigger} params.resource Request body data + * @param {().Trigger} params.requestBody 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 @@ -8407,7 +8410,7 @@ export namespace run_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the trigger being retrieved. If needed, replace {namespace_id} with the project ID. - * @param {().Trigger} params.resource Request body data + * @param {().Trigger} params.requestBody 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 diff --git a/src/apis/runtimeconfig/v1.ts b/src/apis/runtimeconfig/v1.ts index 5f2066f1105..b9bbc39df59 100644 --- a/src/apis/runtimeconfig/v1.ts +++ b/src/apis/runtimeconfig/v1.ts @@ -193,7 +193,7 @@ export namespace runtimeconfig_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the operation resource to be cancelled. - * @param {().CancelOperationRequest} params.resource Request body data + * @param {().CancelOperationRequest} params.requestBody 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 diff --git a/src/apis/runtimeconfig/v1beta1.ts b/src/apis/runtimeconfig/v1beta1.ts index 9d361994d5e..234cb3b27f8 100644 --- a/src/apis/runtimeconfig/v1beta1.ts +++ b/src/apis/runtimeconfig/v1beta1.ts @@ -252,11 +252,11 @@ export namespace runtimeconfig_v1beta1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -415,7 +415,7 @@ export namespace runtimeconfig_v1beta1 { * @param {object} params Parameters for request * @param {string} params.parent The [project ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=6158848) for this request, in the format `projects/[PROJECT_ID]`. * @param {string=} params.requestId An optional but recommended unique `request_id`. If the server receives two `create()` requests with the same `request_id`, then the second request will be ignored and the first resource created and stored in the backend is returned. Empty `request_id` fields are ignored. It is responsibility of the client to ensure uniqueness of the `request_id` strings. `request_id` strings are limited to 64 characters. - * @param {().RuntimeConfig} params.resource Request body data + * @param {().RuntimeConfig} params.requestBody 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 @@ -784,7 +784,7 @@ export namespace runtimeconfig_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -858,7 +858,7 @@ export namespace runtimeconfig_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -941,7 +941,7 @@ export namespace runtimeconfig_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the RuntimeConfig resource to update, in the format: `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` - * @param {().RuntimeConfig} params.resource Request body data + * @param {().RuntimeConfig} params.requestBody 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 @@ -1226,7 +1226,7 @@ export namespace runtimeconfig_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -1347,7 +1347,7 @@ export namespace runtimeconfig_v1beta1 { * @param {object} params Parameters for request * @param {string} params.parent The path to the RutimeConfig resource that this variable should belong to. The configuration must exist beforehand; the path must be in the format: `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` * @param {string=} params.requestId An optional but recommended unique `request_id`. If the server receives two `create()` requests with the same `request_id`, then the second request will be ignored and the first resource created and stored in the backend is returned. Empty `request_id` fields are ignored. It is responsibility of the client to ensure uniqueness of the `request_id` strings. `request_id` strings are limited to 64 characters. - * @param {().Variable} params.resource Request body data + * @param {().Variable} params.requestBody 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 @@ -1643,7 +1643,7 @@ export namespace runtimeconfig_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -1726,7 +1726,7 @@ export namespace runtimeconfig_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the variable to update, in the format: `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]` - * @param {().Variable} params.resource Request body data + * @param {().Variable} params.requestBody 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 @@ -1797,7 +1797,7 @@ export namespace runtimeconfig_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the variable to watch, in the format: `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` - * @param {().WatchVariableRequest} params.resource Request body data + * @param {().WatchVariableRequest} params.requestBody 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 @@ -2008,7 +2008,7 @@ export namespace runtimeconfig_v1beta1 { * @param {object} params Parameters for request * @param {string} params.parent The path to the configuration that will own the waiter. The configuration must exist beforehand; the path must be in the format: `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`. * @param {string=} params.requestId An optional but recommended unique `request_id`. If the server receives two `create()` requests with the same `request_id`, then the second request will be ignored and the first resource created and stored in the backend is returned. Empty `request_id` fields are ignored. It is responsibility of the client to ensure uniqueness of the `request_id` strings. `request_id` strings are limited to 64 characters. - * @param {().Waiter} params.resource Request body data + * @param {().Waiter} params.requestBody 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 @@ -2301,7 +2301,7 @@ export namespace runtimeconfig_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 diff --git a/src/apis/safebrowsing/v4.ts b/src/apis/safebrowsing/v4.ts index 69bbcf593ee..e13dc358c15 100644 --- a/src/apis/safebrowsing/v4.ts +++ b/src/apis/safebrowsing/v4.ts @@ -792,7 +792,7 @@ export namespace safebrowsing_v4 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().FindFullHashesRequest} params.resource Request body data + * @param {().FindFullHashesRequest} params.requestBody 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 @@ -886,7 +886,7 @@ export namespace safebrowsing_v4 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().ThreatHit} params.resource Request body data + * @param {().ThreatHit} params.requestBody 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 @@ -1060,7 +1060,7 @@ export namespace safebrowsing_v4 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().FetchThreatListUpdatesRequest} params.resource Request body data + * @param {().FetchThreatListUpdatesRequest} params.requestBody 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 @@ -1163,7 +1163,7 @@ export namespace safebrowsing_v4 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().FindThreatMatchesRequest} params.resource Request body data + * @param {().FindThreatMatchesRequest} params.requestBody 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 diff --git a/src/apis/script/v1.ts b/src/apis/script/v1.ts index 3bbf130d8e7..8169428652f 100644 --- a/src/apis/script/v1.ts +++ b/src/apis/script/v1.ts @@ -1012,7 +1012,7 @@ export namespace script_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().CreateProjectRequest} params.resource Request body data + * @param {().CreateProjectRequest} params.requestBody 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 @@ -1299,7 +1299,7 @@ export namespace script_v1 { * * @param {object} params Parameters for request * @param {string} params.scriptId The script project's Drive ID. - * @param {().Content} params.resource Request body data + * @param {().Content} params.requestBody 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 @@ -1455,7 +1455,7 @@ export namespace script_v1 { * * @param {object} params Parameters for request * @param {string} params.scriptId The script project's Drive ID. - * @param {().DeploymentConfig} params.resource Request body data + * @param {().DeploymentConfig} params.requestBody 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 @@ -1755,7 +1755,7 @@ export namespace script_v1 { * @param {object} params Parameters for request * @param {string} params.deploymentId The deployment ID for this deployment. * @param {string} params.scriptId The script project's Drive ID. - * @param {().UpdateDeploymentRequest} params.resource Request body data + * @param {().UpdateDeploymentRequest} params.requestBody 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 @@ -1927,7 +1927,7 @@ export namespace script_v1 { * * @param {object} params Parameters for request * @param {string} params.scriptId The script project's Drive ID. - * @param {().Version} params.resource Request body data + * @param {().Version} params.requestBody 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 @@ -2211,7 +2211,7 @@ export namespace script_v1 { * * @param {object} params Parameters for request * @param {string} params.scriptId The script ID of the script to be executed. To find the script ID, open the project in the script editor and select **File > Project properties**. - * @param {().ExecutionRequest} params.resource Request body data + * @param {().ExecutionRequest} params.requestBody 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 diff --git a/src/apis/searchconsole/v1.ts b/src/apis/searchconsole/v1.ts index 40c85f16bb8..3a435401fe0 100644 --- a/src/apis/searchconsole/v1.ts +++ b/src/apis/searchconsole/v1.ts @@ -231,7 +231,7 @@ export namespace searchconsole_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().RunMobileFriendlyTestRequest} params.resource Request body data + * @param {().RunMobileFriendlyTestRequest} params.requestBody 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 diff --git a/src/apis/securitycenter/v1.ts b/src/apis/securitycenter/v1.ts index 402e4f07a96..62af6bee0eb 100644 --- a/src/apis/securitycenter/v1.ts +++ b/src/apis/securitycenter/v1.ts @@ -258,7 +258,7 @@ export namespace securitycenter_v1 { */ parent?: string | null; /** - * The full resource name of the Google Cloud Platform (GCP) resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name This field is immutable after creation time. + * For findings on Google Cloud Platform (GCP) resources, the full resource name of the GCP resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-GCP resource, the resourceName can be a customer or partner defined string. This field is immutable after creation time. */ resourceName?: string | null; /** @@ -503,6 +503,10 @@ export namespace securitycenter_v1 { * Finding matching the search request. */ finding?: Schema$Finding; + /** + * Output only. Resource that is associated with this finding. + */ + resource?: Schema$Resource; /** * State change of the finding between the points in time. */ @@ -589,14 +593,39 @@ export namespace securitycenter_v1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } + /** + * Information related to the Google Cloud Platform (GCP) resource that is associated with this finding. + */ + export interface Schema$Resource { + /** + * The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name + */ + name?: string | null; + /** + * The human readable name of resource's parent. + */ + parentDisplayName?: string | null; + /** + * The full resource name of resource's parent. + */ + parentName?: string | null; + /** + * The human readable name of project that the resource belongs to. + */ + projectDisplayName?: string | null; + /** + * The full resource name of project that the resource belongs to. + */ + projectName?: string | null; + } /** * Request message for running asset discovery for an organization. */ @@ -631,7 +660,7 @@ export namespace securitycenter_v1 { */ export interface Schema$SecurityMarks { /** - * Mutable user specified security marks belonging to the parent resource. Constraints are as follows: - Keys and values are treated as case insensitive - Keys must be between 1 - 256 characters (inclusive) - Keys must be letters, numbers, underscores, or dashes - Values have leading and trailing whitespace trimmed, remaining characters must be between 1 - 4096 characters (inclusive) + * Mutable user specified security marks belonging to the parent resource. Constraints are as follows: * Keys and values are treated as case insensitive * Keys must be between 1 - 256 characters (inclusive) * Keys must be letters, numbers, underscores, or dashes * Values have leading and trailing whitespace trimmed, remaining characters must be between 1 - 4096 characters (inclusive) */ marks?: {[key: string]: string} | null; /** @@ -916,7 +945,7 @@ export namespace securitycenter_v1 { * @param {object} params Parameters for request * @param {string} params.name The relative resource name of the settings. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/organizationSettings". * @param {string=} params.updateMask The FieldMask to use when updating the settings resource. If empty all mutable fields will be updated. - * @param {().OrganizationSettings} params.resource Request body data + * @param {().OrganizationSettings} params.requestBody 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 @@ -1098,7 +1127,7 @@ export namespace securitycenter_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. Name of the organization to groupBy. Its format is "organizations/[organization_id]". - * @param {().GroupAssetsRequest} params.resource Request body data + * @param {().GroupAssetsRequest} params.requestBody 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 @@ -1367,7 +1396,7 @@ export namespace securitycenter_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. Name of the organization to run asset discovery for. Its format is "organizations/[organization_id]". - * @param {().RunAssetDiscoveryRequest} params.resource Request body data + * @param {().RunAssetDiscoveryRequest} params.requestBody 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 @@ -1500,7 +1529,7 @@ export namespace securitycenter_v1 { * @param {string} params.name The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: "organizations/{organization_id}/assets/{asset_id}/securityMarks" "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". * @param {string=} params.startTime The time at which the updated SecurityMarks take effect. If not set uses current server time. Updates will be applied to the SecurityMarks that are active immediately preceding this time. * @param {string=} params.updateMask The FieldMask to use when updating the security marks resource. The field mask must not contain duplicate fields. If empty or set to "marks", all marks will be replaced. Individual marks can be updated using "marks.". - * @param {().SecurityMarks} params.resource Request body data + * @param {().SecurityMarks} params.requestBody 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 @@ -2283,7 +2312,7 @@ export namespace securitycenter_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. Resource name of the new source's parent. Its format should be "organizations/[organization_id]". - * @param {().Source} params.resource Request body data + * @param {().Source} params.requestBody 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 @@ -2525,7 +2554,7 @@ export namespace securitycenter_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -2791,7 +2820,7 @@ export namespace securitycenter_v1 { * @param {object} params Parameters for request * @param {string} params.name The relative resource name of this source. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}" * @param {string=} params.updateMask The FieldMask to use when updating the source resource. If empty all mutable fields will be updated. - * @param {().Source} params.resource Request body data + * @param {().Source} params.requestBody 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 @@ -2913,7 +2942,7 @@ export namespace securitycenter_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -3038,7 +3067,7 @@ export namespace securitycenter_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -3302,7 +3331,7 @@ export namespace securitycenter_v1 { * @param {object} params Parameters for request * @param {string=} params.findingId Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. * @param {string} params.parent Required. Resource name of the new finding's parent. Its format should be "organizations/[organization_id]/sources/[source_id]". - * @param {().Finding} params.resource Request body data + * @param {().Finding} params.requestBody 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 @@ -3442,7 +3471,7 @@ export namespace securitycenter_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. Name of the source to groupBy. Its format is "organizations/[organization_id]/sources/[source_id]". To groupBy across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/- - * @param {().GroupFindingsRequest} params.resource Request body data + * @param {().GroupFindingsRequest} params.requestBody 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 @@ -3721,7 +3750,7 @@ export namespace securitycenter_v1 { * @param {object} params Parameters for request * @param {string} params.name The relative resource name of this finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" * @param {string=} params.updateMask The FieldMask to use when updating the finding resource. This field should not be specified when creating a finding. When updating a finding, an empty mask is treated as updating all mutable fields and replacing source_properties. Individual source_properties can be added/updated by using "source_properties." in the field mask. - * @param {().Finding} params.resource Request body data + * @param {().Finding} params.requestBody 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 @@ -3845,7 +3874,7 @@ export namespace securitycenter_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". - * @param {().SetFindingStateRequest} params.resource Request body data + * @param {().SetFindingStateRequest} params.requestBody 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 @@ -3976,7 +4005,7 @@ export namespace securitycenter_v1 { * @param {string} params.name The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: "organizations/{organization_id}/assets/{asset_id}/securityMarks" "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". * @param {string=} params.startTime The time at which the updated SecurityMarks take effect. If not set uses current server time. Updates will be applied to the SecurityMarks that are active immediately preceding this time. * @param {string=} params.updateMask The FieldMask to use when updating the security marks resource. The field mask must not contain duplicate fields. If empty or set to "marks", all marks will be replaced. Individual marks can be updated using "marks.". - * @param {().SecurityMarks} params.resource Request body data + * @param {().SecurityMarks} params.requestBody 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 diff --git a/src/apis/securitycenter/v1beta1.ts b/src/apis/securitycenter/v1beta1.ts index 4ea17c0788b..752c5529bfd 100644 --- a/src/apis/securitycenter/v1beta1.ts +++ b/src/apis/securitycenter/v1beta1.ts @@ -258,7 +258,7 @@ export namespace securitycenter_v1beta1 { */ parent?: string | null; /** - * The full resource name of the Google Cloud Platform (GCP) resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name This field is immutable after creation time. + * For findings on Google Cloud Platform (GCP) resources, the full resource name of the GCP resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-GCP resource, the resourceName can be a customer or partner defined string. This field is immutable after creation time. */ resourceName?: string | null; /** @@ -555,11 +555,11 @@ export namespace securitycenter_v1beta1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -597,7 +597,7 @@ export namespace securitycenter_v1beta1 { */ export interface Schema$SecurityMarks { /** - * Mutable user specified security marks belonging to the parent resource. Constraints are as follows: - Keys and values are treated as case insensitive - Keys must be between 1 - 256 characters (inclusive) - Keys must be letters, numbers, underscores, or dashes - Values have leading and trailing whitespace trimmed, remaining characters must be between 1 - 4096 characters (inclusive) + * Mutable user specified security marks belonging to the parent resource. Constraints are as follows: * Keys and values are treated as case insensitive * Keys must be between 1 - 256 characters (inclusive) * Keys must be letters, numbers, underscores, or dashes * Values have leading and trailing whitespace trimmed, remaining characters must be between 1 - 4096 characters (inclusive) */ marks?: {[key: string]: string} | null; /** @@ -640,7 +640,7 @@ export namespace securitycenter_v1beta1 { */ description?: string | null; /** - * The source’s display name. A source’s display name must be unique amongst its siblings, for example, two sources with the same parent can't share the same display name. The display name must have a length between 1 and 64 characters (inclusive). + * The source's display name. A source's display name must be unique amongst its siblings, for example, two sources with the same parent can't share the same display name. The display name must have a length between 1 and 64 characters (inclusive). */ displayName?: string | null; /** @@ -781,7 +781,7 @@ export namespace securitycenter_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name The relative resource name of the settings. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/organizationSettings". * @param {string=} params.updateMask The FieldMask to use when updating the settings resource. - * @param {().OrganizationSettings} params.resource Request body data + * @param {().OrganizationSettings} params.requestBody 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 @@ -899,7 +899,7 @@ export namespace securitycenter_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. Name of the organization to groupBy. Its format is "organizations/[organization_id]". - * @param {().GroupAssetsRequest} params.resource Request body data + * @param {().GroupAssetsRequest} params.requestBody 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 @@ -1057,7 +1057,7 @@ export namespace securitycenter_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. Name of the organization to run asset discovery for. Its format is "organizations/[organization_id]". - * @param {().RunAssetDiscoveryRequest} params.resource Request body data + * @param {().RunAssetDiscoveryRequest} params.requestBody 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 @@ -1135,7 +1135,7 @@ export namespace securitycenter_v1beta1 { * @param {string} params.name The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: "organizations/{organization_id}/assets/{asset_id}/securityMarks" "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". * @param {string=} params.startTime The time at which the updated SecurityMarks take effect. * @param {string=} params.updateMask The FieldMask to use when updating the security marks resource. - * @param {().SecurityMarks} params.resource Request body data + * @param {().SecurityMarks} params.requestBody 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 @@ -1317,7 +1317,7 @@ export namespace securitycenter_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the operation resource to be cancelled. - * @param {().CancelOperationRequest} params.resource Request body data + * @param {().CancelOperationRequest} params.requestBody 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 @@ -1685,7 +1685,7 @@ export namespace securitycenter_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. Resource name of the new source's parent. Its format should be "organizations/[organization_id]". - * @param {().Source} params.resource Request body data + * @param {().Source} params.requestBody 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 @@ -1829,7 +1829,7 @@ export namespace securitycenter_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -1981,7 +1981,7 @@ export namespace securitycenter_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name The relative resource name of this source. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}" * @param {string=} params.updateMask The FieldMask to use when updating the source resource. - * @param {().Source} params.resource Request body data + * @param {().Source} params.requestBody 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 @@ -2052,7 +2052,7 @@ export namespace securitycenter_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -2126,7 +2126,7 @@ export namespace securitycenter_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -2339,7 +2339,7 @@ export namespace securitycenter_v1beta1 { * @param {object} params Parameters for request * @param {string=} params.findingId Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length. * @param {string} params.parent Required. Resource name of the new finding's parent. Its format should be "organizations/[organization_id]/sources/[source_id]". - * @param {().Finding} params.resource Request body data + * @param {().Finding} params.requestBody 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 @@ -2413,7 +2413,7 @@ export namespace securitycenter_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. Name of the source to groupBy. Its format is "organizations/[organization_id]/sources/[source_id]". To groupBy across all sources provide a source_id of `-`. For example: organizations/{organization_id}/sources/- - * @param {().GroupFindingsRequest} params.resource Request body data + * @param {().GroupFindingsRequest} params.requestBody 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 @@ -2575,7 +2575,7 @@ export namespace securitycenter_v1beta1 { * @param {object} params Parameters for request * @param {string} params.name The relative resource name of this finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" * @param {string=} params.updateMask The FieldMask to use when updating the finding resource. This field should not be specified when creating a finding. - * @param {().Finding} params.resource Request body data + * @param {().Finding} params.requestBody 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 @@ -2646,7 +2646,7 @@ export namespace securitycenter_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}". - * @param {().SetFindingStateRequest} params.resource Request body data + * @param {().SetFindingStateRequest} params.requestBody 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 @@ -2722,7 +2722,7 @@ export namespace securitycenter_v1beta1 { * @param {string} params.name The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: "organizations/{organization_id}/assets/{asset_id}/securityMarks" "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks". * @param {string=} params.startTime The time at which the updated SecurityMarks take effect. * @param {string=} params.updateMask The FieldMask to use when updating the security marks resource. - * @param {().SecurityMarks} params.resource Request body data + * @param {().SecurityMarks} params.requestBody 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 diff --git a/src/apis/servicebroker/v1.ts b/src/apis/servicebroker/v1.ts index ecf477fd7e9..93de2a2a28c 100644 --- a/src/apis/servicebroker/v1.ts +++ b/src/apis/servicebroker/v1.ts @@ -141,11 +141,11 @@ export namespace servicebroker_v1 { */ bindings?: Schema$GoogleIamV1__Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -289,7 +289,7 @@ export namespace servicebroker_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().GoogleIamV1__SetIamPolicyRequest} params.resource Request body data + * @param {().GoogleIamV1__SetIamPolicyRequest} params.requestBody 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 @@ -366,7 +366,7 @@ export namespace servicebroker_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GoogleIamV1__TestIamPermissionsRequest} params.resource Request body data + * @param {().GoogleIamV1__TestIamPermissionsRequest} params.requestBody 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 diff --git a/src/apis/servicebroker/v1alpha1.ts b/src/apis/servicebroker/v1alpha1.ts index 9c0d3b24333..062b6afdd43 100644 --- a/src/apis/servicebroker/v1alpha1.ts +++ b/src/apis/servicebroker/v1alpha1.ts @@ -490,11 +490,11 @@ export namespace servicebroker_v1alpha1 { */ bindings?: Schema$GoogleIamV1__Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -1117,7 +1117,7 @@ export namespace servicebroker_v1alpha1 { * @param {boolean=} params.acceptsIncomplete Value indicating that API client supports asynchronous operations. If Broker cannot execute the request synchronously HTTP 422 code will be returned to HTTP clients along with FAILED_PRECONDITION error. If true and broker will execute request asynchronously 202 HTTP code will be returned. This broker always requires this to be true as all mutator operations are asynchronous. * @param {string} params.instance_id The id of the service instance. Must be unique within GCP project. Maximum length is 64, GUID recommended. Required. * @param {string} params.parent Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. - * @param {().GoogleCloudServicebrokerV1alpha1__ServiceInstance} params.resource Request body data + * @param {().GoogleCloudServicebrokerV1alpha1__ServiceInstance} params.requestBody 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 @@ -1525,7 +1525,7 @@ export namespace servicebroker_v1alpha1 { * @param {boolean=} params.acceptsIncomplete See CreateServiceInstanceRequest for details. * @param {string} params.instance_id The id of the service instance. Must be unique within GCP project. Maximum length is 64, GUID recommended. Required. * @param {string} params.parent Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. - * @param {().GoogleCloudServicebrokerV1alpha1__ServiceInstance} params.resource Request body data + * @param {().GoogleCloudServicebrokerV1alpha1__ServiceInstance} params.requestBody 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 @@ -1756,7 +1756,7 @@ export namespace servicebroker_v1alpha1 { * @param {string} params.binding_id The id of the binding. Must be unique within GCP project. Maximum length is 64, GUID recommended. Required. * @param {string} params.instanceId The service instance to which to bind. * @param {string} params.parent The GCP container. Must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. - * @param {().GoogleCloudServicebrokerV1alpha1__Binding} params.resource Request body data + * @param {().GoogleCloudServicebrokerV1alpha1__Binding} params.requestBody 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 @@ -2381,7 +2381,7 @@ export namespace servicebroker_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().GoogleIamV1__SetIamPolicyRequest} params.resource Request body data + * @param {().GoogleIamV1__SetIamPolicyRequest} params.requestBody 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 @@ -2459,7 +2459,7 @@ export namespace servicebroker_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GoogleIamV1__TestIamPermissionsRequest} params.resource Request body data + * @param {().GoogleIamV1__TestIamPermissionsRequest} params.requestBody 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 diff --git a/src/apis/servicebroker/v1beta1.ts b/src/apis/servicebroker/v1beta1.ts index 8a4b5048f08..7650e92c791 100644 --- a/src/apis/servicebroker/v1beta1.ts +++ b/src/apis/servicebroker/v1beta1.ts @@ -548,11 +548,11 @@ export namespace servicebroker_v1beta1 { */ bindings?: Schema$GoogleIamV1__Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -636,7 +636,7 @@ export namespace servicebroker_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent The project in which to create broker. - * @param {().GoogleCloudServicebrokerV1beta1__Broker} params.resource Request body data + * @param {().GoogleCloudServicebrokerV1beta1__Broker} params.requestBody 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 @@ -1737,7 +1737,7 @@ export namespace servicebroker_v1beta1 { * @param {boolean=} params.acceptsIncomplete Value indicating that API client supports asynchronous operations. If Broker cannot execute the request synchronously HTTP 422 code will be returned to HTTP clients along with FAILED_PRECONDITION error. If true and broker will execute request asynchronously 202 HTTP code will be returned. This broker always requires this to be true as all mutator operations are asynchronous. * @param {string} params.instance_id The id of the service instance. Must be unique within GCP project. Maximum length is 64, GUID recommended. Required. * @param {string} params.parent Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. - * @param {().GoogleCloudServicebrokerV1beta1__ServiceInstance} params.resource Request body data + * @param {().GoogleCloudServicebrokerV1beta1__ServiceInstance} params.requestBody 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 @@ -2137,7 +2137,7 @@ export namespace servicebroker_v1beta1 { * @param {object} params Parameters for request * @param {boolean=} params.acceptsIncomplete See CreateServiceInstanceRequest for details. * @param {string} params.name Name must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]`. - * @param {().GoogleCloudServicebrokerV1beta1__ServiceInstance} params.resource Request body data + * @param {().GoogleCloudServicebrokerV1beta1__ServiceInstance} params.requestBody 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 @@ -2352,7 +2352,7 @@ export namespace servicebroker_v1beta1 { * @param {boolean=} params.acceptsIncomplete See CreateServiceInstanceRequest for details. * @param {string} params.binding_id The id of the binding. Must be unique within GCP project. Maximum length is 64, GUID recommended. Required. * @param {string} params.parent The GCP container. Must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]`. - * @param {().GoogleCloudServicebrokerV1beta1__Binding} params.resource Request body data + * @param {().GoogleCloudServicebrokerV1beta1__Binding} params.requestBody 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 @@ -2934,7 +2934,7 @@ export namespace servicebroker_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().GoogleIamV1__SetIamPolicyRequest} params.resource Request body data + * @param {().GoogleIamV1__SetIamPolicyRequest} params.requestBody 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 @@ -3012,7 +3012,7 @@ export namespace servicebroker_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GoogleIamV1__TestIamPermissionsRequest} params.resource Request body data + * @param {().GoogleIamV1__TestIamPermissionsRequest} params.requestBody 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 diff --git a/src/apis/serviceconsumermanagement/v1.ts b/src/apis/serviceconsumermanagement/v1.ts index 72e24039bc3..10837bf99f1 100644 --- a/src/apis/serviceconsumermanagement/v1.ts +++ b/src/apis/serviceconsumermanagement/v1.ts @@ -1139,7 +1139,7 @@ export namespace serviceconsumermanagement_v1 { */ http?: Schema$Http; /** - * A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. If empty, the server may choose to generate one instead. Must be no longer than 60 characters. + * A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. Must be no longer than 63 characters and only lower case letters, digits, '.', '_' and '-' are allowed. If empty, the server may choose to generate one instead. */ id?: string | null; /** @@ -1602,7 +1602,7 @@ export namespace serviceconsumermanagement_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the operation resource to be cancelled. - * @param {().CancelOperationRequest} params.resource Request body data + * @param {().CancelOperationRequest} params.requestBody 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 @@ -2078,7 +2078,7 @@ export namespace serviceconsumermanagement_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Name of the tenancy unit. Such as 'services/service.googleapis.com/projects/12345/tenancyUnits/abcd'. - * @param {().AddTenantProjectRequest} params.resource Request body data + * @param {().AddTenantProjectRequest} params.requestBody 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 @@ -2154,7 +2154,7 @@ export namespace serviceconsumermanagement_v1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the tenancy unit. Such as 'services/service.googleapis.com/projects/12345/tenancyUnits/abcd'. - * @param {().ApplyTenantProjectConfigRequest} params.resource Request body data + * @param {().ApplyTenantProjectConfigRequest} params.requestBody 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 @@ -2230,7 +2230,7 @@ export namespace serviceconsumermanagement_v1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the tenancy unit that the project will be attached to. Such as 'services/service.googleapis.com/projects/12345/tenancyUnits/abcd'. - * @param {().AttachTenantProjectRequest} params.resource Request body data + * @param {().AttachTenantProjectRequest} params.requestBody 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 @@ -2306,7 +2306,7 @@ export namespace serviceconsumermanagement_v1 { * * @param {object} params Parameters for request * @param {string} params.parent services/{service}/{collection id}/{resource id} {collection id} is the cloud resource collection type representing the service consumer, for example 'projects', or 'organizations'. {resource id} is the consumer numeric id, such as project number: '123456'. {service} the name of a managed service, such as 'service.googleapis.com'. Enables service binding using the new tenancy unit. - * @param {().CreateTenancyUnitRequest} params.resource Request body data + * @param {().CreateTenancyUnitRequest} params.requestBody 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 @@ -2454,7 +2454,7 @@ export namespace serviceconsumermanagement_v1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the tenancy unit. Such as 'services/service.googleapis.com/projects/12345/tenancyUnits/abcd'. - * @param {().DeleteTenantProjectRequest} params.resource Request body data + * @param {().DeleteTenantProjectRequest} params.requestBody 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 @@ -2610,7 +2610,7 @@ export namespace serviceconsumermanagement_v1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the tenancy unit. Such as 'services/service.googleapis.com/projects/12345/tenancyUnits/abcd'. - * @param {().RemoveTenantProjectRequest} params.resource Request body data + * @param {().RemoveTenantProjectRequest} params.requestBody 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 @@ -2686,7 +2686,7 @@ export namespace serviceconsumermanagement_v1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the tenancy unit. Such as 'services/service.googleapis.com/projects/12345/tenancyUnits/abcd'. - * @param {().UndeleteTenantProjectRequest} params.resource Request body data + * @param {().UndeleteTenantProjectRequest} params.requestBody 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 diff --git a/src/apis/servicecontrol/v1.ts b/src/apis/servicecontrol/v1.ts index 690ffb225e6..61d74478741 100644 --- a/src/apis/servicecontrol/v1.ts +++ b/src/apis/servicecontrol/v1.ts @@ -257,6 +257,10 @@ export namespace servicecontrol_v1 { * The email address of the authenticated user (or service account on behalf of third party principal) making the request. For privacy reasons, the principal email address is redacted for all read-only operations that fail with a "permission denied" error. */ principalEmail?: string | null; + /** + * String representation of identity of requesting party. Populated for both first and third party identities. + */ + principalSubject?: string | null; /** * Identity delegation history of an authenticated service account that makes the request. It contains information on the real authorities that try to access GCP resources by delegating on a service account. When multiple authorities present, they are guaranteed to be sorted based on the original ordering of the identity delegation events. */ @@ -1130,7 +1134,7 @@ export namespace servicecontrol_v1 { * * @param {object} params Parameters for request * @param {string} params.serviceName Name of the service as specified in the service configuration. For example, `"pubsub.googleapis.com"`. See google.api.Service for the definition of a service name. - * @param {().AllocateQuotaRequest} params.resource Request body data + * @param {().AllocateQuotaRequest} params.requestBody 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 @@ -1210,7 +1214,7 @@ export namespace servicecontrol_v1 { * * @param {object} params Parameters for request * @param {string} params.serviceName The service name as specified in its service configuration. For example, `"pubsub.googleapis.com"`. See [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) for the definition of a service name. - * @param {().CheckRequest} params.resource Request body data + * @param {().CheckRequest} params.requestBody 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 @@ -1285,7 +1289,7 @@ export namespace servicecontrol_v1 { * * @param {object} params Parameters for request * @param {string} params.serviceName The service name as specified in its service configuration. For example, `"pubsub.googleapis.com"`. See [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) for the definition of a service name. - * @param {().ReportRequest} params.resource Request body data + * @param {().ReportRequest} params.requestBody 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 diff --git a/src/apis/servicemanagement/v1.ts b/src/apis/servicemanagement/v1.ts index ccc064f322d..b4e478a98f5 100644 --- a/src/apis/servicemanagement/v1.ts +++ b/src/apis/servicemanagement/v1.ts @@ -1246,11 +1246,11 @@ export namespace servicemanagement_v1 { */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if the incoming policy version does not meet the requirements for modifying the stored policy. */ etag?: string | null; /** - * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a binding (conditional or unconditional) from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, version compliance checks against the stored policy is skipped. */ version?: number | null; } @@ -1329,7 +1329,7 @@ export namespace servicemanagement_v1 { */ deleteServiceStrategy?: Schema$DeleteServiceStrategy; /** - * Optional. Unique identifier of this Rollout. Only lower case letters, digits and '-' are allowed. If not specified by client, the server will generate one. The generated id will have the form of <date><revision number>, where "date" is the create date in ISO 8601 format. "revision number" is a monotonically increasing positive number that is reset every day for each service. An example of the generated rollout_id is '2016-02-16r1' + * Optional. Unique identifier of this Rollout. Must be no longer than 63 characters and only lower case letters, digits, '.', '_' and '-' are allowed. If not specified by client, the server will generate one. The generated id will have the form of <date><revision number>, where "date" is the create date in ISO 8601 format. "revision number" is a monotonically increasing positive number that is reset every day for each service. An example of the generated rollout_id is '2016-02-16r1' */ rolloutId?: string | null; /** @@ -1398,7 +1398,7 @@ export namespace servicemanagement_v1 { */ http?: Schema$Http; /** - * A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. If empty, the server may choose to generate one instead. Must be no longer than 60 characters. + * A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. Must be no longer than 63 characters and only lower case letters, digits, '.', '_' and '-' are allowed. If empty, the server may choose to generate one instead. */ id?: string | null; /** @@ -1888,7 +1888,7 @@ export namespace servicemanagement_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().ManagedService} params.resource Request body data + * @param {().ManagedService} params.requestBody 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 @@ -2034,7 +2034,7 @@ export namespace servicemanagement_v1 { * * @param {object} params Parameters for request * @param {string} params.serviceName Required. Name of the service to disable. Specifying an unknown service name will cause the request to fail. - * @param {().DisableServiceRequest} params.resource Request body data + * @param {().DisableServiceRequest} params.requestBody 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 @@ -2109,7 +2109,7 @@ export namespace servicemanagement_v1 { * * @param {object} params Parameters for request * @param {string} params.serviceName Required. Name of the service to enable. Specifying an unknown service name will cause the request to fail. - * @param {().EnableServiceRequest} params.resource Request body data + * @param {().EnableServiceRequest} params.requestBody 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 @@ -2183,7 +2183,7 @@ export namespace servicemanagement_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().GenerateConfigReportRequest} params.resource Request body data + * @param {().GenerateConfigReportRequest} params.requestBody 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 @@ -2417,7 +2417,7 @@ export namespace servicemanagement_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -2567,7 +2567,7 @@ export namespace servicemanagement_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -2641,7 +2641,7 @@ export namespace servicemanagement_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -2990,7 +2990,7 @@ export namespace servicemanagement_v1 { * * @param {object} params Parameters for request * @param {string} params.serviceName Required. The name of the service. See the [overview](/service-management/overview) for naming requirements. For example: `example.googleapis.com`. - * @param {().Service} params.resource Request body data + * @param {().Service} params.requestBody 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 @@ -3222,7 +3222,7 @@ export namespace servicemanagement_v1 { * * @param {object} params Parameters for request * @param {string} params.serviceName Required. The name of the service. See the [overview](/service-management/overview) for naming requirements. For example: `example.googleapis.com`. - * @param {().SubmitConfigSourceRequest} params.resource Request body data + * @param {().SubmitConfigSourceRequest} params.requestBody 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 @@ -3379,7 +3379,7 @@ export namespace servicemanagement_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -3453,7 +3453,7 @@ export namespace servicemanagement_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -3527,7 +3527,7 @@ export namespace servicemanagement_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -3668,9 +3668,8 @@ export namespace servicemanagement_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.baseRolloutId Unimplemented. Do not use this feature until this comment is removed. The rollout id that rollout to be created based on. Rollout should be constructed based on current successful rollout, this field indicates the current successful rollout id that new rollout based on to construct, if current successful rollout changed when server receives the request, request will be rejected for safety. * @param {string} params.serviceName Required. The name of the service. See the [overview](/service-management/overview) for naming requirements. For example: `example.googleapis.com`. - * @param {().Rollout} params.resource Request body data + * @param {().Rollout} params.requestBody 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 @@ -3904,10 +3903,6 @@ export namespace servicemanagement_v1 { */ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - /** - * Unimplemented. Do not use this feature until this comment is removed. The rollout id that rollout to be created based on. Rollout should be constructed based on current successful rollout, this field indicates the current successful rollout id that new rollout based on to construct, if current successful rollout changed when server receives the request, request will be rejected for safety. - */ - baseRolloutId?: string; /** * Required. The name of the service. See the [overview](/service-management/overview) for naming requirements. For example: `example.googleapis.com`. */ diff --git a/src/apis/servicenetworking/v1.ts b/src/apis/servicenetworking/v1.ts index 6e17c409120..1de0aaaf0ca 100644 --- a/src/apis/servicenetworking/v1.ts +++ b/src/apis/servicenetworking/v1.ts @@ -130,7 +130,7 @@ export namespace servicenetworking_v1 { */ consumerNetwork?: string | null; /** - * An optional description of the subnet. + * Optional. Description of the subnet. */ description?: string | null; /** @@ -345,6 +345,15 @@ export namespace servicenetworking_v1 { */ service?: string | null; } + /** + * Represents a consumer project. + */ + export interface Schema$ConsumerProject { + /** + * Required. Project number of the consumer that is launching the service instance. It can own the network that is peered with Google or, be a service project in an XPN where the host project has the network. + */ + projectNum?: string | null; + } /** * `Context` defines which contexts an API requests. Example: context: rules: - selector: "*" requested: - google.rpc.context.ProjectContext - google.rpc.context.OriginContext The above specifies that all methods in the API request `google.rpc.context.ProjectContext` and `google.rpc.context.OriginContext`. Available context types are defined in package `google.rpc.context`. This also provides mechanism to whitelist any protobuf message extension that can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and “x-goog-ext-<extension_id>-jspb” format. For example, list any service specific protobuf types that can appear in grpc metadata as follows in your yaml file: Example: context: rules: - selector: "google.example.library.v1.LibraryService.CreateBook" allowed_request_extensions: - google.foo.v1.NewExtension allowed_response_extensions: - google.foo.v1.NewExtension You can also specify extension ID instead of fully qualified extension name here. */ @@ -1069,6 +1078,15 @@ export namespace servicenetworking_v1 { */ network?: string | null; } + /** + * Represents a range reservation. + */ + export interface Schema$RangeReservation { + /** + * Required. The size of the desired subnet. Use usual CIDR range notation. For example, '30' to find unused x.x.x.x/30 CIDR range. The goal is to determine if one of the allocated ranges has enough free space for a subnet of the requested size. + */ + ipPrefixLength?: number | null; + } /** * Request to search for an unused range within allocated ranges. */ @@ -1078,7 +1096,7 @@ export namespace servicenetworking_v1 { */ ipPrefixLength?: number | null; /** - * Network name in the consumer project. This network must have been already peered with a shared VPC network using CreateConnection method. Must be in a form 'projects/{project}/global/networks/{network}'. {project} is a project number, as in '12345' {network} is network name. + * Network name in the consumer project. This network must have been already peered with a shared VPC network using CreateConnection method. Must be in a form 'projects/{project}/global/networks/{network}'. {project} is a project number, as in '12345' {network} is network name. */ network?: string | null; } @@ -1135,7 +1153,7 @@ export namespace servicenetworking_v1 { */ http?: Schema$Http; /** - * A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. If empty, the server may choose to generate one instead. Must be no longer than 60 characters. + * A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. Must be no longer than 63 characters and only lower case letters, digits, '.', '_' and '-' are allowed. If empty, the server may choose to generate one instead. */ id?: string | null; /** @@ -1353,6 +1371,28 @@ export namespace servicenetworking_v1 { */ skipServiceControl?: boolean | null; } + export interface Schema$ValidateConsumerConfigRequest { + /** + * Required. The network that the consumer is using to connect with services. Must be in the form of projects/{project}/global/networks/{network} {project} is a project number, as in '12345' {network} is network name. + */ + consumerNetwork?: string | null; + /** + * NETWORK_NOT_IN_CONSUMERS_PROJECT, NETWORK_NOT_IN_CONSUMERS_HOST_PROJECT, and HOST_PROJECT_NOT_FOUND are done when consumer_project is provided. + */ + consumerProject?: Schema$ConsumerProject; + /** + * RANGES_EXHAUSTED, RANGES_EXHAUSTED, and RANGES_DELETED_LATER are done when range_reservation is provided. + */ + rangeReservation?: Schema$RangeReservation; + /** + * The validations will be performed in the order listed in the ValidationError enum. The first failure will return. If a validation is not requested, then the next one will be performed. SERVICE_NETWORKING_NOT_ENABLED and NETWORK_NOT_PEERED checks are performed for all requests where validation is requested. NETWORK_NOT_FOUND and NETWORK_DISCONNECTED checks are done for requests that have validate_network set to true. + */ + validateNetwork?: boolean | null; + } + export interface Schema$ValidateConsumerConfigResponse { + isValid?: boolean | null; + validationError?: string | null; + } export class Resource$Operations { context: APIRequestContext; @@ -1368,7 +1408,7 @@ export namespace servicenetworking_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the operation resource to be cancelled. - * @param {().CancelOperationRequest} params.resource Request body data + * @param {().CancelOperationRequest} params.requestBody 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 @@ -1729,7 +1769,7 @@ export namespace servicenetworking_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. A tenant project in the service producer organization, in the following format: services/{service}/{collection-id}/{resource-id}. {collection-id} is the cloud resource collection type that represents the tenant project. Only `projects` are supported. {resource-id} is the tenant project numeric id, such as `123456`. {service} the name of the peering service, such as `service-peering.example.com`. This service must already be enabled in the service consumer's project. - * @param {().AddSubnetworkRequest} params.resource Request body data + * @param {().AddSubnetworkRequest} params.requestBody 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 @@ -1805,7 +1845,7 @@ export namespace servicenetworking_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. This is in a form services/{service}. {service} the name of the private access management service, for example 'service-peering.example.com'. - * @param {().SearchRangeRequest} params.resource Request body data + * @param {().SearchRangeRequest} params.requestBody 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 @@ -1872,6 +1912,91 @@ export namespace servicenetworking_v1 { return createAPIRequest(parameters); } } + + /** + * servicenetworking.services.validate + * @desc Service producers use this method to validate if the consumer provided network, project and the requested range is valid. This allows them to use a fail-fast mechanism for consumer requests, and not have to wait for AddSubnetwork operation completion to determine if user request is invalid. + * @alias servicenetworking.services.validate + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent Required. This is in a form services/{service} where {service} is the name of the private access management service. For example 'service-peering.example.com'. + * @param {().ValidateConsumerConfigRequest} params.requestBody 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 + */ + validate( + params?: Params$Resource$Services$Validate, + options?: MethodOptions + ): GaxiosPromise; + validate( + params: Params$Resource$Services$Validate, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + validate( + params: Params$Resource$Services$Validate, + callback: BodyResponseCallback + ): void; + validate( + callback: BodyResponseCallback + ): void; + validate( + paramsOrCallback?: + | Params$Resource$Services$Validate + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | BodyResponseCallback, + callback?: BodyResponseCallback + ): void | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Services$Validate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Validate; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+parent}:validate').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback + ); + } else { + return createAPIRequest( + parameters + ); + } + } } export interface Params$Resource$Services$Addsubnetwork @@ -1908,6 +2033,23 @@ export namespace servicenetworking_v1 { */ requestBody?: Schema$SearchRangeRequest; } + export interface Params$Resource$Services$Validate + extends StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; + + /** + * Required. This is in a form services/{service} where {service} is the name of the private access management service. For example 'service-peering.example.com'. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$ValidateConsumerConfigRequest; + } export class Resource$Services$Connections { context: APIRequestContext; @@ -1923,7 +2065,7 @@ export namespace servicenetworking_v1 { * * @param {object} params Parameters for request * @param {string} params.parent The service that is managing peering connectivity for a service producer's organization. For Google services that support this functionality, this value is `services/servicenetworking.googleapis.com`. - * @param {().Connection} params.resource Request body data + * @param {().Connection} params.requestBody 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 @@ -2079,7 +2221,7 @@ export namespace servicenetworking_v1 { * @param {boolean=} params.force If a previously defined allocated range is removed, force flag must be set to true. * @param {string} params.name The private service connection that connects to a service producer organization. The name includes both the private service name and the VPC network peering name in the format of `services/{peering_service_name}/connections/{vpc_peering_name}`. For Google services that support this functionality, this is `services/servicenetworking.googleapis.com/connections/servicenetworking-googleapis-com`. * @param {string=} params.updateMask The update mask. If this is omitted, it defaults to "*". You can only update the listed peering ranges. - * @param {().Connection} params.resource Request body data + * @param {().Connection} params.requestBody 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 diff --git a/src/apis/servicenetworking/v1beta.ts b/src/apis/servicenetworking/v1beta.ts index 08f9fd78d65..270e8bd84c7 100644 --- a/src/apis/servicenetworking/v1beta.ts +++ b/src/apis/servicenetworking/v1beta.ts @@ -1114,7 +1114,7 @@ export namespace servicenetworking_v1beta { */ http?: Schema$Http; /** - * A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. If empty, the server may choose to generate one instead. Must be no longer than 60 characters. + * A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. Must be no longer than 63 characters and only lower case letters, digits, '.', '_' and '-' are allowed. If empty, the server may choose to generate one instead. */ id?: string | null; /** @@ -1439,7 +1439,7 @@ export namespace servicenetworking_v1beta { * * @param {object} params Parameters for request * @param {string} params.parent Required. A tenant project in the service producer organization, in the following format: services/{service}/{collection-id}/{resource-id}. {collection-id} is the cloud resource collection type that represents the tenant project. Only `projects` are supported. {resource-id} is the tenant project numeric id, such as `123456`. {service} the name of the peering service, such as `service-peering.example.com`. This service must already be enabled in the service consumer's project. - * @param {().AddSubnetworkRequest} params.resource Request body data + * @param {().AddSubnetworkRequest} params.requestBody 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 @@ -1515,7 +1515,7 @@ export namespace servicenetworking_v1beta { * * @param {object} params Parameters for request * @param {string} params.parent Required. This is in a form services/{service}. {service} the name of the private access management service, for example 'service-peering.example.com'. - * @param {().SearchRangeRequest} params.resource Request body data + * @param {().SearchRangeRequest} params.requestBody 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 @@ -1593,7 +1593,7 @@ export namespace servicenetworking_v1beta { * @param {boolean=} params.force If a previously defined allocated range is removed, force flag must be set to true. * @param {string} params.name The service producer peering service that is managing peering connectivity for a service producer organization. For Google services that support this functionality, this is `services/servicenetworking.googleapis.com`. * @param {string=} params.updateMask The update mask. If this is omitted, it defaults to "*". You can only update the listed peering ranges. - * @param {().Connection} params.resource Request body data + * @param {().Connection} params.requestBody 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 @@ -1736,7 +1736,7 @@ export namespace servicenetworking_v1beta { * * @param {object} params Parameters for request * @param {string} params.parent The service that is managing peering connectivity for a service producer's organization. For Google services that support this functionality, this value is `services/servicenetworking.googleapis.com`. - * @param {().Connection} params.resource Request body data + * @param {().Connection} params.requestBody 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 diff --git a/src/apis/serviceusage/v1.ts b/src/apis/serviceusage/v1.ts index ee89a4e44b4..35241656db8 100644 --- a/src/apis/serviceusage/v1.ts +++ b/src/apis/serviceusage/v1.ts @@ -681,7 +681,7 @@ export namespace serviceusage_v1 { */ http?: Schema$Http; /** - * A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. If empty, the server may choose to generate one instead. Must be no longer than 60 characters. + * A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. Must be no longer than 63 characters and only lower case letters, digits, '.', '_' and '-' are allowed. If empty, the server may choose to generate one instead. */ id?: string | null; /** @@ -1475,7 +1475,7 @@ export namespace serviceusage_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the operation resource to be cancelled. - * @param {().CancelOperationRequest} params.resource Request body data + * @param {().CancelOperationRequest} params.requestBody 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 @@ -1830,7 +1830,7 @@ export namespace serviceusage_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Parent to enable services on. An example name would be: `projects/123` where `123` is the project number. The `BatchEnableServices` method currently only supports projects. - * @param {().BatchEnableServicesRequest} params.resource Request body data + * @param {().BatchEnableServicesRequest} params.requestBody 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 @@ -1905,7 +1905,7 @@ export namespace serviceusage_v1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the consumer and service to disable the service on. The enable and disable methods currently only support projects. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number. - * @param {().DisableServiceRequest} params.resource Request body data + * @param {().DisableServiceRequest} params.requestBody 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 @@ -1979,7 +1979,7 @@ export namespace serviceusage_v1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the consumer and service to enable the service on. The `EnableService` and `DisableService` methods currently only support projects. Enabling a service requires that the service is public or is shared with the user enabling the service. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number. - * @param {().EnableServiceRequest} params.resource Request body data + * @param {().EnableServiceRequest} params.requestBody 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 diff --git a/src/apis/serviceusage/v1beta1.ts b/src/apis/serviceusage/v1beta1.ts index aba24fcafa6..30246b6afea 100644 --- a/src/apis/serviceusage/v1beta1.ts +++ b/src/apis/serviceusage/v1beta1.ts @@ -672,7 +672,7 @@ export namespace serviceusage_v1beta1 { */ http?: Schema$Http; /** - * A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. If empty, the server may choose to generate one instead. Must be no longer than 60 characters. + * A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. Must be no longer than 63 characters and only lower case letters, digits, '.', '_' and '-' are allowed. If empty, the server may choose to generate one instead. */ id?: string | null; /** @@ -1714,7 +1714,7 @@ export namespace serviceusage_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Parent to enable services on. An example name would be: `projects/123` where `123` is the project number (not project ID). The `BatchEnableServices` method currently only supports projects. - * @param {().BatchEnableServicesRequest} params.resource Request body data + * @param {().BatchEnableServicesRequest} params.requestBody 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 @@ -1789,7 +1789,7 @@ export namespace serviceusage_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the consumer and service to disable the service on. The enable and disable methods currently only support projects. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number (not project ID). - * @param {().DisableServiceRequest} params.resource Request body data + * @param {().DisableServiceRequest} params.requestBody 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 @@ -1863,7 +1863,7 @@ export namespace serviceusage_v1beta1 { * * @param {object} params Parameters for request * @param {string} params.name Name of the consumer and service to enable the service on. The `EnableService` and `DisableService` methods currently only support projects. Enabling a service requires that the service is public or is shared with the user enabling the service. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number (not project ID). - * @param {().EnableServiceRequest} params.resource Request body data + * @param {().EnableServiceRequest} params.requestBody 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 diff --git a/src/apis/sheets/v4.ts b/src/apis/sheets/v4.ts index 3ca004e144e..380fc8fe95a 100644 --- a/src/apis/sheets/v4.ts +++ b/src/apis/sheets/v4.ts @@ -1824,7 +1824,7 @@ export namespace sheets_v4 { */ export interface Schema$FilterCriteria { /** - * A condition that must be true for values to be shown. (This does not override hiddenValues -- if a value is listed there, it will still be hidden.) + * A condition that must be true for values to be shown. (This does not override hidden_values -- if a value is listed there, it will still be hidden.) */ condition?: Schema$BooleanCondition; /** @@ -4037,7 +4037,7 @@ export namespace sheets_v4 { * * @param {object} params Parameters for request * @param {string} params.spreadsheetId The spreadsheet to apply the updates to. - * @param {().BatchUpdateSpreadsheetRequest} params.resource Request body data + * @param {().BatchUpdateSpreadsheetRequest} params.requestBody 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 @@ -4167,7 +4167,7 @@ export namespace sheets_v4 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Spreadsheet} params.resource Request body data + * @param {().Spreadsheet} params.requestBody 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 @@ -4429,7 +4429,7 @@ export namespace sheets_v4 { * * @param {object} params Parameters for request * @param {string} params.spreadsheetId The spreadsheet to request. - * @param {().GetSpreadsheetByDataFilterRequest} params.resource Request body data + * @param {().GetSpreadsheetByDataFilterRequest} params.requestBody 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 @@ -4752,7 +4752,7 @@ export namespace sheets_v4 { * * @param {object} params Parameters for request * @param {string} params.spreadsheetId The ID of the spreadsheet to retrieve metadata from. - * @param {().SearchDeveloperMetadataRequest} params.resource Request body data + * @param {().SearchDeveloperMetadataRequest} params.requestBody 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 @@ -4935,7 +4935,7 @@ export namespace sheets_v4 { * @param {object} params Parameters for request * @param {integer} params.sheetId The ID of the sheet to copy. * @param {string} params.spreadsheetId The ID of the spreadsheet containing the sheet to copy. - * @param {().CopySheetToAnotherSpreadsheetRequest} params.resource Request body data + * @param {().CopySheetToAnotherSpreadsheetRequest} params.requestBody 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 @@ -5106,7 +5106,7 @@ export namespace sheets_v4 { * @param {string=} params.responseValueRenderOption Determines how values in the response should be rendered. The default render option is ValueRenderOption.FORMATTED_VALUE. * @param {string} params.spreadsheetId The ID of the spreadsheet to update. * @param {string=} params.valueInputOption How the input data should be interpreted. - * @param {().ValueRange} params.resource Request body data + * @param {().ValueRange} params.requestBody 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 @@ -5236,7 +5236,7 @@ export namespace sheets_v4 { * * @param {object} params Parameters for request * @param {string} params.spreadsheetId The ID of the spreadsheet to update. - * @param {().BatchClearValuesRequest} params.resource Request body data + * @param {().BatchClearValuesRequest} params.requestBody 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 @@ -5368,7 +5368,7 @@ export namespace sheets_v4 { * * @param {object} params Parameters for request * @param {string} params.spreadsheetId The ID of the spreadsheet to update. - * @param {().BatchClearValuesByDataFilterRequest} params.resource Request body data + * @param {().BatchClearValuesByDataFilterRequest} params.requestBody 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 @@ -5669,7 +5669,7 @@ export namespace sheets_v4 { * * @param {object} params Parameters for request * @param {string} params.spreadsheetId The ID of the spreadsheet to retrieve data from. - * @param {().BatchGetValuesByDataFilterRequest} params.resource Request body data + * @param {().BatchGetValuesByDataFilterRequest} params.requestBody 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 @@ -5810,7 +5810,7 @@ export namespace sheets_v4 { * * @param {object} params Parameters for request * @param {string} params.spreadsheetId The ID of the spreadsheet to update. - * @param {().BatchUpdateValuesRequest} params.resource Request body data + * @param {().BatchUpdateValuesRequest} params.requestBody 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 @@ -5950,7 +5950,7 @@ export namespace sheets_v4 { * * @param {object} params Parameters for request * @param {string} params.spreadsheetId The ID of the spreadsheet to update. - * @param {().BatchUpdateValuesByDataFilterRequest} params.resource Request body data + * @param {().BatchUpdateValuesByDataFilterRequest} params.requestBody 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 @@ -6097,7 +6097,7 @@ export namespace sheets_v4 { * @param {object} params Parameters for request * @param {string} params.range The A1 notation of the values to clear. * @param {string} params.spreadsheetId The ID of the spreadsheet to update. - * @param {().ClearValuesRequest} params.resource Request body data + * @param {().ClearValuesRequest} params.requestBody 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 @@ -6373,7 +6373,7 @@ export namespace sheets_v4 { * @param {string=} params.responseValueRenderOption Determines how values in the response should be rendered. The default render option is ValueRenderOption.FORMATTED_VALUE. * @param {string} params.spreadsheetId The ID of the spreadsheet to update. * @param {string=} params.valueInputOption How the input data should be interpreted. - * @param {().ValueRange} params.resource Request body data + * @param {().ValueRange} params.requestBody 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 diff --git a/src/apis/siteVerification/v1.ts b/src/apis/siteVerification/v1.ts index 7f008ba8f5b..d3cab9d1e2e 100644 --- a/src/apis/siteVerification/v1.ts +++ b/src/apis/siteVerification/v1.ts @@ -309,7 +309,7 @@ export namespace siteVerification_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().SiteVerificationWebResourceGettokenRequest} params.resource Request body data + * @param {().SiteVerificationWebResourceGettokenRequest} params.requestBody 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 @@ -409,7 +409,7 @@ export namespace siteVerification_v1 { * * @param {object} params Parameters for request * @param {string} params.verificationMethod The method to use for verifying a site or domain. - * @param {().SiteVerificationWebResourceResource} params.resource Request body data + * @param {().SiteVerificationWebResourceResource} params.requestBody 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 @@ -584,7 +584,7 @@ export namespace siteVerification_v1 { * * @param {object} params Parameters for request * @param {string} params.id The id of a verified site or domain. - * @param {().SiteVerificationWebResourceResource} params.resource Request body data + * @param {().SiteVerificationWebResourceResource} params.requestBody 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 @@ -670,7 +670,7 @@ export namespace siteVerification_v1 { * * @param {object} params Parameters for request * @param {string} params.id The id of a verified site or domain. - * @param {().SiteVerificationWebResourceResource} params.resource Request body data + * @param {().SiteVerificationWebResourceResource} params.requestBody 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 diff --git a/src/apis/slides/v1.ts b/src/apis/slides/v1.ts index 3d5c47f76f3..aba77c801c1 100644 --- a/src/apis/slides/v1.ts +++ b/src/apis/slides/v1.ts @@ -2592,7 +2592,7 @@ export namespace slides_v1 { * * @param {object} params Parameters for request * @param {string} params.presentationId The presentation to apply the updates to. - * @param {().BatchUpdatePresentationRequest} params.resource Request body data + * @param {().BatchUpdatePresentationRequest} params.requestBody 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 @@ -2674,7 +2674,7 @@ export namespace slides_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Presentation} params.resource Request body data + * @param {().Presentation} params.requestBody 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 diff --git a/src/apis/sourcerepo/v1.ts b/src/apis/sourcerepo/v1.ts index e57cc7a22cf..932bd5f1d8e 100644 --- a/src/apis/sourcerepo/v1.ts +++ b/src/apis/sourcerepo/v1.ts @@ -505,7 +505,7 @@ export namespace sourcerepo_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the requested project. Values are of the form `projects/`. - * @param {().UpdateProjectConfigRequest} params.resource Request body data + * @param {().UpdateProjectConfigRequest} params.requestBody 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 @@ -614,7 +614,7 @@ export namespace sourcerepo_v1 { * * @param {object} params Parameters for request * @param {string} params.parent The project in which to create the repo. Values are of the form `projects/`. - * @param {().Repo} params.resource Request body data + * @param {().Repo} params.requestBody 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 @@ -970,7 +970,7 @@ export namespace sourcerepo_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the requested repository. Values are of the form `projects//repos/`. - * @param {().UpdateRepoRequest} params.resource Request body data + * @param {().UpdateRepoRequest} params.requestBody 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 @@ -1040,7 +1040,7 @@ export namespace sourcerepo_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -1113,7 +1113,7 @@ export namespace sourcerepo_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the repo to synchronize. Values are of the form `projects//repos/`. - * @param {().SyncRepoRequest} params.resource Request body data + * @param {().SyncRepoRequest} params.requestBody 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 @@ -1185,7 +1185,7 @@ export namespace sourcerepo_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 diff --git a/src/apis/spanner/v1.ts b/src/apis/spanner/v1.ts index ec0c3138e84..39d2407e287 100644 --- a/src/apis/spanner/v1.ts +++ b/src/apis/spanner/v1.ts @@ -425,7 +425,7 @@ export namespace spanner_v1 { */ export interface Schema$GetPolicyOptions { /** - * Optional. The policy format version to be returned. Acceptable values are 0, 1, and 3. If the value is 0, or the field is omitted, policy format version 1 will be returned. + * Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. */ requestedPolicyVersion?: number | null; } @@ -780,19 +780,19 @@ export namespace spanner_v1 { shortRepresentation?: Schema$ShortRepresentation; } /** - * Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources. A `Policy` consists of a list of `bindings`. A `binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM. **JSON Example** { "bindings": [ { "role": "roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@appspot.gserviceaccount.com" ] }, { "role": "roles/viewer", "members": ["user:sean@example.com"] } ] } **YAML Example** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com role: roles/owner - members: - user:sean@example.com role: roles/viewer For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs). + * Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions (defined by IAM or configured by users). A `binding` can optionally specify a `condition`, which is a logic expression that further constrains the role binding based on attributes about the request and/or target resource. **JSON Example** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com"], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ] } **YAML Example** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs). */ export interface Schema$Policy { /** - * Associates a list of `members` to a `role`. `bindings` with no members will result in an error. + * Associates a list of `members` to a `role`. Optionally may specify a `condition` that determines when binding is in effect. `bindings` with no members will result in an error. */ bindings?: Schema$Binding[]; /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. + * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten. Due to blind-set semantics of an etag-less policy, 'setIamPolicy' will not fail even if either of incoming or stored policy does not meet the version requirements. */ etag?: string | null; /** - * Deprecated. + * Specifies the format of the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Operations affecting conditional bindings must specify version 3. This can be either setting a conditional policy, modifying a conditional binding, or removing a conditional binding from the stored conditional policy. Operations on non-conditional policies may specify any valid value or leave the field unset. If no etag is provided in the call to `setIamPolicy`, any version compliance checks on the incoming and/or stored policy is skipped. */ version?: number | null; } @@ -1426,7 +1426,7 @@ export namespace spanner_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The name of the project in which to create the instance. Values are of the form `projects/`. - * @param {().CreateInstanceRequest} params.resource Request body data + * @param {().CreateInstanceRequest} params.requestBody 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 @@ -1639,7 +1639,7 @@ export namespace spanner_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The Cloud Spanner resource for which the policy is being retrieved. The format is `projects//instances/` for instance resources and `projects//instances//databases/` for database resources. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -1791,7 +1791,7 @@ export namespace spanner_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. A unique identifier for the instance, which cannot be changed after the instance is created. Values are of the form `projects//instances/a-z*[a-z0-9]`. The final segment of the name must be between 2 and 64 characters in length. - * @param {().UpdateInstanceRequest} params.resource Request body data + * @param {().UpdateInstanceRequest} params.requestBody 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 @@ -1863,7 +1863,7 @@ export namespace spanner_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The Cloud Spanner resource for which the policy is being set. The format is `projects//instances/` for instance resources and `projects//instances//databases/` for databases resources. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -1936,7 +1936,7 @@ export namespace spanner_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The Cloud Spanner resource for which permissions are being tested. The format is `projects//instances/` for instance resources and `projects//instances//databases/` for database resources. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -2167,7 +2167,7 @@ export namespace spanner_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The name of the instance that will serve the new database. Values are of the form `projects//instances/`. - * @param {().CreateDatabaseRequest} params.resource Request body data + * @param {().CreateDatabaseRequest} params.requestBody 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 @@ -2456,7 +2456,7 @@ export namespace spanner_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The Cloud Spanner resource for which the policy is being retrieved. The format is `projects//instances/` for instance resources and `projects//instances//databases/` for database resources. - * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {().GetIamPolicyRequest} params.requestBody 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 @@ -2607,7 +2607,7 @@ export namespace spanner_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The Cloud Spanner resource for which the policy is being set. The format is `projects//instances/` for instance resources and `projects//instances//databases/` for databases resources. - * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {().SetIamPolicyRequest} params.requestBody 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 @@ -2680,7 +2680,7 @@ export namespace spanner_v1 { * * @param {object} params Parameters for request * @param {string} params.resource_ REQUIRED: The Cloud Spanner resource for which permissions are being tested. The format is `projects//instances/` for instance resources and `projects//instances//databases/` for database resources. - * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {().TestIamPermissionsRequest} params.requestBody 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 @@ -2762,7 +2762,7 @@ export namespace spanner_v1 { * * @param {object} params Parameters for request * @param {string} params.database Required. The database to update. - * @param {().UpdateDatabaseDdlRequest} params.resource Request body data + * @param {().UpdateDatabaseDdlRequest} params.requestBody 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 @@ -3339,7 +3339,7 @@ export namespace spanner_v1 { * * @param {object} params Parameters for request * @param {string} params.database Required. The database in which the new sessions are created. - * @param {().BatchCreateSessionsRequest} params.resource Request body data + * @param {().BatchCreateSessionsRequest} params.requestBody 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 @@ -3421,7 +3421,7 @@ export namespace spanner_v1 { * * @param {object} params Parameters for request * @param {string} params.session Required. The session in which the transaction runs. - * @param {().BeginTransactionRequest} params.resource Request body data + * @param {().BeginTransactionRequest} params.requestBody 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 @@ -3496,7 +3496,7 @@ export namespace spanner_v1 { * * @param {object} params Parameters for request * @param {string} params.session Required. The session in which the transaction to be committed is running. - * @param {().CommitRequest} params.resource Request body data + * @param {().CommitRequest} params.requestBody 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 @@ -3571,7 +3571,7 @@ export namespace spanner_v1 { * * @param {object} params Parameters for request * @param {string} params.database Required. The database in which the new session is created. - * @param {().CreateSessionRequest} params.resource Request body data + * @param {().CreateSessionRequest} params.requestBody 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 @@ -3713,7 +3713,7 @@ export namespace spanner_v1 { * * @param {object} params Parameters for request * @param {string} params.session Required. The session in which the DML statements should be performed. - * @param {().ExecuteBatchDmlRequest} params.resource Request body data + * @param {().ExecuteBatchDmlRequest} params.requestBody 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 @@ -3792,7 +3792,7 @@ export namespace spanner_v1 { * * @param {object} params Parameters for request * @param {string} params.session Required. The session in which the SQL query should be performed. - * @param {().ExecuteSqlRequest} params.resource Request body data + * @param {().ExecuteSqlRequest} params.requestBody 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 @@ -3867,7 +3867,7 @@ export namespace spanner_v1 { * * @param {object} params Parameters for request * @param {string} params.session Required. The session in which the SQL query should be performed. - * @param {().ExecuteSqlRequest} params.resource Request body data + * @param {().ExecuteSqlRequest} params.requestBody 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 @@ -4092,7 +4092,7 @@ export namespace spanner_v1 { * * @param {object} params Parameters for request * @param {string} params.session Required. The session used to create the partitions. - * @param {().PartitionQueryRequest} params.resource Request body data + * @param {().PartitionQueryRequest} params.requestBody 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 @@ -4169,7 +4169,7 @@ export namespace spanner_v1 { * * @param {object} params Parameters for request * @param {string} params.session Required. The session used to create the partitions. - * @param {().PartitionReadRequest} params.resource Request body data + * @param {().PartitionReadRequest} params.requestBody 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 @@ -4246,7 +4246,7 @@ export namespace spanner_v1 { * * @param {object} params Parameters for request * @param {string} params.session Required. The session in which the read should be performed. - * @param {().ReadRequest} params.resource Request body data + * @param {().ReadRequest} params.requestBody 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 @@ -4321,7 +4321,7 @@ export namespace spanner_v1 { * * @param {object} params Parameters for request * @param {string} params.session Required. The session in which the transaction to roll back is running. - * @param {().RollbackRequest} params.resource Request body data + * @param {().RollbackRequest} params.requestBody 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 @@ -4394,7 +4394,7 @@ export namespace spanner_v1 { * * @param {object} params Parameters for request * @param {string} params.session Required. The session in which the read should be performed. - * @param {().ReadRequest} params.resource Request body data + * @param {().ReadRequest} params.requestBody 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 diff --git a/src/apis/speech/v1.ts b/src/apis/speech/v1.ts index dd9a342b844..cea6d5ced3a 100644 --- a/src/apis/speech/v1.ts +++ b/src/apis/speech/v1.ts @@ -845,7 +845,7 @@ export namespace speech_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().LongRunningRecognizeRequest} params.resource Request body data + * @param {().LongRunningRecognizeRequest} params.requestBody 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 @@ -921,7 +921,7 @@ export namespace speech_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().RecognizeRequest} params.resource Request body data + * @param {().RecognizeRequest} params.requestBody 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 diff --git a/src/apis/speech/v1p1beta1.ts b/src/apis/speech/v1p1beta1.ts index cb4e453f454..c70324c83da 100644 --- a/src/apis/speech/v1p1beta1.ts +++ b/src/apis/speech/v1p1beta1.ts @@ -880,7 +880,7 @@ export namespace speech_v1p1beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().LongRunningRecognizeRequest} params.resource Request body data + * @param {().LongRunningRecognizeRequest} params.requestBody 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 @@ -956,7 +956,7 @@ export namespace speech_v1p1beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().RecognizeRequest} params.resource Request body data + * @param {().RecognizeRequest} params.requestBody 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 diff --git a/src/apis/sql/v1beta4.ts b/src/apis/sql/v1beta4.ts index 4de87d4c344..a71b10b79ed 100644 --- a/src/apis/sql/v1beta4.ts +++ b/src/apis/sql/v1beta4.ts @@ -398,7 +398,7 @@ export namespace sql_v1beta4 { /** * The name and status of the failover replica. This property is applicable only to Second Generation instances. */ - failoverReplica?: {name?: string; available?: boolean} | null; + failoverReplica?: {available?: boolean; name?: string} | null; /** * The Compute Engine zone that the instance is currently serving from. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary zone. */ @@ -695,9 +695,9 @@ export namespace sql_v1beta4 { */ bakImportOptions?: { encryptionOptions?: { + pvkPassword?: string; certPath?: string; pvkPath?: string; - pvkPassword?: string; }; } | null; /** @@ -1618,7 +1618,7 @@ export namespace sql_v1beta4 { * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. * @param {string=} params.parent The parent resource where Cloud SQL should create this backupRun. Format: projects/{project}/locations/{location}/instances/{instance} * @param {string} params.project Project ID of the project that contains the instance. - * @param {().BackupRun} params.resource Request body data + * @param {().BackupRun} params.requestBody 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 @@ -2031,7 +2031,7 @@ export namespace sql_v1beta4 { * @param {string} params.instance Database instance ID. This does not include the project ID. * @param {string=} params.parent The parent resource where Cloud SQL should add this database. Format: projects/{project}/locations/{location}/instances/{instance} * @param {string} params.project Project ID of the project that contains the instance. - * @param {().Database} params.resource Request body data + * @param {().Database} params.requestBody 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 @@ -2185,7 +2185,7 @@ export namespace sql_v1beta4 { * @param {string} params.instance Database instance ID. This does not include the project ID. * @param {string} params.project Project ID of the project that contains the instance. * @param {string=} params.resourceName The name of the database for Cloud SQL to update. Format: projects/{project}/locations/{location}/instances/{instance}/databases/{database} - * @param {().Database} params.resource Request body data + * @param {().Database} params.requestBody 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 @@ -2262,7 +2262,7 @@ export namespace sql_v1beta4 { * @param {string} params.instance Database instance ID. This does not include the project ID. * @param {string} params.project Project ID of the project that contains the instance. * @param {string=} params.resourceName The name of the database for Cloud SQL to update. Format: projects/{project}/locations/{location}/instances/{instance}/databases/{database} - * @param {().Database} params.resource Request body data + * @param {().Database} params.requestBody 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 @@ -2656,7 +2656,7 @@ export namespace sql_v1beta4 { * @param {string} params.instance The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID. * @param {string=} params.parent The parent resource where Cloud SQL should clone this instance. Format: projects/{project}/locations/{location}/instances/{instance} * @param {string} params.project Project ID of the source as well as the clone Cloud SQL instance. - * @param {().InstancesCloneRequest} params.resource Request body data + * @param {().InstancesCloneRequest} params.requestBody 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 @@ -2806,7 +2806,7 @@ export namespace sql_v1beta4 { * @param {string} params.instance Cloud SQL instance name. * @param {string=} params.parent The parent resource where Cloud SQL demotes this master database instance. Format: projects/{project}/locations/{location}/instances/{instance} * @param {string} params.project ID of the project that contains the instance. - * @param {().InstancesDemoteMasterRequest} params.resource Request body data + * @param {().InstancesDemoteMasterRequest} params.requestBody 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 @@ -2883,7 +2883,7 @@ export namespace sql_v1beta4 { * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. * @param {string=} params.parent The parent resource where Cloud SQL exports this database instance. Format: projects/{project}/locations/{location}/instances/{instance} * @param {string} params.project Project ID of the project that contains the instance to be exported. - * @param {().InstancesExportRequest} params.resource Request body data + * @param {().InstancesExportRequest} params.requestBody 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 @@ -2959,7 +2959,7 @@ export namespace sql_v1beta4 { * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. * @param {string=} params.parent The parent resource where Cloud SQL sends this database instance during a failover. Format: projects/{project}/locations/{location}/instances/{instance} * @param {string} params.project ID of the project that contains the read replica. - * @param {().InstancesFailoverRequest} params.resource Request body data + * @param {().InstancesFailoverRequest} params.requestBody 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 @@ -3110,7 +3110,7 @@ export namespace sql_v1beta4 { * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. * @param {string=} params.parent The parent resource where Cloud SQL imports this database instance. Format: projects/{project}/locations/{location}/instances/{instance} * @param {string} params.project Project ID of the project that contains the instance. - * @param {().InstancesImportRequest} params.resource Request body data + * @param {().InstancesImportRequest} params.requestBody 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 @@ -3185,7 +3185,7 @@ export namespace sql_v1beta4 { * @param {object} params Parameters for request * @param {string=} params.parent The parent resource where Cloud SQL creates this database instance. Format: projects/{project}/locations/{location} * @param {string} params.project Project ID of the project to which the newly created Cloud SQL instances should belong. - * @param {().DatabaseInstance} params.resource Request body data + * @param {().DatabaseInstance} params.requestBody 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 @@ -3422,7 +3422,7 @@ export namespace sql_v1beta4 { * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. * @param {string} params.project Project ID of the project that contains the instance. * @param {string=} params.resourceName The name of the database instance for Cloud SQL to update. Format: projects/{project}/locations/{location}/instances/{instance} - * @param {().DatabaseInstance} params.resource Request body data + * @param {().DatabaseInstance} params.requestBody 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 @@ -3725,7 +3725,7 @@ export namespace sql_v1beta4 { * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. * @param {string=} params.parent The parent resource where Cloud SQL restores this database instance from backup. Format: projects/{project}/locations/{location}/instances/{instance} * @param {string} params.project Project ID of the project that contains the instance. - * @param {().InstancesRestoreBackupRequest} params.resource Request body data + * @param {().InstancesRestoreBackupRequest} params.requestBody 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 @@ -3802,7 +3802,7 @@ export namespace sql_v1beta4 { * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. * @param {string=} params.parent The parent resource where Cloud SQL rotates these server CAs. Format: projects/{project}/locations/{location}/instances/{instance} * @param {string} params.project Project ID of the project that contains the instance. - * @param {().InstancesRotateServerCaRequest} params.resource Request body data + * @param {().InstancesRotateServerCaRequest} params.requestBody 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 @@ -4031,7 +4031,7 @@ export namespace sql_v1beta4 { * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. * @param {string=} params.parent The parent resource where Cloud SQL truncates this log. Format: projects/{project}/locations/{location}/instances/{instance} * @param {string} params.project Project ID of the Cloud SQL project. - * @param {().InstancesTruncateLogRequest} params.resource Request body data + * @param {().InstancesTruncateLogRequest} params.requestBody 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 @@ -4108,7 +4108,7 @@ export namespace sql_v1beta4 { * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. * @param {string} params.project Project ID of the project that contains the instance. * @param {string=} params.resourceName The name of the database instance for Cloud SQL to update. Format: projects/{project}/locations/{location}/instances/{instance} - * @param {().DatabaseInstance} params.resource Request body data + * @param {().DatabaseInstance} params.requestBody 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 @@ -4858,7 +4858,7 @@ export namespace sql_v1beta4 { * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. * @param {string=} params.parent The parent resource where Cloud SQL creates this ephemeral certificate. Format: projects/{project}/locations/{location}/instances/{instance} * @param {string} params.project Project ID of the Cloud SQL project. - * @param {().SslCertsCreateEphemeralRequest} params.resource Request body data + * @param {().SslCertsCreateEphemeralRequest} params.requestBody 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 @@ -5083,7 +5083,7 @@ export namespace sql_v1beta4 { * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. * @param {string=} params.parent The parent resource where Cloud SQL creates this SSL certificate. Format: projects/{project}/locations/{location}/instances/{instance} * @param {string} params.project Project ID of the project that contains the instance. - * @param {().SslCertsInsertRequest} params.resource Request body data + * @param {().SslCertsInsertRequest} params.requestBody 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 @@ -5529,7 +5529,7 @@ export namespace sql_v1beta4 { * @param {string} params.instance Database instance ID. This does not include the project ID. * @param {string=} params.parent The parent resource where Cloud SQL creates this user. Format: projects/{project}/locations/{location}/instances/{instance} * @param {string} params.project Project ID of the project that contains the instance. - * @param {().User} params.resource Request body data + * @param {().User} params.requestBody 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 @@ -5682,7 +5682,7 @@ export namespace sql_v1beta4 { * @param {string=} params.name Name of the user in the instance. * @param {string} params.project Project ID of the project that contains the instance. * @param {string=} params.resourceName The name of the user for Cloud SQL to update. Format: projects/{project}/locations/{location}/instances/{instance}/users - * @param {().User} params.resource Request body data + * @param {().User} params.requestBody 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 diff --git a/src/apis/sqladmin/v1beta4.ts b/src/apis/sqladmin/v1beta4.ts deleted file mode 100644 index c7af13176eb..00000000000 --- a/src/apis/sqladmin/v1beta4.ts +++ /dev/null @@ -1,5607 +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 sqladmin_v1beta4 { - export interface Options extends GlobalOptions { - version: 'v1beta4'; - } - - 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; - } - - /** - * Cloud SQL Admin API - * - * Creates and manages Cloud SQL instances, which provide fully managed MySQL or PostgreSQL databases. - * - * @example - * const {google} = require('googleapis'); - * const sqladmin = google.sqladmin('v1beta4'); - * - * @namespace sqladmin - * @type {Function} - * @version v1beta4 - * @variation v1beta4 - * @param {object=} options Options for Sqladmin - */ - export class Sqladmin { - context: APIRequestContext; - backupRuns: Resource$Backupruns; - databases: Resource$Databases; - flags: Resource$Flags; - instances: Resource$Instances; - operations: Resource$Operations; - sslCerts: Resource$Sslcerts; - tiers: Resource$Tiers; - users: Resource$Users; - - constructor(options: GlobalOptions, google?: GoogleConfigurable) { - this.context = { - _options: options || {}, - google, - }; - - this.backupRuns = new Resource$Backupruns(this.context); - this.databases = new Resource$Databases(this.context); - this.flags = new Resource$Flags(this.context); - this.instances = new Resource$Instances(this.context); - this.operations = new Resource$Operations(this.context); - this.sslCerts = new Resource$Sslcerts(this.context); - this.tiers = new Resource$Tiers(this.context); - this.users = new Resource$Users(this.context); - } - } - - /** - * An entry for an Access Control list. - */ - export interface Schema$AclEntry { - /** - * The time when this access control entry expires in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. - */ - expirationTime?: string | null; - /** - * This is always sql#aclEntry. - */ - kind?: string | null; - /** - * An optional label to identify this entry. - */ - name?: string | null; - /** - * The whitelisted value for the access control list. - */ - value?: string | null; - } - /** - * An Admin API warning message. - */ - export interface Schema$ApiWarning { - /** - * Code to uniquely identify the warning type. - */ - code?: string | null; - /** - * The warning message. - */ - message?: string | null; - } - /** - * Database instance backup configuration. - */ - export interface Schema$BackupConfiguration { - /** - * Whether binary log is enabled. If backup configuration is disabled, binary log must be disabled as well. - */ - binaryLogEnabled?: boolean | null; - /** - * Whether this configuration is enabled. - */ - enabled?: boolean | null; - /** - * This is always sql#backupConfiguration. - */ - kind?: string | null; - /** - * The location of the backup. - */ - location?: string | null; - /** - * Reserved for future use. - */ - replicationLogArchivingEnabled?: boolean | null; - /** - * Start time for the daily backup configuration in UTC timezone in the 24 hour format - HH:MM. - */ - startTime?: string | null; - } - /** - * A BackupRun resource. - */ - export interface Schema$BackupRun { - /** - * The description of this run, only applicable to on-demand backups. - */ - description?: string | null; - /** - * Disk encryption configuration specific to a backup. Applies only to Second Generation instances. - */ - diskEncryptionConfiguration?: Schema$DiskEncryptionConfiguration; - /** - * Disk encryption status specific to a backup. Applies only to Second Generation instances. - */ - diskEncryptionStatus?: Schema$DiskEncryptionStatus; - /** - * The time the backup operation completed in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. - */ - endTime?: string | null; - /** - * The time the run was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. - */ - enqueuedTime?: string | null; - /** - * Information about why the backup operation failed. This is only present if the run has the FAILED status. - */ - error?: Schema$OperationError; - /** - * The identifier for this backup run. Unique only for a specific Cloud SQL instance. - */ - id?: string | null; - /** - * Name of the database instance. - */ - instance?: string | null; - /** - * This is always sql#backupRun. - */ - kind?: string | null; - /** - * The location of the backup. - */ - location?: string | null; - /** - * The URI of this resource. - */ - selfLink?: string | null; - /** - * The time the backup operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. - */ - startTime?: string | null; - /** - * The status of this run. - */ - status?: string | null; - /** - * The type of this run; can be either "AUTOMATED" or "ON_DEMAND". - */ - type?: string | null; - /** - * The start time of the backup window during which this the backup was attempted in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. - */ - windowStartTime?: string | null; - } - /** - * Backup run list results. - */ - export interface Schema$BackupRunsListResponse { - /** - * A list of backup runs in reverse chronological order of the enqueued time. - */ - items?: Schema$BackupRun[]; - /** - * This is always sql#backupRunsList. - */ - kind?: string | null; - /** - * The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results. - */ - nextPageToken?: string | null; - } - /** - * Binary log coordinates. - */ - export interface Schema$BinLogCoordinates { - /** - * Name of the binary log file for a Cloud SQL instance. - */ - binLogFileName?: string | null; - /** - * Position (offset) within the binary log file. - */ - binLogPosition?: string | null; - /** - * This is always sql#binLogCoordinates. - */ - kind?: string | null; - } - /** - * Database instance clone context. - */ - export interface Schema$CloneContext { - /** - * Binary log coordinates, if specified, identify the position up to which the source instance should be cloned. If not specified, the source instance is cloned up to the most recent binary log coordinates. - */ - binLogCoordinates?: Schema$BinLogCoordinates; - /** - * Name of the Cloud SQL instance to be created as a clone. - */ - destinationInstanceName?: string | null; - /** - * This is always sql#cloneContext. - */ - kind?: string | null; - /** - * Reserved for future use. - */ - pitrTimestampMs?: string | null; - } - /** - * Represents a SQL database on the Cloud SQL instance. - */ - export interface Schema$Database { - /** - * The MySQL charset value. - */ - charset?: string | null; - /** - * The MySQL collation value. - */ - collation?: string | null; - /** - * This field is deprecated and will be removed from a future version of the API. - */ - etag?: string | null; - /** - * The name of the Cloud SQL instance. This does not include the project ID. - */ - instance?: string | null; - /** - * This is always sql#database. - */ - kind?: string | null; - /** - * The name of the database in the Cloud SQL instance. This does not include the project ID or instance name. - */ - name?: string | null; - /** - * The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable. - */ - project?: string | null; - /** - * The URI of this resource. - */ - selfLink?: string | null; - } - /** - * Database flags for Cloud SQL instances. - */ - export interface Schema$DatabaseFlags { - /** - * The name of the flag. These flags are passed at instance startup, so include both server options and system variables for MySQL. Flags should be specified with underscores, not hyphens. For more information, see Configuring Database Flags in the Cloud SQL documentation. - */ - name?: string | null; - /** - * The value of the flag. Booleans should be set to on for true and off for false. This field must be omitted if the flag doesn't take a value. - */ - value?: string | null; - } - /** - * A Cloud SQL instance resource. - */ - export interface Schema$DatabaseInstance { - /** - * FIRST_GEN: First Generation instance. MySQL only. SECOND_GEN: Second Generation instance or PostgreSQL instance. EXTERNAL: A database server that is not managed by Google. This property is read-only; use the tier property in the settings object to determine the database type and Second or First Generation. - */ - backendType?: string | null; - /** - * Connection name of the Cloud SQL instance used in connection strings. - */ - connectionName?: string | null; - /** - * The current disk usage of the instance in bytes. This property has been deprecated. Users should use the "cloudsql.googleapis.com/database/disk/bytes_used" metric in Cloud Monitoring API instead. Please see this announcement for details. - */ - currentDiskSize?: string | null; - /** - * The database engine type and version. The databaseVersion field can not be changed after instance creation. MySQL Second Generation instances: MYSQL_5_7 (default) or MYSQL_5_6. PostgreSQL instances: POSTGRES_9_6 (default) or POSTGRES_11 Beta. MySQL First Generation instances: MYSQL_5_6 (default) or MYSQL_5_5 - */ - databaseVersion?: string | null; - /** - * Disk encryption configuration specific to an instance. Applies only to Second Generation instances. - */ - diskEncryptionConfiguration?: Schema$DiskEncryptionConfiguration; - /** - * Disk encryption status specific to an instance. Applies only to Second Generation instances. - */ - diskEncryptionStatus?: Schema$DiskEncryptionStatus; - /** - * This field is deprecated and will be removed from a future version of the API. Use the settings.settingsVersion field instead. - */ - etag?: string | null; - /** - * The name and status of the failover replica. This property is applicable only to Second Generation instances. - */ - failoverReplica?: {available?: boolean; name?: string} | null; - /** - * The Compute Engine zone that the instance is currently serving from. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary zone. - */ - gceZone?: string | null; - /** - * The instance type. This can be one of the following. CLOUD_SQL_INSTANCE: A Cloud SQL instance that is not replicating from a master. ON_PREMISES_INSTANCE: An instance running on the customer's premises. READ_REPLICA_INSTANCE: A Cloud SQL instance configured as a read-replica. - */ - instanceType?: string | null; - /** - * The assigned IP addresses for the instance. - */ - ipAddresses?: Schema$IpMapping[]; - /** - * The IPv6 address assigned to the instance. This property is applicable only to First Generation instances. - */ - ipv6Address?: string | null; - /** - * This is always sql#instance. - */ - kind?: string | null; - /** - * The name of the instance which will act as master in the replication setup. - */ - masterInstanceName?: string | null; - /** - * The maximum disk size of the instance in bytes. - */ - maxDiskSize?: string | null; - /** - * Name of the Cloud SQL instance. This does not include the project ID. - */ - name?: string | null; - /** - * Configuration specific to on-premises instances. - */ - onPremisesConfiguration?: Schema$OnPremisesConfiguration; - /** - * The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable. - */ - project?: string | null; - /** - * The geographical region. Can be us-central (FIRST_GEN instances only), us-central1 (SECOND_GEN instances only), asia-east1 or europe-west1. Defaults to us-central or us-central1 depending on the instance type (First Generation or Second Generation). The region can not be changed after instance creation. - */ - region?: string | null; - /** - * Configuration specific to failover replicas and read replicas. - */ - replicaConfiguration?: Schema$ReplicaConfiguration; - /** - * The replicas of the instance. - */ - replicaNames?: string[] | null; - /** - * Initial root password. Use only on creation. - */ - rootPassword?: string | null; - /** - * The URI of this resource. - */ - selfLink?: string | null; - /** - * SSL configuration. - */ - serverCaCert?: Schema$SslCert; - /** - * The service account email address assigned to the instance. This property is applicable only to Second Generation instances. - */ - serviceAccountEmailAddress?: string | null; - /** - * The user settings. - */ - settings?: Schema$Settings; - /** - * The current serving state of the Cloud SQL instance. This can be one of the following. RUNNABLE: The instance is running, or is ready to run when accessed. SUSPENDED: The instance is not available, for example due to problems with billing. PENDING_CREATE: The instance is being created. MAINTENANCE: The instance is down for maintenance. FAILED: The instance creation failed. UNKNOWN_STATE: The state of the instance is unknown. - */ - state?: string | null; - /** - * If the instance state is SUSPENDED, the reason for the suspension. - */ - suspensionReason?: string[] | null; - } - /** - * Database list response. - */ - export interface Schema$DatabasesListResponse { - /** - * List of database resources in the instance. - */ - items?: Schema$Database[]; - /** - * This is always sql#databasesList. - */ - kind?: string | null; - } - /** - * Read-replica configuration for connecting to the on-premises master. - */ - export interface Schema$DemoteMasterConfiguration { - /** - * This is always sql#demoteMasterConfiguration. - */ - kind?: string | null; - /** - * MySQL specific configuration when replicating from a MySQL on-premises master. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named master.info in the data directory. - */ - mysqlReplicaConfiguration?: Schema$DemoteMasterMySqlReplicaConfiguration; - } - /** - * Database instance demote master context. - */ - export interface Schema$DemoteMasterContext { - /** - * This is always sql#demoteMasterContext. - */ - kind?: string | null; - /** - * The name of the instance which will act as on-premises master in the replication setup. - */ - masterInstanceName?: string | null; - /** - * Configuration specific to read-replicas replicating from the on-premises master. - */ - replicaConfiguration?: Schema$DemoteMasterConfiguration; - /** - * Verify GTID consistency for demote operation. Default value: True. Second Generation instances only. Setting this flag to false enables you to bypass GTID consistency check between on-premises master and Cloud SQL instance during the demotion operation but also exposes you to the risk of future replication failures. Change the value only if you know the reason for the GTID divergence and are confident that doing so will not cause any replication issues. - */ - verifyGtidConsistency?: boolean | null; - } - /** - * Read-replica configuration specific to MySQL databases. - */ - export interface Schema$DemoteMasterMySqlReplicaConfiguration { - /** - * PEM representation of the trusted CA's x509 certificate. - */ - caCertificate?: string | null; - /** - * PEM representation of the slave's x509 certificate. - */ - clientCertificate?: string | null; - /** - * PEM representation of the slave's private key. The corresponsing public key is encoded in the client's certificate. The format of the slave's private key can be either PKCS #1 or PKCS #8. - */ - clientKey?: string | null; - /** - * This is always sql#demoteMasterMysqlReplicaConfiguration. - */ - kind?: string | null; - /** - * The password for the replication connection. - */ - password?: string | null; - /** - * The username for the replication connection. - */ - username?: string | null; - } - /** - * Disk encryption configuration. - */ - export interface Schema$DiskEncryptionConfiguration { - /** - * This is always sql#diskEncryptionConfiguration. - */ - kind?: string | null; - /** - * KMS key resource name - */ - kmsKeyName?: string | null; - } - /** - * Disk encryption status. - */ - export interface Schema$DiskEncryptionStatus { - /** - * This is always sql#diskEncryptionStatus. - */ - kind?: string | null; - /** - * KMS key version used to encrypt the Cloud SQL instance disk - */ - kmsKeyVersionName?: string | null; - } - /** - * Database instance export context. - */ - export interface Schema$ExportContext { - /** - * Options for exporting data as CSV. - */ - csvExportOptions?: {selectQuery?: string} | null; - /** - * Databases to be exported. MySQL instances: If fileType is SQL and no database is specified, all databases are exported, except for the mysql system database. If fileType is CSV, you can specify one database, either by using this property or by using the csvExportOptions.selectQuery property, which takes precedence over this property. PostgreSQL instances: Specify exactly one database to be exported. If fileType is CSV, this database must match the database used in the csvExportOptions.selectQuery property. - */ - databases?: string[] | null; - /** - * The file type for the specified uri. SQL: The file contains SQL statements. CSV: The file contains CSV data. - */ - fileType?: string | null; - /** - * This is always sql#exportContext. - */ - kind?: string | null; - /** - * Options for exporting data as SQL statements. - */ - sqlExportOptions?: { - mysqlExportOptions?: {masterData?: number}; - schemaOnly?: boolean; - tables?: string[]; - } | null; - /** - * The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form gs://bucketName/fileName. If the file already exists, the requests succeeds, but the operation fails. If fileType is SQL and the filename ends with .gz, the contents are compressed. - */ - uri?: string | null; - } - /** - * Database instance failover context. - */ - export interface Schema$FailoverContext { - /** - * This is always sql#failoverContext. - */ - kind?: string | null; - /** - * The current settings version of this instance. Request will be rejected if this version doesn't match the current settings version. - */ - settingsVersion?: string | null; - } - /** - * A flag resource. - */ - export interface Schema$Flag { - /** - * For STRING flags, a list of strings that the value can be set to. - */ - allowedStringValues?: string[] | null; - /** - * The database version this flag applies to. Can be MYSQL_5_5, MYSQL_5_6, or MYSQL_5_7. MYSQL_5_7 is applicable only to Second Generation instances. - */ - appliesTo?: string[] | null; - /** - * True if the flag is only released in Beta. - */ - inBeta?: boolean | null; - /** - * This is always sql#flag. - */ - kind?: string | null; - /** - * For INTEGER flags, the maximum allowed value. - */ - maxValue?: string | null; - /** - * For INTEGER flags, the minimum allowed value. - */ - minValue?: string | null; - /** - * This is the name of the flag. Flag names always use underscores, not hyphens, e.g. max_allowed_packet - */ - name?: string | null; - /** - * Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances. - */ - requiresRestart?: boolean | null; - /** - * The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER or NONE. NONE is used for flags which do not take a value, such as skip_grant_tables. - */ - type?: string | null; - } - /** - * Flags list response. - */ - export interface Schema$FlagsListResponse { - /** - * List of flags. - */ - items?: Schema$Flag[]; - /** - * This is always sql#flagsList. - */ - kind?: string | null; - } - /** - * Database instance import context. - */ - export interface Schema$ImportContext { - /** - * Import parameters specific to SQL Server .BAK files - */ - bakImportOptions?: { - encryptionOptions?: { - certPath?: string; - pvkPassword?: string; - pvkPath?: string; - }; - } | null; - /** - * Options for importing data as CSV. - */ - csvImportOptions?: {columns?: string[]; table?: string} | null; - /** - * The target database for the import. If fileType is SQL, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. If fileType is CSV, one database must be specified. - */ - database?: string | null; - /** - * The file type for the specified uri. SQL: The file contains SQL statements. CSV: The file contains CSV data. - */ - fileType?: string | null; - /** - * The PostgreSQL user for this import operation. PostgreSQL instances only. - */ - importUser?: string | null; - /** - * This is always sql#importContext. - */ - kind?: string | null; - /** - * Path to the import file in Cloud Storage, in the form gs://bucketName/fileName. Compressed gzip files (.gz) are supported when fileType is SQL. The instance must have write permissions to the bucket and read access to the file. - */ - uri?: string | null; - } - /** - * Database instance clone request. - */ - export interface Schema$InstancesCloneRequest { - /** - * Contains details about the clone operation. - */ - cloneContext?: Schema$CloneContext; - } - /** - * Database demote master request. - */ - export interface Schema$InstancesDemoteMasterRequest { - /** - * Contains details about the demoteMaster operation. - */ - demoteMasterContext?: Schema$DemoteMasterContext; - } - /** - * Database instance export request. - */ - export interface Schema$InstancesExportRequest { - /** - * Contains details about the export operation. - */ - exportContext?: Schema$ExportContext; - } - /** - * Instance failover request. - */ - export interface Schema$InstancesFailoverRequest { - /** - * Failover Context. - */ - failoverContext?: Schema$FailoverContext; - } - /** - * Database instance import request. - */ - export interface Schema$InstancesImportRequest { - /** - * Contains details about the import operation. - */ - importContext?: Schema$ImportContext; - } - /** - * Database instances list response. - */ - export interface Schema$InstancesListResponse { - /** - * List of database instance resources. - */ - items?: Schema$DatabaseInstance[]; - /** - * This is always sql#instancesList. - */ - kind?: string | null; - /** - * The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results. - */ - nextPageToken?: string | null; - /** - * List of warnings that ocurred while handling the request. - */ - warnings?: Schema$ApiWarning[]; - } - /** - * Instances ListServerCas response. - */ - export interface Schema$InstancesListServerCasResponse { - activeVersion?: string | null; - /** - * List of server CA certificates for the instance. - */ - certs?: Schema$SslCert[]; - /** - * This is always sql#instancesListServerCas. - */ - kind?: string | null; - } - /** - * Database instance restore backup request. - */ - export interface Schema$InstancesRestoreBackupRequest { - /** - * Parameters required to perform the restore backup operation. - */ - restoreBackupContext?: Schema$RestoreBackupContext; - } - /** - * Rotate Server CA request. - */ - export interface Schema$InstancesRotateServerCaRequest { - /** - * Contains details about the rotate server CA operation. - */ - rotateServerCaContext?: Schema$RotateServerCaContext; - } - /** - * Instance truncate log request. - */ - export interface Schema$InstancesTruncateLogRequest { - /** - * Contains details about the truncate log operation. - */ - truncateLogContext?: Schema$TruncateLogContext; - } - /** - * IP Management configuration. - */ - export interface Schema$IpConfiguration { - /** - * The list of external networks that are allowed to connect to the instance using the IP. In CIDR notation, also known as 'slash' notation (e.g. 192.168.100.0/24). - */ - authorizedNetworks?: Schema$AclEntry[]; - /** - * Whether the instance should be assigned an IP address or not. - */ - ipv4Enabled?: boolean | null; - /** - * The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, /projects/myProject/global/networks/default. This setting can be updated, but it cannot be removed after it is set. - */ - privateNetwork?: string | null; - /** - * Whether SSL connections over IP should be enforced or not. - */ - requireSsl?: boolean | null; - } - /** - * Database instance IP Mapping. - */ - export interface Schema$IpMapping { - /** - * The IP address assigned. - */ - ipAddress?: string | null; - /** - * The due time for this IP to be retired in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. This field is only available when the IP is scheduled to be retired. - */ - timeToRetire?: string | null; - /** - * The type of this IP address. A PRIMARY address is a public address that can accept incoming connections. A PRIVATE address is a private address that can accept incoming connections. An OUTGOING address is the source address of connections originating from the instance, if supported. - */ - type?: string | null; - } - /** - * Preferred location. This specifies where a Cloud SQL instance should preferably be located, either in a specific Compute Engine zone, or co-located with an App Engine application. Note that if the preferred location is not available, the instance will be located as close as possible within the region. Only one location may be specified. - */ - export interface Schema$LocationPreference { - /** - * The AppEngine application to follow, it must be in the same region as the Cloud SQL instance. - */ - followGaeApplication?: string | null; - /** - * This is always sql#locationPreference. - */ - kind?: string | null; - /** - * The preferred Compute Engine zone (e.g. us-central1-a, us-central1-b, etc.). - */ - zone?: string | null; - } - /** - * Maintenance window. This specifies when a v2 Cloud SQL instance should preferably be restarted for system maintenance purposes. - */ - export interface Schema$MaintenanceWindow { - /** - * day of week (1-7), starting on Monday. - */ - day?: number | null; - /** - * hour of day - 0 to 23. - */ - hour?: number | null; - /** - * This is always sql#maintenanceWindow. - */ - kind?: string | null; - /** - * Maintenance timing setting: canary (Earlier) or stable (Later). Learn more. - */ - updateTrack?: string | null; - } - /** - * Read-replica configuration specific to MySQL databases. - */ - export interface Schema$MySqlReplicaConfiguration { - /** - * PEM representation of the trusted CA's x509 certificate. - */ - caCertificate?: string | null; - /** - * PEM representation of the slave's x509 certificate. - */ - clientCertificate?: string | null; - /** - * PEM representation of the slave's private key. The corresponsing public key is encoded in the client's certificate. - */ - clientKey?: string | null; - /** - * Seconds to wait between connect retries. MySQL's default is 60 seconds. - */ - connectRetryInterval?: number | null; - /** - * Path to a SQL dump file in Google Cloud Storage from which the slave instance is to be created. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also supported. Dumps should have the binlog co-ordinates from which replication should begin. This can be accomplished by setting --master-data to 1 when using mysqldump. - */ - dumpFilePath?: string | null; - /** - * This is always sql#mysqlReplicaConfiguration. - */ - kind?: string | null; - /** - * Interval in milliseconds between replication heartbeats. - */ - masterHeartbeatPeriod?: string | null; - /** - * The password for the replication connection. - */ - password?: string | null; - /** - * A list of permissible ciphers to use for SSL encryption. - */ - sslCipher?: string | null; - /** - * The username for the replication connection. - */ - username?: string | null; - /** - * Whether or not to check the master's Common Name value in the certificate that it sends during the SSL handshake. - */ - verifyServerCertificate?: boolean | null; - } - /** - * On-premises instance configuration. - */ - export interface Schema$OnPremisesConfiguration { - /** - * The host and port of the on-premises instance in host:port format - */ - hostPort?: string | null; - /** - * This is always sql#onPremisesConfiguration. - */ - kind?: string | null; - } - /** - * An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource. - */ - export interface Schema$Operation { - /** - * The time this operation finished in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. - */ - endTime?: string | null; - /** - * If errors occurred during processing of this operation, this field will be populated. - */ - error?: Schema$OperationErrors; - /** - * The context for export operation, if applicable. - */ - exportContext?: Schema$ExportContext; - /** - * The context for import operation, if applicable. - */ - importContext?: Schema$ImportContext; - /** - * The time this operation was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. - */ - insertTime?: string | null; - /** - * This is always sql#operation. - */ - kind?: string | null; - /** - * An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation. - */ - name?: string | null; - /** - * The type of the operation. Valid values are CREATE, DELETE, UPDATE, RESTART, IMPORT, EXPORT, BACKUP_VOLUME, RESTORE_VOLUME, CREATE_USER, DELETE_USER, CREATE_DATABASE, DELETE_DATABASE . - */ - operationType?: string | null; - /** - * The URI of this resource. - */ - selfLink?: string | null; - /** - * The time this operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. - */ - startTime?: string | null; - /** - * The status of an operation. Valid values are PENDING, RUNNING, DONE, UNKNOWN. - */ - status?: string | null; - /** - * Name of the database instance related to this operation. - */ - targetId?: string | null; - targetLink?: string | null; - /** - * The project ID of the target instance related to this operation. - */ - targetProject?: string | null; - /** - * The email address of the user who initiated this operation. - */ - user?: string | null; - } - /** - * Database instance operation error. - */ - export interface Schema$OperationError { - /** - * Identifies the specific error that occurred. - */ - code?: string | null; - /** - * This is always sql#operationError. - */ - kind?: string | null; - /** - * Additional information about the error encountered. - */ - message?: string | null; - } - /** - * Database instance operation errors list wrapper. - */ - export interface Schema$OperationErrors { - /** - * The list of errors encountered while processing this operation. - */ - errors?: Schema$OperationError[]; - /** - * This is always sql#operationErrors. - */ - kind?: string | null; - } - /** - * Database instance list operations response. - */ - export interface Schema$OperationsListResponse { - /** - * List of operation resources. - */ - items?: Schema$Operation[]; - /** - * This is always sql#operationsList. - */ - kind?: string | null; - /** - * The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results. - */ - nextPageToken?: string | null; - } - /** - * Read-replica configuration for connecting to the master. - */ - export interface Schema$ReplicaConfiguration { - /** - * Specifies if the replica is the failover target. If the field is set to true the replica will be designated as a failover replica. In case the master instance fails, the replica instance will be promoted as the new master instance. Only one replica can be specified as failover target, and the replica has to be in different zone with the master instance. - */ - failoverTarget?: boolean | null; - /** - * This is always sql#replicaConfiguration. - */ - kind?: string | null; - /** - * MySQL specific configuration when replicating from a MySQL on-premises master. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named master.info in the data directory. - */ - mysqlReplicaConfiguration?: Schema$MySqlReplicaConfiguration; - } - /** - * Database instance restore from backup context. - */ - export interface Schema$RestoreBackupContext { - /** - * The ID of the backup run to restore from. - */ - backupRunId?: string | null; - /** - * The ID of the instance that the backup was taken from. - */ - instanceId?: string | null; - /** - * This is always sql#restoreBackupContext. - */ - kind?: string | null; - /** - * The full project ID of the source instance. - */ - project?: string | null; - } - /** - * Instance rotate server CA context. - */ - export interface Schema$RotateServerCaContext { - /** - * This is always sql#rotateServerCaContext. - */ - kind?: string | null; - /** - * The fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added server CA version. - */ - nextVersion?: string | null; - } - /** - * Database instance settings. - */ - export interface Schema$Settings { - /** - * The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: ALWAYS: The instance is on, and remains so even in the absence of connection requests. NEVER: The instance is off; it is not activated, even if a connection request arrives. ON_DEMAND: First Generation instances only. The instance responds to incoming requests, and turns itself off when not in use. Instances with PER_USE pricing turn off after 15 minutes of inactivity. Instances with PER_PACKAGE pricing turn off after 12 hours of inactivity. - */ - activationPolicy?: string | null; - /** - * The App Engine app IDs that can access this instance. First Generation instances only. - */ - authorizedGaeApplications?: string[] | null; - /** - * Availability type (PostgreSQL instances only). Potential values: ZONAL: The instance serves data from only one zone. Outages in that zone affect data accessibility. REGIONAL: The instance can serve data from more than one zone in a region (it is highly available). For more information, see Overview of the High Availability Configuration. - */ - availabilityType?: string | null; - /** - * The daily backup configuration for the instance. - */ - backupConfiguration?: Schema$BackupConfiguration; - /** - * Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property is only applicable to First Generation instances. - */ - crashSafeReplicationEnabled?: boolean | null; - /** - * The database flags passed to the instance at startup. - */ - databaseFlags?: Schema$DatabaseFlags[]; - /** - * Configuration specific to read replica instances. Indicates whether replication is enabled or not. - */ - databaseReplicationEnabled?: boolean | null; - /** - * The size of data disk, in GB. The data disk size minimum is 10GB. Not used for First Generation instances. - */ - dataDiskSizeGb?: string | null; - /** - * The type of data disk: PD_SSD (default) or PD_HDD. Not used for First Generation instances. - */ - dataDiskType?: string | null; - /** - * The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled for Second Generation instances. - */ - ipConfiguration?: Schema$IpConfiguration; - /** - * This is always sql#settings. - */ - kind?: string | null; - /** - * The location preference settings. This allows the instance to be located as near as possible to either an App Engine app or Compute Engine zone for better performance. App Engine co-location is only applicable to First Generation instances. - */ - locationPreference?: Schema$LocationPreference; - /** - * The maintenance window for this instance. This specifies when the instance can be restarted for maintenance purposes. Not used for First Generation instances. - */ - maintenanceWindow?: Schema$MaintenanceWindow; - /** - * The pricing plan for this instance. This can be either PER_USE or PACKAGE. Only PER_USE is supported for Second Generation instances. - */ - pricingPlan?: string | null; - /** - * The type of replication this instance uses. This can be either ASYNCHRONOUS or SYNCHRONOUS. This property is only applicable to First Generation instances. - */ - replicationType?: string | null; - /** - * The version of instance settings. This is a required field for update method to make sure concurrent updates are handled properly. During update, use the most recent settingsVersion value for this instance and do not try to update this value. - */ - settingsVersion?: string | null; - /** - * Configuration to increase storage size automatically. The default value is true. Not used for First Generation instances. - */ - storageAutoResize?: boolean | null; - /** - * The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit. Not used for First Generation instances. - */ - storageAutoResizeLimit?: string | null; - /** - * The tier (or machine type) for this instance, for example db-n1-standard-1 (MySQL instances) or db-custom-1-3840 (PostgreSQL instances). For MySQL instances, this property determines whether the instance is First or Second Generation. For more information, see Instance Settings. - */ - tier?: string | null; - /** - * User-provided labels, represented as a dictionary where each label is a single key value pair. - */ - userLabels?: {[key: string]: string} | null; - } - /** - * SslCerts Resource - */ - export interface Schema$SslCert { - /** - * PEM representation. - */ - cert?: string | null; - /** - * Serial number, as extracted from the certificate. - */ - certSerialNumber?: string | null; - /** - * User supplied name. Constrained to [a-zA-Z.-_ ]+. - */ - commonName?: string | null; - /** - * The time when the certificate was created in RFC 3339 format, for example 2012-11-15T16:19:00.094Z - */ - createTime?: string | null; - /** - * The time when the certificate expires in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. - */ - expirationTime?: string | null; - /** - * Name of the database instance. - */ - instance?: string | null; - /** - * This is always sql#sslCert. - */ - kind?: string | null; - /** - * The URI of this resource. - */ - selfLink?: string | null; - /** - * Sha1 Fingerprint. - */ - sha1Fingerprint?: string | null; - } - /** - * SslCertDetail. - */ - export interface Schema$SslCertDetail { - /** - * The public information about the cert. - */ - certInfo?: Schema$SslCert; - /** - * The private key for the client cert, in pem format. Keep private in order to protect your security. - */ - certPrivateKey?: string | null; - } - /** - * SslCerts create ephemeral certificate request. - */ - export interface Schema$SslCertsCreateEphemeralRequest { - /** - * PEM encoded public key to include in the signed certificate. - */ - public_key?: string | null; - } - /** - * SslCerts insert request. - */ - export interface Schema$SslCertsInsertRequest { - /** - * User supplied name. Must be a distinct name from the other certificates for this instance. - */ - commonName?: string | null; - } - /** - * SslCert insert response. - */ - export interface Schema$SslCertsInsertResponse { - /** - * The new client certificate and private key. For First Generation instances, the new certificate does not take effect until the instance is restarted. - */ - clientCert?: Schema$SslCertDetail; - /** - * This is always sql#sslCertsInsert. - */ - kind?: string | null; - /** - * The operation to track the ssl certs insert request. - */ - operation?: Schema$Operation; - /** - * The server Certificate Authority's certificate. If this is missing you can force a new one to be generated by calling resetSslConfig method on instances resource. - */ - serverCaCert?: Schema$SslCert; - } - /** - * SslCerts list response. - */ - export interface Schema$SslCertsListResponse { - /** - * List of client certificates for the instance. - */ - items?: Schema$SslCert[]; - /** - * This is always sql#sslCertsList. - */ - kind?: string | null; - } - /** - * A Google Cloud SQL service tier resource. - */ - export interface Schema$Tier { - /** - * The maximum disk size of this tier in bytes. - */ - DiskQuota?: string | null; - /** - * This is always sql#tier. - */ - kind?: string | null; - /** - * The maximum RAM usage of this tier in bytes. - */ - RAM?: string | null; - /** - * The applicable regions for this tier. - */ - region?: string[] | null; - /** - * An identifier for the machine type, for example, db-n1-standard-1. For related information, see Pricing. - */ - tier?: string | null; - } - /** - * Tiers list response. - */ - export interface Schema$TiersListResponse { - /** - * List of tiers. - */ - items?: Schema$Tier[]; - /** - * This is always sql#tiersList. - */ - kind?: string | null; - } - /** - * Database Instance truncate log context. - */ - export interface Schema$TruncateLogContext { - /** - * This is always sql#truncateLogContext. - */ - kind?: string | null; - /** - * The type of log to truncate. Valid values are MYSQL_GENERAL_TABLE and MYSQL_SLOW_TABLE. - */ - logType?: string | null; - } - /** - * A Cloud SQL user resource. - */ - export interface Schema$User { - /** - * This field is deprecated and will be removed from a future version of the API. - */ - etag?: string | null; - /** - * The host name from which the user can connect. For insert operations, host defaults to an empty string. For update operations, host is specified as part of the request URL. The host name cannot be updated after insertion. - */ - host?: string | null; - /** - * The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for update since it is already specified on the URL. - */ - instance?: string | null; - /** - * This is always sql#user. - */ - kind?: string | null; - /** - * The name of the user in the Cloud SQL instance. Can be omitted for update since it is already specified in the URL. - */ - name?: string | null; - /** - * The password for the user. - */ - password?: string | null; - /** - * The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable. Can be omitted for update since it is already specified on the URL. - */ - project?: string | null; - } - /** - * User list response. - */ - export interface Schema$UsersListResponse { - /** - * List of user resources in the instance. - */ - items?: Schema$User[]; - /** - * This is always sql#usersList. - */ - kind?: string | null; - /** - * An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation. - */ - nextPageToken?: string | null; - } - - export class Resource$Backupruns { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * sql.backupRuns.delete - * @desc Deletes the backup taken by a backup run. - * @alias sql.backupRuns.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.id The ID of the Backup Run to delete. To find a Backup Run ID, use the list method. - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @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$Backupruns$Delete, - options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Backupruns$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Backupruns$Delete, - callback: BodyResponseCallback - ): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - | Params$Resource$Backupruns$Delete - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Backupruns$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Backupruns$Delete; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, - options - ), - params, - requiredParams: ['project', 'instance', 'id'], - pathParams: ['id', 'instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.backupRuns.get - * @desc Retrieves a resource containing information about a backup run. - * @alias sql.backupRuns.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.id The ID of this Backup Run. - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @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$Backupruns$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Backupruns$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Backupruns$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Backupruns$Get - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Backupruns$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Backupruns$Get; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['project', 'instance', 'id'], - pathParams: ['id', 'instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.backupRuns.insert - * @desc Creates a new backup run on demand. This method is applicable only to Second Generation instances. - * @alias sql.backupRuns.insert - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @param {().BackupRun} 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 - */ - insert( - params?: Params$Resource$Backupruns$Insert, - options?: MethodOptions - ): GaxiosPromise; - insert( - params: Params$Resource$Backupruns$Insert, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - insert( - params: Params$Resource$Backupruns$Insert, - callback: BodyResponseCallback - ): void; - insert(callback: BodyResponseCallback): void; - insert( - paramsOrCallback?: - | Params$Resource$Backupruns$Insert - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Backupruns$Insert; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Backupruns$Insert; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.backupRuns.list - * @desc Lists all backup runs associated with a given instance and configuration in the reverse chronological order of the backup initiation time. - * @alias sql.backupRuns.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {integer=} params.maxResults Maximum number of backup runs per response. - * @param {string=} params.pageToken A previously-returned page token representing part of the larger set of results to view. - * @param {string} params.project Project ID of the project that contains the instance. - * @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$Backupruns$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Backupruns$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Backupruns$List, - callback: BodyResponseCallback - ): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: - | Params$Resource$Backupruns$List - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Backupruns$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Backupruns$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Backupruns$Delete - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The ID of the Backup Run to delete. To find a Backup Run ID, use the list method. - */ - id?: string; - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - } - export interface Params$Resource$Backupruns$Get extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The ID of this Backup Run. - */ - id?: string; - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - } - export interface Params$Resource$Backupruns$Insert - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$BackupRun; - } - export interface Params$Resource$Backupruns$List extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Maximum number of backup runs per response. - */ - maxResults?: number; - /** - * A previously-returned page token representing part of the larger set of results to view. - */ - pageToken?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - } - - export class Resource$Databases { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * sql.databases.delete - * @desc Deletes a database from a Cloud SQL instance. - * @alias sql.databases.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.database Name of the database to be deleted in the instance. - * @param {string} params.instance Database instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @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$Databases$Delete, - options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Databases$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Databases$Delete, - callback: BodyResponseCallback - ): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - | Params$Resource$Databases$Delete - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Databases$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Databases$Delete; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, - options - ), - params, - requiredParams: ['project', 'instance', 'database'], - pathParams: ['database', 'instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.databases.get - * @desc Retrieves a resource containing information about a database inside a Cloud SQL instance. - * @alias sql.databases.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.database Name of the database in the instance. - * @param {string} params.instance Database instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @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$Databases$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Databases$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Databases$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Databases$Get - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Databases$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Databases$Get; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['project', 'instance', 'database'], - pathParams: ['database', 'instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.databases.insert - * @desc Inserts a resource containing information about a database inside a Cloud SQL instance. - * @alias sql.databases.insert - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Database instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @param {().Database} 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 - */ - insert( - params?: Params$Resource$Databases$Insert, - options?: MethodOptions - ): GaxiosPromise; - insert( - params: Params$Resource$Databases$Insert, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - insert( - params: Params$Resource$Databases$Insert, - callback: BodyResponseCallback - ): void; - insert(callback: BodyResponseCallback): void; - insert( - paramsOrCallback?: - | Params$Resource$Databases$Insert - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Databases$Insert; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Databases$Insert; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.databases.list - * @desc Lists databases in the specified Cloud SQL instance. - * @alias sql.databases.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @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$Databases$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Databases$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Databases$List, - callback: BodyResponseCallback - ): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: - | Params$Resource$Databases$List - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Databases$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Databases$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.databases.patch - * @desc Updates a resource containing information about a database inside a Cloud SQL instance. This method supports patch semantics. - * @alias sql.databases.patch - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.database Name of the database to be updated in the instance. - * @param {string} params.instance Database instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @param {().Database} 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 - */ - patch( - params?: Params$Resource$Databases$Patch, - options?: MethodOptions - ): GaxiosPromise; - patch( - params: Params$Resource$Databases$Patch, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - patch( - params: Params$Resource$Databases$Patch, - callback: BodyResponseCallback - ): void; - patch(callback: BodyResponseCallback): void; - patch( - paramsOrCallback?: - | Params$Resource$Databases$Patch - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Databases$Patch; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Databases$Patch; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, - options - ), - params, - requiredParams: ['project', 'instance', 'database'], - pathParams: ['database', 'instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.databases.update - * @desc Updates a resource containing information about a database inside a Cloud SQL instance. - * @alias sql.databases.update - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.database Name of the database to be updated in the instance. - * @param {string} params.instance Database instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @param {().Database} 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$Databases$Update, - options?: MethodOptions - ): GaxiosPromise; - update( - params: Params$Resource$Databases$Update, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - update( - params: Params$Resource$Databases$Update, - callback: BodyResponseCallback - ): void; - update(callback: BodyResponseCallback): void; - update( - paramsOrCallback?: - | Params$Resource$Databases$Update - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Databases$Update; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Databases$Update; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, - options - ), - params, - requiredParams: ['project', 'instance', 'database'], - pathParams: ['database', 'instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Databases$Delete extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of the database to be deleted in the instance. - */ - database?: string; - /** - * Database instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - } - export interface Params$Resource$Databases$Get extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of the database in the instance. - */ - database?: string; - /** - * Database instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - } - export interface Params$Resource$Databases$Insert extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Database instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Database; - } - export interface Params$Resource$Databases$List extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - } - export interface Params$Resource$Databases$Patch extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of the database to be updated in the instance. - */ - database?: string; - /** - * Database instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Database; - } - export interface Params$Resource$Databases$Update extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of the database to be updated in the instance. - */ - database?: string; - /** - * Database instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Database; - } - - export class Resource$Flags { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * sql.flags.list - * @desc List all available database flags for Cloud SQL instances. - * @alias sql.flags.list - * @memberOf! () - * - * @param {object=} params Parameters for request - * @param {string=} params.databaseVersion Database type and version you want to retrieve flags for. By default, this method returns flags for all database types and versions. - * @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$Flags$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Flags$List, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Flags$List, - callback: BodyResponseCallback - ): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: - | Params$Resource$Flags$List - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Flags$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Flags$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/sql/v1beta4/flags').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: [], - pathParams: [], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Flags$List extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Database type and version you want to retrieve flags for. By default, this method returns flags for all database types and versions. - */ - databaseVersion?: string; - } - - export class Resource$Instances { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * sql.instances.addServerCa - * @desc Add a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in. - * @alias sql.instances.addServerCa - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @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 - */ - addServerCa( - params?: Params$Resource$Instances$Addserverca, - options?: MethodOptions - ): GaxiosPromise; - addServerCa( - params: Params$Resource$Instances$Addserverca, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - addServerCa( - params: Params$Resource$Instances$Addserverca, - callback: BodyResponseCallback - ): void; - addServerCa(callback: BodyResponseCallback): void; - addServerCa( - paramsOrCallback?: - | Params$Resource$Instances$Addserverca - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Instances$Addserverca; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instances$Addserverca; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/addServerCa' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.instances.clone - * @desc Creates a Cloud SQL instance as a clone of the source instance. - * @alias sql.instances.clone - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID. - * @param {string} params.project Project ID of the source as well as the clone Cloud SQL instance. - * @param {().InstancesCloneRequest} 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 - */ - clone( - params?: Params$Resource$Instances$Clone, - options?: MethodOptions - ): GaxiosPromise; - clone( - params: Params$Resource$Instances$Clone, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - clone( - params: Params$Resource$Instances$Clone, - callback: BodyResponseCallback - ): void; - clone(callback: BodyResponseCallback): void; - clone( - paramsOrCallback?: - | Params$Resource$Instances$Clone - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Instances$Clone; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instances$Clone; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/clone' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.instances.delete - * @desc Deletes a Cloud SQL instance. - * @alias sql.instances.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance 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$Instances$Delete, - options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Instances$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Instances$Delete, - callback: BodyResponseCallback - ): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - | Params$Resource$Instances$Delete - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Instances$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instances$Delete; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.instances.demoteMaster - * @desc Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server. - * @alias sql.instances.demoteMaster - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL instance name. - * @param {string} params.project ID of the project that contains the instance. - * @param {().InstancesDemoteMasterRequest} 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 - */ - demoteMaster( - params?: Params$Resource$Instances$Demotemaster, - options?: MethodOptions - ): GaxiosPromise; - demoteMaster( - params: Params$Resource$Instances$Demotemaster, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - demoteMaster( - params: Params$Resource$Instances$Demotemaster, - callback: BodyResponseCallback - ): void; - demoteMaster(callback: BodyResponseCallback): void; - demoteMaster( - paramsOrCallback?: - | Params$Resource$Instances$Demotemaster - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Instances$Demotemaster; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instances$Demotemaster; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/demoteMaster' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.instances.export - * @desc Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file. - * @alias sql.instances.export - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance to be exported. - * @param {().InstancesExportRequest} 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 - */ - export( - params?: Params$Resource$Instances$Export, - options?: MethodOptions - ): GaxiosPromise; - export( - params: Params$Resource$Instances$Export, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - export( - params: Params$Resource$Instances$Export, - callback: BodyResponseCallback - ): void; - export(callback: BodyResponseCallback): void; - export( - paramsOrCallback?: - | Params$Resource$Instances$Export - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Instances$Export; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instances$Export; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/export' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.instances.failover - * @desc Failover the instance to its failover replica instance. - * @alias sql.instances.failover - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {string} params.project ID of the project that contains the read replica. - * @param {().InstancesFailoverRequest} 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 - */ - failover( - params?: Params$Resource$Instances$Failover, - options?: MethodOptions - ): GaxiosPromise; - failover( - params: Params$Resource$Instances$Failover, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - failover( - params: Params$Resource$Instances$Failover, - callback: BodyResponseCallback - ): void; - failover(callback: BodyResponseCallback): void; - failover( - paramsOrCallback?: - | Params$Resource$Instances$Failover - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Instances$Failover; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instances$Failover; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/failover' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.instances.get - * @desc Retrieves a resource containing information about a Cloud SQL instance. - * @alias sql.instances.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Database instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @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$Instances$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Instances$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Instances$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Instances$Get - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Instances$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instances$Get; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.instances.import - * @desc Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud Storage. - * @alias sql.instances.import - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @param {().InstancesImportRequest} 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 - */ - import( - params?: Params$Resource$Instances$Import, - options?: MethodOptions - ): GaxiosPromise; - import( - params: Params$Resource$Instances$Import, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - import( - params: Params$Resource$Instances$Import, - callback: BodyResponseCallback - ): void; - import(callback: BodyResponseCallback): void; - import( - paramsOrCallback?: - | Params$Resource$Instances$Import - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Instances$Import; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instances$Import; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/import' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.instances.insert - * @desc Creates a new Cloud SQL instance. - * @alias sql.instances.insert - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.project Project ID of the project to which the newly created Cloud SQL instances should belong. - * @param {().DatabaseInstance} 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 - */ - insert( - params?: Params$Resource$Instances$Insert, - options?: MethodOptions - ): GaxiosPromise; - insert( - params: Params$Resource$Instances$Insert, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - insert( - params: Params$Resource$Instances$Insert, - callback: BodyResponseCallback - ): void; - insert(callback: BodyResponseCallback): void; - insert( - paramsOrCallback?: - | Params$Resource$Instances$Insert - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Instances$Insert; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instances$Insert; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/sql/v1beta4/projects/{project}/instances' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['project'], - pathParams: ['project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.instances.list - * @desc Lists instances under a given project in the alphabetical order of the instance name. - * @alias sql.instances.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.filter An expression for filtering the results of the request, such as by name or label. - * @param {integer=} params.maxResults The maximum number of results to return per response. - * @param {string=} params.pageToken A previously-returned page token representing part of the larger set of results to view. - * @param {string} params.project Project ID of the project for which to list Cloud SQL instances. - * @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$Instances$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Instances$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Instances$List, - callback: BodyResponseCallback - ): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: - | Params$Resource$Instances$List - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Instances$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instances$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/sql/v1beta4/projects/{project}/instances' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['project'], - pathParams: ['project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.instances.listServerCas - * @desc Lists all of the trusted Certificate Authorities (CAs) for the specified instance. There can be up to three CAs listed: the CA that was used to sign the certificate that is currently in use, a CA that has been added but not yet used to sign a certificate, and a CA used to sign a certificate that has previously rotated out. - * @alias sql.instances.listServerCas - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @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 - */ - listServerCas( - params?: Params$Resource$Instances$Listservercas, - options?: MethodOptions - ): GaxiosPromise; - listServerCas( - params: Params$Resource$Instances$Listservercas, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - listServerCas( - params: Params$Resource$Instances$Listservercas, - callback: BodyResponseCallback - ): void; - listServerCas( - callback: BodyResponseCallback - ): void; - listServerCas( - paramsOrCallback?: - | Params$Resource$Instances$Listservercas - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Instances$Listservercas; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instances$Listservercas; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/listServerCas' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback - ); - } else { - return createAPIRequest( - parameters - ); - } - } - - /** - * sql.instances.patch - * @desc Updates settings of a Cloud SQL instance. Caution: This is not a partial update, so you must include values for all the settings that you want to retain. For partial updates, use patch.. This method supports patch semantics. - * @alias sql.instances.patch - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @param {().DatabaseInstance} 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 - */ - patch( - params?: Params$Resource$Instances$Patch, - options?: MethodOptions - ): GaxiosPromise; - patch( - params: Params$Resource$Instances$Patch, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - patch( - params: Params$Resource$Instances$Patch, - callback: BodyResponseCallback - ): void; - patch(callback: BodyResponseCallback): void; - patch( - paramsOrCallback?: - | Params$Resource$Instances$Patch - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Instances$Patch; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instances$Patch; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.instances.promoteReplica - * @desc Promotes the read replica instance to be a stand-alone Cloud SQL instance. - * @alias sql.instances.promoteReplica - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL read replica instance name. - * @param {string} params.project ID of the project that contains the read replica. - * @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 - */ - promoteReplica( - params?: Params$Resource$Instances$Promotereplica, - options?: MethodOptions - ): GaxiosPromise; - promoteReplica( - params: Params$Resource$Instances$Promotereplica, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - promoteReplica( - params: Params$Resource$Instances$Promotereplica, - callback: BodyResponseCallback - ): void; - promoteReplica(callback: BodyResponseCallback): void; - promoteReplica( - paramsOrCallback?: - | Params$Resource$Instances$Promotereplica - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Instances$Promotereplica; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instances$Promotereplica; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/promoteReplica' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.instances.resetSslConfig - * @desc Deletes all client certificates and generates a new server SSL certificate for the instance. - * @alias sql.instances.resetSslConfig - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @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 - */ - resetSslConfig( - params?: Params$Resource$Instances$Resetsslconfig, - options?: MethodOptions - ): GaxiosPromise; - resetSslConfig( - params: Params$Resource$Instances$Resetsslconfig, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - resetSslConfig( - params: Params$Resource$Instances$Resetsslconfig, - callback: BodyResponseCallback - ): void; - resetSslConfig(callback: BodyResponseCallback): void; - resetSslConfig( - paramsOrCallback?: - | Params$Resource$Instances$Resetsslconfig - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Instances$Resetsslconfig; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instances$Resetsslconfig; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/resetSslConfig' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.instances.restart - * @desc Restarts a Cloud SQL instance. - * @alias sql.instances.restart - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance to be restarted. - * @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 - */ - restart( - params?: Params$Resource$Instances$Restart, - options?: MethodOptions - ): GaxiosPromise; - restart( - params: Params$Resource$Instances$Restart, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - restart( - params: Params$Resource$Instances$Restart, - callback: BodyResponseCallback - ): void; - restart(callback: BodyResponseCallback): void; - restart( - paramsOrCallback?: - | Params$Resource$Instances$Restart - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Instances$Restart; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instances$Restart; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/restart' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.instances.restoreBackup - * @desc Restores a backup of a Cloud SQL instance. - * @alias sql.instances.restoreBackup - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @param {().InstancesRestoreBackupRequest} 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 - */ - restoreBackup( - params?: Params$Resource$Instances$Restorebackup, - options?: MethodOptions - ): GaxiosPromise; - restoreBackup( - params: Params$Resource$Instances$Restorebackup, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - restoreBackup( - params: Params$Resource$Instances$Restorebackup, - callback: BodyResponseCallback - ): void; - restoreBackup(callback: BodyResponseCallback): void; - restoreBackup( - paramsOrCallback?: - | Params$Resource$Instances$Restorebackup - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Instances$Restorebackup; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instances$Restorebackup; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/restoreBackup' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.instances.rotateServerCa - * @desc Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method. - * @alias sql.instances.rotateServerCa - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @param {().InstancesRotateServerCaRequest} 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 - */ - rotateServerCa( - params?: Params$Resource$Instances$Rotateserverca, - options?: MethodOptions - ): GaxiosPromise; - rotateServerCa( - params: Params$Resource$Instances$Rotateserverca, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - rotateServerCa( - params: Params$Resource$Instances$Rotateserverca, - callback: BodyResponseCallback - ): void; - rotateServerCa(callback: BodyResponseCallback): void; - rotateServerCa( - paramsOrCallback?: - | Params$Resource$Instances$Rotateserverca - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Instances$Rotateserverca; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instances$Rotateserverca; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCa' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.instances.startReplica - * @desc Starts the replication in the read replica instance. - * @alias sql.instances.startReplica - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL read replica instance name. - * @param {string} params.project ID of the project that contains the read replica. - * @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 - */ - startReplica( - params?: Params$Resource$Instances$Startreplica, - options?: MethodOptions - ): GaxiosPromise; - startReplica( - params: Params$Resource$Instances$Startreplica, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - startReplica( - params: Params$Resource$Instances$Startreplica, - callback: BodyResponseCallback - ): void; - startReplica(callback: BodyResponseCallback): void; - startReplica( - paramsOrCallback?: - | Params$Resource$Instances$Startreplica - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Instances$Startreplica; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instances$Startreplica; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/startReplica' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.instances.stopReplica - * @desc Stops the replication in the read replica instance. - * @alias sql.instances.stopReplica - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL read replica instance name. - * @param {string} params.project ID of the project that contains the read replica. - * @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 - */ - stopReplica( - params?: Params$Resource$Instances$Stopreplica, - options?: MethodOptions - ): GaxiosPromise; - stopReplica( - params: Params$Resource$Instances$Stopreplica, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - stopReplica( - params: Params$Resource$Instances$Stopreplica, - callback: BodyResponseCallback - ): void; - stopReplica(callback: BodyResponseCallback): void; - stopReplica( - paramsOrCallback?: - | Params$Resource$Instances$Stopreplica - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Instances$Stopreplica; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instances$Stopreplica; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/stopReplica' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.instances.truncateLog - * @desc Truncate MySQL general and slow query log tables - * @alias sql.instances.truncateLog - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the Cloud SQL project. - * @param {().InstancesTruncateLogRequest} 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 - */ - truncateLog( - params?: Params$Resource$Instances$Truncatelog, - options?: MethodOptions - ): GaxiosPromise; - truncateLog( - params: Params$Resource$Instances$Truncatelog, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - truncateLog( - params: Params$Resource$Instances$Truncatelog, - callback: BodyResponseCallback - ): void; - truncateLog(callback: BodyResponseCallback): void; - truncateLog( - paramsOrCallback?: - | Params$Resource$Instances$Truncatelog - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Instances$Truncatelog; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instances$Truncatelog; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/truncateLog' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.instances.update - * @desc Updates settings of a Cloud SQL instance. Caution: This is not a partial update, so you must include values for all the settings that you want to retain. For partial updates, use patch. - * @alias sql.instances.update - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @param {().DatabaseInstance} 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$Instances$Update, - options?: MethodOptions - ): GaxiosPromise; - update( - params: Params$Resource$Instances$Update, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - update( - params: Params$Resource$Instances$Update, - callback: BodyResponseCallback - ): void; - update(callback: BodyResponseCallback): void; - update( - paramsOrCallback?: - | Params$Resource$Instances$Update - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Instances$Update; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Instances$Update; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Instances$Addserverca - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - } - export interface Params$Resource$Instances$Clone extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the source as well as the clone Cloud SQL instance. - */ - project?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$InstancesCloneRequest; - } - export interface Params$Resource$Instances$Delete extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance to be deleted. - */ - project?: string; - } - export interface Params$Resource$Instances$Demotemaster - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL instance name. - */ - instance?: string; - /** - * ID of the project that contains the instance. - */ - project?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$InstancesDemoteMasterRequest; - } - export interface Params$Resource$Instances$Export extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance to be exported. - */ - project?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$InstancesExportRequest; - } - export interface Params$Resource$Instances$Failover - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * ID of the project that contains the read replica. - */ - project?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$InstancesFailoverRequest; - } - export interface Params$Resource$Instances$Get extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Database instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - } - export interface Params$Resource$Instances$Import extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$InstancesImportRequest; - } - export interface Params$Resource$Instances$Insert extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Project ID of the project to which the newly created Cloud SQL instances should belong. - */ - project?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$DatabaseInstance; - } - export interface Params$Resource$Instances$List extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * An expression for filtering the results of the request, such as by name or label. - */ - filter?: string; - /** - * The maximum number of results to return per response. - */ - maxResults?: number; - /** - * A previously-returned page token representing part of the larger set of results to view. - */ - pageToken?: string; - /** - * Project ID of the project for which to list Cloud SQL instances. - */ - project?: string; - } - export interface Params$Resource$Instances$Listservercas - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - } - export interface Params$Resource$Instances$Patch extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$DatabaseInstance; - } - export interface Params$Resource$Instances$Promotereplica - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL read replica instance name. - */ - instance?: string; - /** - * ID of the project that contains the read replica. - */ - project?: string; - } - export interface Params$Resource$Instances$Resetsslconfig - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - } - export interface Params$Resource$Instances$Restart - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance to be restarted. - */ - project?: string; - } - export interface Params$Resource$Instances$Restorebackup - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$InstancesRestoreBackupRequest; - } - export interface Params$Resource$Instances$Rotateserverca - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$InstancesRotateServerCaRequest; - } - export interface Params$Resource$Instances$Startreplica - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL read replica instance name. - */ - instance?: string; - /** - * ID of the project that contains the read replica. - */ - project?: string; - } - export interface Params$Resource$Instances$Stopreplica - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL read replica instance name. - */ - instance?: string; - /** - * ID of the project that contains the read replica. - */ - project?: string; - } - export interface Params$Resource$Instances$Truncatelog - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the Cloud SQL project. - */ - project?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$InstancesTruncateLogRequest; - } - export interface Params$Resource$Instances$Update extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$DatabaseInstance; - } - - export class Resource$Operations { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * sql.operations.get - * @desc Retrieves an instance operation that has been performed on an instance. - * @alias sql.operations.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.operation Instance operation ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @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$Operations$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Operations$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Operations$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Operations$Get - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Operations$Get; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/sql/v1beta4/projects/{project}/operations/{operation}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['project', 'operation'], - pathParams: ['operation', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.operations.list - * @desc Lists all instance operations that have been performed on the given Cloud SQL instance in the reverse chronological order of the start time. - * @alias sql.operations.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {integer=} params.maxResults Maximum number of operations per response. - * @param {string=} params.pageToken A previously-returned page token representing part of the larger set of results to view. - * @param {string} params.project Project ID of the project that contains the instance. - * @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://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/sql/v1beta4/projects/{project}/operations' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Operations$Get extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Instance operation ID. - */ - operation?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - } - export interface Params$Resource$Operations$List extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Maximum number of operations per response. - */ - maxResults?: number; - /** - * A previously-returned page token representing part of the larger set of results to view. - */ - pageToken?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - } - - export class Resource$Sslcerts { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * sql.sslCerts.createEphemeral - * @desc Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database. - * @alias sql.sslCerts.createEphemeral - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the Cloud SQL project. - * @param {().SslCertsCreateEphemeralRequest} 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 - */ - createEphemeral( - params?: Params$Resource$Sslcerts$Createephemeral, - options?: MethodOptions - ): GaxiosPromise; - createEphemeral( - params: Params$Resource$Sslcerts$Createephemeral, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - createEphemeral( - params: Params$Resource$Sslcerts$Createephemeral, - callback: BodyResponseCallback - ): void; - createEphemeral(callback: BodyResponseCallback): void; - createEphemeral( - paramsOrCallback?: - | Params$Resource$Sslcerts$Createephemeral - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Sslcerts$Createephemeral; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Sslcerts$Createephemeral; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/createEphemeral' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.sslCerts.delete - * @desc Deletes the SSL certificate. For First Generation instances, the certificate remains valid until the instance is restarted. - * @alias sql.sslCerts.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @param {string} params.sha1Fingerprint Sha1 FingerPrint. - * @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$Sslcerts$Delete, - options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Sslcerts$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Sslcerts$Delete, - callback: BodyResponseCallback - ): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - | Params$Resource$Sslcerts$Delete - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Sslcerts$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Sslcerts$Delete; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, - options - ), - params, - requiredParams: ['project', 'instance', 'sha1Fingerprint'], - pathParams: ['instance', 'project', 'sha1Fingerprint'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.sslCerts.get - * @desc Retrieves a particular SSL certificate. Does not include the private key (required for usage). The private key must be saved from the response to initial creation. - * @alias sql.sslCerts.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @param {string} params.sha1Fingerprint Sha1 FingerPrint. - * @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$Sslcerts$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Sslcerts$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Sslcerts$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Sslcerts$Get - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Sslcerts$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Sslcerts$Get; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['project', 'instance', 'sha1Fingerprint'], - pathParams: ['instance', 'project', 'sha1Fingerprint'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.sslCerts.insert - * @desc Creates an SSL certificate and returns it along with the private key and server certificate authority. The new certificate will not be usable until the instance is restarted. - * @alias sql.sslCerts.insert - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @param {().SslCertsInsertRequest} 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 - */ - insert( - params?: Params$Resource$Sslcerts$Insert, - options?: MethodOptions - ): GaxiosPromise; - insert( - params: Params$Resource$Sslcerts$Insert, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - insert( - params: Params$Resource$Sslcerts$Insert, - callback: BodyResponseCallback - ): void; - insert(callback: BodyResponseCallback): void; - insert( - paramsOrCallback?: - | Params$Resource$Sslcerts$Insert - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Sslcerts$Insert; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Sslcerts$Insert; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.sslCerts.list - * @desc Lists all of the current SSL certificates for the instance. - * @alias sql.sslCerts.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Cloud SQL instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @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$Sslcerts$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Sslcerts$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Sslcerts$List, - callback: BodyResponseCallback - ): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: - | Params$Resource$Sslcerts$List - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Sslcerts$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Sslcerts$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Sslcerts$Createephemeral - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the Cloud SQL project. - */ - project?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$SslCertsCreateEphemeralRequest; - } - export interface Params$Resource$Sslcerts$Delete extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - /** - * Sha1 FingerPrint. - */ - sha1Fingerprint?: string; - } - export interface Params$Resource$Sslcerts$Get extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - /** - * Sha1 FingerPrint. - */ - sha1Fingerprint?: string; - } - export interface Params$Resource$Sslcerts$Insert extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$SslCertsInsertRequest; - } - export interface Params$Resource$Sslcerts$List extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Cloud SQL instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - } - - export class Resource$Tiers { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * sql.tiers.list - * @desc Lists all available machine types (tiers) for Cloud SQL, for example, db-n1-standard-1. For related information, see Pricing. - * @alias sql.tiers.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.project Project ID of the project for which to list tiers. - * @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$Tiers$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Tiers$List, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Tiers$List, - callback: BodyResponseCallback - ): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: - | Params$Resource$Tiers$List - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Tiers$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Tiers$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/sql/v1beta4/projects/{project}/tiers').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', - }, - options - ), - params, - requiredParams: ['project'], - pathParams: ['project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Tiers$List extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Project ID of the project for which to list tiers. - */ - project?: string; - } - - export class Resource$Users { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * sql.users.delete - * @desc Deletes a user from a Cloud SQL instance. - * @alias sql.users.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.host Host of the user in the instance. - * @param {string} params.instance Database instance ID. This does not include the project ID. - * @param {string} params.name Name of the user in the instance. - * @param {string} params.project Project ID of the project that contains the instance. - * @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$Users$Delete, - options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Users$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Users$Delete, - callback: BodyResponseCallback - ): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - | Params$Resource$Users$Delete - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Users$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Users$Delete; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/users' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, - options - ), - params, - requiredParams: ['project', 'instance', 'host', 'name'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.users.insert - * @desc Creates a new user in a Cloud SQL instance. - * @alias sql.users.insert - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Database instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @param {().User} 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 - */ - insert( - params?: Params$Resource$Users$Insert, - options?: MethodOptions - ): GaxiosPromise; - insert( - params: Params$Resource$Users$Insert, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - insert( - params: Params$Resource$Users$Insert, - callback: BodyResponseCallback - ): void; - insert(callback: BodyResponseCallback): void; - insert( - paramsOrCallback?: - | Params$Resource$Users$Insert - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Users$Insert; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Users$Insert; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/users' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.users.list - * @desc Lists users in the specified Cloud SQL instance. - * @alias sql.users.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Database instance ID. This does not include the project ID. - * @param {string} params.project Project ID of the project that contains the instance. - * @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$Users$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Users$List, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Users$List, - callback: BodyResponseCallback - ): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: - | Params$Resource$Users$List - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Users$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Users$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/users' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['project', 'instance'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * sql.users.update - * @desc Updates an existing user in a Cloud SQL instance. - * @alias sql.users.update - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.host Host of the user in the instance. For a MySQL instance, it's required; For a PostgreSQL instance, it's optional. - * @param {string} params.instance Database instance ID. This does not include the project ID. - * @param {string} params.name Name of the user in the instance. - * @param {string} params.project Project ID of the project that contains the instance. - * @param {().User} 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$Users$Update, - options?: MethodOptions - ): GaxiosPromise; - update( - params: Params$Resource$Users$Update, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - update( - params: Params$Resource$Users$Update, - callback: BodyResponseCallback - ): void; - update(callback: BodyResponseCallback): void; - update( - paramsOrCallback?: - | Params$Resource$Users$Update - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Users$Update; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Users$Update; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + - '/sql/v1beta4/projects/{project}/instances/{instance}/users' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, - options - ), - params, - requiredParams: ['project', 'instance', 'name'], - pathParams: ['instance', 'project'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Users$Delete extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Host of the user in the instance. - */ - host?: string; - /** - * Database instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Name of the user in the instance. - */ - name?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - } - export interface Params$Resource$Users$Insert extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Database instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$User; - } - export interface Params$Resource$Users$List extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Database instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - } - export interface Params$Resource$Users$Update extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Host of the user in the instance. For a MySQL instance, it's required; For a PostgreSQL instance, it's optional. - */ - host?: string; - /** - * Database instance ID. This does not include the project ID. - */ - instance?: string; - /** - * Name of the user in the instance. - */ - name?: string; - /** - * Project ID of the project that contains the instance. - */ - project?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$User; - } -} diff --git a/src/apis/storage/index.ts b/src/apis/storage/index.ts index 04ed48a4a2f..b6538089955 100644 --- a/src/apis/storage/index.ts +++ b/src/apis/storage/index.ts @@ -15,34 +15,24 @@ import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; import {storage_v1} from './v1'; -import {storage_v1beta1} from './v1beta1'; import {storage_v1beta2} from './v1beta2'; export const VERSIONS = { v1: storage_v1.Storage, - v1beta1: storage_v1beta1.Storage, v1beta2: storage_v1beta2.Storage, }; export function storage(version: 'v1'): storage_v1.Storage; export function storage(options: storage_v1.Options): storage_v1.Storage; -export function storage(version: 'v1beta1'): storage_v1beta1.Storage; -export function storage( - options: storage_v1beta1.Options -): storage_v1beta1.Storage; export function storage(version: 'v1beta2'): storage_v1beta2.Storage; export function storage( options: storage_v1beta2.Options ): storage_v1beta2.Storage; -export function storage< - T = storage_v1.Storage | storage_v1beta1.Storage | storage_v1beta2.Storage ->( +export function storage( this: GoogleConfigurable, versionOrOptions: | 'v1' | storage_v1.Options - | 'v1beta1' - | storage_v1beta1.Options | 'v1beta2' | storage_v1beta2.Options ) { diff --git a/src/apis/storage/v1.ts b/src/apis/storage/v1.ts index 3d1008428b6..a96792c6930 100644 --- a/src/apis/storage/v1.ts +++ b/src/apis/storage/v1.ts @@ -1174,7 +1174,7 @@ export namespace storage_v1 { * @param {string} params.bucket Name of a bucket. * @param {string=} params.provisionalUserProject The project to be billed for this request if the target bucket is requester-pays bucket. * @param {string=} params.userProject The project to be billed for this request. Required for Requester Pays buckets. - * @param {().BucketAccessControl} params.resource Request body data + * @param {().BucketAccessControl} params.requestBody 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 @@ -1431,7 +1431,7 @@ export namespace storage_v1 { * @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. * @param {string=} params.provisionalUserProject The project to be billed for this request if the target bucket is requester-pays bucket. * @param {string=} params.userProject The project to be billed for this request. Required for Requester Pays buckets. - * @param {().BucketAccessControl} params.resource Request body data + * @param {().BucketAccessControl} params.requestBody 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 @@ -1564,7 +1564,7 @@ export namespace storage_v1 { * @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. * @param {string=} params.provisionalUserProject The project to be billed for this request if the target bucket is requester-pays bucket. * @param {string=} params.userProject The project to be billed for this request. Required for Requester Pays buckets. - * @param {().BucketAccessControl} params.resource Request body data + * @param {().BucketAccessControl} params.requestBody 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 @@ -2214,7 +2214,7 @@ export namespace storage_v1 { * @param {string=} params.projection Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full. * @param {string=} params.provisionalUserProject The project to be billed for this request if the target bucket is requester-pays bucket. * @param {string=} params.userProject The project to be billed for this request. - * @param {().Bucket} params.resource Request body data + * @param {().Bucket} params.requestBody 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 @@ -2597,7 +2597,7 @@ export namespace storage_v1 { * @param {string=} params.projection Set of properties to return. Defaults to full. * @param {string=} params.provisionalUserProject The project to be billed for this request if the target bucket is requester-pays bucket. * @param {string=} params.userProject The project to be billed for this request. Required for Requester Pays buckets. - * @param {().Bucket} params.resource Request body data + * @param {().Bucket} params.requestBody 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 @@ -2722,7 +2722,7 @@ export namespace storage_v1 { * @param {string} params.bucket Name of a bucket. * @param {string=} params.provisionalUserProject The project to be billed for this request if the target bucket is requester-pays bucket. * @param {string=} params.userProject The project to be billed for this request. Required for Requester Pays buckets. - * @param {().Policy} params.resource Request body data + * @param {().Policy} params.requestBody 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 @@ -2985,7 +2985,7 @@ export namespace storage_v1 { * @param {string=} params.projection Set of properties to return. Defaults to full. * @param {string=} params.provisionalUserProject The project to be billed for this request if the target bucket is requester-pays bucket. * @param {string=} params.userProject The project to be billed for this request. Required for Requester Pays buckets. - * @param {().Bucket} params.resource Request body data + * @param {().Bucket} params.requestBody 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 @@ -3422,7 +3422,7 @@ export namespace storage_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Channel} params.resource Request body data + * @param {().Channel} params.requestBody 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 @@ -3812,7 +3812,7 @@ export namespace storage_v1 { * @param {string} params.bucket Name of a bucket. * @param {string=} params.provisionalUserProject The project to be billed for this request if the target bucket is requester-pays bucket. * @param {string=} params.userProject The project to be billed for this request. Required for Requester Pays buckets. - * @param {().ObjectAccessControl} params.resource Request body data + * @param {().ObjectAccessControl} params.requestBody 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 @@ -4071,7 +4071,7 @@ export namespace storage_v1 { * @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. * @param {string=} params.provisionalUserProject The project to be billed for this request if the target bucket is requester-pays bucket. * @param {string=} params.userProject The project to be billed for this request. Required for Requester Pays buckets. - * @param {().ObjectAccessControl} params.resource Request body data + * @param {().ObjectAccessControl} params.requestBody 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 @@ -4203,7 +4203,7 @@ export namespace storage_v1 { * @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. * @param {string=} params.provisionalUserProject The project to be billed for this request if the target bucket is requester-pays bucket. * @param {string=} params.userProject The project to be billed for this request. Required for Requester Pays buckets. - * @param {().ObjectAccessControl} params.resource Request body data + * @param {().ObjectAccessControl} params.requestBody 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 @@ -4743,7 +4743,7 @@ export namespace storage_v1 { * @param {string} params.bucket The parent bucket of the notification. * @param {string=} params.provisionalUserProject The project to be billed for this request if the target bucket is requester-pays bucket. * @param {string=} params.userProject The project to be billed for this request. Required for Requester Pays buckets. - * @param {().Notification} params.resource Request body data + * @param {().Notification} params.requestBody 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 @@ -5356,7 +5356,7 @@ export namespace storage_v1 { * @param {string} params.object Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. * @param {string=} params.provisionalUserProject The project to be billed for this request if the target bucket is requester-pays bucket. * @param {string=} params.userProject The project to be billed for this request. Required for Requester Pays buckets. - * @param {().ObjectAccessControl} params.resource Request body data + * @param {().ObjectAccessControl} params.requestBody 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 @@ -5625,7 +5625,7 @@ export namespace storage_v1 { * @param {string} params.object Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. * @param {string=} params.provisionalUserProject The project to be billed for this request if the target bucket is requester-pays bucket. * @param {string=} params.userProject The project to be billed for this request. Required for Requester Pays buckets. - * @param {().ObjectAccessControl} params.resource Request body data + * @param {().ObjectAccessControl} params.requestBody 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 @@ -5763,7 +5763,7 @@ export namespace storage_v1 { * @param {string} params.object Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. * @param {string=} params.provisionalUserProject The project to be billed for this request if the target bucket is requester-pays bucket. * @param {string=} params.userProject The project to be billed for this request. Required for Requester Pays buckets. - * @param {().ObjectAccessControl} params.resource Request body data + * @param {().ObjectAccessControl} params.requestBody 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 @@ -6105,7 +6105,7 @@ export namespace storage_v1 { * @param {string=} params.kmsKeyName Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any. * @param {string=} params.provisionalUserProject The project to be billed for this request if the target bucket is requester-pays bucket. * @param {string=} params.userProject The project to be billed for this request. Required for Requester Pays buckets. - * @param {().ComposeRequest} params.resource Request body data + * @param {().ComposeRequest} params.requestBody 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 @@ -6256,7 +6256,7 @@ export namespace storage_v1 { * @param {string=} params.sourceGeneration If present, selects a specific revision of the source object (as opposed to the latest version, the default). * @param {string} params.sourceObject Name of the source object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. * @param {string=} params.userProject The project to be billed for this request. Required for Requester Pays buckets. - * @param {().Object} params.resource Request body data + * @param {().Object} params.requestBody 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 @@ -6793,7 +6793,7 @@ export namespace storage_v1 { * @param {string=} params.projection Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full. * @param {string=} params.provisionalUserProject The project to be billed for this request if the target bucket is requester-pays bucket. * @param {string=} params.userProject The project to be billed for this request. Required for Requester Pays buckets. - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents @@ -7076,7 +7076,7 @@ export namespace storage_v1 { * @param {string=} params.projection Set of properties to return. Defaults to full. * @param {string=} params.provisionalUserProject The project to be billed for this request if the target bucket is requester-pays bucket. * @param {string=} params.userProject The project to be billed for this request, for Requester Pays buckets. - * @param {().Object} params.resource Request body data + * @param {().Object} params.requestBody 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 @@ -7230,7 +7230,7 @@ export namespace storage_v1 { * @param {string=} params.sourceGeneration If present, selects a specific revision of the source object (as opposed to the latest version, the default). * @param {string} params.sourceObject Name of the source object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. * @param {string=} params.userProject The project to be billed for this request. Required for Requester Pays buckets. - * @param {().Object} params.resource Request body data + * @param {().Object} params.requestBody 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 @@ -7373,7 +7373,7 @@ export namespace storage_v1 { * @param {string} params.object Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. * @param {string=} params.provisionalUserProject The project to be billed for this request if the target bucket is requester-pays bucket. * @param {string=} params.userProject The project to be billed for this request. Required for Requester Pays buckets. - * @param {().Policy} params.resource Request body data + * @param {().Policy} params.requestBody 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 @@ -7649,7 +7649,7 @@ export namespace storage_v1 { * @param {string=} params.projection Set of properties to return. Defaults to full. * @param {string=} params.provisionalUserProject The project to be billed for this request if the target bucket is requester-pays bucket. * @param {string=} params.userProject The project to be billed for this request. Required for Requester Pays buckets. - * @param {().Object} params.resource Request body data + * @param {().Object} params.requestBody 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 @@ -7780,7 +7780,7 @@ export namespace storage_v1 { * @param {string=} params.provisionalUserProject The project to be billed for this request if the target bucket is requester-pays bucket. * @param {string=} params.userProject The project to be billed for this request. Required for Requester Pays buckets. * @param {boolean=} params.versions If true, lists all versions of an object as distinct results. The default is false. For more information, see Object Versioning. - * @param {().Channel} params.resource Request body data + * @param {().Channel} params.requestBody 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 @@ -9114,7 +9114,7 @@ export namespace storage_v1 { * @param {string} params.accessId Name of the HMAC key being updated. * @param {string} params.projectId Project ID owning the service account of the updated key. * @param {string=} params.userProject The project to be billed for this request. - * @param {().HmacKeyMetadata} params.resource Request body data + * @param {().HmacKeyMetadata} params.requestBody 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 diff --git a/src/apis/storage/v1beta1.ts b/src/apis/storage/v1beta1.ts deleted file mode 100644 index 373145b9861..00000000000 --- a/src/apis/storage/v1beta1.ts +++ /dev/null @@ -1,2672 +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 storage_v1beta1 { - export interface Options extends GlobalOptions { - version: 'v1beta1'; - } - - 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; - } - - /** - * Cloud Storage JSON API - * - * Lets you store and retrieve potentially-large, immutable data objects. - * - * @example - * const {google} = require('googleapis'); - * const storage = google.storage('v1beta1'); - * - * @namespace storage - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Storage - */ - export class Storage { - context: APIRequestContext; - bucketAccessControls: Resource$Bucketaccesscontrols; - buckets: Resource$Buckets; - objectAccessControls: Resource$Objectaccesscontrols; - objects: Resource$Objects; - - constructor(options: GlobalOptions, google?: GoogleConfigurable) { - this.context = { - _options: options || {}, - google, - }; - - this.bucketAccessControls = new Resource$Bucketaccesscontrols( - this.context - ); - this.buckets = new Resource$Buckets(this.context); - this.objectAccessControls = new Resource$Objectaccesscontrols( - this.context - ); - this.objects = new Resource$Objects(this.context); - } - } - - /** - * A bucket. - */ - export interface Schema$Bucket { - /** - * Access controls on the bucket. - */ - acl?: Schema$BucketAccessControl[]; - /** - * Default access controls to apply to new objects when no ACL is provided. - */ - defaultObjectAcl?: Schema$ObjectAccessControl[]; - /** - * The name of the bucket. - */ - id?: string | null; - /** - * The kind of item this is. For buckets, this is always storage#bucket. - */ - kind?: string | null; - /** - * The location of the bucket. Object data for objects in the bucket resides in physical storage in this location. Can be US or EU. Defaults to US. - */ - location?: string | null; - /** - * The owner of the bucket. This will always be the project team's owner group. - */ - owner?: {entity?: string; entityId?: string} | null; - /** - * The project the bucket belongs to. - */ - projectId?: string | null; - /** - * The URI of this bucket. - */ - selfLink?: string | null; - /** - * Creation time of the bucket in RFC 3339 format. - */ - timeCreated?: string | null; - /** - * The bucket's website configuration. - */ - website?: {mainPageSuffix?: string; notFoundPage?: string} | null; - } - /** - * An access-control entry. - */ - export interface Schema$BucketAccessControl { - /** - * The name of the bucket. - */ - bucket?: string | null; - /** - * The domain associated with the entity, if any. - */ - domain?: string | null; - /** - * The email address associated with the entity, if any. - */ - email?: string | null; - /** - * The entity holding the permission, in one of the following forms: - user-userId - user-email - group-groupId - group-email - domain-domain - allUsers - allAuthenticatedUsers Examples: - The user liz@example.com would be user-liz@example.com. - The group example@googlegroups.com would be group-example@googlegroups.com. - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com. - */ - entity?: string | null; - /** - * The ID for the entity, if any. - */ - entityId?: string | null; - /** - * The ID of the access-control entry. - */ - id?: string | null; - /** - * The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl. - */ - kind?: string | null; - /** - * The access permission for the entity. Can be READER, WRITER, or OWNER. - */ - role?: string | null; - /** - * The link to this access-control entry. - */ - selfLink?: string | null; - } - /** - * An access-control list. - */ - export interface Schema$BucketAccessControls { - /** - * The list of items. - */ - items?: Schema$BucketAccessControl[]; - /** - * The kind of item this is. For lists of bucket access control entries, this is always storage#bucketAccessControls. - */ - kind?: string | null; - } - /** - * A list of buckets. - */ - export interface Schema$Buckets { - /** - * The list of items. - */ - items?: Schema$Bucket[]; - /** - * The kind of item this is. For lists of buckets, this is always storage#buckets. - */ - kind?: string | null; - /** - * The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results. - */ - nextPageToken?: string | null; - } - /** - * An object. - */ - export interface Schema$Object { - /** - * Access controls on the object. - */ - acl?: Schema$ObjectAccessControl[]; - /** - * The bucket containing this object. - */ - bucket?: string | null; - /** - * Cache-Control directive for the object data. - */ - cacheControl?: string | null; - /** - * Content-Disposition of the object data. - */ - contentDisposition?: string | null; - /** - * Content-Encoding of the object data. - */ - contentEncoding?: string | null; - /** - * Content-Language of the object data. - */ - contentLanguage?: string | null; - /** - * The ID of the object. - */ - id?: string | null; - /** - * The kind of item this is. For objects, this is always storage#object. - */ - kind?: string | null; - /** - * Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part. - */ - media?: { - algorithm?: string; - contentType?: string; - data?: string; - hash?: string; - length?: string; - link?: string; - timeCreated?: string; - } | null; - /** - * User-provided metadata, in key/value pairs. - */ - metadata?: {[key: string]: string} | null; - /** - * The name of this object. Required if not specified by URL parameter. - */ - name?: string | null; - /** - * The owner of the object. This will always be the uploader of the object. - */ - owner?: {entity?: string; entityId?: string} | null; - /** - * The link to this object. - */ - selfLink?: string | null; - } - /** - * An access-control entry. - */ - export interface Schema$ObjectAccessControl { - /** - * The name of the bucket. - */ - bucket?: string | null; - /** - * The domain associated with the entity, if any. - */ - domain?: string | null; - /** - * The email address associated with the entity, if any. - */ - email?: string | null; - /** - * The entity holding the permission, in one of the following forms: - user-userId - user-email - group-groupId - group-email - domain-domain - allUsers - allAuthenticatedUsers Examples: - The user liz@example.com would be user-liz@example.com. - The group example@googlegroups.com would be group-example@googlegroups.com. - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com. - */ - entity?: string | null; - /** - * The ID for the entity, if any. - */ - entityId?: string | null; - /** - * The ID of the access-control entry. - */ - id?: string | null; - /** - * The kind of item this is. For object access control entries, this is always storage#objectAccessControl. - */ - kind?: string | null; - /** - * The name of the object. - */ - object?: string | null; - /** - * The access permission for the entity. Can be READER or OWNER. - */ - role?: string | null; - /** - * The link to this access-control entry. - */ - selfLink?: string | null; - } - /** - * An access-control list. - */ - export interface Schema$ObjectAccessControls { - /** - * The list of items. - */ - items?: Schema$ObjectAccessControl[]; - /** - * The kind of item this is. For lists of object access control entries, this is always storage#objectAccessControls. - */ - kind?: string | null; - } - /** - * A list of objects. - */ - export interface Schema$Objects { - /** - * The list of items. - */ - items?: Schema$Object[]; - /** - * The kind of item this is. For lists of objects, this is always storage#objects. - */ - kind?: string | null; - /** - * The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results. - */ - nextPageToken?: string | null; - /** - * The list of prefixes of objects matching-but-not-listed up to and including the requested delimiter. - */ - prefixes?: string[] | null; - } - - export class Resource$Bucketaccesscontrols { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * storage.bucketAccessControls.delete - * @desc Deletes the ACL entry for the specified entity on the specified bucket. - * @alias storage.bucketAccessControls.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.bucket Name of a bucket. - * @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - * @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$Bucketaccesscontrols$Delete, - options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Bucketaccesscontrols$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Bucketaccesscontrols$Delete, - callback: BodyResponseCallback - ): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - | Params$Resource$Bucketaccesscontrols$Delete - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Bucketaccesscontrols$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Bucketaccesscontrols$Delete; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/storage/v1beta1/b/{bucket}/acl/{entity}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'DELETE', - }, - options - ), - params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * storage.bucketAccessControls.get - * @desc Returns the ACL entry for the specified entity on the specified bucket. - * @alias storage.bucketAccessControls.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.bucket Name of a bucket. - * @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - * @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$Bucketaccesscontrols$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Bucketaccesscontrols$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Bucketaccesscontrols$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Bucketaccesscontrols$Get - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Bucketaccesscontrols$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Bucketaccesscontrols$Get; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/storage/v1beta1/b/{bucket}/acl/{entity}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', - }, - options - ), - params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * storage.bucketAccessControls.insert - * @desc Creates a new ACL entry on the specified bucket. - * @alias storage.bucketAccessControls.insert - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.bucket Name of a bucket. - * @param {().BucketAccessControl} 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 - */ - insert( - params?: Params$Resource$Bucketaccesscontrols$Insert, - options?: MethodOptions - ): GaxiosPromise; - insert( - params: Params$Resource$Bucketaccesscontrols$Insert, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - insert( - params: Params$Resource$Bucketaccesscontrols$Insert, - callback: BodyResponseCallback - ): void; - insert(callback: BodyResponseCallback): void; - insert( - paramsOrCallback?: - | Params$Resource$Bucketaccesscontrols$Insert - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Bucketaccesscontrols$Insert; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Bucketaccesscontrols$Insert; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/storage/v1beta1/b/{bucket}/acl').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', - }, - options - ), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * storage.bucketAccessControls.list - * @desc Retrieves ACL entries on the specified bucket. - * @alias storage.bucketAccessControls.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.bucket Name of a bucket. - * @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$Bucketaccesscontrols$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Bucketaccesscontrols$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Bucketaccesscontrols$List, - callback: BodyResponseCallback - ): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: - | Params$Resource$Bucketaccesscontrols$List - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Bucketaccesscontrols$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Bucketaccesscontrols$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/storage/v1beta1/b/{bucket}/acl').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', - }, - options - ), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * storage.bucketAccessControls.patch - * @desc Updates an ACL entry on the specified bucket. This method supports patch semantics. - * @alias storage.bucketAccessControls.patch - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.bucket Name of a bucket. - * @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - * @param {().BucketAccessControl} 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 - */ - patch( - params?: Params$Resource$Bucketaccesscontrols$Patch, - options?: MethodOptions - ): GaxiosPromise; - patch( - params: Params$Resource$Bucketaccesscontrols$Patch, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - patch( - params: Params$Resource$Bucketaccesscontrols$Patch, - callback: BodyResponseCallback - ): void; - patch(callback: BodyResponseCallback): void; - patch( - paramsOrCallback?: - | Params$Resource$Bucketaccesscontrols$Patch - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Bucketaccesscontrols$Patch; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Bucketaccesscontrols$Patch; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/storage/v1beta1/b/{bucket}/acl/{entity}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'PATCH', - }, - options - ), - params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * storage.bucketAccessControls.update - * @desc Updates an ACL entry on the specified bucket. - * @alias storage.bucketAccessControls.update - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.bucket Name of a bucket. - * @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - * @param {().BucketAccessControl} 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$Bucketaccesscontrols$Update, - options?: MethodOptions - ): GaxiosPromise; - update( - params: Params$Resource$Bucketaccesscontrols$Update, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - update( - params: Params$Resource$Bucketaccesscontrols$Update, - callback: BodyResponseCallback - ): void; - update(callback: BodyResponseCallback): void; - update( - paramsOrCallback?: - | Params$Resource$Bucketaccesscontrols$Update - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Bucketaccesscontrols$Update; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Bucketaccesscontrols$Update; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/storage/v1beta1/b/{bucket}/acl/{entity}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'PUT', - }, - options - ), - params, - requiredParams: ['bucket', 'entity'], - pathParams: ['bucket', 'entity'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Bucketaccesscontrols$Delete - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of a bucket. - */ - bucket?: string; - /** - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - */ - entity?: string; - } - export interface Params$Resource$Bucketaccesscontrols$Get - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of a bucket. - */ - bucket?: string; - /** - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - */ - entity?: string; - } - export interface Params$Resource$Bucketaccesscontrols$Insert - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of a bucket. - */ - bucket?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$BucketAccessControl; - } - export interface Params$Resource$Bucketaccesscontrols$List - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of a bucket. - */ - bucket?: string; - } - export interface Params$Resource$Bucketaccesscontrols$Patch - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of a bucket. - */ - bucket?: string; - /** - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - */ - entity?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$BucketAccessControl; - } - export interface Params$Resource$Bucketaccesscontrols$Update - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of a bucket. - */ - bucket?: string; - /** - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - */ - entity?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$BucketAccessControl; - } - - export class Resource$Buckets { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * storage.buckets.delete - * @desc Deletes an empty bucket. - * @alias storage.buckets.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.bucket Name of a bucket. - * @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$Buckets$Delete, - options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Buckets$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Buckets$Delete, - callback: BodyResponseCallback - ): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - | Params$Resource$Buckets$Delete - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Buckets$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Buckets$Delete; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/storage/v1beta1/b/{bucket}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'DELETE', - }, - options - ), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * storage.buckets.get - * @desc Returns metadata for the specified bucket. - * @alias storage.buckets.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.bucket Name of a bucket. - * @param {string=} params.projection Set of properties to return. Defaults to no_acl. - * @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$Buckets$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Buckets$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Buckets$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Buckets$Get - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Buckets$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Buckets$Get; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/storage/v1beta1/b/{bucket}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', - }, - options - ), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * storage.buckets.insert - * @desc Creates a new bucket. - * @alias storage.buckets.insert - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.projection Set of properties to return. Defaults to no_acl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full. - * @param {().Bucket} 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 - */ - insert( - params?: Params$Resource$Buckets$Insert, - options?: MethodOptions - ): GaxiosPromise; - insert( - params: Params$Resource$Buckets$Insert, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - insert( - params: Params$Resource$Buckets$Insert, - callback: BodyResponseCallback - ): void; - insert(callback: BodyResponseCallback): void; - insert( - paramsOrCallback?: - | Params$Resource$Buckets$Insert - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Buckets$Insert; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Buckets$Insert; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/storage/v1beta1/b').replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: [], - pathParams: [], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * storage.buckets.list - * @desc Retrieves a list of buckets for a given project. - * @alias storage.buckets.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {integer=} params.max-results Maximum number of buckets to return. - * @param {string=} params.pageToken A previously-returned page token representing part of the larger set of results to view. - * @param {string} params.projectId A valid API project identifier. - * @param {string=} params.projection Set of properties to return. Defaults to no_acl. - * @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$Buckets$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Buckets$List, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Buckets$List, - callback: BodyResponseCallback - ): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: - | Params$Resource$Buckets$List - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Buckets$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Buckets$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/storage/v1beta1/b').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['projectId'], - pathParams: [], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * storage.buckets.patch - * @desc Updates a bucket. This method supports patch semantics. - * @alias storage.buckets.patch - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.bucket Name of a bucket. - * @param {string=} params.projection Set of properties to return. Defaults to full. - * @param {().Bucket} 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 - */ - patch( - params?: Params$Resource$Buckets$Patch, - options?: MethodOptions - ): GaxiosPromise; - patch( - params: Params$Resource$Buckets$Patch, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - patch( - params: Params$Resource$Buckets$Patch, - callback: BodyResponseCallback - ): void; - patch(callback: BodyResponseCallback): void; - patch( - paramsOrCallback?: - | Params$Resource$Buckets$Patch - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Buckets$Patch; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Buckets$Patch; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/storage/v1beta1/b/{bucket}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'PATCH', - }, - options - ), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * storage.buckets.update - * @desc Updates a bucket. - * @alias storage.buckets.update - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.bucket Name of a bucket. - * @param {string=} params.projection Set of properties to return. Defaults to full. - * @param {().Bucket} 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$Buckets$Update, - options?: MethodOptions - ): GaxiosPromise; - update( - params: Params$Resource$Buckets$Update, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - update( - params: Params$Resource$Buckets$Update, - callback: BodyResponseCallback - ): void; - update(callback: BodyResponseCallback): void; - update( - paramsOrCallback?: - | Params$Resource$Buckets$Update - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Buckets$Update; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Buckets$Update; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/storage/v1beta1/b/{bucket}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'PUT', - }, - options - ), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Buckets$Delete extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of a bucket. - */ - bucket?: string; - } - export interface Params$Resource$Buckets$Get extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of a bucket. - */ - bucket?: string; - /** - * Set of properties to return. Defaults to no_acl. - */ - projection?: string; - } - export interface Params$Resource$Buckets$Insert extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Set of properties to return. Defaults to no_acl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full. - */ - projection?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Bucket; - } - export interface Params$Resource$Buckets$List extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Maximum number of buckets to return. - */ - 'max-results'?: number; - /** - * A previously-returned page token representing part of the larger set of results to view. - */ - pageToken?: string; - /** - * A valid API project identifier. - */ - projectId?: string; - /** - * Set of properties to return. Defaults to no_acl. - */ - projection?: string; - } - export interface Params$Resource$Buckets$Patch extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of a bucket. - */ - bucket?: string; - /** - * Set of properties to return. Defaults to full. - */ - projection?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Bucket; - } - export interface Params$Resource$Buckets$Update extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of a bucket. - */ - bucket?: string; - /** - * Set of properties to return. Defaults to full. - */ - projection?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Bucket; - } - - export class Resource$Objectaccesscontrols { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * storage.objectAccessControls.delete - * @desc Deletes the ACL entry for the specified entity on the specified object. - * @alias storage.objectAccessControls.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.bucket Name of a bucket. - * @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - * @param {string} params.object Name of the 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 - */ - delete( - params?: Params$Resource$Objectaccesscontrols$Delete, - options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Objectaccesscontrols$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Objectaccesscontrols$Delete, - callback: BodyResponseCallback - ): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - | Params$Resource$Objectaccesscontrols$Delete - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Objectaccesscontrols$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Objectaccesscontrols$Delete; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/storage/v1beta1/b/{bucket}/o/{object}/acl/{entity}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, - options - ), - params, - requiredParams: ['bucket', 'object', 'entity'], - pathParams: ['bucket', 'entity', 'object'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * storage.objectAccessControls.get - * @desc Returns the ACL entry for the specified entity on the specified object. - * @alias storage.objectAccessControls.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.bucket Name of a bucket. - * @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - * @param {string} params.object Name of the 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 - */ - get( - params?: Params$Resource$Objectaccesscontrols$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Objectaccesscontrols$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Objectaccesscontrols$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Objectaccesscontrols$Get - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Objectaccesscontrols$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Objectaccesscontrols$Get; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/storage/v1beta1/b/{bucket}/o/{object}/acl/{entity}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['bucket', 'object', 'entity'], - pathParams: ['bucket', 'entity', 'object'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * storage.objectAccessControls.insert - * @desc Creates a new ACL entry on the specified object. - * @alias storage.objectAccessControls.insert - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.bucket Name of a bucket. - * @param {string} params.object Name of the object. - * @param {().ObjectAccessControl} 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 - */ - insert( - params?: Params$Resource$Objectaccesscontrols$Insert, - options?: MethodOptions - ): GaxiosPromise; - insert( - params: Params$Resource$Objectaccesscontrols$Insert, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - insert( - params: Params$Resource$Objectaccesscontrols$Insert, - callback: BodyResponseCallback - ): void; - insert(callback: BodyResponseCallback): void; - insert( - paramsOrCallback?: - | Params$Resource$Objectaccesscontrols$Insert - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Objectaccesscontrols$Insert; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Objectaccesscontrols$Insert; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/storage/v1beta1/b/{bucket}/o/{object}/acl' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * storage.objectAccessControls.list - * @desc Retrieves ACL entries on the specified object. - * @alias storage.objectAccessControls.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.bucket Name of a bucket. - * @param {string} params.object Name of the 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 - */ - list( - params?: Params$Resource$Objectaccesscontrols$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Objectaccesscontrols$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Objectaccesscontrols$List, - callback: BodyResponseCallback - ): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: - | Params$Resource$Objectaccesscontrols$List - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Objectaccesscontrols$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Objectaccesscontrols$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/storage/v1beta1/b/{bucket}/o/{object}/acl' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * storage.objectAccessControls.patch - * @desc Updates an ACL entry on the specified object. This method supports patch semantics. - * @alias storage.objectAccessControls.patch - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.bucket Name of a bucket. - * @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - * @param {string} params.object Name of the object. - * @param {().ObjectAccessControl} 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 - */ - patch( - params?: Params$Resource$Objectaccesscontrols$Patch, - options?: MethodOptions - ): GaxiosPromise; - patch( - params: Params$Resource$Objectaccesscontrols$Patch, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - patch( - params: Params$Resource$Objectaccesscontrols$Patch, - callback: BodyResponseCallback - ): void; - patch(callback: BodyResponseCallback): void; - patch( - paramsOrCallback?: - | Params$Resource$Objectaccesscontrols$Patch - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Objectaccesscontrols$Patch; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Objectaccesscontrols$Patch; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/storage/v1beta1/b/{bucket}/o/{object}/acl/{entity}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - }, - options - ), - params, - requiredParams: ['bucket', 'object', 'entity'], - pathParams: ['bucket', 'entity', 'object'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * storage.objectAccessControls.update - * @desc Updates an ACL entry on the specified object. - * @alias storage.objectAccessControls.update - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.bucket Name of a bucket. - * @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - * @param {string} params.object Name of the object. - * @param {().ObjectAccessControl} 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$Objectaccesscontrols$Update, - options?: MethodOptions - ): GaxiosPromise; - update( - params: Params$Resource$Objectaccesscontrols$Update, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - update( - params: Params$Resource$Objectaccesscontrols$Update, - callback: BodyResponseCallback - ): void; - update(callback: BodyResponseCallback): void; - update( - paramsOrCallback?: - | Params$Resource$Objectaccesscontrols$Update - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Objectaccesscontrols$Update; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Objectaccesscontrols$Update; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/storage/v1beta1/b/{bucket}/o/{object}/acl/{entity}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, - options - ), - params, - requiredParams: ['bucket', 'object', 'entity'], - pathParams: ['bucket', 'entity', 'object'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Objectaccesscontrols$Delete - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of a bucket. - */ - bucket?: string; - /** - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - */ - entity?: string; - /** - * Name of the object. - */ - object?: string; - } - export interface Params$Resource$Objectaccesscontrols$Get - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of a bucket. - */ - bucket?: string; - /** - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - */ - entity?: string; - /** - * Name of the object. - */ - object?: string; - } - export interface Params$Resource$Objectaccesscontrols$Insert - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of a bucket. - */ - bucket?: string; - /** - * Name of the object. - */ - object?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$ObjectAccessControl; - } - export interface Params$Resource$Objectaccesscontrols$List - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of a bucket. - */ - bucket?: string; - /** - * Name of the object. - */ - object?: string; - } - export interface Params$Resource$Objectaccesscontrols$Patch - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of a bucket. - */ - bucket?: string; - /** - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - */ - entity?: string; - /** - * Name of the object. - */ - object?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$ObjectAccessControl; - } - export interface Params$Resource$Objectaccesscontrols$Update - extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of a bucket. - */ - bucket?: string; - /** - * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - */ - entity?: string; - /** - * Name of the object. - */ - object?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$ObjectAccessControl; - } - - export class Resource$Objects { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * storage.objects.delete - * @desc Deletes data blobs and associated metadata. - * @alias storage.objects.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.bucket Name of the bucket in which the object resides. - * @param {string} params.object Name of the 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 - */ - delete( - params?: Params$Resource$Objects$Delete, - options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Objects$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Objects$Delete, - callback: BodyResponseCallback - ): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - | Params$Resource$Objects$Delete - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Objects$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Objects$Delete; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/storage/v1beta1/b/{bucket}/o/{object}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'DELETE', - }, - options - ), - params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * storage.objects.get - * @desc Retrieves objects or their associated metadata. - * @alias storage.objects.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.bucket Name of the bucket in which the object resides. - * @param {string} params.object Name of the object. - * @param {string=} params.projection Set of properties to return. Defaults to no_acl. - * @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$Objects$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Objects$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Objects$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Objects$Get - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Objects$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Objects$Get; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/storage/v1beta1/b/{bucket}/o/{object}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', - }, - options - ), - params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * storage.objects.insert - * @desc Stores new data blobs and associated metadata. - * @alias storage.objects.insert - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.bucket Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any. - * @param {string=} params.name Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. - * @param {string=} params.projection Set of properties to return. Defaults to no_acl, unless the object resource specifies the acl property, when it defaults to full. - * @param {object} params.resource Media resource metadata - * @param {object} params.media Media object - * @param {string} params.media.mimeType Media mime-type - * @param {string|object} params.media.body Media body contents - * @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 - */ - insert( - params?: Params$Resource$Objects$Insert, - options?: MethodOptions - ): GaxiosPromise; - insert( - params: Params$Resource$Objects$Insert, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - insert( - params: Params$Resource$Objects$Insert, - callback: BodyResponseCallback - ): void; - insert(callback: BodyResponseCallback): void; - insert( - paramsOrCallback?: - | Params$Resource$Objects$Insert - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Objects$Insert; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Objects$Insert; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/storage/v1beta1/b/{bucket}/o').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', - }, - options - ), - params, - mediaUrl: (rootUrl + '/upload/storage/v1beta1/b/{bucket}/o').replace( - /([^:]\/)\/+/g, - '$1' - ), - requiredParams: ['bucket'], - pathParams: ['bucket'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * storage.objects.list - * @desc Retrieves a list of objects matching the criteria. - * @alias storage.objects.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.bucket Name of the bucket in which to look for objects. - * @param {string=} params.delimiter Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted. - * @param {integer=} params.max-results Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total results may be returned than requested. - * @param {string=} params.pageToken A previously-returned page token representing part of the larger set of results to view. - * @param {string=} params.prefix Filter results to objects whose names begin with this prefix. - * @param {string=} params.projection Set of properties to return. Defaults to no_acl. - * @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$Objects$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Objects$List, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Objects$List, - callback: BodyResponseCallback - ): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: - | Params$Resource$Objects$List - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Objects$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Objects$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/storage/v1beta1/b/{bucket}/o').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', - }, - options - ), - params, - requiredParams: ['bucket'], - pathParams: ['bucket'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * storage.objects.patch - * @desc Updates a data blob's associated metadata. This method supports patch semantics. - * @alias storage.objects.patch - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.bucket Name of the bucket in which the object resides. - * @param {string} params.object Name of the object. - * @param {string=} params.projection Set of properties to return. Defaults to full. - * @param {().Object} 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 - */ - patch( - params?: Params$Resource$Objects$Patch, - options?: MethodOptions - ): GaxiosPromise; - patch( - params: Params$Resource$Objects$Patch, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - patch( - params: Params$Resource$Objects$Patch, - callback: BodyResponseCallback - ): void; - patch(callback: BodyResponseCallback): void; - patch( - paramsOrCallback?: - | Params$Resource$Objects$Patch - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Objects$Patch; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Objects$Patch; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/storage/v1beta1/b/{bucket}/o/{object}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'PATCH', - }, - options - ), - params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * storage.objects.update - * @desc Updates a data blob's associated metadata. - * @alias storage.objects.update - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.bucket Name of the bucket in which the object resides. - * @param {string} params.object Name of the object. - * @param {string=} params.projection Set of properties to return. Defaults to full. - * @param {().Object} 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$Objects$Update, - options?: MethodOptions - ): GaxiosPromise; - update( - params: Params$Resource$Objects$Update, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - update( - params: Params$Resource$Objects$Update, - callback: BodyResponseCallback - ): void; - update(callback: BodyResponseCallback): void; - update( - paramsOrCallback?: - | Params$Resource$Objects$Update - | BodyResponseCallback, - optionsOrCallback?: MethodOptions | BodyResponseCallback, - callback?: BodyResponseCallback - ): void | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Objects$Update; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Objects$Update; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/storage/v1beta1/b/{bucket}/o/{object}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'PUT', - }, - options - ), - params, - requiredParams: ['bucket', 'object'], - pathParams: ['bucket', 'object'], - context: this.context, - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Objects$Delete extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of the bucket in which the object resides. - */ - bucket?: string; - /** - * Name of the object. - */ - object?: string; - } - export interface Params$Resource$Objects$Get extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of the bucket in which the object resides. - */ - bucket?: string; - /** - * Name of the object. - */ - object?: string; - /** - * Set of properties to return. Defaults to no_acl. - */ - projection?: string; - } - export interface Params$Resource$Objects$Insert extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any. - */ - bucket?: string; - /** - * Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. - */ - name?: string; - /** - * Set of properties to return. Defaults to no_acl, unless the object resource specifies the acl property, when it defaults to full. - */ - projection?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Object; - - /** - * Media metadata - */ - media?: { - /** - * Media mime-type - */ - mimeType?: string; - - /** - * Media body contents - */ - body?: any; - }; - } - export interface Params$Resource$Objects$List extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of the bucket in which to look for objects. - */ - bucket?: string; - /** - * Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted. - */ - delimiter?: string; - /** - * Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total results may be returned than requested. - */ - 'max-results'?: number; - /** - * A previously-returned page token representing part of the larger set of results to view. - */ - pageToken?: string; - /** - * Filter results to objects whose names begin with this prefix. - */ - prefix?: string; - /** - * Set of properties to return. Defaults to no_acl. - */ - projection?: string; - } - export interface Params$Resource$Objects$Patch extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of the bucket in which the object resides. - */ - bucket?: string; - /** - * Name of the object. - */ - object?: string; - /** - * Set of properties to return. Defaults to full. - */ - projection?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Object; - } - export interface Params$Resource$Objects$Update extends StandardParameters { - /** - * Auth client or API Key for the request - */ - auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient; - - /** - * Name of the bucket in which the object resides. - */ - bucket?: string; - /** - * Name of the object. - */ - object?: string; - /** - * Set of properties to return. Defaults to full. - */ - projection?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Object; - } -} diff --git a/src/apis/storage/v1beta2.ts b/src/apis/storage/v1beta2.ts index 1280885431f..d95bf1605b2 100644 --- a/src/apis/storage/v1beta2.ts +++ b/src/apis/storage/v1beta2.ts @@ -695,7 +695,7 @@ export namespace storage_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.bucket Name of a bucket. - * @param {().BucketAccessControl} params.resource Request body data + * @param {().BucketAccessControl} params.requestBody 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 @@ -847,7 +847,7 @@ export namespace storage_v1beta2 { * @param {object} params Parameters for request * @param {string} params.bucket Name of a bucket. * @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - * @param {().BucketAccessControl} params.resource Request body data + * @param {().BucketAccessControl} params.requestBody 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 @@ -923,7 +923,7 @@ export namespace storage_v1beta2 { * @param {object} params Parameters for request * @param {string} params.bucket Name of a bucket. * @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - * @param {().BucketAccessControl} params.resource Request body data + * @param {().BucketAccessControl} params.requestBody 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 @@ -1257,7 +1257,7 @@ export namespace storage_v1beta2 { * @param {object} params Parameters for request * @param {string} params.project A valid API project identifier. * @param {string=} params.projection Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full. - * @param {().Bucket} params.resource Request body data + * @param {().Bucket} params.requestBody 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 @@ -1400,7 +1400,7 @@ export namespace storage_v1beta2 { * @param {string=} params.ifMetagenerationMatch Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value. * @param {string=} params.ifMetagenerationNotMatch Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value. * @param {string=} params.projection Set of properties to return. Defaults to full. - * @param {().Bucket} params.resource Request body data + * @param {().Bucket} params.requestBody 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 @@ -1475,7 +1475,7 @@ export namespace storage_v1beta2 { * @param {string=} params.ifMetagenerationMatch Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value. * @param {string=} params.ifMetagenerationNotMatch Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value. * @param {string=} params.projection Set of properties to return. Defaults to full. - * @param {().Bucket} params.resource Request body data + * @param {().Bucket} params.requestBody 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 @@ -1695,7 +1695,7 @@ export namespace storage_v1beta2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Channel} params.resource Request body data + * @param {().Channel} params.requestBody 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 @@ -1932,7 +1932,7 @@ export namespace storage_v1beta2 { * * @param {object} params Parameters for request * @param {string} params.bucket Name of a bucket. - * @param {().ObjectAccessControl} params.resource Request body data + * @param {().ObjectAccessControl} params.requestBody 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 @@ -2084,7 +2084,7 @@ export namespace storage_v1beta2 { * @param {object} params Parameters for request * @param {string} params.bucket Name of a bucket. * @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - * @param {().ObjectAccessControl} params.resource Request body data + * @param {().ObjectAccessControl} params.requestBody 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 @@ -2159,7 +2159,7 @@ export namespace storage_v1beta2 { * @param {object} params Parameters for request * @param {string} params.bucket Name of a bucket. * @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - * @param {().ObjectAccessControl} params.resource Request body data + * @param {().ObjectAccessControl} params.requestBody 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 @@ -2504,7 +2504,7 @@ export namespace storage_v1beta2 { * @param {string} params.bucket Name of a bucket. * @param {string=} params.generation If present, selects a specific revision of this object (as opposed to the latest version, the default). * @param {string} params.object Name of the object. - * @param {().ObjectAccessControl} params.resource Request body data + * @param {().ObjectAccessControl} params.requestBody 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 @@ -2658,7 +2658,7 @@ export namespace storage_v1beta2 { * @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. * @param {string=} params.generation If present, selects a specific revision of this object (as opposed to the latest version, the default). * @param {string} params.object Name of the object. - * @param {().ObjectAccessControl} params.resource Request body data + * @param {().ObjectAccessControl} params.requestBody 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 @@ -2735,7 +2735,7 @@ export namespace storage_v1beta2 { * @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. * @param {string=} params.generation If present, selects a specific revision of this object (as opposed to the latest version, the default). * @param {string} params.object Name of the object. - * @param {().ObjectAccessControl} params.resource Request body data + * @param {().ObjectAccessControl} params.requestBody 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 @@ -2971,7 +2971,7 @@ export namespace storage_v1beta2 { * @param {string} params.destinationObject Name of the new object. * @param {string=} params.ifGenerationMatch Makes the operation conditional on whether the object's current generation matches the given value. * @param {string=} params.ifMetagenerationMatch Makes the operation conditional on whether the object's current metageneration matches the given value. - * @param {().ComposeRequest} params.resource Request body data + * @param {().ComposeRequest} params.requestBody 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 @@ -3056,7 +3056,7 @@ export namespace storage_v1beta2 { * @param {string} params.sourceBucket Name of the bucket in which to find the source object. * @param {string=} params.sourceGeneration If present, selects a specific revision of the source object (as opposed to the latest version, the default). * @param {string} params.sourceObject Name of the source object. - * @param {().Object} params.resource Request body data + * @param {().Object} params.requestBody 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 @@ -3299,7 +3299,7 @@ export namespace storage_v1beta2 { * @param {string=} params.ifMetagenerationNotMatch Makes the operation conditional on whether the object's current metageneration does not match the given value. * @param {string=} params.name Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. * @param {string=} params.projection Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full. - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents @@ -3462,7 +3462,7 @@ export namespace storage_v1beta2 { * @param {string=} params.ifMetagenerationNotMatch Makes the operation conditional on whether the object's current metageneration does not match the given value. * @param {string} params.object Name of the object. * @param {string=} params.projection Set of properties to return. Defaults to full. - * @param {().Object} params.resource Request body data + * @param {().Object} params.requestBody 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 @@ -3541,7 +3541,7 @@ export namespace storage_v1beta2 { * @param {string=} params.ifMetagenerationNotMatch Makes the operation conditional on whether the object's current metageneration does not match the given value. * @param {string} params.object Name of the object. * @param {string=} params.projection Set of properties to return. Defaults to full. - * @param {().Object} params.resource Request body data + * @param {().Object} params.requestBody 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 @@ -3619,7 +3619,7 @@ export namespace storage_v1beta2 { * @param {string=} params.prefix Filter results to objects whose names begin with this prefix. * @param {string=} params.projection Set of properties to return. Defaults to noAcl. * @param {boolean=} params.versions If true, lists all versions of a file as distinct results. - * @param {().Channel} params.resource Request body data + * @param {().Channel} params.requestBody 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 diff --git a/src/apis/storagetransfer/v1.ts b/src/apis/storagetransfer/v1.ts index 92e3b0340a9..3a2242c963a 100644 --- a/src/apis/storagetransfer/v1.ts +++ b/src/apis/storagetransfer/v1.ts @@ -779,7 +779,7 @@ export namespace storagetransfer_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().TransferJob} params.resource Request body data + * @param {().TransferJob} params.requestBody 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 @@ -1153,7 +1153,7 @@ export namespace storagetransfer_v1 { * * @param {object} params Parameters for request * @param {string} params.jobName Required. The name of job to update. - * @param {().UpdateTransferJobRequest} params.resource Request body data + * @param {().UpdateTransferJobRequest} params.requestBody 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 @@ -1825,7 +1825,7 @@ export namespace storagetransfer_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The name of the transfer operation. - * @param {().PauseTransferOperationRequest} params.resource Request body data + * @param {().PauseTransferOperationRequest} params.requestBody 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 @@ -1943,7 +1943,7 @@ export namespace storagetransfer_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The name of the transfer operation. - * @param {().ResumeTransferOperationRequest} params.resource Request body data + * @param {().ResumeTransferOperationRequest} params.requestBody 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 diff --git a/src/apis/streetviewpublish/v1.ts b/src/apis/streetviewpublish/v1.ts index 3e73448d187..cba71cb0ab8 100644 --- a/src/apis/streetviewpublish/v1.ts +++ b/src/apis/streetviewpublish/v1.ts @@ -417,7 +417,7 @@ export namespace streetviewpublish_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Photo} params.resource Request body data + * @param {().Photo} params.requestBody 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 @@ -632,7 +632,7 @@ export namespace streetviewpublish_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Empty} params.resource Request body data + * @param {().Empty} params.requestBody 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 @@ -709,7 +709,7 @@ export namespace streetviewpublish_v1 { * @param {object} params Parameters for request * @param {string} params.id Required. A unique identifier for a photo. * @param {string=} params.updateMask Required. Mask that identifies fields on the photo metadata to update. If not present, the old Photo metadata is entirely replaced with the new Photo metadata in this request. The update fails if invalid fields are specified. Multiple fields can be specified in a comma-delimited list. The following fields are valid: * `pose.heading` * `pose.latLngPair` * `pose.pitch` * `pose.roll` * `pose.level` * `pose.altitude` * `connections` * `places`

              - * @param {().Photo} params.resource Request body data + * @param {().Photo} params.requestBody 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 @@ -859,7 +859,7 @@ export namespace streetviewpublish_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().BatchDeletePhotosRequest} params.resource Request body data + * @param {().BatchDeletePhotosRequest} params.requestBody 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 @@ -1021,7 +1021,7 @@ export namespace streetviewpublish_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().BatchUpdatePhotosRequest} params.resource Request body data + * @param {().BatchUpdatePhotosRequest} params.requestBody 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 diff --git a/src/apis/surveys/v2.ts b/src/apis/surveys/v2.ts index 9c2ea0c5e42..73121a5fc76 100644 --- a/src/apis/surveys/v2.ts +++ b/src/apis/surveys/v2.ts @@ -388,7 +388,7 @@ export namespace surveys_v2 { * * @param {object} params Parameters for request * @param {string} params.surveyUrlId External URL ID for the survey. - * @param {().ResultsGetRequest} params.resource Request body data + * @param {().ResultsGetRequest} params.requestBody 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 @@ -630,7 +630,7 @@ export namespace surveys_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Survey} params.resource Request body data + * @param {().Survey} params.requestBody 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 @@ -777,7 +777,7 @@ export namespace surveys_v2 { * * @param {object} params Parameters for request * @param {string} params.resourceId - * @param {().SurveysStartRequest} params.resource Request body data + * @param {().SurveysStartRequest} params.requestBody 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 @@ -926,7 +926,7 @@ export namespace surveys_v2 { * * @param {object} params Parameters for request * @param {string} params.surveyUrlId External URL ID for the survey. - * @param {().Survey} params.resource Request body data + * @param {().Survey} params.requestBody 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 diff --git a/src/apis/tagmanager/v1.ts b/src/apis/tagmanager/v1.ts index 7b33cc45824..1f71239dd97 100644 --- a/src/apis/tagmanager/v1.ts +++ b/src/apis/tagmanager/v1.ts @@ -1118,7 +1118,7 @@ export namespace tagmanager_v1 { * @param {object} params Parameters for request * @param {string} params.accountId The GTM Account ID. * @param {string=} params.fingerprint When provided, this fingerprint must match the fingerprint of the account in storage. - * @param {().Account} params.resource Request body data + * @param {().Account} params.requestBody 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 @@ -1257,7 +1257,7 @@ export namespace tagmanager_v1 { * * @param {object} params Parameters for request * @param {string} params.accountId The GTM Account ID. - * @param {().Container} params.resource Request body data + * @param {().Container} params.requestBody 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 @@ -1556,7 +1556,7 @@ export namespace tagmanager_v1 { * @param {string} params.accountId The GTM Account ID. * @param {string} params.containerId The GTM Container ID. * @param {string=} params.fingerprint When provided, this fingerprint must match the fingerprint of the container in storage. - * @param {().Container} params.resource Request body data + * @param {().Container} params.requestBody 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 @@ -1726,7 +1726,7 @@ export namespace tagmanager_v1 { * @param {object} params Parameters for request * @param {string} params.accountId The GTM Account ID. * @param {string} params.containerId The GTM Container ID. - * @param {().Environment} params.resource Request body data + * @param {().Environment} params.requestBody 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 @@ -2031,7 +2031,7 @@ export namespace tagmanager_v1 { * @param {string} params.containerId The GTM Container ID. * @param {string} params.environmentId The GTM Environment ID. * @param {string=} params.fingerprint When provided, this fingerprint must match the fingerprint of the environment in storage. - * @param {().Environment} params.resource Request body data + * @param {().Environment} params.requestBody 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 @@ -2225,7 +2225,7 @@ export namespace tagmanager_v1 { * @param {object} params Parameters for request * @param {string} params.accountId The GTM Account ID. * @param {string} params.containerId The GTM Container ID. - * @param {().Folder} params.resource Request body data + * @param {().Folder} params.requestBody 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 @@ -2524,7 +2524,7 @@ export namespace tagmanager_v1 { * @param {string} params.containerId The GTM Container ID. * @param {string=} params.fingerprint When provided, this fingerprint must match the fingerprint of the folder in storage. * @param {string} params.folderId The GTM Folder ID. - * @param {().Folder} params.resource Request body data + * @param {().Folder} params.requestBody 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 @@ -2820,7 +2820,7 @@ export namespace tagmanager_v1 { * @param {string=} params.tagId The tags to be moved to the folder. * @param {string=} params.triggerId The triggers to be moved to the folder. * @param {string=} params.variableId The variables to be moved to the folder. - * @param {().Folder} params.resource Request body data + * @param {().Folder} params.requestBody 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 @@ -2940,7 +2940,7 @@ export namespace tagmanager_v1 { * @param {string} params.accountId The GTM Account ID. * @param {string} params.containerId The GTM Container ID. * @param {string} params.environmentId The GTM Environment ID. - * @param {().Environment} params.resource Request body data + * @param {().Environment} params.requestBody 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 @@ -3049,7 +3049,7 @@ export namespace tagmanager_v1 { * @param {object} params Parameters for request * @param {string} params.accountId The GTM Account ID. * @param {string} params.containerId The GTM Container ID. - * @param {().Tag} params.resource Request body data + * @param {().Tag} params.requestBody 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 @@ -3348,7 +3348,7 @@ export namespace tagmanager_v1 { * @param {string} params.containerId The GTM Container ID. * @param {string=} params.fingerprint When provided, this fingerprint must match the fingerprint of the tag in storage. * @param {string} params.tagId The GTM Tag ID. - * @param {().Tag} params.resource Request body data + * @param {().Tag} params.requestBody 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 @@ -3536,7 +3536,7 @@ export namespace tagmanager_v1 { * @param {object} params Parameters for request * @param {string} params.accountId The GTM Account ID. * @param {string} params.containerId The GTM Container ID. - * @param {().Trigger} params.resource Request body data + * @param {().Trigger} params.requestBody 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 @@ -3837,7 +3837,7 @@ export namespace tagmanager_v1 { * @param {string} params.containerId The GTM Container ID. * @param {string=} params.fingerprint When provided, this fingerprint must match the fingerprint of the trigger in storage. * @param {string} params.triggerId The GTM Trigger ID. - * @param {().Trigger} params.resource Request body data + * @param {().Trigger} params.requestBody 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 @@ -4025,7 +4025,7 @@ export namespace tagmanager_v1 { * @param {object} params Parameters for request * @param {string} params.accountId The GTM Account ID. * @param {string} params.containerId The GTM Container ID. - * @param {().Variable} params.resource Request body data + * @param {().Variable} params.requestBody 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 @@ -4326,7 +4326,7 @@ export namespace tagmanager_v1 { * @param {string} params.containerId The GTM Container ID. * @param {string=} params.fingerprint When provided, this fingerprint must match the fingerprint of the variable in storage. * @param {string} params.variableId The GTM Variable ID. - * @param {().Variable} params.resource Request body data + * @param {().Variable} params.requestBody 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 @@ -4514,7 +4514,7 @@ export namespace tagmanager_v1 { * @param {object} params Parameters for request * @param {string} params.accountId The GTM Account ID. * @param {string} params.containerId The GTM Container ID. - * @param {().CreateContainerVersionRequestVersionOptions} params.resource Request body data + * @param {().CreateContainerVersionRequestVersionOptions} params.requestBody 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 @@ -5075,7 +5075,7 @@ export namespace tagmanager_v1 { * @param {string} params.containerId The GTM Container ID. * @param {string} params.containerVersionId The GTM Container Version ID. * @param {string=} params.fingerprint When provided, this fingerprint must match the fingerprint of the container version in storage. - * @param {().ContainerVersion} params.resource Request body data + * @param {().ContainerVersion} params.requestBody 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 @@ -5336,7 +5336,7 @@ export namespace tagmanager_v1 { * * @param {object} params Parameters for request * @param {string} params.accountId The GTM Account ID. - * @param {().UserAccess} params.resource Request body data + * @param {().UserAccess} params.requestBody 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 @@ -5634,7 +5634,7 @@ export namespace tagmanager_v1 { * @param {object} params Parameters for request * @param {string} params.accountId The GTM Account ID. * @param {string} params.permissionId The GTM User ID. - * @param {().UserAccess} params.resource Request body data + * @param {().UserAccess} params.requestBody 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 diff --git a/src/apis/tagmanager/v2.ts b/src/apis/tagmanager/v2.ts index cf2f9cfd3c5..4ce01a3b078 100644 --- a/src/apis/tagmanager/v2.ts +++ b/src/apis/tagmanager/v2.ts @@ -1623,7 +1623,7 @@ export namespace tagmanager_v2 { * @param {object} params Parameters for request * @param {string=} params.fingerprint When provided, this fingerprint must match the fingerprint of the account in storage. * @param {string} params.path GTM Accounts's API relative path. Example: accounts/{account_id} - * @param {().Account} params.resource Request body data + * @param {().Account} params.requestBody 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 @@ -1759,7 +1759,7 @@ export namespace tagmanager_v2 { * * @param {object} params Parameters for request * @param {string} params.parent GTM Account's API relative path. Example: accounts/{account_id}. - * @param {().Container} params.resource Request body data + * @param {().Container} params.requestBody 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 @@ -2058,7 +2058,7 @@ export namespace tagmanager_v2 { * @param {object} params Parameters for request * @param {string=} params.fingerprint When provided, this fingerprint must match the fingerprint of the container in storage. * @param {string} params.path GTM Container's API relative path. Example: accounts/{account_id}/containers/{container_id} - * @param {().Container} params.resource Request body data + * @param {().Container} params.requestBody 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 @@ -2219,7 +2219,7 @@ export namespace tagmanager_v2 { * * @param {object} params Parameters for request * @param {string} params.parent GTM Container's API relative path. Example: accounts/{account_id}/containers/{container_id} - * @param {().Environment} params.resource Request body data + * @param {().Environment} params.requestBody 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 @@ -2517,7 +2517,7 @@ export namespace tagmanager_v2 { * * @param {object} params Parameters for request * @param {string} params.path GTM Environment's API relative path. Example: accounts/{account_id}/containers/{container_id}/environments/{environment_id} - * @param {().Environment} params.resource Request body data + * @param {().Environment} params.requestBody 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 @@ -2593,7 +2593,7 @@ export namespace tagmanager_v2 { * @param {object} params Parameters for request * @param {string=} params.fingerprint When provided, this fingerprint must match the fingerprint of the environment in storage. * @param {string} params.path GTM Environment's API relative path. Example: accounts/{account_id}/containers/{container_id}/environments/{environment_id} - * @param {().Environment} params.resource Request body data + * @param {().Environment} params.requestBody 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 @@ -3225,7 +3225,7 @@ export namespace tagmanager_v2 { * @param {object} params Parameters for request * @param {string=} params.fingerprint When provided, this fingerprint must match the fingerprint of the container version in storage. * @param {string} params.path GTM ContainerVersion's API relative path. Example: accounts/{account_id}/containers/{container_id}/versions/{version_id} - * @param {().ContainerVersion} params.resource Request body data + * @param {().ContainerVersion} params.requestBody 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 @@ -3637,7 +3637,7 @@ export namespace tagmanager_v2 { * * @param {object} params Parameters for request * @param {string} params.parent GTM parent Container's API relative path. Example: accounts/{account_id}/containers/{container_id} - * @param {().Workspace} params.resource Request body data + * @param {().Workspace} params.requestBody 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 @@ -3712,7 +3712,7 @@ export namespace tagmanager_v2 { * * @param {object} params Parameters for request * @param {string} params.path GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} - * @param {().CreateContainerVersionRequestVersionOptions} params.resource Request body data + * @param {().CreateContainerVersionRequestVersionOptions} params.requestBody 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 @@ -4179,7 +4179,7 @@ export namespace tagmanager_v2 { * @param {object} params Parameters for request * @param {string=} params.fingerprint When provided, this fingerprint must match the fingerprint of the entity_in_workspace in the merge conflict. * @param {string} params.path GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} - * @param {().Entity} params.resource Request body data + * @param {().Entity} params.requestBody 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 @@ -4329,7 +4329,7 @@ export namespace tagmanager_v2 { * @param {object} params Parameters for request * @param {string=} params.fingerprint When provided, this fingerprint must match the fingerprint of the workspace in storage. * @param {string} params.path GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} - * @param {().Workspace} params.resource Request body data + * @param {().Workspace} params.requestBody 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 @@ -4960,7 +4960,7 @@ export namespace tagmanager_v2 { * * @param {object} params Parameters for request * @param {string} params.parent GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} - * @param {().Folder} params.resource Request body data + * @param {().Folder} params.requestBody 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 @@ -5330,7 +5330,7 @@ export namespace tagmanager_v2 { * @param {string=} params.tagId The tags to be moved to the folder. * @param {string=} params.triggerId The triggers to be moved to the folder. * @param {string=} params.variableId The variables to be moved to the folder. - * @param {().Folder} params.resource Request body data + * @param {().Folder} params.requestBody 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 @@ -5480,7 +5480,7 @@ export namespace tagmanager_v2 { * @param {object} params Parameters for request * @param {string=} params.fingerprint When provided, this fingerprint must match the fingerprint of the folder in storage. * @param {string} params.path GTM Folder's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id} - * @param {().Folder} params.resource Request body data + * @param {().Folder} params.requestBody 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 @@ -5700,7 +5700,7 @@ export namespace tagmanager_v2 { * * @param {object} params Parameters for request * @param {string} params.parent GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} - * @param {().Tag} params.resource Request body data + * @param {().Tag} params.requestBody 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 @@ -6068,7 +6068,7 @@ export namespace tagmanager_v2 { * @param {object} params Parameters for request * @param {string=} params.fingerprint When provided, this fingerprint must match the fingerprint of the tag in storage. * @param {string} params.path GTM Tag's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/tags/{tag_id} - * @param {().Tag} params.resource Request body data + * @param {().Tag} params.requestBody 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 @@ -6243,7 +6243,7 @@ export namespace tagmanager_v2 { * * @param {object} params Parameters for request * @param {string} params.parent GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} - * @param {().CustomTemplate} params.resource Request body data + * @param {().CustomTemplate} params.requestBody 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 @@ -6619,7 +6619,7 @@ export namespace tagmanager_v2 { * @param {object} params Parameters for request * @param {string=} params.fingerprint When provided, this fingerprint must match the fingerprint of the templates in storage. * @param {string} params.path GTM Custom Template's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/templates/{template_id} - * @param {().CustomTemplate} params.resource Request body data + * @param {().CustomTemplate} params.requestBody 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 @@ -6796,7 +6796,7 @@ export namespace tagmanager_v2 { * * @param {object} params Parameters for request * @param {string} params.parent GTM Workspaces's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} - * @param {().Trigger} params.resource Request body data + * @param {().Trigger} params.requestBody 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 @@ -7168,7 +7168,7 @@ export namespace tagmanager_v2 { * @param {object} params Parameters for request * @param {string=} params.fingerprint When provided, this fingerprint must match the fingerprint of the trigger in storage. * @param {string} params.path GTM Trigger's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/triggers/{trigger_id} - * @param {().Trigger} params.resource Request body data + * @param {().Trigger} params.requestBody 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 @@ -7343,7 +7343,7 @@ export namespace tagmanager_v2 { * * @param {object} params Parameters for request * @param {string} params.parent GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} - * @param {().Variable} params.resource Request body data + * @param {().Variable} params.requestBody 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 @@ -7715,7 +7715,7 @@ export namespace tagmanager_v2 { * @param {object} params Parameters for request * @param {string=} params.fingerprint When provided, this fingerprint must match the fingerprint of the variable in storage. * @param {string} params.path GTM Variable's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/variables/{variable_id} - * @param {().Variable} params.resource Request body data + * @param {().Variable} params.requestBody 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 @@ -7890,7 +7890,7 @@ export namespace tagmanager_v2 { * * @param {object} params Parameters for request * @param {string} params.parent GTM Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} - * @param {().Zone} params.resource Request body data + * @param {().Zone} params.requestBody 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 @@ -8258,7 +8258,7 @@ export namespace tagmanager_v2 { * @param {object} params Parameters for request * @param {string=} params.fingerprint When provided, this fingerprint must match the fingerprint of the zone in storage. * @param {string} params.path GTM Zone's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/zones/{zone_id} - * @param {().Zone} params.resource Request body data + * @param {().Zone} params.requestBody 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 @@ -8433,7 +8433,7 @@ export namespace tagmanager_v2 { * * @param {object} params Parameters for request * @param {string} params.parent GTM Account's API relative path. Example: accounts/{account_id} - * @param {().UserPermission} params.resource Request body data + * @param {().UserPermission} params.requestBody 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 @@ -8734,7 +8734,7 @@ export namespace tagmanager_v2 { * * @param {object} params Parameters for request * @param {string} params.path GTM UserPermission's API relative path. Example: accounts/{account_id}/user_permissions/{user_permission_id} - * @param {().UserPermission} params.resource Request body data + * @param {().UserPermission} params.requestBody 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 diff --git a/src/apis/tasks/v1.ts b/src/apis/tasks/v1.ts index 9e797d73d2c..5871c0da545 100644 --- a/src/apis/tasks/v1.ts +++ b/src/apis/tasks/v1.ts @@ -381,7 +381,7 @@ export namespace tasks_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().TaskList} params.resource Request body data + * @param {().TaskList} params.requestBody 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 @@ -527,7 +527,7 @@ export namespace tasks_v1 { * * @param {object} params Parameters for request * @param {string} params.tasklist Task list identifier. - * @param {().TaskList} params.resource Request body data + * @param {().TaskList} params.requestBody 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 @@ -599,7 +599,7 @@ export namespace tasks_v1 { * * @param {object} params Parameters for request * @param {string} params.tasklist Task list identifier. - * @param {().TaskList} params.resource Request body data + * @param {().TaskList} params.requestBody 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 @@ -976,7 +976,7 @@ export namespace tasks_v1 { * @param {string=} params.parent Parent task identifier. If the task is created at the top level, this parameter is omitted. Optional. * @param {string=} params.previous Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted. Optional. * @param {string} params.tasklist Task list identifier. - * @param {().Task} params.resource Request body data + * @param {().Task} params.requestBody 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 @@ -1203,7 +1203,7 @@ export namespace tasks_v1 { * @param {object} params Parameters for request * @param {string} params.task Task identifier. * @param {string} params.tasklist Task list identifier. - * @param {().Task} params.resource Request body data + * @param {().Task} params.requestBody 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 @@ -1276,7 +1276,7 @@ export namespace tasks_v1 { * @param {object} params Parameters for request * @param {string} params.task Task identifier. * @param {string} params.tasklist Task list identifier. - * @param {().Task} params.resource Request body data + * @param {().Task} params.requestBody 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 diff --git a/src/apis/testing/v1.ts b/src/apis/testing/v1.ts index 732225774b2..39e7ff1b740 100644 --- a/src/apis/testing/v1.ts +++ b/src/apis/testing/v1.ts @@ -1346,7 +1346,7 @@ export namespace testing_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().FileReference} params.resource Request body data + * @param {().FileReference} params.requestBody 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 @@ -1533,7 +1533,7 @@ export namespace testing_v1 { * @param {object} params Parameters for request * @param {string} params.projectId The GCE project under which this job will run. * @param {string=} params.requestId A string id used to detect duplicated requests. Ids are automatically scoped to a project, so users should ensure the ID is unique per-project. A UUID is recommended. Optional, but strongly recommended. - * @param {().TestMatrix} params.resource Request body data + * @param {().TestMatrix} params.requestBody 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 diff --git a/src/apis/texttospeech/v1.ts b/src/apis/texttospeech/v1.ts index dd0cfea2cb5..3fd0e3229b1 100644 --- a/src/apis/texttospeech/v1.ts +++ b/src/apis/texttospeech/v1.ts @@ -246,7 +246,7 @@ export namespace texttospeech_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().SynthesizeSpeechRequest} params.resource Request body data + * @param {().SynthesizeSpeechRequest} params.requestBody 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 diff --git a/src/apis/texttospeech/v1beta1.ts b/src/apis/texttospeech/v1beta1.ts index d8ddd861d02..b5fc1b0fe0c 100644 --- a/src/apis/texttospeech/v1beta1.ts +++ b/src/apis/texttospeech/v1beta1.ts @@ -246,7 +246,7 @@ export namespace texttospeech_v1beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().SynthesizeSpeechRequest} params.resource Request body data + * @param {().SynthesizeSpeechRequest} params.requestBody 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 diff --git a/src/apis/toolresults/v1beta3.ts b/src/apis/toolresults/v1beta3.ts index fdea2835757..36d1c4ac865 100644 --- a/src/apis/toolresults/v1beta3.ts +++ b/src/apis/toolresults/v1beta3.ts @@ -1321,7 +1321,7 @@ export namespace toolresults_v1beta3 { * @param {object} params Parameters for request * @param {string} params.projectId A Project id. Required. * @param {string=} params.requestId A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended. - * @param {().History} params.resource Request body data + * @param {().History} params.requestBody 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 @@ -1623,7 +1623,7 @@ export namespace toolresults_v1beta3 { * @param {string} params.historyId A History id. Required. * @param {string} params.projectId A Project id. Required. * @param {string=} params.requestId A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended. - * @param {().Execution} params.resource Request body data + * @param {().Execution} params.requestBody 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 @@ -1856,7 +1856,7 @@ export namespace toolresults_v1beta3 { * @param {string} params.historyId Required. * @param {string} params.projectId A Project id. Required. * @param {string=} params.requestId A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended. - * @param {().Execution} params.resource Request body data + * @param {().Execution} params.requestBody 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 @@ -2270,7 +2270,7 @@ export namespace toolresults_v1beta3 { * @param {string} params.historyId Required. A History id. * @param {string} params.projectId Required. A Project id. * @param {string=} params.requestId A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended. - * @param {().Step} params.resource Request body data + * @param {().Step} params.requestBody 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 @@ -2579,7 +2579,7 @@ export namespace toolresults_v1beta3 { * @param {string} params.projectId A Project id. Required. * @param {string=} params.requestId A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended. * @param {string} params.stepId A Step id. Required. - * @param {().Step} params.resource Request body data + * @param {().Step} params.requestBody 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 @@ -2655,7 +2655,7 @@ export namespace toolresults_v1beta3 { * @param {string} params.historyId A History id. Required. * @param {string} params.projectId A Project id. Required. * @param {string} params.stepId A Step id. Note: This step must include a TestExecutionStep. Required. - * @param {().PublishXunitXmlFilesRequest} params.resource Request body data + * @param {().PublishXunitXmlFilesRequest} params.requestBody 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 @@ -2906,7 +2906,7 @@ export namespace toolresults_v1beta3 { * @param {string} params.historyId A tool results history ID. * @param {string} params.projectId The cloud project * @param {string} params.stepId A tool results step ID. - * @param {().PerfMetricsSummary} params.resource Request body data + * @param {().PerfMetricsSummary} params.requestBody 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 @@ -3025,7 +3025,7 @@ export namespace toolresults_v1beta3 { * @param {string} params.historyId A tool results history ID. * @param {string} params.projectId The cloud project * @param {string} params.stepId A tool results step ID. - * @param {().PerfSampleSeries} params.resource Request body data + * @param {().PerfSampleSeries} params.requestBody 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 @@ -3374,7 +3374,7 @@ export namespace toolresults_v1beta3 { * @param {string} params.projectId The cloud project * @param {string} params.sampleSeriesId A sample series id * @param {string} params.stepId A tool results step ID. - * @param {().BatchCreatePerfSamplesRequest} params.resource Request body data + * @param {().BatchCreatePerfSamplesRequest} params.requestBody 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 diff --git a/src/apis/tpu/v1.ts b/src/apis/tpu/v1.ts index 907de144aea..8974e03d407 100644 --- a/src/apis/tpu/v1.ts +++ b/src/apis/tpu/v1.ts @@ -862,7 +862,7 @@ export namespace tpu_v1 { * @param {object} params Parameters for request * @param {string=} params.nodeId The unqualified resource name. * @param {string} params.parent The parent resource name. - * @param {().Node} params.resource Request body data + * @param {().Node} params.requestBody 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 @@ -1153,7 +1153,7 @@ export namespace tpu_v1 { * * @param {object} params Parameters for request * @param {string} params.name The resource name. - * @param {().ReimageNodeRequest} params.resource Request body data + * @param {().ReimageNodeRequest} params.requestBody 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 @@ -1228,7 +1228,7 @@ export namespace tpu_v1 { * * @param {object} params Parameters for request * @param {string} params.name The resource name. - * @param {().StartNodeRequest} params.resource Request body data + * @param {().StartNodeRequest} params.requestBody 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 @@ -1300,7 +1300,7 @@ export namespace tpu_v1 { * * @param {object} params Parameters for request * @param {string} params.name The resource name. - * @param {().StopNodeRequest} params.resource Request body data + * @param {().StopNodeRequest} params.requestBody 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 diff --git a/src/apis/tpu/v1alpha1.ts b/src/apis/tpu/v1alpha1.ts index 0162fae9904..38d6cfa8915 100644 --- a/src/apis/tpu/v1alpha1.ts +++ b/src/apis/tpu/v1alpha1.ts @@ -862,7 +862,7 @@ export namespace tpu_v1alpha1 { * @param {object} params Parameters for request * @param {string=} params.nodeId The unqualified resource name. * @param {string} params.parent The parent resource name. - * @param {().Node} params.resource Request body data + * @param {().Node} params.requestBody 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 @@ -1153,7 +1153,7 @@ export namespace tpu_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.name The resource name. - * @param {().ReimageNodeRequest} params.resource Request body data + * @param {().ReimageNodeRequest} params.requestBody 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 @@ -1228,7 +1228,7 @@ export namespace tpu_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.name The resource name. - * @param {().StartNodeRequest} params.resource Request body data + * @param {().StartNodeRequest} params.requestBody 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 @@ -1303,7 +1303,7 @@ export namespace tpu_v1alpha1 { * * @param {object} params Parameters for request * @param {string} params.name The resource name. - * @param {().StopNodeRequest} params.resource Request body data + * @param {().StopNodeRequest} params.requestBody 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 diff --git a/src/apis/translate/v2.ts b/src/apis/translate/v2.ts index 4c4f8e30634..c2d01a8e642 100644 --- a/src/apis/translate/v2.ts +++ b/src/apis/translate/v2.ts @@ -233,7 +233,7 @@ export namespace translate_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().DetectLanguageRequest} params.resource Request body data + * @param {().DetectLanguageRequest} params.requestBody 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 @@ -595,7 +595,7 @@ export namespace translate_v2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().TranslateTextRequest} params.resource Request body data + * @param {().TranslateTextRequest} params.requestBody 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 diff --git a/src/apis/translate/v3beta1.ts b/src/apis/translate/v3beta1.ts index 61c2cc6ff6b..0fb846ebc3a 100644 --- a/src/apis/translate/v3beta1.ts +++ b/src/apis/translate/v3beta1.ts @@ -542,7 +542,7 @@ export namespace translate_v3beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}/locations/{location-id}` or `projects/{project-number-or-id}`. For global calls, use `projects/{project-number-or-id}/locations/global` or `projects/{project-number-or-id}`. Only models within the same region (has same location-id) can be used. Otherwise an INVALID_ARGUMENT (400) error is returned. - * @param {().DetectLanguageRequest} params.resource Request body data + * @param {().DetectLanguageRequest} params.requestBody 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 @@ -699,7 +699,7 @@ export namespace translate_v3beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}` or `projects/{project-number-or-id}/locations/{location-id}`. For global calls, use `projects/{project-number-or-id}/locations/global` or `projects/{project-number-or-id}`. Non-global location is required for requests using AutoML models or custom glossaries. Models and glossaries must be within the same region (have same location-id), otherwise an INVALID_ARGUMENT (400) error is returned. - * @param {().TranslateTextRequest} params.resource Request body data + * @param {().TranslateTextRequest} params.requestBody 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 @@ -848,7 +848,7 @@ export namespace translate_v3beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. Location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}/locations/{location-id}`. The `global` location is not supported for batch translation. Only AutoML Translation models or glossaries within the same region (have the same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned. - * @param {().BatchTranslateTextRequest} params.resource Request body data + * @param {().BatchTranslateTextRequest} params.requestBody 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 @@ -923,7 +923,7 @@ export namespace translate_v3beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}/locations/{location-id}` or `projects/{project-number-or-id}`. For global calls, use `projects/{project-number-or-id}/locations/global` or `projects/{project-number-or-id}`. Only models within the same region (has same location-id) can be used. Otherwise an INVALID_ARGUMENT (400) error is returned. - * @param {().DetectLanguageRequest} params.resource Request body data + * @param {().DetectLanguageRequest} params.requestBody 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 @@ -1228,7 +1228,7 @@ export namespace translate_v3beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}` or `projects/{project-number-or-id}/locations/{location-id}`. For global calls, use `projects/{project-number-or-id}/locations/global` or `projects/{project-number-or-id}`. Non-global location is required for requests using AutoML models or custom glossaries. Models and glossaries must be within the same region (have same location-id), otherwise an INVALID_ARGUMENT (400) error is returned. - * @param {().TranslateTextRequest} params.resource Request body data + * @param {().TranslateTextRequest} params.requestBody 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 @@ -1422,7 +1422,7 @@ export namespace translate_v3beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The project name. - * @param {().Glossary} params.resource Request body data + * @param {().Glossary} params.requestBody 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 @@ -1789,7 +1789,7 @@ export namespace translate_v3beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the operation resource to be cancelled. - * @param {().CancelOperationRequest} params.resource Request body data + * @param {().CancelOperationRequest} params.requestBody 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 @@ -2081,7 +2081,7 @@ export namespace translate_v3beta1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the operation resource to wait on. - * @param {().WaitOperationRequest} params.resource Request body data + * @param {().WaitOperationRequest} params.requestBody 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 diff --git a/src/apis/vault/v1.ts b/src/apis/vault/v1.ts index 35a71b200e2..c6dd72c48fb 100644 --- a/src/apis/vault/v1.ts +++ b/src/apis/vault/v1.ts @@ -859,7 +859,7 @@ export namespace vault_v1 { * * @param {object} params Parameters for request * @param {string} params.matterId The matter ID. - * @param {().AddMatterPermissionsRequest} params.resource Request body data + * @param {().AddMatterPermissionsRequest} params.requestBody 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 @@ -936,7 +936,7 @@ export namespace vault_v1 { * * @param {object} params Parameters for request * @param {string} params.matterId The matter ID. - * @param {().CloseMatterRequest} params.resource Request body data + * @param {().CloseMatterRequest} params.requestBody 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 @@ -1009,7 +1009,7 @@ export namespace vault_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Matter} params.resource Request body data + * @param {().Matter} params.requestBody 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 @@ -1294,7 +1294,7 @@ export namespace vault_v1 { * * @param {object} params Parameters for request * @param {string} params.matterId The matter ID. - * @param {().RemoveMatterPermissionsRequest} params.resource Request body data + * @param {().RemoveMatterPermissionsRequest} params.requestBody 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 @@ -1367,7 +1367,7 @@ export namespace vault_v1 { * * @param {object} params Parameters for request * @param {string} params.matterId The matter ID. - * @param {().ReopenMatterRequest} params.resource Request body data + * @param {().ReopenMatterRequest} params.requestBody 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 @@ -1443,7 +1443,7 @@ export namespace vault_v1 { * * @param {object} params Parameters for request * @param {string} params.matterId The matter ID. - * @param {().UndeleteMatterRequest} params.resource Request body data + * @param {().UndeleteMatterRequest} params.requestBody 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 @@ -1515,7 +1515,7 @@ export namespace vault_v1 { * * @param {object} params Parameters for request * @param {string} params.matterId The matter ID. - * @param {().Matter} params.resource Request body data + * @param {().Matter} params.requestBody 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 @@ -1753,7 +1753,7 @@ export namespace vault_v1 { * * @param {object} params Parameters for request * @param {string} params.matterId The matter ID. - * @param {().Export} params.resource Request body data + * @param {().Export} params.requestBody 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 @@ -2126,7 +2126,7 @@ export namespace vault_v1 { * @param {object} params Parameters for request * @param {string} params.holdId The hold ID. * @param {string} params.matterId The matter ID. - * @param {().AddHeldAccountsRequest} params.resource Request body data + * @param {().AddHeldAccountsRequest} params.requestBody 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 @@ -2204,7 +2204,7 @@ export namespace vault_v1 { * * @param {object} params Parameters for request * @param {string} params.matterId The matter ID. - * @param {().Hold} params.resource Request body data + * @param {().Hold} params.requestBody 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 @@ -2502,7 +2502,7 @@ export namespace vault_v1 { * @param {object} params Parameters for request * @param {string} params.holdId The hold ID. * @param {string} params.matterId The matter ID. - * @param {().RemoveHeldAccountsRequest} params.resource Request body data + * @param {().RemoveHeldAccountsRequest} params.requestBody 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 @@ -2585,7 +2585,7 @@ export namespace vault_v1 { * @param {object} params Parameters for request * @param {string} params.holdId The ID of the hold. * @param {string} params.matterId The matter ID. - * @param {().Hold} params.resource Request body data + * @param {().Hold} params.requestBody 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 @@ -2807,7 +2807,7 @@ export namespace vault_v1 { * @param {object} params Parameters for request * @param {string} params.holdId The hold ID. * @param {string} params.matterId The matter ID. - * @param {().HeldAccount} params.resource Request body data + * @param {().HeldAccount} params.requestBody 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 @@ -3096,7 +3096,7 @@ export namespace vault_v1 { * * @param {object} params Parameters for request * @param {string} params.matterId The matter id of the parent matter for which the saved query is to be created. - * @param {().SavedQuery} params.resource Request body data + * @param {().SavedQuery} params.requestBody 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 diff --git a/src/apis/verifiedaccess/v1.ts b/src/apis/verifiedaccess/v1.ts index 42ff3a2f8ef..ed18d35a6a8 100644 --- a/src/apis/verifiedaccess/v1.ts +++ b/src/apis/verifiedaccess/v1.ts @@ -193,7 +193,7 @@ export namespace verifiedaccess_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().Empty} params.resource Request body data + * @param {().Empty} params.requestBody 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 @@ -264,7 +264,7 @@ export namespace verifiedaccess_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().VerifyChallengeResponseRequest} params.resource Request body data + * @param {().VerifyChallengeResponseRequest} params.requestBody 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 diff --git a/src/apis/videointelligence/v1.ts b/src/apis/videointelligence/v1.ts index dc0fd737226..7a5b7d65bf2 100644 --- a/src/apis/videointelligence/v1.ts +++ b/src/apis/videointelligence/v1.ts @@ -1283,6 +1283,45 @@ export namespace videointelligence_v1 { */ annotationResults?: Schema$GoogleCloudVideointelligenceV1p3beta1_VideoAnnotationResults[]; } + /** + * Celebrity definition. + */ + export interface Schema$GoogleCloudVideointelligenceV1p3beta1_Celebrity { + /** + * Textual description of additional information about the celebrity, if applicable. + */ + description?: string | null; + /** + * The celebrity name. + */ + displayName?: string | null; + /** + * The resource name of the celebrity. Have the format `video-intelligence/kg-mid` indicates a celebrity from preloaded gallery. kg-mid is the id in Google knowledge graph, which is unique for the celebrity. + */ + name?: string | null; + } + /** + * Celebrity recognition annotation per video. + */ + export interface Schema$GoogleCloudVideointelligenceV1p3beta1_CelebrityRecognitionAnnotation { + /** + * The tracks detected from the input video, including recognized celebrities and other detected faces in the video. + */ + celebrityTracks?: Schema$GoogleCloudVideointelligenceV1p3beta1_CelebrityTrack[]; + } + /** + * The annotation result of a celebrity face track. RecognizedCelebrity field could be empty if the face track does not have any matched celebrities. + */ + export interface Schema$GoogleCloudVideointelligenceV1p3beta1_CelebrityTrack { + /** + * Top N match of the celebrities for the face in this track. + */ + celebrities?: Schema$GoogleCloudVideointelligenceV1p3beta1_RecognizedCelebrity[]; + /** + * A track of a person's face. + */ + faceTrack?: Schema$GoogleCloudVideointelligenceV1p3beta1_Track; + } /** * A generic detected attribute represented by name in string format. */ @@ -1484,6 +1523,19 @@ export namespace videointelligence_v1 { */ timeOffset?: string | null; } + /** + * The recognized celebrity with confidence score. + */ + export interface Schema$GoogleCloudVideointelligenceV1p3beta1_RecognizedCelebrity { + /** + * The recognized celebrity. + */ + celebrity?: Schema$GoogleCloudVideointelligenceV1p3beta1_Celebrity; + /** + * Recognition confidence. Range [0, 1]. + */ + confidence?: number | null; + } /** * Alternative hypotheses (a.k.a. n-best list). */ @@ -1666,6 +1718,10 @@ export namespace videointelligence_v1 { * Annotation results for a single video. */ export interface Schema$GoogleCloudVideointelligenceV1p3beta1_VideoAnnotationResults { + /** + * Celebrity recognition annotations. + */ + celebrityRecognitionAnnotations?: Schema$GoogleCloudVideointelligenceV1p3beta1_CelebrityRecognitionAnnotation; /** * If set, indicates an error. Note that for a single `AnnotateVideoRequest` some videos may succeed and some may fail. */ @@ -2727,7 +2783,7 @@ export namespace videointelligence_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the operation resource to be cancelled. - * @param {().GoogleLongrunning_CancelOperationRequest} params.resource Request body data + * @param {().GoogleLongrunning_CancelOperationRequest} params.requestBody 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 @@ -3122,7 +3178,7 @@ export namespace videointelligence_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().GoogleCloudVideointelligenceV1_AnnotateVideoRequest} params.resource Request body data + * @param {().GoogleCloudVideointelligenceV1_AnnotateVideoRequest} params.requestBody 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 diff --git a/src/apis/videointelligence/v1beta2.ts b/src/apis/videointelligence/v1beta2.ts index 508a4e6cc0d..2d9a102c9ac 100644 --- a/src/apis/videointelligence/v1beta2.ts +++ b/src/apis/videointelligence/v1beta2.ts @@ -1456,6 +1456,45 @@ export namespace videointelligence_v1beta2 { */ annotationResults?: Schema$GoogleCloudVideointelligenceV1p3beta1_VideoAnnotationResults[]; } + /** + * Celebrity definition. + */ + export interface Schema$GoogleCloudVideointelligenceV1p3beta1_Celebrity { + /** + * Textual description of additional information about the celebrity, if applicable. + */ + description?: string | null; + /** + * The celebrity name. + */ + displayName?: string | null; + /** + * The resource name of the celebrity. Have the format `video-intelligence/kg-mid` indicates a celebrity from preloaded gallery. kg-mid is the id in Google knowledge graph, which is unique for the celebrity. + */ + name?: string | null; + } + /** + * Celebrity recognition annotation per video. + */ + export interface Schema$GoogleCloudVideointelligenceV1p3beta1_CelebrityRecognitionAnnotation { + /** + * The tracks detected from the input video, including recognized celebrities and other detected faces in the video. + */ + celebrityTracks?: Schema$GoogleCloudVideointelligenceV1p3beta1_CelebrityTrack[]; + } + /** + * The annotation result of a celebrity face track. RecognizedCelebrity field could be empty if the face track does not have any matched celebrities. + */ + export interface Schema$GoogleCloudVideointelligenceV1p3beta1_CelebrityTrack { + /** + * Top N match of the celebrities for the face in this track. + */ + celebrities?: Schema$GoogleCloudVideointelligenceV1p3beta1_RecognizedCelebrity[]; + /** + * A track of a person's face. + */ + faceTrack?: Schema$GoogleCloudVideointelligenceV1p3beta1_Track; + } /** * A generic detected attribute represented by name in string format. */ @@ -1657,6 +1696,19 @@ export namespace videointelligence_v1beta2 { */ timeOffset?: string | null; } + /** + * The recognized celebrity with confidence score. + */ + export interface Schema$GoogleCloudVideointelligenceV1p3beta1_RecognizedCelebrity { + /** + * The recognized celebrity. + */ + celebrity?: Schema$GoogleCloudVideointelligenceV1p3beta1_Celebrity; + /** + * Recognition confidence. Range [0, 1]. + */ + confidence?: number | null; + } /** * Alternative hypotheses (a.k.a. n-best list). */ @@ -1839,6 +1891,10 @@ export namespace videointelligence_v1beta2 { * Annotation results for a single video. */ export interface Schema$GoogleCloudVideointelligenceV1p3beta1_VideoAnnotationResults { + /** + * Celebrity recognition annotations. + */ + celebrityRecognitionAnnotations?: Schema$GoogleCloudVideointelligenceV1p3beta1_CelebrityRecognitionAnnotation; /** * If set, indicates an error. Note that for a single `AnnotateVideoRequest` some videos may succeed and some may fail. */ @@ -2372,7 +2428,7 @@ export namespace videointelligence_v1beta2 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().GoogleCloudVideointelligenceV1beta2_AnnotateVideoRequest} params.resource Request body data + * @param {().GoogleCloudVideointelligenceV1beta2_AnnotateVideoRequest} params.requestBody 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 diff --git a/src/apis/videointelligence/v1p1beta1.ts b/src/apis/videointelligence/v1p1beta1.ts index 4d697dd38b6..747d8ce0718 100644 --- a/src/apis/videointelligence/v1p1beta1.ts +++ b/src/apis/videointelligence/v1p1beta1.ts @@ -1456,6 +1456,45 @@ export namespace videointelligence_v1p1beta1 { */ annotationResults?: Schema$GoogleCloudVideointelligenceV1p3beta1_VideoAnnotationResults[]; } + /** + * Celebrity definition. + */ + export interface Schema$GoogleCloudVideointelligenceV1p3beta1_Celebrity { + /** + * Textual description of additional information about the celebrity, if applicable. + */ + description?: string | null; + /** + * The celebrity name. + */ + displayName?: string | null; + /** + * The resource name of the celebrity. Have the format `video-intelligence/kg-mid` indicates a celebrity from preloaded gallery. kg-mid is the id in Google knowledge graph, which is unique for the celebrity. + */ + name?: string | null; + } + /** + * Celebrity recognition annotation per video. + */ + export interface Schema$GoogleCloudVideointelligenceV1p3beta1_CelebrityRecognitionAnnotation { + /** + * The tracks detected from the input video, including recognized celebrities and other detected faces in the video. + */ + celebrityTracks?: Schema$GoogleCloudVideointelligenceV1p3beta1_CelebrityTrack[]; + } + /** + * The annotation result of a celebrity face track. RecognizedCelebrity field could be empty if the face track does not have any matched celebrities. + */ + export interface Schema$GoogleCloudVideointelligenceV1p3beta1_CelebrityTrack { + /** + * Top N match of the celebrities for the face in this track. + */ + celebrities?: Schema$GoogleCloudVideointelligenceV1p3beta1_RecognizedCelebrity[]; + /** + * A track of a person's face. + */ + faceTrack?: Schema$GoogleCloudVideointelligenceV1p3beta1_Track; + } /** * A generic detected attribute represented by name in string format. */ @@ -1657,6 +1696,19 @@ export namespace videointelligence_v1p1beta1 { */ timeOffset?: string | null; } + /** + * The recognized celebrity with confidence score. + */ + export interface Schema$GoogleCloudVideointelligenceV1p3beta1_RecognizedCelebrity { + /** + * The recognized celebrity. + */ + celebrity?: Schema$GoogleCloudVideointelligenceV1p3beta1_Celebrity; + /** + * Recognition confidence. Range [0, 1]. + */ + confidence?: number | null; + } /** * Alternative hypotheses (a.k.a. n-best list). */ @@ -1839,6 +1891,10 @@ export namespace videointelligence_v1p1beta1 { * Annotation results for a single video. */ export interface Schema$GoogleCloudVideointelligenceV1p3beta1_VideoAnnotationResults { + /** + * Celebrity recognition annotations. + */ + celebrityRecognitionAnnotations?: Schema$GoogleCloudVideointelligenceV1p3beta1_CelebrityRecognitionAnnotation; /** * If set, indicates an error. Note that for a single `AnnotateVideoRequest` some videos may succeed and some may fail. */ @@ -2372,7 +2428,7 @@ export namespace videointelligence_v1p1beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoRequest} params.resource Request body data + * @param {().GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoRequest} params.requestBody 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 diff --git a/src/apis/videointelligence/v1p2beta1.ts b/src/apis/videointelligence/v1p2beta1.ts index 60750b7089c..d637dbb3768 100644 --- a/src/apis/videointelligence/v1p2beta1.ts +++ b/src/apis/videointelligence/v1p2beta1.ts @@ -1456,6 +1456,45 @@ export namespace videointelligence_v1p2beta1 { */ annotationResults?: Schema$GoogleCloudVideointelligenceV1p3beta1_VideoAnnotationResults[]; } + /** + * Celebrity definition. + */ + export interface Schema$GoogleCloudVideointelligenceV1p3beta1_Celebrity { + /** + * Textual description of additional information about the celebrity, if applicable. + */ + description?: string | null; + /** + * The celebrity name. + */ + displayName?: string | null; + /** + * The resource name of the celebrity. Have the format `video-intelligence/kg-mid` indicates a celebrity from preloaded gallery. kg-mid is the id in Google knowledge graph, which is unique for the celebrity. + */ + name?: string | null; + } + /** + * Celebrity recognition annotation per video. + */ + export interface Schema$GoogleCloudVideointelligenceV1p3beta1_CelebrityRecognitionAnnotation { + /** + * The tracks detected from the input video, including recognized celebrities and other detected faces in the video. + */ + celebrityTracks?: Schema$GoogleCloudVideointelligenceV1p3beta1_CelebrityTrack[]; + } + /** + * The annotation result of a celebrity face track. RecognizedCelebrity field could be empty if the face track does not have any matched celebrities. + */ + export interface Schema$GoogleCloudVideointelligenceV1p3beta1_CelebrityTrack { + /** + * Top N match of the celebrities for the face in this track. + */ + celebrities?: Schema$GoogleCloudVideointelligenceV1p3beta1_RecognizedCelebrity[]; + /** + * A track of a person's face. + */ + faceTrack?: Schema$GoogleCloudVideointelligenceV1p3beta1_Track; + } /** * A generic detected attribute represented by name in string format. */ @@ -1657,6 +1696,19 @@ export namespace videointelligence_v1p2beta1 { */ timeOffset?: string | null; } + /** + * The recognized celebrity with confidence score. + */ + export interface Schema$GoogleCloudVideointelligenceV1p3beta1_RecognizedCelebrity { + /** + * The recognized celebrity. + */ + celebrity?: Schema$GoogleCloudVideointelligenceV1p3beta1_Celebrity; + /** + * Recognition confidence. Range [0, 1]. + */ + confidence?: number | null; + } /** * Alternative hypotheses (a.k.a. n-best list). */ @@ -1839,6 +1891,10 @@ export namespace videointelligence_v1p2beta1 { * Annotation results for a single video. */ export interface Schema$GoogleCloudVideointelligenceV1p3beta1_VideoAnnotationResults { + /** + * Celebrity recognition annotations. + */ + celebrityRecognitionAnnotations?: Schema$GoogleCloudVideointelligenceV1p3beta1_CelebrityRecognitionAnnotation; /** * If set, indicates an error. Note that for a single `AnnotateVideoRequest` some videos may succeed and some may fail. */ @@ -2372,7 +2428,7 @@ export namespace videointelligence_v1p2beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().GoogleCloudVideointelligenceV1p2beta1_AnnotateVideoRequest} params.resource Request body data + * @param {().GoogleCloudVideointelligenceV1p2beta1_AnnotateVideoRequest} params.requestBody 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 diff --git a/src/apis/videointelligence/v1p3beta1.ts b/src/apis/videointelligence/v1p3beta1.ts index b6f51c2f63e..fc13c9dc6ae 100644 --- a/src/apis/videointelligence/v1p3beta1.ts +++ b/src/apis/videointelligence/v1p3beta1.ts @@ -1308,6 +1308,45 @@ export namespace videointelligence_v1p3beta1 { */ annotationResults?: Schema$GoogleCloudVideointelligenceV1p3beta1_VideoAnnotationResults[]; } + /** + * Celebrity definition. + */ + export interface Schema$GoogleCloudVideointelligenceV1p3beta1_Celebrity { + /** + * Textual description of additional information about the celebrity, if applicable. + */ + description?: string | null; + /** + * The celebrity name. + */ + displayName?: string | null; + /** + * The resource name of the celebrity. Have the format `video-intelligence/kg-mid` indicates a celebrity from preloaded gallery. kg-mid is the id in Google knowledge graph, which is unique for the celebrity. + */ + name?: string | null; + } + /** + * Celebrity recognition annotation per video. + */ + export interface Schema$GoogleCloudVideointelligenceV1p3beta1_CelebrityRecognitionAnnotation { + /** + * The tracks detected from the input video, including recognized celebrities and other detected faces in the video. + */ + celebrityTracks?: Schema$GoogleCloudVideointelligenceV1p3beta1_CelebrityTrack[]; + } + /** + * The annotation result of a celebrity face track. RecognizedCelebrity field could be empty if the face track does not have any matched celebrities. + */ + export interface Schema$GoogleCloudVideointelligenceV1p3beta1_CelebrityTrack { + /** + * Top N match of the celebrities for the face in this track. + */ + celebrities?: Schema$GoogleCloudVideointelligenceV1p3beta1_RecognizedCelebrity[]; + /** + * A track of a person's face. + */ + faceTrack?: Schema$GoogleCloudVideointelligenceV1p3beta1_Track; + } /** * A generic detected attribute represented by name in string format. */ @@ -1552,6 +1591,19 @@ export namespace videointelligence_v1p3beta1 { */ timeOffset?: string | null; } + /** + * The recognized celebrity with confidence score. + */ + export interface Schema$GoogleCloudVideointelligenceV1p3beta1_RecognizedCelebrity { + /** + * The recognized celebrity. + */ + celebrity?: Schema$GoogleCloudVideointelligenceV1p3beta1_Celebrity; + /** + * Recognition confidence. Range [0, 1]. + */ + confidence?: number | null; + } /** * Config for SHOT_CHANGE_DETECTION. */ @@ -1806,6 +1858,10 @@ export namespace videointelligence_v1p3beta1 { * Annotation results for a single video. */ export interface Schema$GoogleCloudVideointelligenceV1p3beta1_VideoAnnotationResults { + /** + * Celebrity recognition annotations. + */ + celebrityRecognitionAnnotations?: Schema$GoogleCloudVideointelligenceV1p3beta1_CelebrityRecognitionAnnotation; /** * If set, indicates an error. Note that for a single `AnnotateVideoRequest` some videos may succeed and some may fail. */ @@ -2372,7 +2428,7 @@ export namespace videointelligence_v1p3beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().GoogleCloudVideointelligenceV1p3beta1_AnnotateVideoRequest} params.resource Request body data + * @param {().GoogleCloudVideointelligenceV1p3beta1_AnnotateVideoRequest} params.requestBody 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 diff --git a/src/apis/vision/v1.ts b/src/apis/vision/v1.ts index 204a091fa2b..be8565a3255 100644 --- a/src/apis/vision/v1.ts +++ b/src/apis/vision/v1.ts @@ -3492,6 +3492,23 @@ export namespace vision_v1 { */ vertices?: Schema$GoogleCloudVisionV1p4beta1Vertex[]; } + /** + * A Celebrity is a group of Faces with an identity. + */ + export interface Schema$GoogleCloudVisionV1p4beta1Celebrity { + /** + * The Celebrity's description. + */ + description?: string | null; + /** + * The Celebrity's display name. + */ + displayName?: string | null; + /** + * The resource name of the preloaded Celebrity. Has the format `builtin/{mid}`. + */ + name?: string | null; + } /** * Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image. */ @@ -3629,6 +3646,10 @@ export namespace vision_v1 { * Yaw angle, which indicates the leftward/rightward angle that the face is pointing relative to the vertical plane perpendicular to the image. Range [-180,180]. */ panAngle?: number | null; + /** + * Additional recognition information. Only computed if image_context.face_recognition_params is provided, **and** a match is found to a Celebrity in the input CelebritySet. This field is sorted in order of decreasing confidence values. + */ + recognitionResult?: Schema$GoogleCloudVisionV1p4beta1FaceRecognitionResult[]; /** * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation of the face relative to the image vertical about the axis perpendicular to the face. Range [-180,180]. */ @@ -3663,6 +3684,19 @@ export namespace vision_v1 { */ type?: string | null; } + /** + * Information about a face's identity. + */ + export interface Schema$GoogleCloudVisionV1p4beta1FaceRecognitionResult { + /** + * The Celebrity that this face was matched to. + */ + celebrity?: Schema$GoogleCloudVisionV1p4beta1Celebrity; + /** + * Recognition confidence. Range [0, 1]. + */ + confidence?: number | null; + } /** * The Google Cloud Storage location where the output will be written to. */ @@ -5160,7 +5194,7 @@ export namespace vision_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().BatchAnnotateFilesRequest} params.resource Request body data + * @param {().BatchAnnotateFilesRequest} params.requestBody 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 @@ -5284,7 +5318,7 @@ export namespace vision_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AsyncBatchAnnotateFilesRequest} params.resource Request body data + * @param {().AsyncBatchAnnotateFilesRequest} params.requestBody 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 @@ -5436,7 +5470,7 @@ export namespace vision_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().BatchAnnotateImagesRequest} params.resource Request body data + * @param {().BatchAnnotateImagesRequest} params.requestBody 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 @@ -5563,7 +5597,7 @@ export namespace vision_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().AsyncBatchAnnotateImagesRequest} params.resource Request body data + * @param {().AsyncBatchAnnotateImagesRequest} params.requestBody 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 @@ -5862,7 +5896,7 @@ export namespace vision_v1 { * * @param {object} params Parameters for request * @param {string} params.name The name of the operation resource to be cancelled. - * @param {().CancelOperationRequest} params.resource Request body data + * @param {().CancelOperationRequest} params.requestBody 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 @@ -6380,7 +6414,7 @@ export namespace vision_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().BatchAnnotateFilesRequest} params.resource Request body data + * @param {().BatchAnnotateFilesRequest} params.requestBody 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 @@ -6462,7 +6496,7 @@ export namespace vision_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().AsyncBatchAnnotateFilesRequest} params.resource Request body data + * @param {().AsyncBatchAnnotateFilesRequest} params.requestBody 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 @@ -6579,7 +6613,7 @@ export namespace vision_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().BatchAnnotateImagesRequest} params.resource Request body data + * @param {().BatchAnnotateImagesRequest} params.requestBody 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 @@ -6661,7 +6695,7 @@ export namespace vision_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().AsyncBatchAnnotateImagesRequest} params.resource Request body data + * @param {().AsyncBatchAnnotateImagesRequest} params.requestBody 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 @@ -6799,7 +6833,7 @@ export namespace vision_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().BatchAnnotateFilesRequest} params.resource Request body data + * @param {().BatchAnnotateFilesRequest} params.requestBody 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 @@ -6881,7 +6915,7 @@ export namespace vision_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().AsyncBatchAnnotateFilesRequest} params.resource Request body data + * @param {().AsyncBatchAnnotateFilesRequest} params.requestBody 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 @@ -6998,7 +7032,7 @@ export namespace vision_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().BatchAnnotateImagesRequest} params.resource Request body data + * @param {().BatchAnnotateImagesRequest} params.requestBody 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 @@ -7080,7 +7114,7 @@ export namespace vision_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().AsyncBatchAnnotateImagesRequest} params.resource Request body data + * @param {().AsyncBatchAnnotateImagesRequest} params.requestBody 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 @@ -7391,7 +7425,7 @@ export namespace vision_v1 { * @param {object} params Parameters for request * @param {string} params.parent Required. The project in which the Product should be created. Format is `projects/PROJECT_ID/locations/LOC_ID`. * @param {string=} params.productId A user-supplied resource id for this Product. If set, the server will attempt to use this value as the resource id. If it is already in use, an error is returned with code ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the character `/`. - * @param {().Product} params.resource Request body data + * @param {().Product} params.requestBody 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 @@ -7889,7 +7923,7 @@ export namespace vision_v1 { * @param {object} params Parameters for request * @param {string} params.name The resource name of the product. Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. This field is ignored when creating a product. * @param {string=} params.updateMask The FieldMask that specifies which fields to update. If update_mask isn't specified, all mutable fields are to be updated. Valid mask paths include `product_labels`, `display_name`, and `description`. - * @param {().Product} params.resource Request body data + * @param {().Product} params.requestBody 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 @@ -7959,7 +7993,7 @@ export namespace vision_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The project and location in which the Products should be deleted. Format is `projects/PROJECT_ID/locations/LOC_ID`. - * @param {().PurgeProductsRequest} params.resource Request body data + * @param {().PurgeProductsRequest} params.requestBody 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 @@ -8198,7 +8232,7 @@ export namespace vision_v1 { * @param {object} params Parameters for request * @param {string} params.parent Required. Resource name of the product in which to create the reference image. Format is `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. * @param {string=} params.referenceImageId A user-supplied resource id for the ReferenceImage to be added. If set, the server will attempt to use this value as the resource id. If it is already in use, an error is returned with code ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the character `/`. - * @param {().ReferenceImage} params.resource Request body data + * @param {().ReferenceImage} params.requestBody 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 @@ -8776,7 +8810,7 @@ export namespace vision_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name for the ProductSet to modify. Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` - * @param {().AddProductToProductSetRequest} params.resource Request body data + * @param {().AddProductToProductSetRequest} params.requestBody 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 @@ -8901,7 +8935,7 @@ export namespace vision_v1 { * @param {object} params Parameters for request * @param {string} params.parent Required. The project in which the ProductSet should be created. Format is `projects/PROJECT_ID/locations/LOC_ID`. * @param {string=} params.productSetId A user-supplied resource id for this ProductSet. If set, the server will attempt to use this value as the resource id. If it is already in use, an error is returned with code ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the character `/`. - * @param {().ProductSet} params.resource Request body data + * @param {().ProductSet} params.requestBody 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 @@ -9260,7 +9294,7 @@ export namespace vision_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The project in which the ProductSets should be imported. Format is `projects/PROJECT_ID/locations/LOC_ID`. - * @param {().ImportProductSetsRequest} params.resource Request body data + * @param {().ImportProductSetsRequest} params.requestBody 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 @@ -9528,7 +9562,7 @@ export namespace vision_v1 { * @param {object} params Parameters for request * @param {string} params.name The resource name of the ProductSet. Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`. This field is ignored when creating a ProductSet. * @param {string=} params.updateMask The FieldMask that specifies which fields to update. If update_mask isn't specified, all mutable fields are to be updated. Valid mask path is `display_name`. - * @param {().ProductSet} params.resource Request body data + * @param {().ProductSet} params.requestBody 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 @@ -9649,7 +9683,7 @@ export namespace vision_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name for the ProductSet to modify. Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` - * @param {().RemoveProductFromProductSetRequest} params.resource Request body data + * @param {().RemoveProductFromProductSetRequest} params.requestBody 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 diff --git a/src/apis/vision/v1p1beta1.ts b/src/apis/vision/v1p1beta1.ts index e30e731cd48..8d989f0bd2a 100644 --- a/src/apis/vision/v1p1beta1.ts +++ b/src/apis/vision/v1p1beta1.ts @@ -3574,6 +3574,23 @@ export namespace vision_v1p1beta1 { */ vertices?: Schema$GoogleCloudVisionV1p4beta1Vertex[]; } + /** + * A Celebrity is a group of Faces with an identity. + */ + export interface Schema$GoogleCloudVisionV1p4beta1Celebrity { + /** + * The Celebrity's description. + */ + description?: string | null; + /** + * The Celebrity's display name. + */ + displayName?: string | null; + /** + * The resource name of the preloaded Celebrity. Has the format `builtin/{mid}`. + */ + name?: string | null; + } /** * Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image. */ @@ -3711,6 +3728,10 @@ export namespace vision_v1p1beta1 { * Yaw angle, which indicates the leftward/rightward angle that the face is pointing relative to the vertical plane perpendicular to the image. Range [-180,180]. */ panAngle?: number | null; + /** + * Additional recognition information. Only computed if image_context.face_recognition_params is provided, **and** a match is found to a Celebrity in the input CelebritySet. This field is sorted in order of decreasing confidence values. + */ + recognitionResult?: Schema$GoogleCloudVisionV1p4beta1FaceRecognitionResult[]; /** * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation of the face relative to the image vertical about the axis perpendicular to the face. Range [-180,180]. */ @@ -3745,6 +3766,19 @@ export namespace vision_v1p1beta1 { */ type?: string | null; } + /** + * Information about a face's identity. + */ + export interface Schema$GoogleCloudVisionV1p4beta1FaceRecognitionResult { + /** + * The Celebrity that this face was matched to. + */ + celebrity?: Schema$GoogleCloudVisionV1p4beta1Celebrity; + /** + * Recognition confidence. Range [0, 1]. + */ + confidence?: number | null; + } /** * The Google Cloud Storage location where the output will be written to. */ @@ -4949,7 +4983,7 @@ export namespace vision_v1p1beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().GoogleCloudVisionV1p1beta1BatchAnnotateFilesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p1beta1BatchAnnotateFilesRequest} params.requestBody 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 @@ -5048,7 +5082,7 @@ export namespace vision_v1p1beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest} params.requestBody 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 @@ -5153,7 +5187,7 @@ export namespace vision_v1p1beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest} params.requestBody 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 @@ -5252,7 +5286,7 @@ export namespace vision_v1p1beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().GoogleCloudVisionV1p1beta1AsyncBatchAnnotateImagesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p1beta1AsyncBatchAnnotateImagesRequest} params.requestBody 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 @@ -5371,7 +5405,7 @@ export namespace vision_v1p1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().GoogleCloudVisionV1p1beta1BatchAnnotateFilesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p1beta1BatchAnnotateFilesRequest} params.requestBody 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 @@ -5472,7 +5506,7 @@ export namespace vision_v1p1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest} params.requestBody 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 @@ -5588,7 +5622,7 @@ export namespace vision_v1p1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest} params.requestBody 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 @@ -5689,7 +5723,7 @@ export namespace vision_v1p1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().GoogleCloudVisionV1p1beta1AsyncBatchAnnotateImagesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p1beta1AsyncBatchAnnotateImagesRequest} params.requestBody 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 @@ -5816,7 +5850,7 @@ export namespace vision_v1p1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().GoogleCloudVisionV1p1beta1BatchAnnotateFilesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p1beta1BatchAnnotateFilesRequest} params.requestBody 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 @@ -5917,7 +5951,7 @@ export namespace vision_v1p1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest} params.requestBody 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 @@ -6033,7 +6067,7 @@ export namespace vision_v1p1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest} params.requestBody 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 @@ -6134,7 +6168,7 @@ export namespace vision_v1p1beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().GoogleCloudVisionV1p1beta1AsyncBatchAnnotateImagesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p1beta1AsyncBatchAnnotateImagesRequest} params.requestBody 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 diff --git a/src/apis/vision/v1p2beta1.ts b/src/apis/vision/v1p2beta1.ts index 5776e48330b..1860950ad1b 100644 --- a/src/apis/vision/v1p2beta1.ts +++ b/src/apis/vision/v1p2beta1.ts @@ -3574,6 +3574,23 @@ export namespace vision_v1p2beta1 { */ vertices?: Schema$GoogleCloudVisionV1p4beta1Vertex[]; } + /** + * A Celebrity is a group of Faces with an identity. + */ + export interface Schema$GoogleCloudVisionV1p4beta1Celebrity { + /** + * The Celebrity's description. + */ + description?: string | null; + /** + * The Celebrity's display name. + */ + displayName?: string | null; + /** + * The resource name of the preloaded Celebrity. Has the format `builtin/{mid}`. + */ + name?: string | null; + } /** * Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image. */ @@ -3711,6 +3728,10 @@ export namespace vision_v1p2beta1 { * Yaw angle, which indicates the leftward/rightward angle that the face is pointing relative to the vertical plane perpendicular to the image. Range [-180,180]. */ panAngle?: number | null; + /** + * Additional recognition information. Only computed if image_context.face_recognition_params is provided, **and** a match is found to a Celebrity in the input CelebritySet. This field is sorted in order of decreasing confidence values. + */ + recognitionResult?: Schema$GoogleCloudVisionV1p4beta1FaceRecognitionResult[]; /** * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation of the face relative to the image vertical about the axis perpendicular to the face. Range [-180,180]. */ @@ -3745,6 +3766,19 @@ export namespace vision_v1p2beta1 { */ type?: string | null; } + /** + * Information about a face's identity. + */ + export interface Schema$GoogleCloudVisionV1p4beta1FaceRecognitionResult { + /** + * The Celebrity that this face was matched to. + */ + celebrity?: Schema$GoogleCloudVisionV1p4beta1Celebrity; + /** + * Recognition confidence. Range [0, 1]. + */ + confidence?: number | null; + } /** * The Google Cloud Storage location where the output will be written to. */ @@ -4949,7 +4983,7 @@ export namespace vision_v1p2beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().GoogleCloudVisionV1p2beta1BatchAnnotateFilesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p2beta1BatchAnnotateFilesRequest} params.requestBody 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 @@ -5048,7 +5082,7 @@ export namespace vision_v1p2beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesRequest} params.requestBody 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 @@ -5153,7 +5187,7 @@ export namespace vision_v1p2beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().GoogleCloudVisionV1p2beta1BatchAnnotateImagesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p2beta1BatchAnnotateImagesRequest} params.requestBody 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 @@ -5252,7 +5286,7 @@ export namespace vision_v1p2beta1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {().GoogleCloudVisionV1p2beta1AsyncBatchAnnotateImagesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p2beta1AsyncBatchAnnotateImagesRequest} params.requestBody 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 @@ -5371,7 +5405,7 @@ export namespace vision_v1p2beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().GoogleCloudVisionV1p2beta1BatchAnnotateFilesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p2beta1BatchAnnotateFilesRequest} params.requestBody 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 @@ -5472,7 +5506,7 @@ export namespace vision_v1p2beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesRequest} params.requestBody 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 @@ -5588,7 +5622,7 @@ export namespace vision_v1p2beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().GoogleCloudVisionV1p2beta1BatchAnnotateImagesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p2beta1BatchAnnotateImagesRequest} params.requestBody 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 @@ -5689,7 +5723,7 @@ export namespace vision_v1p2beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().GoogleCloudVisionV1p2beta1AsyncBatchAnnotateImagesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p2beta1AsyncBatchAnnotateImagesRequest} params.requestBody 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 @@ -5816,7 +5850,7 @@ export namespace vision_v1p2beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().GoogleCloudVisionV1p2beta1BatchAnnotateFilesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p2beta1BatchAnnotateFilesRequest} params.requestBody 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 @@ -5917,7 +5951,7 @@ export namespace vision_v1p2beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesRequest} params.requestBody 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 @@ -6033,7 +6067,7 @@ export namespace vision_v1p2beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().GoogleCloudVisionV1p2beta1BatchAnnotateImagesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p2beta1BatchAnnotateImagesRequest} params.requestBody 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 @@ -6134,7 +6168,7 @@ export namespace vision_v1p2beta1 { * * @param {object} params Parameters for request * @param {string} params.parent Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`. - * @param {().GoogleCloudVisionV1p2beta1AsyncBatchAnnotateImagesRequest} params.resource Request body data + * @param {().GoogleCloudVisionV1p2beta1AsyncBatchAnnotateImagesRequest} params.requestBody 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 diff --git a/src/apis/webmasters/v3.ts b/src/apis/webmasters/v3.ts index 13e6b05f334..94a3d19110e 100644 --- a/src/apis/webmasters/v3.ts +++ b/src/apis/webmasters/v3.ts @@ -270,7 +270,7 @@ export namespace webmasters_v3 { * * @param {object} params Parameters for request * @param {string} params.siteUrl The site's URL, including protocol. For example: http://www.example.com/ - * @param {().SearchAnalyticsQueryRequest} params.resource Request body data + * @param {().SearchAnalyticsQueryRequest} params.requestBody 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 diff --git a/src/apis/websecurityscanner/v1.ts b/src/apis/websecurityscanner/v1.ts index 11a80422f75..16fb5767766 100644 --- a/src/apis/websecurityscanner/v1.ts +++ b/src/apis/websecurityscanner/v1.ts @@ -601,7 +601,7 @@ export namespace websecurityscanner_v1 { * * @param {object} params Parameters for request * @param {string} params.parent Required. The parent resource name where the scan is created, which should be a project resource name in the format 'projects/{projectId}'. - * @param {().ScanConfig} params.resource Request body data + * @param {().ScanConfig} params.requestBody 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 @@ -899,7 +899,7 @@ export namespace websecurityscanner_v1 { * @param {object} params Parameters for request * @param {string} params.name The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system. * @param {string=} params.updateMask Required. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * @param {().ScanConfig} params.resource Request body data + * @param {().ScanConfig} params.requestBody 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 @@ -972,7 +972,7 @@ export namespace websecurityscanner_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the ScanConfig to be used. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. - * @param {().StartScanRunRequest} params.resource Request body data + * @param {().StartScanRunRequest} params.requestBody 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 @@ -1311,7 +1311,7 @@ export namespace websecurityscanner_v1 { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the ScanRun to be stopped. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. - * @param {().StopScanRunRequest} params.resource Request body data + * @param {().StopScanRunRequest} params.requestBody 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 diff --git a/src/apis/websecurityscanner/v1alpha.ts b/src/apis/websecurityscanner/v1alpha.ts index 06f1b67e1a2..6316c240eae 100644 --- a/src/apis/websecurityscanner/v1alpha.ts +++ b/src/apis/websecurityscanner/v1alpha.ts @@ -529,7 +529,7 @@ export namespace websecurityscanner_v1alpha { * * @param {object} params Parameters for request * @param {string} params.parent Required. The parent resource name where the scan is created, which should be a project resource name in the format 'projects/{projectId}'. - * @param {().ScanConfig} params.resource Request body data + * @param {().ScanConfig} params.requestBody 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 @@ -827,7 +827,7 @@ export namespace websecurityscanner_v1alpha { * @param {object} params Parameters for request * @param {string} params.name The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system. * @param {string=} params.updateMask Required. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * @param {().ScanConfig} params.resource Request body data + * @param {().ScanConfig} params.requestBody 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 @@ -900,7 +900,7 @@ export namespace websecurityscanner_v1alpha { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the ScanConfig to be used. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. - * @param {().StartScanRunRequest} params.resource Request body data + * @param {().StartScanRunRequest} params.requestBody 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 @@ -1242,7 +1242,7 @@ export namespace websecurityscanner_v1alpha { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the ScanRun to be stopped. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. - * @param {().StopScanRunRequest} params.resource Request body data + * @param {().StopScanRunRequest} params.requestBody 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 diff --git a/src/apis/websecurityscanner/v1beta.ts b/src/apis/websecurityscanner/v1beta.ts index 2870ed8efe2..1d95d72af80 100644 --- a/src/apis/websecurityscanner/v1beta.ts +++ b/src/apis/websecurityscanner/v1beta.ts @@ -601,7 +601,7 @@ export namespace websecurityscanner_v1beta { * * @param {object} params Parameters for request * @param {string} params.parent Required. The parent resource name where the scan is created, which should be a project resource name in the format 'projects/{projectId}'. - * @param {().ScanConfig} params.resource Request body data + * @param {().ScanConfig} params.requestBody 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 @@ -899,7 +899,7 @@ export namespace websecurityscanner_v1beta { * @param {object} params Parameters for request * @param {string} params.name The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system. * @param {string=} params.updateMask Required. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * @param {().ScanConfig} params.resource Request body data + * @param {().ScanConfig} params.requestBody 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 @@ -972,7 +972,7 @@ export namespace websecurityscanner_v1beta { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the ScanConfig to be used. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. - * @param {().StartScanRunRequest} params.resource Request body data + * @param {().StartScanRunRequest} params.requestBody 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 @@ -1314,7 +1314,7 @@ export namespace websecurityscanner_v1beta { * * @param {object} params Parameters for request * @param {string} params.name Required. The resource name of the ScanRun to be stopped. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. - * @param {().StopScanRunRequest} params.resource Request body data + * @param {().StopScanRunRequest} params.requestBody 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 diff --git a/src/apis/youtube/v3.ts b/src/apis/youtube/v3.ts index 02b88b4ecbb..9ee0fa212f8 100644 --- a/src/apis/youtube/v3.ts +++ b/src/apis/youtube/v3.ts @@ -4478,7 +4478,7 @@ export namespace youtube_v3 { * * @param {object} params Parameters for request * @param {string} params.part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. - * @param {().Activity} params.resource Request body data + * @param {().Activity} params.requestBody 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 @@ -4854,7 +4854,7 @@ export namespace youtube_v3 { * @param {string=} params.onBehalfOfContentOwner Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. * @param {string} params.part The part parameter specifies the caption resource parts that the API response will include. Set the parameter value to snippet. * @param {boolean=} params.sync The sync parameter indicates whether YouTube should automatically synchronize the caption file with the audio track of the video. If you set the value to true, YouTube will disregard any time codes that are in the uploaded caption file and generate new time codes for the captions. You should set the sync parameter to true if you are uploading a transcript, which has no time codes, or if you suspect the time codes in your file are incorrect and want YouTube to try to fix them. - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents @@ -5013,7 +5013,7 @@ export namespace youtube_v3 { * @param {string=} params.onBehalfOfContentOwner Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. * @param {string} params.part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Set the property value to snippet if you are updating the track's draft status. Otherwise, set the property value to id. * @param {boolean=} params.sync Note: The API server only processes the parameter value if the request contains an updated caption file. The sync parameter indicates whether YouTube should automatically synchronize the caption file with the audio track of the video. If you set the value to true, YouTube will automatically synchronize the caption track with the audio track. - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents @@ -5261,7 +5261,7 @@ export namespace youtube_v3 { * @param {object} params Parameters for request * @param {string=} params.channelId The channelId parameter identifies the YouTube channel to which the banner is uploaded. The channelId parameter was introduced as a required parameter in May 2017. As this was a backward-incompatible change, channelBanners.insert requests that do not specify this parameter will not return an error until six months have passed from the time that the parameter was introduced. Please see the API Terms of Service for the official policy regarding backward incompatible changes and the API revision history for the exact date that the parameter was introduced. * @param {string=} params.onBehalfOfContentOwner Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents @@ -5472,7 +5472,7 @@ export namespace youtube_v3 { * @param {object} params Parameters for request * @param {string=} params.onBehalfOfContentOwner The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with needs to be linked to the specified YouTube content owner. * @param {string} params.part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The API currently only allows the parameter value to be set to either brandingSettings or invideoPromotion. (You cannot update both of those parts with a single request.) Note that this method overrides the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. - * @param {().Channel} params.resource Request body data + * @param {().Channel} params.requestBody 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 @@ -5698,7 +5698,7 @@ export namespace youtube_v3 { * @param {string=} params.onBehalfOfContentOwner Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. * @param {string=} params.onBehalfOfContentOwnerChannel This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. * @param {string} params.part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part names that you can include in the parameter value are snippet and contentDetails. - * @param {().ChannelSection} params.resource Request body data + * @param {().ChannelSection} params.requestBody 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 @@ -5860,7 +5860,7 @@ export namespace youtube_v3 { * @param {object} params Parameters for request * @param {string=} params.onBehalfOfContentOwner Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. * @param {string} params.part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part names that you can include in the parameter value are snippet and contentDetails. - * @param {().ChannelSection} params.resource Request body data + * @param {().ChannelSection} params.requestBody 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 @@ -6108,7 +6108,7 @@ export namespace youtube_v3 { * * @param {object} params Parameters for request * @param {string} params.part The part parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units. - * @param {().Comment} params.resource Request body data + * @param {().Comment} params.requestBody 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 @@ -6404,7 +6404,7 @@ export namespace youtube_v3 { * * @param {object} params Parameters for request * @param {string} params.part The part parameter identifies the properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update. - * @param {().Comment} params.resource Request body data + * @param {().Comment} params.requestBody 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 @@ -6590,7 +6590,7 @@ export namespace youtube_v3 { * * @param {object} params Parameters for request * @param {string} params.part The part parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units. - * @param {().CommentThread} params.resource Request body data + * @param {().CommentThread} params.requestBody 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 @@ -6756,7 +6756,7 @@ export namespace youtube_v3 { * * @param {object} params Parameters for request * @param {string} params.part The part parameter specifies a comma-separated list of commentThread resource properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update. - * @param {().CommentThread} params.resource Request body data + * @param {().CommentThread} params.requestBody 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 @@ -7475,7 +7475,7 @@ export namespace youtube_v3 { * @param {string=} params.onBehalfOfContentOwner Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. * @param {string=} params.onBehalfOfContentOwnerChannel This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. * @param {string} params.part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status. - * @param {().LiveBroadcast} params.resource Request body data + * @param {().LiveBroadcast} params.requestBody 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 @@ -7719,7 +7719,7 @@ export namespace youtube_v3 { * @param {string=} params.onBehalfOfContentOwner Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. * @param {string=} params.onBehalfOfContentOwnerChannel This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. * @param {string} params.part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, contentDetails, and status. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a broadcast's privacy status is defined in the status part. As such, if your request is updating a private or unlisted broadcast, and the request's part parameter value includes the status part, the broadcast's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the broadcast will revert to the default privacy setting. - * @param {().LiveBroadcast} params.resource Request body data + * @param {().LiveBroadcast} params.requestBody 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 @@ -8080,7 +8080,7 @@ export namespace youtube_v3 { * * @param {object} params Parameters for request * @param {string} params.part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet. - * @param {().LiveChatBan} params.resource Request body data + * @param {().LiveChatBan} params.requestBody 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 @@ -8264,7 +8264,7 @@ export namespace youtube_v3 { * * @param {object} params Parameters for request * @param {string} params.part The part parameter serves two purposes. It identifies the properties that the write operation will set as well as the properties that the API response will include. Set the parameter value to snippet. - * @param {().LiveChatMessage} params.resource Request body data + * @param {().LiveChatMessage} params.requestBody 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 @@ -8566,7 +8566,7 @@ export namespace youtube_v3 { * * @param {object} params Parameters for request * @param {string} params.part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet. - * @param {().LiveChatModerator} params.resource Request body data + * @param {().LiveChatModerator} params.requestBody 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 @@ -8864,7 +8864,7 @@ export namespace youtube_v3 { * @param {string=} params.onBehalfOfContentOwner Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. * @param {string=} params.onBehalfOfContentOwnerChannel This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. * @param {string} params.part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, cdn, and status. - * @param {().LiveStream} params.resource Request body data + * @param {().LiveStream} params.requestBody 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 @@ -9022,7 +9022,7 @@ export namespace youtube_v3 { * @param {string=} params.onBehalfOfContentOwner Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. * @param {string=} params.onBehalfOfContentOwnerChannel This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. * @param {string} params.part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part properties that you can include in the parameter value are id, snippet, cdn, and status. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. If the request body does not specify a value for a mutable property, the existing value for that property will be removed. - * @param {().LiveStream} params.resource Request body data + * @param {().LiveStream} params.requestBody 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 @@ -9499,7 +9499,7 @@ export namespace youtube_v3 { * @param {object} params Parameters for request * @param {string=} params.onBehalfOfContentOwner Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. * @param {string} params.part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. - * @param {().PlaylistItem} params.resource Request body data + * @param {().PlaylistItem} params.requestBody 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 @@ -9657,7 +9657,7 @@ export namespace youtube_v3 { * @param {object} params Parameters for request * @param {string=} params.onBehalfOfContentOwner Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. * @param {string} params.part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a playlist item can specify a start time and end time, which identify the times portion of the video that should play when users watch the video in the playlist. If your request is updating a playlist item that sets these values, and the request's part parameter value includes the contentDetails part, the playlist item's start and end times will be updated to whatever value the request body specifies. If the request body does not specify values, the existing start and end times will be removed and replaced with the default settings. - * @param {().PlaylistItem} params.resource Request body data + * @param {().PlaylistItem} params.requestBody 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 @@ -9908,7 +9908,7 @@ export namespace youtube_v3 { * @param {string=} params.onBehalfOfContentOwner Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. * @param {string=} params.onBehalfOfContentOwnerChannel This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. * @param {string} params.part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. - * @param {().Playlist} params.resource Request body data + * @param {().Playlist} params.requestBody 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 @@ -10064,7 +10064,7 @@ export namespace youtube_v3 { * @param {object} params Parameters for request * @param {string=} params.onBehalfOfContentOwner Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. * @param {string} params.part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for mutable properties that are contained in any parts that the request body specifies. For example, a playlist's description is contained in the snippet part, which must be included in the request body. If the request does not specify a value for the snippet.description property, the playlist's existing description will be deleted. - * @param {().Playlist} params.resource Request body data + * @param {().Playlist} params.requestBody 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 @@ -10664,7 +10664,7 @@ export namespace youtube_v3 { * * @param {object} params Parameters for request * @param {string} params.part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. - * @param {().Subscription} params.resource Request body data + * @param {().Subscription} params.requestBody 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 @@ -11532,7 +11532,7 @@ export namespace youtube_v3 { * @param {string=} params.onBehalfOfContentOwnerChannel This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. * @param {string} params.part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that not all parts contain properties that can be set when inserting or updating a video. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response. * @param {boolean=} params.stabilize The stabilize parameter indicates whether YouTube should adjust the video to remove shaky camera motions. - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents @@ -11762,7 +11762,7 @@ export namespace youtube_v3 { * * @param {object} params Parameters for request * @param {string=} params.onBehalfOfContentOwner Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. - * @param {().VideoAbuseReport} params.resource Request body data + * @param {().VideoAbuseReport} params.requestBody 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 @@ -11836,7 +11836,7 @@ export namespace youtube_v3 { * @param {object} params Parameters for request * @param {string=} params.onBehalfOfContentOwner Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner. * @param {string} params.part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a video's privacy setting is contained in the status part. As such, if your request is updating a private video, and the request's part parameter value includes the status part, the video's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the video will revert to the default privacy setting. In addition, not all parts contain properties that can be set when inserting or updating a video. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response. - * @param {().Video} params.resource Request body data + * @param {().Video} params.requestBody 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 @@ -12106,7 +12106,7 @@ export namespace youtube_v3 { * @param {object} params Parameters for request * @param {string} params.channelId The channelId parameter specifies the YouTube channel ID for which the watermark is being provided. * @param {string=} params.onBehalfOfContentOwner Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. - * @param {object} params.resource Media resource metadata + * @param {object} params.requestBody Media resource metadata * @param {object} params.media Media object * @param {string} params.media.mimeType Media mime-type * @param {string|object} params.media.body Media body contents diff --git a/src/apis/youtubeAnalytics/v2.ts b/src/apis/youtubeAnalytics/v2.ts index 81788877eec..ac15f97eb35 100644 --- a/src/apis/youtubeAnalytics/v2.ts +++ b/src/apis/youtubeAnalytics/v2.ts @@ -441,7 +441,7 @@ export namespace youtubeAnalytics_v2 { * * @param {object} params Parameters for request * @param {string=} params.onBehalfOfContentOwner This parameter can only be used in a properly authorized request. **Note:** This parameter is intended exclusively for YouTube content partners that own and manage many different YouTube channels. The `onBehalfOfContentOwner` parameter indicates that the request's authorization credentials identify a YouTube user who is acting on behalf of the content owner specified in the parameter value. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The account that the user authenticates with must be linked to the specified YouTube content owner. - * @param {().GroupItem} params.resource Request body data + * @param {().GroupItem} params.requestBody 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 @@ -716,7 +716,7 @@ export namespace youtubeAnalytics_v2 { * * @param {object} params Parameters for request * @param {string=} params.onBehalfOfContentOwner This parameter can only be used in a properly authorized request. **Note:** This parameter is intended exclusively for YouTube content partners that own and manage many different YouTube channels. The `onBehalfOfContentOwner` parameter indicates that the request's authorization credentials identify a YouTube user who is acting on behalf of the content owner specified in the parameter value. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The account that the user authenticates with must be linked to the specified YouTube content owner. - * @param {().Group} params.resource Request body data + * @param {().Group} params.requestBody 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 @@ -860,7 +860,7 @@ export namespace youtubeAnalytics_v2 { * * @param {object} params Parameters for request * @param {string=} params.onBehalfOfContentOwner This parameter can only be used in a properly authorized request. **Note:** This parameter is intended exclusively for YouTube content partners that own and manage many different YouTube channels. The `onBehalfOfContentOwner` parameter indicates that the request's authorization credentials identify a YouTube user who is acting on behalf of the content owner specified in the parameter value. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The account that the user authenticates with must be linked to the specified YouTube content owner. - * @param {().Group} params.resource Request body data + * @param {().Group} params.requestBody 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 diff --git a/src/apis/youtubereporting/v1.ts b/src/apis/youtubereporting/v1.ts index a13178b2c65..1a375d4d3c3 100644 --- a/src/apis/youtubereporting/v1.ts +++ b/src/apis/youtubereporting/v1.ts @@ -593,7 +593,7 @@ export namespace youtubereporting_v1 { * * @param {object} params Parameters for request * @param {string=} params.onBehalfOfContentOwner The content owner's external ID on which behalf the user is acting on. If not set, the user is acting for himself (his own channel). - * @param {().Job} params.resource Request body data + * @param {().Job} params.requestBody 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 diff --git a/src/generator/generator.ts b/src/generator/generator.ts index 7a155340510..dc53de4d1fb 100644 --- a/src/generator/generator.ts +++ b/src/generator/generator.ts @@ -244,7 +244,7 @@ export class Generator { 'Attempting first generateAPI call...' ); try { - const results = await this.generateAPI(api.discoveryRestUrl); + await this.generateAPI(api.discoveryRestUrl); this.logResult(api.discoveryRestUrl, `GenerateAPI call success!`); } catch (e) { this.logResult( diff --git a/src/generator/templates/package.json.njk b/src/generator/templates/package.json.njk index 2eac412ac6c..23fb2311985 100644 --- a/src/generator/templates/package.json.njk +++ b/src/generator/templates/package.json.njk @@ -36,7 +36,7 @@ "null-loader": "^3.0.0", "ts-loader": "^6.0.4", "typedoc": "^0.15.0", - "typescript": "~3.6.0", + "typescript": "~3.7.0", "webpack": "^4.35.3", "webpack-cli": "^3.3.5" } diff --git a/src/index.ts b/src/index.ts index e56daae399e..63d70a6f868 100644 --- a/src/index.ts +++ b/src/index.ts @@ -37,9 +37,7 @@ export {alertcenter_v1beta1} from './apis/alertcenter/v1beta1'; export {analytics_v2_4} from './apis/analytics/v2.4'; export {analytics_v3} from './apis/analytics/v3'; export {analyticsreporting_v4} from './apis/analyticsreporting/v4'; -export { - androiddeviceprovisioning_v1, -} from './apis/androiddeviceprovisioning/v1'; +export {androiddeviceprovisioning_v1} from './apis/androiddeviceprovisioning/v1'; export {androidenterprise_v1} from './apis/androidenterprise/v1'; export {androidmanagement_v1} from './apis/androidmanagement/v1'; export {androidpublisher_v1_1} from './apis/androidpublisher/v1.1'; @@ -54,12 +52,11 @@ export {bigquery_v2} from './apis/bigquery/v2'; export {bigqueryconnection_v1beta1} from './apis/bigqueryconnection/v1beta1'; export {bigquerydatatransfer_v1} from './apis/bigquerydatatransfer/v1'; export {bigqueryreservation_v1} from './apis/bigqueryreservation/v1'; -export { - bigqueryreservation_v1alpha2, -} from './apis/bigqueryreservation/v1alpha2'; +export {bigqueryreservation_v1alpha2} from './apis/bigqueryreservation/v1alpha2'; export {bigqueryreservation_v1beta1} from './apis/bigqueryreservation/v1beta1'; export {bigtableadmin_v1} from './apis/bigtableadmin/v1'; export {bigtableadmin_v2} from './apis/bigtableadmin/v2'; +export {billingbudgets_v1beta1} from './apis/billingbudgets/v1beta1'; export {binaryauthorization_v1} from './apis/binaryauthorization/v1'; export {binaryauthorization_v1beta1} from './apis/binaryauthorization/v1beta1'; export {blogger_v2} from './apis/blogger/v2'; @@ -83,18 +80,12 @@ export {cloudidentity_v1beta1} from './apis/cloudidentity/v1beta1'; export {cloudiot_v1} from './apis/cloudiot/v1'; export {cloudkms_v1} from './apis/cloudkms/v1'; export {cloudprivatecatalog_v1beta1} from './apis/cloudprivatecatalog/v1beta1'; -export { - cloudprivatecatalogproducer_v1beta1, -} from './apis/cloudprivatecatalogproducer/v1beta1'; +export {cloudprivatecatalogproducer_v1beta1} from './apis/cloudprivatecatalogproducer/v1beta1'; export {cloudprofiler_v2} from './apis/cloudprofiler/v2'; export {cloudresourcemanager_v1} from './apis/cloudresourcemanager/v1'; -export { - cloudresourcemanager_v1beta1, -} from './apis/cloudresourcemanager/v1beta1'; +export {cloudresourcemanager_v1beta1} from './apis/cloudresourcemanager/v1beta1'; export {cloudresourcemanager_v2} from './apis/cloudresourcemanager/v2'; -export { - cloudresourcemanager_v2beta1, -} from './apis/cloudresourcemanager/v2beta1'; +export {cloudresourcemanager_v2beta1} from './apis/cloudresourcemanager/v2beta1'; export {cloudscheduler_v1} from './apis/cloudscheduler/v1'; export {cloudscheduler_v1beta1} from './apis/cloudscheduler/v1beta1'; export {cloudsearch_v1} from './apis/cloudsearch/v1'; @@ -118,6 +109,7 @@ export {containeranalysis_v1beta1} from './apis/containeranalysis/v1beta1'; export {content_v2_1} from './apis/content/v2.1'; export {content_v2} from './apis/content/v2'; export {customsearch_v1} from './apis/customsearch/v1'; +export {datacatalog_v1beta1} from './apis/datacatalog/v1beta1'; export {dataflow_v1b3} from './apis/dataflow/v1b3'; export {datafusion_v1beta1} from './apis/datafusion/v1beta1'; export {dataproc_v1} from './apis/dataproc/v1'; @@ -128,7 +120,7 @@ export {datastore_v1beta3} from './apis/datastore/v1beta3'; export {deploymentmanager_alpha} from './apis/deploymentmanager/alpha'; export {deploymentmanager_v2} from './apis/deploymentmanager/v2'; export {deploymentmanager_v2beta} from './apis/deploymentmanager/v2beta'; -export {dfareporting_v3_3} from './apis/dfareporting/v3.3'; +export {dfareporting_v3_4} from './apis/dfareporting/v3.4'; export {dialogflow_v2} from './apis/dialogflow/v2'; export {dialogflow_v2beta1} from './apis/dialogflow/v2beta1'; export {digitalassetlinks_v1} from './apis/digitalassetlinks/v1'; @@ -139,6 +131,7 @@ export {dns_v1beta2} from './apis/dns/v1beta2'; export {dns_v2beta1} from './apis/dns/v2beta1'; export {docs_v1} from './apis/docs/v1'; export {domainsrdap_v1} from './apis/domainsrdap/v1'; +export {doubleclickbidmanager_v1_1} from './apis/doubleclickbidmanager/v1.1'; export {doubleclickbidmanager_v1} from './apis/doubleclickbidmanager/v1'; export {doubleclicksearch_v2} from './apis/doubleclicksearch/v2'; export {drive_v2} from './apis/drive/v2'; @@ -159,12 +152,8 @@ export {fitness_v1} from './apis/fitness/v1'; export {fusiontables_v1} from './apis/fusiontables/v1'; export {fusiontables_v2} from './apis/fusiontables/v2'; export {games_v1} from './apis/games/v1'; -export { - gamesConfiguration_v1configuration, -} from './apis/gamesConfiguration/v1configuration'; -export { - gamesManagement_v1management, -} from './apis/gamesManagement/v1management'; +export {gamesConfiguration_v1configuration} from './apis/gamesConfiguration/v1configuration'; +export {gamesManagement_v1management} from './apis/gamesManagement/v1management'; export {genomics_v1} from './apis/genomics/v1'; export {genomics_v1alpha2} from './apis/genomics/v1alpha2'; export {genomics_v2alpha1} from './apis/genomics/v2alpha1'; @@ -218,9 +207,7 @@ export {recommender_v1beta1} from './apis/recommender/v1beta1'; export {redis_v1} from './apis/redis/v1'; export {redis_v1beta1} from './apis/redis/v1beta1'; export {remotebuildexecution_v1} from './apis/remotebuildexecution/v1'; -export { - remotebuildexecution_v1alpha, -} from './apis/remotebuildexecution/v1alpha'; +export {remotebuildexecution_v1alpha} from './apis/remotebuildexecution/v1alpha'; export {remotebuildexecution_v2} from './apis/remotebuildexecution/v2'; export {replicapool_v1beta1} from './apis/replicapool/v1beta1'; export {reseller_v1} from './apis/reseller/v1'; @@ -238,9 +225,7 @@ export {securitycenter_v1p1alpha1} from './apis/securitycenter/v1p1alpha1'; export {servicebroker_v1} from './apis/servicebroker/v1'; export {servicebroker_v1alpha1} from './apis/servicebroker/v1alpha1'; export {servicebroker_v1beta1} from './apis/servicebroker/v1beta1'; -export { - serviceconsumermanagement_v1, -} from './apis/serviceconsumermanagement/v1'; +export {serviceconsumermanagement_v1} from './apis/serviceconsumermanagement/v1'; export {servicecontrol_v1} from './apis/servicecontrol/v1'; export {servicemanagement_v1} from './apis/servicemanagement/v1'; export {servicenetworking_v1} from './apis/servicenetworking/v1'; @@ -256,9 +241,7 @@ export {speech_v1} from './apis/speech/v1'; export {speech_v1p1beta1} from './apis/speech/v1p1beta1'; export {speech_v2beta1} from './apis/speech/v2beta1'; export {sql_v1beta4} from './apis/sql/v1beta4'; -export {sqladmin_v1beta4} from './apis/sqladmin/v1beta4'; export {storage_v1} from './apis/storage/v1'; -export {storage_v1beta1} from './apis/storage/v1beta1'; export {storage_v1beta2} from './apis/storage/v1beta2'; export {storagetransfer_v1} from './apis/storagetransfer/v1'; export {streetviewpublish_v1} from './apis/streetviewpublish/v1';